]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix option aliasing in argp.
[thirdparty/glibc.git] / ChangeLog
1 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 [BZ #11254]
4 * argp/argp-parse.c (convert_options): Fix improper use of `|'
5 between character values.
6
7 2010-04-04 Ulrich Drepper <drepper@redhat.com>
8
9 [BZ #11276]
10 * sysdeps/posix/remove.c (IS_NO_DIRECTORY_ERROR): Define.
11 (remove): Use IS_NO_DIRECTORY_ERROR to check for file being no
12 directory.
13 * sysdeps/unix/sysv/linux/remove.c: New file.
14
15 * conform/data/sys/stat.h-data: Fix testing of S_IS* macros.
16
17 [BZ #11279]
18 * io/sys/stat.h: Always define S_ISSOCK for XPG6 and up.
19
20 [BZ #11287]
21 * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
22 which don't define UTS_RELEASE.
23
24 2010-04-04 H.J. Lu <hongjiu.lu@intel.com>
25 Ulrich Drepper <drepper@redhat.com>
26
27 [BZ #11292]
28 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
29 concurrent initialization and use of __cpu_features.
30
31 2010-04-04 Ulrich Drepper <drepper@redhat.com>
32
33 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
34 the enum.
35
36 2010-04-03 Ulrich Drepper <drepper@redhat.com>
37
38 [BZ #11333]
39 * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
40 which include unnecessary padding in d_reclen.
41 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
42 unnecessary padding.
43
44 [BZ #11387]
45 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
46 unknown interface, return -1.
47 (getifaddrs_internal): Rename from getifaddrs. Handle errors in
48 map_newlink be returning -EAGAIN.
49 (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
50 again.
51
52 2010-03-25 Ryan S. Arnold <rsa@us.ibm.com>
53
54 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
55 redundant and incorrect else block which overwrites current line
56 with the partial next line.
57
58 2010-04-03 Ulrich Drepper <drepper@redhat.com>
59
60 [BZ #11438]
61 * posix/gai.conf: Document problems with IPv4 site-local addresses and
62 NATs.
63
64 [BZ #11449]
65 * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
66 small_tables_initialized.
67
68 * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
69
70 * malloc/malloc.c (set_max_fast): Fix computation of the value.
71
72 2010-03-30 David S. Miller <davem@davemloft.net>
73
74 * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
75 MMAP2_PAGE_SHIFT test.
76
77 2010-03-29 Ulrich Drepper <drepper@redhat.com>
78
79 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
80
81 2010-03-28 Thomas Schwinge <thomas@schwinge.name>
82
83 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
84 changes in the generic code.
85 * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
86 to [HAVE_AUX_VECTOR].
87
88 2010-03-27 Ulrich Drepper <drepper@redhat.com>
89
90 * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
91 __ASSUME_AT_PAGESIZE we can rely on the value being set.
92
93 * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
94 unconditionally in the end.
95
96 * posix/glob.c (glob): Initialize oldcount early, too.
97
98 2010-03-26 Ulrich Drepper <drepper@redhat.com>
99
100 * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
101 only if needed.
102 Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
103
104 2010-03-26 Richard Henderson <rth@redhat.com>
105
106 * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
107
108 * stdio-common/psiginfo.c (psiginfo): Fix printf format
109 warning for si_band.
110
111 * locale/setlocale.c (free_category): Finish renaming
112 struct locale_data to __locale_data.
113
114 * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
115 * elf/dl-sysdep.c (_end): Likewise.
116 * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
117 declared _end, and associated variables.
118
119 2010-03-26 Ulrich Drepper <drepper@redhat.com>
120
121 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
122 means aborting the loop over the NSS methods.
123
124 2010-03-25 Andreas Schwab <schwab@redhat.com>
125
126 * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
127 each action.
128
129 2010-03-26 Ulrich Drepper <drepper@redhat.com>
130
131 * malloc/malloc.c: Remove stale reference to website.
132
133 2010-03-24 Ulrich Drepper <drepper@redhat.com>
134
135 [BZ #11389]
136 * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
137 CLOCK_MONOTONIC_COARSE.
138 * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
139 CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
140 * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
141 * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
142
143 2010-03-25 Andreas Schwab <schwab@redhat.com>
144
145 * sysdeps/posix/cuserid.c: Fix typo.
146
147 2010-03-16 Chris Demetriou <cgd@google.com>
148
149 [BZ #11394]
150 * locale/programs/simple-hash.c: Include inttypes.h.
151 (hashval_t): Defined to be uint32_t.
152 * locale/programs/simple_hash.h: Include inttypes.h.
153 (compute_hashval): Change return type to uint32_t.
154
155 2010-03-24 Ulrich Drepper <drepper@redhat.com>
156
157 * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
158 * sysdeps/unix/sysv/linux/getlogin.c: New file.
159 * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
160 function.
161 * sysdeps/unix/getlogin.c: Likewise. Move name variable to toplevel.
162 * include/unistd.h: Declare __getlogin_r_loginuid.
163
164 [BZ #11397]
165 * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
166 is NUL terminated.
167 Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
168
169 * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
170
171 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
172
173 * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
174 is defined.
175
176 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
177
178 * string/test-memcmp.c (check_result): New function.
179 (do_one_test): Use it.
180 (check1): New function.
181 (test_main): Use it.
182
183 2010-03-24 Ulrich Drepper <drepper@redhat.com>
184
185 * posix/tst-gnuglob.c: Add tests with empty patterns. For this
186 rewrite the tests to add support for failing glob calls.
187 Some other minor cleanups.
188 * posix/bug-glob3.c: New file.
189 * posix/Makefile (tests): Add bug-glob3.
190
191 2010-03-24 Ulrich Drepper <drepper@redhat.com>
192 Andreas Schwab <andreas@redhat.com>
193
194 * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
195 If pattern is "" bail out early
196
197 2010-03-23 Jakub Jelinek <jakub@redhat.com>
198
199 * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
200 but tab->size != 0, just unlock and goto success, without
201 allocating anything or entering anything into the hash table.
202 (_dl_debug_bindings): Temporarily set tab->entries to NULL
203 around do_lookup_x in undef_map->l_local_scope[0]. If
204 undef_map->l_symbolic_in_local_scope, lookup also in
205 symbolic_searchlist of following libraries in l_local_scope
206 that have DT_SYMBOLIC set.
207 * elf/dl-deps.c (_dl_map_object_deps): Compute
208 l_symbolic_in_local_scope.
209 * include/link.h (struct link_map): Add l_symbolic_in_local_scope
210 bitfield.
211
212 2010-03-24 Ulrich Drepper <drepper@redhat.com>
213
214 [BZ #11410]
215 * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
216
217 * wcsmbs/wchar.h: Correct preprocessor directive indentation. Move
218 C++ prototype handling to a better place.
219
220 2010-03-18 Ulrich Drepper <drepper@redhat.com>
221
222 * elf/dl-load.c (open_verify): Extend expected to the full size of the
223 e_ident array. When loading, check that the fields in e_ident we don't
224 know are zero to allow future extensions.
225
226 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
227
228 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
229 when exit from loop.
230
231 2010-03-16 Andreas Schwab <schwab@redhat.com>
232
233 * resolv/res_send.c (__libc_res_nsend): Fix printing of server
234 address in debug statement.
235 (send_dg): Pass correct buffer pointer to DprintQ.
236
237 2010-03-17 Ulrich Drepper <drepper@redhat.com>
238
239 * libc-abis: Add a few more entries.
240
241 2010-03-16 Ulrich Drepper <drepper@redhat.com>
242
243 * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
244 Not used here.
245 (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
246 interface.
247 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
248 additional osabi parameter. Only acceept nonzero ABI versions if osabi
249 is Linux.
250 Fix includes.
251 (expected2): Don't explicitly initialize EI_ABIVERSION byte.
252
253 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
254 definition to follow generic code.
255
256 2010-03-15 Ulrich Drepper <drepper@redhat.com>
257
258 * posix/getconf.c: Update copyright year.
259 * nss/getent.c: Likewise.
260 * iconv/iconvconfig.c: Likewise.
261 * iconv/iconv_prog.c: Likewise.
262 * elf/ldconfig.c: Likewise.
263 * catgets/gencat.c: Likewise.
264 * csu/version.c: Likewise.
265 * elf/ldd.bash.in: Likewise.
266 * elf/sprof.c (print_version): Likewise.
267 * locale/programs/locale.c: Likewise.
268 * locale/programs/localedef.c: Likewise.
269 * nscd/nscd.c (print_version): Likewise.
270 * debug/xtrace.sh: Likewise.
271 * malloc/memusage.sh: Likewise.
272 * malloc/mtrace.pl: Likewise.
273 * debug/catchsegv.sh: Likewise.
274
275 * Makerules: Add rule for libc-abis.h.
276 * csu/version.c: Use LIBC_ABIS_STRING string if available.
277 * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
278 (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
279 Add extra call to VALID_ELF_ABIVERSION.
280
281 2010-03-12 Ulrich Drepper <drepper@redhat.com>
282
283 * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
284
285 2010-03-12 Andreas Schwab <schwab@redhat.com>
286
287 * elf/dl-dst.h: Include "trusted-dirs.h".
288 (DL_DST_REQUIRED): Take $LIB into account.
289
290 2010-03-11 Roland McGrath <roland@redhat.com>
291
292 * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
293 (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
294
295 2010-03-10 Luis Machado <luisgpm@br.ibm.com>
296
297 * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
298 * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
299
300 2010-03-09 David S. Miller <davem@davemloft.net>
301
302 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
303 of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
304 64-bit ones.
305
306 * sysdeps/sparc/sparc32/memcpy.S: Fix build.
307
308 * sysdeps/sparc/sparc32/strlen.S: Optimize.
309 * sysdeps/sparc/sparc64/strlen.S: Likewise.
310 * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
311 XCC): Delete definitions, not needed.
312
313 2010-03-07 Ulrich Drepper <drepper@redhat.com>
314
315 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
316 Little follow-up patch from last change.
317
318 2010-03-06 Ulrich Drepper <drepper@redhat.com>
319
320 * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
321 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
322
323 2010-02-18 Yann Droneaud <yann@droneaud.fr>
324
325 * resolv/res_send.c: Fixed DEBUG statements.
326 Moved tmpbuf declaration to block beginning and
327 updated pointer names used in multiple DprintQ() calls
328
329 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
330
331 * config.make.in (config-asflags-i686): Define.
332 * configure.in: Substitute libc_cv_as_i686.
333 * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
334 * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
335 if assembler supports -mtune=i686.
336 (ASFLAGS-.oX): Likewise.
337
338 2010-03-04 Ulrich Drepper <drepper@redhat.com>
339
340 * elf/elf.h (R_X86_64_SIZE32): Define.
341 (R_X86_64_SIZE64): Define.
342
343 2010-03-02 Richard Guenther <rguenther@suse.de>
344
345 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
346 is sign-extending.
347
348 2010-03-03 Ulrich Drepper <drepper@redhat.com>
349
350 * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
351 the kernel headers.
352
353 2010-03-04 David S. Miller <davem@davemloft.net>
354
355 * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
356
357 * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
358 * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
359
360 2010-03-03 David S. Miller <davem@davemloft.net>
361
362 * math/math_private.h (INSERT_WORDS64): Fix argument order.
363
364 2010-03-03 Aurelien Jarno <aurelien@aurel32.net>
365
366 * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
367
368 2010-03-03 David S. Miller <davem@davemloft.net>
369
370 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
371 pass '1' for 't' argument to sparc_fixup_plt.
372 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
373 Likewise.
374 * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
375 (sparc_fixup_plt): Document 't' argument. Enable branch
376 optimization and use v9 branches when possible. Explain why we
377 cannot unconditionally patch the branch into the first PLT
378 instruction.
379 * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
380 argument. Use v9 branches when possible. Explain why we can in
381 fact unconditionally use a branch in the first PLT instruction
382 here.
383
384 2010-02-28 Roland McGrath <roland@redhat.com>
385
386 * elf/elf.h (NT_X86_XSTATE): New macro.
387
388 2010-02-25 David S. Miller <davem@davemloft.net>
389
390 * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
391 * sysdeps/sparc/sparc64/align-cpy.S: New.
392 * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
393 __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
394 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
395 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
396 Remove.
397 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
398 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
399 Remove.
400 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
401 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
402 Remove.
403
404 * sysdeps/sparc/sparc32/bcopy.c: Delete.
405 * sysdeps/sparc/sparc32/memmove.c: Delete.
406 * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
407 * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
408 * sysdeps/sparc/sparc64/bcopy.c: Delete.
409 * sysdeps/sparc/sparc64/memmove.c: Delete.
410 * sysdeps/sparc/sparc64/memcopy.h: New.
411 * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
412 * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
413 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
414 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
415 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
416
417 * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
418 * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
419 gen-as-const-headers.
420 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
421 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
422 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
423 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
424 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
425 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
426 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
427 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
428 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
429 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
430 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
431 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
432 * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
433 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
434 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
435 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
436 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
437 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
438 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
439 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
440 * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
441 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
442 * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
443 * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
444
445 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
446
447 [BZ #11332]
448 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
449 and cfi_restore_state only if USE_AS_STRNCMP is defined.
450
451 2010-02-24 Ulrich Drepper <drepper@redhat.com>
452
453 * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
454
455 2010-02-24 H.J. Lu <hongjiu.lu@intel.com>
456
457 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
458 (bk_write_less32bytes_2): Renamed to ...
459 (bk_write_less48bytes): This.
460 Use unsigned conditional jumps.
461 Correct unwind info.
462 Use add/sub instead of lea if possible.
463 (shl_0_gobble_cache_loop_tail): Removed.
464 (large_page): Properly adjust ECX.
465
466 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
467 conditional jumps.
468 Correct unwind info.
469
470 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
471 punpcklbw.
472 Use unsigned conditional jumps.
473 (128bytesormore_nt): Renamed to ...
474 (128bytesormore_endof_L1): This.
475 Use add instead of lea if possible.
476 Correct unwind info.
477 * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
478 punpcklbw.
479 Use unsigned conditional jumps.
480 Use add instead of lea if possible.
481 Correct unwind info.
482
483 2010-02-24 Ulrich Drepper <drepper@redhat.com>
484
485 [BZ #11319]
486 * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
487 undoing the stream because _IO_FINISH doesn't report failures.
488
489 [BZ #5553]
490 * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
491 (public_pVALLOc): Likewise.
492 Patch by Petr Baudis.
493
494 2010-02-22 Jim Meyering <meyering@redhat.com>
495
496 * manual/math.texi (BSD Random): Fix a typo: s/are/is/
497
498 * manual/charset.texi: Adjust grammar.
499
500 * manual/errno.texi (Error Messages): Fix doubled-words and typos.
501 * manual/charset.texi (Selecting the Conversion): Likewise.
502 * manual/getopt.texi (Getopt Long Options): Likewise.
503 * manual/memory.texi (Resizing the Data Segment): Likewise.
504 * manual/message.texi (GUI program problems): Likewise.
505 * manual/resource.texi (CPU Affinity): Likewise.
506 * manual/stdio.texi (Streams and Threads): Likewise.
507 * manual/time.texi (High Accuracy Clock): Likewise.
508
509 2009-02-20 David S. Miller <davem@davemloft.net>
510
511 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
512 Adjust rela->r_offset by l->l_addr when rewriting PLT.
513
514 * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
515 test end of buffer.
516
517 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
518 (__makecontext): Adjust arg counter properly when copying arg
519 stack slots.
520
521 2009-02-20 Joseph Myers <joseph@codesourcery.com>
522
523 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
524 Adjust rela->r_offset by l->l_addr when rewriting PLT.
525
526 2010-02-19 Carl Fredrik Hammar <hammy.lite@gmail.com>
527
528 * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
529 non-existent `tiocsctty_port'.
530
531 2010-02-16 H.J. Lu <hongjiu.lu@intel.com>
532
533 * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
534 instead of FEATURE_OFFSET.
535 * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
536
537 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
538 Fix one unwind info problem.
539
540 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
541
542 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
543
544 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
545 Ulrich Drepper <drepper@redhat.com>
546
547 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
548 Clean up a bit.
549
550 2010-02-17 Carl Fredrik Hammar <hammy.lite@gmail.com>
551
552 * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
553 (tiocsctty_port): ...this new function.
554
555 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
556 `ioctl_handler_t'.
557
558 2010-02-15 Ulrich Drepper <drepper@redhat.com>
559
560 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
561 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
562 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
563 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
564
565 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
566 undefined code.
567
568 2010-02-12 H.J. Lu <hongjiu.lu@intel.com>
569
570 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
571 strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
572 memcmp-c, memcmp-ssse3, and memcmp-sse4.
573 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
574 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
575 * sysdeps/i386/i686/multiarch/memcmp.S: New file.
576 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
577 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
578 * sysdeps/i386/i686/multiarch/strcmp.S: New file.
579 * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
580 * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
581 * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
582 * sysdeps/i386/i686/multiarch/strncmp.S: New file.
583
584 2010-02-12 Luis Machado <luisgpm@br.ibm.com>
585
586 * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
587 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
588 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
589 * sysdeps/powerpc/powerpc32/memset.S: Likewise.
590 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
591 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
592 * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
593 is not supported.
594 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
595 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
596 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
597 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
598 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
599 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
600 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
601 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
602 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
603 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
604 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
605 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
606 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
607 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
608 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
609 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
610 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
612 Likewise.
613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
614 Likewise.
615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
616 Likewise.
617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
618 Likewise.
619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
620
621 2010-02-12 Alan Modra <amodra@gmail.com>
622
623 * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
624 Define and use for __powerpc64__ too.
625 [__powerpc__] (TLS_LD): Add r3 to clobbers.
626 [__powerpc__] (TLS_GD): Set asm output. Make __result r3 reg.
627 [__powerpc64__] (TLS_GD): Make __result r3 reg.
628 [__powerpc64__] (TLS_IE): Relax output constraint.
629
630 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
631
632 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
633 instructions cu21 and cu24. Add well-formedness checking
634 parameter and adjust the software implementation.
635 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
636
637 2010-02-10 Ulrich Drepper <drepper@redhat.com>
638
639 [BZ #11271]
640 * io/ftw.c (ftw_startup): Close descriptor for initial directory
641 after changing back to it.
642
643 2010-02-05 David S. Miller <davem@davemloft.net>
644
645 * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
646 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
647 ifunc relocs.
648 (elf_machine_lazy_rel): Likewise.
649 (sparc_fixup_plt): Pull out to...
650 * sysdeps/sparc/sparc32/dl-plt.h: ...here.
651 * sysdeps/sparc/sparc32/dl-irel.h: New file.
652 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
653 ifunc relocs.
654 (elf_machine_lazy_rel): Likewise.
655 (sparc64_fixup_plt): Pull out to...
656 * sysdeps/sparc/sparc64/dl-plt.h: ...here.
657 * sysdeps/sparc/sparc64/dl-irel.h: New file.
658
659 2010-02-09 Maxim Kuvyrkov <maxim@codesourcery.com>
660
661 * elf/elf.h: Define m68k TLS relocations.
662
663 2010-02-10 Luis Machado <luisgpm@br.ibm.com>
664
665 * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
666 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
667 * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
668 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
670 64-bit power7 fpu path.
671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
672 32-bit power7 fpu math.
673
674 2010-02-09 Ulrich Drepper <drepper@redhat.com>
675
676 * sysdeps/i386/rshift.S: More compact unwind information.
677
678 * sysdeps/i386/lshift.S: Fix unwind information.
679
680 2010-02-08 Luis Machado <luisgpm@br.ibm.com>
681
682 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
683 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
684 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
685 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
686 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
687 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
688 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
689 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
690 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
691 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
692 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
693 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
694
695 2010-02-08 Andreas Schwab <schwab@redhat.com>
696
697 * include/fenv.h: Add hidden proto for fegetenv.
698 * math/fegetenv.c: Add hidden alias.
699 * sysdeps/i386/fpu/fegetenv.c: Likewise.
700 * sysdeps/ia64/fpu/fegetenv.c: Likewise.
701 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
702 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
703 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
704 * sysdeps/x86_64/fpu/fegetenv.c: Likewise
705 * sysdeps/s390/fpu/fegetenv.c: Likewise. Remove unused headers.
706
707 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
708
709 [BZ #11230]
710 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
711 during recovery.
712
713 2010-01-26 Andreas Schwab <schwab@redhat.com>
714
715 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
716 interface.
717 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
718 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
719 utmpx interface.
720
721 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
722 entry for 2.12.
723
724 2010-02-03 Ulrich Drepper <drepper@redhat.com>
725
726 [BZ #11235]
727 * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
728 S_IMMUTABLE. Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
729 MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
730 MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
731 MS_ACTIVE, and MS_NOUSER.
732 (MS_RMT_MASK): Update according to current kernels.
733
734 [BZ #11242]
735 * misc/getusershell.c (initshells): Allocate one more byte in input
736 buffer so that fgets doesn't loop undefinitely.
737
738 2010-02-02 Ulrich Drepper <drepper@redhat.com>
739
740 * stdlib/setenv.c (__add_to_environ): Don't use alloca if
741 __libc_use_alloca tells us not to. Fix memory leak in an error
742 situation. Based partially on patch by Jim Meyering.
743
744 2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
745
746 * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
747 get_phys_pages, get_avphys_pages): Add weak aliases.
748
749 2010-01-25 Andreas Schwab <schwab@redhat.com>
750
751 * iconv/iconv_prog.c (write_output): Fix check for open failure.
752
753 2010-01-22 Ulrich Drepper <drepper@redhat.com>
754
755 [BZ #11200]
756 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
757 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
758
759 2010-01-22 Jim Meyering <jim@meyering.net>
760
761 [BZ #11193]
762 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
763 buffer length computation.
764
765 [BZ #11192]
766 * posix/regexec.c (re_copy_regs): Don't leak when allocation
767 of the start buffer succeeds but allocation of the "end" one fails.
768
769 [BZ #11191]
770 * posix/regexec.c (re_search_2_stub): Check for overflow
771 when adding the sizes of the two strings.
772
773 [BZ #11190]
774 * posix/regexec.c (re_search_internal): Avoid overflow
775 in computing re_malloc buffer size.
776
777 [BZ #11189]
778 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
779 in computing re_malloc buffer size.
780
781 [BZ #11188]
782 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
783 in size calculation.
784
785 [BZ #11187]
786 * posix/regexec.c (re_search_2_stub): Use simpler method than
787 boolean for freeing internal storage.
788
789 2010-01-22 Ulrich Drepper <drepper@redhat.com>
790
791 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
792 failed mbrtowc call.
793
794 2010-01-22 Jim Meyering <jim@meyering.net>
795
796 [BZ #11186]
797 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
798 fits in wchar_t. Problem reported by Eric Blake.
799
800 [BZ #11185]
801 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
802 and stores into set-but-not-used local, "q".
803
804 [BZ #11184]
805 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
806 detection test. Patch by Paul Eggert.
807
808 [BZ #11183]
809 * posix/regex_internal.c (re_string_realloc_buffers):
810 Detect and handle internal overflow. Patch by Paul Eggert
811
812 2010-01-20 Andreas Schwab <schwab@redhat.com>
813
814 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
815 (CHECK_SP): Fix check for alternate stack.
816 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
817 (CHECK_SP): Likewise.
818
819 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
820
821 * sysdeps/i386/i686/multiarch/memmove.S: Also check
822 bit_Fast_Rep_String when SHARED isn't defined.
823
824 2010-01-19 Ulrich Drepper <drepper@redhat.com>
825
826 [BZ #11194]
827 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
828
829 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
830
831 * sysdeps/mach/hurd/bits/libc-lock.h
832 (__rtld_lock_recursive_t): New type.
833 (__rtld_lock_initialize): New macro.
834
835 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
836
837 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
838 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
841
842 2010-01-18 Andreas Schwab <schwab@redhat.com>
843
844 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
845 definitions of O_DSYNC and O_RSYNC.
846
847 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
848 casting d_tag.
849
850 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
851 dynamic entry types.
852
853 2010-01-16 Jakub Jelinek <jakub@redhat.com>
854
855 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
856 constant.
857 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
858 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
859 overflow.
860 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
861
862 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
863 math_opt_barrier and math_force_eval macros.
864
865 2010-01-15 Ulrich Drepper <drepper@redhat.com>
866
867 * posix/regcomp.c: Fix a few more cases of ignored return values.
868 * posix/regex_internal.c: Likewise.
869 * posix/regexec.c: Likewise.
870
871 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
872 used without _XOPEN_SOURCE. Don't base any decisions on this macro
873 if _XOPEN_SOURCE is not defined as well.
874
875 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
876
877 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
878 high gprs kernel facility.
879 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
880 Added high gprs check for DSOs.
881 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
882 new elf header flag.
883
884 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
885
886 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
887 dl_main.
888 * elf/dl-open.c (_dl_sysdep_start): Likewise..
889 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
890 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
891 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
892 started.
893
894 2010-01-14 Ulrich Drepper <drepper@redhat.com>
895
896 [BZ #11027]
897 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
898 to RFC 2474.
899 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
900
901 [BZ #11141]
902 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
903 addresses.
904
905 [BZ #11127]
906 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
907 re_node_set_insert failure; return REG_ESPACE.
908 Patch by Paul Eggert.
909
910 * bits/confname.h: Make pre-C99-safe.
911
912 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
913
914 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
915 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
916 files are found by GCC.
917
918 2010-01-14 Ulrich Drepper <drepper@redhat.com>
919
920 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
921 brk, and sbrk.
922
923 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
924 index, and rindex.
925
926 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
927
928 * Versions.def: Add GLIBC_2.12 for libpthread.
929
930 [BZ #11126]
931 * malloc/malloc.c (malloc_info): Initialize malloc if not already
932 done. Handle empty bin lists.
933
934 * posix/unistd.h: Change getpagesize and getdtablesize declaration
935 visibility some more.
936
937 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
938
939 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
940
941 [BZ #11120]
942 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
943 needed outside libc.
944
945 2010-01-13 Ulrich Drepper <drepper@redhat.com>
946
947 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
948
949 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
950
951 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
952
953 2010-01-13 Ulrich Drepper <drepper@redhat.com>
954
955 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
956
957 2010-01-12 Ulrich Drepper <drepper@redhat.com>
958
959 * conform/data/complex.h-data: Test for POSIX2008.
960
961 * conform/data/ctype.h-data: Fix POSIX testing.
962
963 * conform/data/dirent.h-data: ino_t only needed for XSI.
964
965 * grp/grp.h: Declare getgrent and endgrent for XPG7.
966
967 * conform/data/inttypes.h-data: Use same types as the headers.
968
969 * resolv/netdb.h: Don't define old resolver macros for XPG7.
970
971 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
972
973 * conform/conformtest.pl: Implement tag for allow-header.
974 Fix newline handling in allow-header implementation.
975
976 * conform/data/time.h-data: Use allow-header instead of duplicating
977 information.
978
979 * conform/data/time.h-data: Allow sigevent tag.
980
981 * posix/sched.h: Define time_t and pid_t for XPG7.
982
983 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
984
985 * sysdeps/i386/i686/bcopy.S: New file.
986
987 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
988
989 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
990 and END_CHK.
991 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
992 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
993 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
994
995 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
996
997 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
998 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
999 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
1000 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
1001 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
1002 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
1003 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
1004 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
1005 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
1006 * sysdeps/i386/i686/multiarch/bzero.S: New file.
1007 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
1008 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
1009 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
1010 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
1011 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
1012 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
1013 * sysdeps/i386/i686/multiarch/memmove.S: New file.
1014 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
1015 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
1016 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
1017 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
1018 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
1019 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
1020 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
1021 * sysdeps/i386/i686/multiarch/memset.S: New file.
1022 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
1023
1024 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
1025 (END_CHK): Likewise.
1026
1027 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
1028 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
1029 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
1030
1031 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
1032 for 0x0e and 0x80.
1033 (__x86_64_data_cache_size): New.
1034 (init_cacheinfo): Set __x86_64_data_cache_size.
1035
1036 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1037 on bit_Fast_Rep_String for Intel Core i7.
1038
1039 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1040 (index_Fast_Rep_String): Likewise.
1041 (FEATURE_INDEX_1): Likewise.
1042 (FEATURE_INDEX_MAX): Likewise.
1043 (cpu_features): Add feature.
1044
1045 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1046
1047 * conform/data/sys/select.h-data: Fix up for XPG7.
1048
1049 2010-01-12 Jakub Jelinek <jakub@redhat.com>
1050
1051 * posix/sys/wait.h: Don't define W* macros etc. if
1052 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1053
1054 2010-01-11 Ulrich Drepper <drepper@redhat.com>
1055
1056 * io/sys/stat.h: Declare fchmod for XPG7.
1057 * conform/data/sys/stat.h-data: Fix up for XPG7.
1058
1059 * termios/termios.h: Define pid_t for XPG7.
1060
1061 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1062 * conform/data/tgmath.h-data: Likewise.
1063
1064 * conform/data/time.h-data: Fix POSIX tests.
1065
1066 * conform/data/wchar.h-data: Fix up XPG7 tests.
1067
1068 * include/features.h: Fix __USE_ISOC95 handling.
1069
1070 * conform/data/wordexp.h-data: Fix typo in last change.
1071
1072 * conform/data/unistd.h-data: Fix up older POSIX tests.
1073
1074 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1075 * posix/unistd.h: Likewise.
1076
1077 * posix/unistd.h: Include environments.h also for XPG6 and up.
1078 Define intptr_t for XPG6 and up.
1079 Fix up for XPG7.
1080 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1081
1082 * conform/data/sys/types.h-data: Fix up for XPG7.
1083
1084 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1085 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1086 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1087 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1088 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1089 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1090 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1091 * sysdeps/unix/sysv/bits/stat.h: Likewise.
1092 * sysdeps/mach/hurd/bits/stat.h: Likewise.
1093
1094 * bits/confname.h: Fix typo in last change.
1095
1096 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1097
1098 2010-01-10 Ulrich Drepper <drepper@redhat.com>
1099
1100 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1101 and SA_RESETHAND now available in Base.
1102 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1103 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1104 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1105 * conform/data/signal.h-data: Update for XPG7.
1106
1107 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1108
1109 * string/strings.h: Don't declare obsolete functions for XPG7.
1110 Declare ffs only for XSI.
1111 * conform/data/strings.h-data: Update for XPG7.
1112
1113 2010-01-10 Jakub Jelinek <jakub@redhat.com>
1114
1115 [BZ #11125]
1116 * libio/stdio.h: Define va_list, off_t, and ssize_t.
1117
1118 * posix/glob.h: Define size_t.
1119
1120 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1121
1122 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1123
1124 2010-01-10 Ulrich Drepper <drepper@redhat.com>
1125
1126 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1127 be self-contained.
1128
1129 * conform/data/stdio.h-data: Expect off_t and ssize_t.
1130
1131 2010-01-09 Ulrich Drepper <drepper@redhat.com>
1132
1133 * libio/stdio.h: Define va_list also for XPG7.
1134
1135 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1136 * conform/data/ctype.h-data: Likewise.
1137 * conform/data/dirent.h-data: Likewise.
1138 * conform/data/errno.h-data: Likewise.
1139 * conform/data/fcntl.h-data: Likewise.
1140 * conform/data/fmtmsg.h-data: Likewise.
1141 * conform/data/fnmatch.h-data: Likewise.
1142 * conform/data/ftw.h-data: Likewise.
1143 * conform/data/glob.h-data: Likewise.
1144 * conform/data/grp.h-data: Likewise.
1145 * conform/data/iconv.h-data: Likewise.
1146 * conform/data/langinfo.h-data: Likewise.
1147 * conform/data/libgen.h-data: Likewise.
1148 * conform/data/limits.h-data: Likewise.
1149 * conform/data/locale.h-data: Likewise.
1150 * conform/data/math.h-data: Likewise.
1151 * conform/data/monetary.h-data: Likewise.
1152 * conform/data/mqueue.h-data: Likewise.
1153 * conform/data/ndbm.h-data: Likewise.
1154 * conform/data/netdb.h-data: Likewise.
1155 * conform/data/pthread.h-data: Likewise.
1156 * conform/data/pwd.h-data: Likewise.
1157 * conform/data/regex.h-data: Likewise.
1158 * conform/data/sched.h-data: Likewise.
1159 * conform/data/search.h-data: Likewise.
1160 * conform/data/semaphore.h-data: Likewise.
1161 * conform/data/setjmp.h-data: Likewise.
1162 * conform/data/signal.h-data: Likewise.
1163 * conform/data/spawn.h-data: Likewise.
1164 * conform/data/stdio.h-data: Likewise.
1165 * conform/data/stdlib.h-data: Likewise.
1166 * conform/data/string.h-data: Likewise.
1167 * conform/data/strings.h-data: Likewise.
1168 * conform/data/sys/ipc.h-data: Likewise.
1169 * conform/data/sys/msg.h-data: Likewise.
1170 * conform/data/sys/resource.h-data: Likewise.
1171 * conform/data/sys/sem.h-data: Likewise.
1172 * conform/data/sys/shm.h-data: Likewise.
1173 * conform/data/sys/socket.h-data: Likewise.
1174 * conform/data/sys/stat.h-data: Likewise.
1175 * conform/data/sys/time.h-data: Likewise.
1176 * conform/data/sys/types.h-data: Likewise.
1177 * conform/data/sys/uio.h-data: Likewise.
1178 * conform/data/sys/wait.h-data: Likewise.
1179 * conform/data/syslog.h-data: Likewise.
1180 * conform/data/tar.h-data: Likewise.
1181 * conform/data/termios.h-data: Likewise.
1182 * conform/data/time.h-data: Likewise.
1183 * conform/data/ulimit.h-data: Likewise.
1184 * conform/data/unistd.h-data: Likewise.
1185 * conform/data/utmpx.h-data: Likewise.
1186 * conform/data/wchar.h-data: Likewise.
1187 * conform/data/wctype.h-data: Likewise.
1188 * conform/data/wordexp.h-data: Likewise.
1189
1190 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1191 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1192 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1193 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1194 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1195 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1196 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1197 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1198 * sysdeps/unix/sysv/bits/stat.h: Likewise.
1199 * sysdeps/mach/hurd/bits/stat.h: Likewise.
1200
1201 * stdlib/stdlib.h: Define wait-related bits for XPG7.
1202 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
1203 Declare mkstemp and getsubopt for XPG7.
1204 Declare posix_openpt for XPG6 XSI.
1205
1206 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1207 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1208
1209 * string/string.h: Declare strdup for XPG7.
1210
1211 2010-01-08 Ulrich Drepper <drepper@redhat.com>
1212
1213 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1214 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1215
1216 * dirent/dirent.h: Really fix feature selection.
1217
1218 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1219 Fix all users.
1220 * locale/C-address.c: Fix all users.
1221 * locale/C-collate.c: Likewise.
1222 * locale/C-ctype.c: Likewise.
1223 * locale/C-identification.c: Likewise.
1224 * locale/C-measurement.c: Likewise.
1225 * locale/C-messages.c: Likewise.
1226 * locale/C-monetary.c: Likewise.
1227 * locale/C-name.c: Likewise.
1228 * locale/C-numeric.c: Likewise.
1229 * locale/C-paper.c: Likewise.
1230 * locale/C-telephone.c: Likewise.
1231 * locale/C-time.c: Likewise.
1232 * locale/findlocale.c: Likewise.
1233 * locale/global-locale.c: Likewise.
1234 * locale/loadarchive.c: Likewise.
1235 * locale/loadlocale.c: Likewise.
1236 * locale/nl_langinfo_l.c: Likewise.
1237 * locale/setlocale.c: Likewise.
1238 * locale/xlocale.c: Likewise.
1239 * locale/xlocale.h: Likewise.
1240 * stdio-common/vfscanf.c: Likewise.
1241 * stdlib/strfmon_l.c: Likewise.
1242 * stdlib/strtod_l.c: Likewise.
1243 * stdlib/strtol_l.c: Likewise.
1244 * string/strcoll_l.c: Likewise.
1245 * string/strxfrm_l.c: Likewise.
1246 * time/alt_digit.c: Likewise.
1247 * time/asctime.c: Likewise.
1248 * time/era.c: Likewise.
1249 * time/lc-time-cleanup.c: Likewise.
1250 * time/strftime_l.c: Likewise.
1251 * time/strptime_l.c: Likewise.
1252 * wcsmbs/wcsmbsload.c: Likewise.
1253 * wcsmbs/wcsmbsload.h: Likewise.
1254
1255 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1256 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1257 for XPG7.
1258 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1259 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1260 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1261 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1262 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1263 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1264
1265 2010-01-07 Roland McGrath <roland@redhat.com>
1266
1267 * elf/elf.h (PN_XNUM): New macro.
1268
1269 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1270 literal 2.
1271
1272 2010-01-06 Ulrich Drepper <drepper@redhat.com>
1273
1274 * dirent/dirent.h: Fix typo in feature selection macro use.
1275
1276 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
1277
1278 [BZ #11115]
1279 * stdlib/tst-makecontext3.c: New file.
1280 * stdlib/Makefile (tests): Add new test.
1281
1282 * stdlib/tst-setcontext.c (check_called): Fix a typo.
1283
1284 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
1285
1286 * configure.in: Enable multi-arch by default if the assembler
1287 supports gnu_indirect_function symbol type and the architecture
1288 supports it.
1289
1290 2009-12-23 Ulrich Drepper <drepper@redhat.com>
1291
1292 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1293 is defined.
1294
1295 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1296
1297 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1298 MACH_PORT_NULL when id != cttyid.
1299
1300 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
1301
1302 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1303 __mach_port_deallocate on rootdevid.
1304
1305 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1306
1307 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1308 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1309 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1310 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1311
1312 2009-12-21 Ulrich Drepper <drepper@redhat.com>
1313
1314 [BZ #10992]
1315 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1316 Patch by Eric Blake <ebb9@byu.net>.
1317
1318 2009-12-15 Ulrich Drepper <drepper@redhat.com>
1319
1320 [BZ #11093]
1321 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1322 POLLWRBAND also for POSIX 2008.
1323 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1324 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1325
1326 * include/link.h (struct link_map): Move l_used into its own word.
1327 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1328 still zero.
1329 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1330 never really used.
1331
1332 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
1333
1334 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1335 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
1336 check processor feature.
1337 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1338 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1339 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1340 (index_SSE2): Likewise.
1341
1342 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
1343
1344 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1345 if __ASSEMBLER__ is defined.
1346 (bit_SSSE3): New. Defined for __ASSEMBLER__.
1347 (bit_SSE4_2): Likewise.
1348 (index_SSSE3): Likewise.
1349 (index_SSE4_2): Likewise.
1350 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1351 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
1352 check processor feature.
1353 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1354 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1355 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1356 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1357 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1358 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1359 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1360
1361 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1362
1363 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1364
1365 2009-12-01 Mike Frysinger <vapier@gentoo.org>
1366
1367 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1368
1369 2009-12-11 Ulrich Drepper <drepper@redhat.com>
1370
1371 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1372 O_DSYNC to match 2.6.33+ kernels.
1373 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1374 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1375 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1376 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1377 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1378 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1379
1380 2009-12-10 Ulrich Drepper <drepper@redhat.com>
1381
1382 [BZ #11000]
1383 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1384 *herrnop before returning.
1385 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1386 Likewise.
1387 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1388 TRYAGAIN errors separately.
1389 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1390 *name4_r after functions.
1391
1392 2009-12-09 Ulrich Drepper <drepper@redhat.com>
1393
1394 [BZ #11046]
1395 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1396 version check.
1397
1398 2009-11-05 Bruno Haible <bruno@clisp.org>
1399
1400 [BZ #11056]
1401 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1402 argv argument as non-NULL.
1403 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1404
1405 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
1406
1407 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1408 recvmmsg.
1409 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1410 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1411
1412 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1413
1414 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1415 registers.
1416 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1417 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1418 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1419
1420 2009-11-30 Ulrich Drepper <drepper@redhat.com>
1421
1422 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1423 SCHED_RESET_ON_FORK.
1424
1425 2009-11-26 Ulrich Drepper <drepper@redhat.com>
1426
1427 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1428 only used on truly ancient kernel if configuration requires a more
1429 recent kernel.
1430
1431 2009-11-24 Ulrich Drepper <drepper@redhat.com>
1432
1433 [BZ #3662]
1434 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1435 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1436
1437 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1438 pass it on to __ptsname_internal.
1439 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
1440 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1441 All the code from __ptsname_r but take additional parameter. Use that
1442 instead of pointer to local stat64 variable.
1443 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1444 variable.
1445 * include/stdlib.h: Declare __ptsname_internal.
1446
1447 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1448 before the exec.
1449 * sysdeps/unix/sysv/linux/grantpt.c: New file.
1450 * login/programs/pt_chown.c (main): Don't print message on errors
1451 when doing real work.
1452
1453 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1454 once.
1455
1456 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
1457 irel relocations split out from...
1458 (__libc_csu_init): ...here.
1459 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1460
1461 2009-11-23 Andreas Schwab <schwab@redhat.com>
1462
1463 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1464 for timestamps also if __USE_XOPEN2K8.
1465 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1466 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1467 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1468 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1469
1470 2009-11-22 Ulrich Drepper <drepper@redhat.com>
1471
1472 * nscd/connections.c (restart): Try harder to re-exec.
1473
1474 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1475
1476 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
1477 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1478 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1479 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1480 some placeholders. Redirect ntp_gettime to ntp_gettimex.
1481 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1482
1483 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1484 Define.
1485 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1486
1487 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
1488
1489 [BZ #10162]
1490 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1491 than software pipeline. Properly recover from shorter read.
1492
1493 2009-11-19 Ulrich Drepper <drepper@redhat.com>
1494
1495 [BZ #10958]
1496 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1497 initialized before using it.
1498 (_IO_putwc_unlocked): Likewise.
1499
1500 [BZ #10918]
1501 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1502 in cast to not throw away const-ness of parameters.
1503 (__CPU_EQUAL_S): Likewise.
1504 (__CPU_OP_S): Likewise.
1505
1506 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1507 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
1508 this gratuitous change and we have to keep compatibility.
1509 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1510 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1511 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1512 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1513 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1514 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1515
1516 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1517
1518 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1519 of parameters of sync_file_range.
1520 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1521 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1522 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1523 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1524 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1525 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1526
1527 2009-11-16 Jakub Jelinek <jakub@redhat.com>
1528
1529 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1530 Implement using sync_file_range2 syscall if __NR_sync_file_range2
1531 is defined.
1532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1533 file.
1534
1535 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
1536
1537 * posix/bug-regex30.c: New file.
1538 * posix/Makefile: Add rules to build and run bug-regex30.
1539 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1540 character lead bytes when there is a range in a COMPLEX_BRACKET.
1541 Reported by Oleg Bylatov.
1542
1543 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1544
1545 [BZ #10969]
1546 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1547 * locale/tst-duplocale.c: New file.
1548 * locale/Makefile (tests): Add tst-duplocale.
1549
1550 [BZ #10968]
1551 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1552 Patch by Bruno Haible <bruno@clisp.org>.
1553 * locale/tst-locname.c: New file.
1554 * locale/Makefile (tests): Add tst-locname.
1555
1556 [BZ #10972]
1557 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1558 constants from recent kernels.
1559 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1560 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1561 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1562 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1563 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1564 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1565
1566 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 [BZ #10162]
1569 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1570 software pipeline.
1571
1572 2009-11-09 Mike Frysinger <vapier@gentoo.org>
1573
1574 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1575 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1576 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1577
1578 2009-11-06 Mike Frysinger <vapier@gentoo.org>
1579
1580 * posix/bug-regex29.c: Include stdio.h.
1581
1582 2009-11-14 Ulrich Drepper <drepper@redhat.com>
1583
1584 [BZ #10939]
1585 * Versions.def: Define GLIBC_2.12 for libc.
1586 * manual/errno.texi: Add ERFKILL entry.
1587 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1588 for 2.12.
1589 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1590 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1591
1592 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1593 F_GETOWN_EX definitions according to corrected kernel definitions.
1594 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1595 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1596 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1597 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1598 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1599 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1600
1601 2009-11-12 Ulrich Drepper <drepper@redhat.com>
1602
1603 * version.h: Bump for 2.12 development.
1604
1605 2009-11-10 Andreas Schwab <schwab@redhat.com>
1606
1607 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1608 out of buffer space.
1609 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1610 map_v4v6_hostent running out of space.
1611
1612 2009-11-10 Ulrich Drepper <drepper@redhat.com>
1613
1614 * string/bits/string3.h (memset): If the second parameter is constant
1615 and zero there is likely no transposition.
1616 Patch by Caolan McNamara <caolanm@redhat.com.
1617
1618 2009-11-04 Philippe De Muyter <phdm@macqel.be>
1619
1620 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1621 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1622
1623 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
1624
1625 * malloc/memusagestat.c (main): Fix spelling in an error message.
1626
1627 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1628
1629 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1630 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1631
1632 2009-11-03 Andreas Schwab <schwab@redhat.com>
1633
1634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1635 readahead.
1636
1637 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1638
1639 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1640 relocate opd entry when resolving prelink conflicts.
1641
1642 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1643
1644 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1645 when -D_FILE_OFFSET_BITS=64.
1646
1647 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1648 of last two arguments when -D_FILE_OFFSET_BITS=64.
1649 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1650 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1651 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1652 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1653 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1654 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1655
1656 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1657
1658 [BZ #4457]
1659 * sysdeps/generic/libgcc_s.h: New file.
1660 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1661
1662 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1663
1664 * malloc/hooks.c (free_check): Restore locking and call _int_free
1665 appropriately.
1666
1667 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1668
1669 * version.h (VERSION): Bump for 2.11 release.
1670 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1671
1672 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1673
1674 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1675
1676 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1677 to avoid warning.
1678 * stdlib/tst-strtoll.c (tests): Likewise.
1679
1680 [BZ #9986]
1681 * time/strftime_l.c (__strftime_internal): Allow %OC.
1682
1683 * misc/mkostemps.c: New file.
1684 * misc/mkostemps64.c: New file.
1685
1686 2009-10-30 Andreas Schwab <schwab@redhat.com>
1687
1688 * locale/programs/locale-spec.c: Include <error.h> and
1689 <libintl.h>.
1690
1691 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1692
1693 2009-10-28 Roland McGrath <roland@redhat.com>
1694
1695 * Makefile (dist-prepare): New target.
1696 (tag-for-dist): Target removed.
1697 (glibc-%.tar): Pattern rule removed.
1698 (%.tar): New pattern rule, does simple use of git archive.
1699 (dist-version): Remove variable definition.
1700 (dist): Just depend on that. Add .tar.xz dependency.
1701 If dist-version variable not set on command line, depend on
1702 dist-prepare, re-invoke with dist-version set via git describe.
1703
1704 * Makerules (%.xz): New pattern rule.
1705
1706 2009-10-28 Alan Modra <amodra@bigpond.net.au>
1707
1708 * elf/ifuncdep2.c: Include ifunc-sel.h.
1709 (global): Delete.
1710 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1711 * elf/ifuncmain1.c (global): Delete.
1712 * elf/ifuncmain1vis.c: Likewise.
1713 * elf/ifuncmain2.c: Likewise.
1714 * elf/ifuncmain5.c: Likewise.
1715 * elf/ifuncmod3.c: Likewise.
1716 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1717 (foo_ifunc): Use ifunc_one.
1718 * elf/ifuncmain7.c: Likewise.
1719 * elf/ifuncmod1.c: Include ifunc-sel.h.
1720 (global): Define protected var.
1721 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1722 * elf/ifuncmod5.c: Likewise.
1723 * sysdeps/generic/elf/ifunc-sel.h: New file.
1724 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1725
1726 2009-07-30 Alan Modra <amodra@bigpond.net.au>
1727
1728 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1729 (R_PPC_REL16*): Correct comments.
1730 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1731 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1732 R_PPC64_REL16_HA): Define.
1733 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1734 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1735 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1736 Delete unused "reloc" param.
1737 (__process_machine_rela): Handle R_PPC_IRELATIVE.
1738 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1739 Delete "reloc" param.
1740 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1741 R_PPC_IRELATIVE.
1742 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1743 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1744 relocations.
1745
1746 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
1747
1748 [BZ #10315]
1749 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1750 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1751 UDP_ENCAP_L2TPINUDP.
1752
1753 [BZ #10349]
1754 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1755 parameter, specifying length of prefix.
1756 * stdio-common/tempname.c: Likewise.
1757 * include/stdio.h: Adjust prototypes.
1758 * libio/oldtmpfile.c: Adjust caller.
1759 * misc/mkdtemp.c: Likewise.
1760 * misc/mkostemp.c: Likewise.
1761 * misc/mkostemp64.c: Likewise.
1762 * misc/mkstemp.c: Likewise.
1763 * misc/mkstemp64.c: Likewise.
1764 * misc/mktemp.c: Likewise.
1765 * stdio-common/tempnam.c: Likewise.
1766 * stdio-common/tmpfile.c: Likewise.
1767 * stdio-common/tmpnam.c: Likewise.
1768 * stdio-common/tmpnam_r.c: Likewise.
1769 * misc/mkstemps.c: New file.
1770 * misc/mkstemps64.c: New file.
1771 * stdlib/stdlib.h: Add prototypes.
1772 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1773 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1774
1775 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1776
1777 * locale/iso-639.def: Add sml entry.
1778
1779 [BZ #10391]
1780 * resolv/res_send.c (send_dg): Initialize resplen.
1781
1782 [BZ #10446]
1783 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1784 definition to the kernel's.
1785 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1786
1787 2009-08-18 Anders Johansson <ajohansson@novell.com>
1788
1789 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1790 offsets and record sizes in assert()s and response sending.
1791 * nscd/grpcache.c: Likewise.
1792 * nscd/hstcache.c: Likewise.
1793 * nscd/initgrcache.c: Likewise.
1794 * nscd/pwdcache.c: Likewise.
1795
1796 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1797
1798 [BZ #10540]
1799 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1800 /etc/hosts does not exist set errnop and herrnop appropriately.
1801 Patch by Steve Langasek <vorlon@debian.org>.
1802
1803 [BZ #10553]
1804 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1805 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1806
1807 [BZ #10564]
1808 * login/utmp_file.c (TIMEOUT): Increase to 10.
1809
1810 [BZ #10609]
1811 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1812 for file names in case the syscall is not available.
1813 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1814 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1815 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1816 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1817 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1818 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1819 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1820 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1821 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1822 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1823 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1824 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1825 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1826 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1827 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1828 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1829 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1830
1831 [BZ #10643]
1832 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1833 creation filed, remove the request from the 'requests' list and signal
1834 the caller that the request is finished.
1835
1836 [BZ #10692]
1837 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1838 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1839
1840 [BZ #10713]
1841 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1842 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1843
1844 [BZ #10780]
1845 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1846 overflows the int return type.
1847
1848 [BZ #10717]
1849 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1850 have to compute maxsize_total, we have to update the variables, and
1851 the also_total handling must happen after the repair.
1852
1853 [BZ #10742]
1854 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1855 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1856
1857 2009-10-27 Andreas Schwab <schwab@redhat.com>
1858
1859 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1860 errno is always set when returning unsuccessfully.
1861
1862 2009-10-29 Andreas Schwab <schwab@redhat.com>
1863
1864 * malloc/memusage.c (update_data): Fix index wraparound handling
1865 so that buffer_cnt is actually reset.
1866
1867 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1868
1869 [BZ #10784]
1870 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1871 of the directory we look at into the static buffer if there is one
1872 at the start of the loop.
1873
1874 [BZ #10789]
1875 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1876 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1877
1878 [BZ #10840]
1879 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1880 __ASSUME_F_GETOWN_EX.
1881 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1882 if possible.
1883 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1884
1885 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1886 and f_owner_ex.
1887 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1888 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1889 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1890 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1891 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1892 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1893
1894 [BZ #10847]
1895 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1896 getutmpx symbol.
1897
1898 [BZ #10823]
1899 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1900 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1901
1902 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1903
1904 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1905
1906 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1907
1908 [BZ #10817]
1909 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1910 Reported by Ray Chason.
1911
1912 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1913
1914 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1915 strend-sse4.
1916 * sysdeps/x86_64/multiarch/strchr.S: New file.
1917 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1918 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1919
1920 2009-10-21 Andreas Schwab <schwab@redhat.com>
1921
1922 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1923
1924 2009-10-19 Andreas Schwab <schwab@redhat.com>
1925
1926 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1927 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1928 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1929 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1930 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1931 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1932 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1933 __ieee751_expl to handle overflow.
1934
1935 2009-10-14 David S. Miller <davem@davemloft.net>
1936
1937 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1938 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1939
1940 2009-10-13 Andreas Schwab <schwab@redhat.com>
1941
1942 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1943 !USE_MULTIARCH.
1944
1945 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1946
1947 [BZ #10730]
1948 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1949 Patch in part by Steve Ward <planet36@gmail.com>.
1950
1951 [BZ #10731]
1952 * stdlib/rand_r.c: Fix typo.
1953
1954 * po/cs.po: Update from translation team.
1955
1956 2009-10-06 Andreas Schwab <schwab@redhat.com>
1957
1958 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1959 returning if RTLD_NOLOAD.
1960
1961 2009-10-06 Roland McGrath <roland@redhat.com>
1962
1963 * sysdeps/x86_64/multiarch/strstr-c.c
1964 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1965
1966 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1967 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1968
1969 * sysdeps/x86_64/multiarch/init-arch.h
1970 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1971 (HAS_CPU_FEATURE): New macro.
1972 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1973 * sysdeps/x86_64/multiarch/init-arch.c
1974 (__get_cpu_features): #undef it before definition.
1975
1976 2009-10-05 Andreas Schwab <schwab@redhat.com>
1977
1978 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1979 first_weekday to 1 and first_workday to 2.
1980
1981 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1982
1983 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1984 F_GETOWN_EX.
1985 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1986 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1987 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1988 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1989 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1990 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1991
1992 2009-09-28 Andreas Schwab <schwab@redhat.com>
1993
1994 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1995 * stdio-common/vfprintf.c: Likewise.
1996
1997 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1998
1999 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
2000 (mkdirat): Call __directory_name_split_at instead of
2001 __directory_name_split.
2002
2003 2009-09-28 Ulrich Drepper <drepper@redhat.com>
2004
2005 * locale/programs/locale-spec.c (locale_special): If nothing matches
2006 fail with an appropriate message.
2007
2008 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 * configure.in: Exclude binutils 2.X. Support binutils 2.100
2011 and XX.
2012
2013 2009-09-25 Andreas Schwab <schwab@redhat.com>
2014
2015 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
2016 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
2017
2018 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2019
2020 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
2021
2022 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
2023
2024 * iconvdata/iso646.c (gconv_init): Correctly initialize the
2025 character size elements in step data.
2026
2027 2009-09-20 Ulrich Drepper <drepper@redhat.com>
2028
2029 * po/hu.po: Update from translation team.
2030 * po/vi.po: Likewise.
2031
2032 2009-09-19 Roland McGrath <roland@redhat.com>
2033
2034 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2035
2036 2009-09-15 Roland McGrath <roland@redhat.com>
2037
2038 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2039 * nptl/sysdeps/pthread/configure: Regenerated.
2040 * nptl/sysdeps/x86_64/configure: Regenerated.
2041 * sysdeps/unix/sysv/linux/configure: Regenerated.
2042 * sysdeps/x86_64/elf/configure: Regenerated.
2043
2044 * Makefile (autoconf-it): Set execute bit only on top-level configure.
2045
2046 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2047 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2048 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2049 * configure: Regenerated.
2050
2051 2009-09-09 Ulrich Drepper <drepper@redhat.com>
2052
2053 * posix/getconf.c (main): Handle -- on command line.
2054
2055 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
2056
2057 * configure.in: Support binutils 2.100 and 3.0.
2058
2059 2009-09-08 Jakub Jelinek <jakub@redhat.com>
2060
2061 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2062 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2063 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2064 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2065
2066 2009-09-07 Ulrich Drepper <drepper@redhat.com>
2067
2068 * locale/programs/ld-collate.c (struct locale_collate_t): Add
2069 unnamed_section_defined field.
2070 (collate_read): Test and set unnamed_section_defined.
2071
2072 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2073 _POSIX2_LINE_MAX.
2074
2075 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
2076
2077 * configure.in: Support binutils 2.20.
2078
2079 2009-09-03 Ulrich Drepper <drepper@redhat.com>
2080
2081 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2082 __strstr_ia32): Add attribute_hidden.
2083
2084 2009-09-01 Andreas Schwab <schwab@redhat.com>
2085
2086 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2087 parsing of group entry.
2088
2089 2009-09-02 Andreas Schwab <schwab@redhat.com>
2090
2091 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2092 external buffer. Always discard readahead in internal buffer.
2093 * libio/Makefile (tests): Add bug-wsetpos.
2094 * libio/bug-wsetpos.c: New file.
2095
2096 2009-09-02 Jakub Jelinek <jakub@redhat.com>
2097
2098 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2099 Add attribute_hidden.
2100 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2101 __strcasestr_sse2): Likewise.
2102 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2103 (__fma_fma): Make static.
2104 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2105 (__fmaf_fma): Make static.
2106
2107 2009-08-31 Andreas Schwab <schwab@redhat.com>
2108
2109 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2110 reformulate in-buffer optimisation check to match code in
2111 _IO_new_file_seekoff.
2112
2113 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
2114
2115 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2116 to srwi in 32-bit memcpy for power6.
2117
2118 2009-09-01 Andreas Schwab <schwab@redhat.com>
2119
2120 * include/stdio.h: Declare hidden proto for fflush.
2121 * libio/iofflush.c: Add hidden weak alias for fflush.
2122
2123 2009-09-01 Jakub Jelinek <jakub@redhat.com>
2124
2125 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2126 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2127
2128 2009-08-31 Andreas Schwab <schwab@redhat.com>
2129
2130 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2131
2132 2009-08-31 Ulrich Drepper <drepper@redhat.com>
2133
2134 [BZ #10560]
2135 * malloc/malloc.c: Add local assert definition to avoid problems with
2136 memory allocation in the real one.
2137
2138 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
2139
2140 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2141 Removed.
2142 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2143 turn off SSSE3 on Atom.
2144
2145 2009-08-28 Ulrich Drepper <drepper@redhat.com>
2146
2147 * stdlib/tst-strtol.c (tests): More tests.
2148 * stdlib/tst-strtoll.c (tests): Likewise.
2149
2150 2009-08-26 Ulrich Drepper <drepper@redhat.com>
2151
2152 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2153
2154 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2155
2156 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2157
2158 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2159 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2160
2161 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2162
2163 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2164
2165 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2166
2167 2009-08-25 Joseph Myers <joseph@codesourcery.com>
2168
2169 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2170
2171 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2172
2173 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2174 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2175
2176 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2177
2178 * sysdeps/x86_64/fpu/s_signbit.S: New file.
2179 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2180
2181 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2182 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2183
2184 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2185 leftover YMM_SIZE definition.
2186
2187 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2188
2189 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2190 union.
2191 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2192 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2193 Redefine.
2194 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2195
2196 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2197 and SET_FLOAT_WORD definitions.
2198
2199 2009-08-24 Roland McGrath <roland@redhat.com>
2200
2201 * sysdeps/unix/syscall-template.S: New file.
2202 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2203 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2204 (compile-syscall): Pass mkdep and -g options as normal.
2205 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2206 (common-generated): Don't add them here.
2207
2208 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2209
2210 * math/s_fdim.c: In case of overflows set errno.
2211 * math/s_fdimf.c: Likewise.
2212 * math/s_fdiml.c: Likewise.
2213
2214 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2215 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2216 are using the inline optimizations.
2217
2218 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2219 (__signbitf): Likewise.
2220
2221 2009-08-23 Ulrich Drepper <drepper@redhat.com>
2222
2223 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2224 terminated.
2225 * posix/Makefile (tests): Add bug-regex29.
2226 * posix/bug-regex29.c: New file.
2227
2228 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2229 older POSIX versions are selected.
2230
2231 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2232 as well.
2233 * stdio-common/printf_fphex.c: Likewise.
2234 * stdio-common/tstdiomisc.c: Add more tests.
2235
2236 * locale/locale.h: Include xlocale.h and the thread-local locale
2237 declarations for XPG7, not XPG6.
2238
2239 2009-08-21 Andreas Schwab <schwab@redhat.com>
2240
2241 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2242 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2245 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2246 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2247
2248 2009-08-20 Roland McGrath <roland@redhat.com>
2249
2250 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2251 Use l_addr instead of l_map_start (dli_fbase).
2252 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2253 address when there is no proximate symbol.
2254 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2255 Likewise.
2256
2257 2009-08-16 Ulrich Drepper <drepper@redhat.com>
2258
2259 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2260
2261 2009-08-14 Ulrich Drepper <drepper@redhat.com>
2262
2263 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2264 Also handle SIGINT. In that case only do the cleanup and then
2265 re-raise the signal.
2266 (main): Install handler for SIGINT.
2267
2268 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2269
2270 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2271 clobber list.
2272
2273 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
2274
2275 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2276 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2277 tst-auditmod7b.c.
2278 (tests): Add tst-audit6 tst-audit7.
2279 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2280 tst-auditmod7a tst-auditmod7b.
2281 ($(objpfx)tst-audit6): New.
2282 ($(objpfx)tst-audit6.out): Likewise.
2283 ($(objpfx)tst-audit7): Likewise.
2284 ($(objpfx)tst-audit7.out): Likewise.
2285 (tst-audit6-ENV): Likewise.
2286 (tst-audit7-ENV): Likewise.
2287 (CFLAGS-tst-auditmod6b.c): Likewise.
2288 (CFLAGS-tst-auditmod6c.c): Likewise.
2289 (CFLAGS-tst-auditmod7b.c): Likewise.
2290 * elf/tst-audit6.c: New file.
2291 * elf/tst-audit7.c: New file.
2292 * elf/tst-auditmod6a.c: New file.
2293 * elf/tst-auditmod6b.c: New file.
2294 * elf/tst-auditmod6c.c: New file.
2295 * elf/tst-auditmod7a.c: New file.
2296 * elf/tst-auditmod7b.c: New file.
2297 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2298 saving and restoring SSE/AVX registers to ...
2299 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2300
2301 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
2302
2303 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2304 only if SHARED is defined.
2305 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2306
2307 2009-08-03 Jim Meyering <meyering@redhat.com>
2308
2309 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2310
2311 2009-08-08 Ulrich Drepper <drepper@redhat.com>
2312
2313 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2314 section as the other functions for this architecture.
2315 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2316
2317 2009-08-07 Ulrich Drepper <drepper@redhat.com>
2318
2319 * sysdeps/x86_64/strcmp.S: Add support to compile with
2320 USE_SSSE3. In this case palignr is used.
2321 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2322 available but SSSE3 is, pick __str{,n}cmp_ssse3.
2323 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2324 Add strcmp-ssse3 and strncmp-ssse3.
2325 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2326 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2327
2328 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2329 warning through fake initialization.
2330
2331 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
2332
2333 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2334
2335 2009-08-07 Andreas Schwab <schwab@redhat.com>
2336
2337 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2338 unique symbols.
2339
2340 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
2341
2342 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2343 EBX from EAX = 1. Handle EAX = 11.
2344
2345 2009-08-07 Andreas Schwab <schwab@redhat.com>
2346
2347 * Makefile (TAGS): Use separate sed -e expressions to avoid \
2348 inside ''.
2349
2350 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
2351
2352 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2353 hidden IFUNC functions.
2354 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2355
2356 * sysdeps/i386/i686/multiarch/strlen.S: New file.
2357
2358 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2359 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2360 strcasestr-c.
2361 (CFLAGS-strcspn-c.c): Define.
2362 (CFLAGS-strpbrk-c.c): Define.
2363 (CFLAGS-strspn-c.c): Define.
2364 (CFLAGS-strstr.c): Define.
2365 (CFLAGS-strcasestr.c): Define.
2366 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2367 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2368 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2369 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2370 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2371 * sysdeps/i386/i686/multiarch/strspn.S: New file.
2372 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2373 * sysdeps/i386/i686/multiarch/strstr.c: New file.
2374 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2375 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2376 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2377 -16L instead of 0xfffffffffffffff0L.
2378 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2379
2380 2009-08-02 Ulrich Drepper <drepper@redhat.com>
2381
2382 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2383
2384 2009-07-31 Ulrich Drepper <drepper@redhat.com>
2385
2386 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2387 another rewrite. Much smaller and faster.
2388 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2389
2390 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2391 ss_flags from the correct location.
2392
2393 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
2394
2395 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2396 * sysdeps/i386/i686/cacheinfo.c: New file.
2397 * sysdeps/i386/i686/multiarch/Makefile: New file.
2398 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2399 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2400 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2401 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2402 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2403 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2404 (__cpuid_count): New. Provide the default.
2405 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2406 (__x86_64_preferred_memory_instruction): Define only if
2407 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2408 (intel_check_word): Use __cpuid.
2409 (handle_intel): Likewise.
2410 (handle_amd): Likewise.
2411 (__cache_sysconf): Likewise.
2412 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
2413 (__cache_sysconf): Likewise.
2414 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
2415 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2416 (get_common_indeces): Use __cpuid.
2417 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
2418 if ENABLE_SSSE3_ON_ATOM is not defined.
2419 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2420 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2421 popcnt instead of popcntq.
2422
2423 2009-07-31 Jakub Jelinek <jakub@redhat.com>
2424
2425 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2426
2427 2009-07-30 Ulrich Drepper <drepper@redhat.com>
2428
2429 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2430 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
2431 which always causes a compile error.
2432
2433 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2434
2435 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
2436 comes from...
2437 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
2438 which always causes a compile error.
2439
2440 * debug/Makefile (tests): Add tst-longjmp_chk2.
2441 * debug/tst-longjmp_chk2.c: New file.
2442
2443 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
2444 Remove incorrect use of BP_SYM.
2445 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
2446 here now since it is more complex than just a simple check.
2447
2448 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2449 we make no more progress.
2450
2451 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2452
2453 * math/s_fma.c: Don't define alias if __fma is a macro.
2454 * math/s_fmaf.c: Likewise.
2455 * sysdeps/x86_64/multiarch/s_fma.c: New file.
2456 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2457 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2458
2459 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2460 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2461 New macro HAS_FMA.
2462 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2463 function.
2464 * include/libc-symbols.h (libm_ifunc): Define.
2465 * sysdeps/x86_64/multiarch/Versions: New file.
2466
2467 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2468
2469 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
2470
2471 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2472
2473 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2474
2475 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2476 call that registers used in calling conventions need to be preserved.
2477 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2478 to preserve register content if necessary.
2479 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2480 (_dl_x86_64_restore_sse): New function.
2481 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2482 is allowed to modify xmm/ymm registers.
2483
2484 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
2485 application's perspective.
2486 * stdio-common/scanf17.c: Likewise.
2487
2488 2009-07-28 Ulrich Drepper <drepper@redhat.com>
2489
2490 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2491 size to memsz.
2492 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2493 here.
2494 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2495 two steps to catch bugs.
2496
2497 2009-07-27 Ulrich Drepper <drepper@redhat.com>
2498
2499 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
2500 determines which files are used in runtime lookups and only checks
2501 those for SSE use.
2502 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
2503 testing.
2504 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2505 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2506 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2507 take a while.
2508
2509 * elf/dl-open.c: Move _dl_scope_free to...
2510 * elf/dl-scope.c: ...here. New file.
2511 * elf/Makefile (dl-routines): Add scope.
2512
2513 * resolv/resolv.h (RES_USE_DNSSEC): Define.
2514 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2515 RES_USE_DNSSEC.
2516 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2517 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2518 all the places we handled RES_USE_EDNS0 only before.
2519 Patch by Adam Tkac <atkac@redhat.com>.
2520
2521 2009-07-27 Jakub Jelinek <jakub@redhat.com>
2522
2523 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2524 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
2525 Update size when reallocating.
2526
2527 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2528
2529 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
2530 functions used in ld.so modify xmm/ymm registers.
2531 * sysdeps/x86_64/Makefile: Hook new test up.
2532 * sysdeps/x86_64/rtld-memchr.c: New file.
2533 * sysdeps/x86_64/rtld-memcmp.c: New file.
2534 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2535 * sysdeps/x86_64/rtld-strchr.S: New file.
2536 * sysdeps/x86_64/rtld-strlen.S: New file.
2537 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2538 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2539
2540 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
2541
2542 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2543 strncmp-c.
2544 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2545 (exit): Likewise.
2546 (Byte1): Likewise.
2547 (Byte2): Likewise.
2548 (Byte3): Likewise.
2549 (Byte4): Likewise.
2550 (Byte5): Likewise.
2551 (Byte6): Likewise.
2552 (next_8_bytes): Likewise.
2553 (Byte0): Remove commented out codes.
2554 (unaligned_table): Align jump table at 8 bytes.
2555 Add _sse4_2 to all labels. Always include "../strcmp.S".
2556 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2557 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2558 * sysdeps/x86_64/strncmp.S: New file.
2559
2560 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2561
2562 [BZ #10422]
2563 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2564 kernels, dropped when eventfd2 support was added.
2565 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2566 kernels, dropped when signalfd4 support was added.
2567 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2568 added, name them.
2569
2570 [BZ #10452]
2571 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2572 replies up.
2573
2574 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2575
2576 2009-07-25 Ulrich Drepper <drepper@redhat.com>
2577
2578 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2579 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
2580
2581 [BZ #10448]
2582 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2583 callback we must touch the status to avoid using stale value.
2584
2585 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2586 compiled in.
2587
2588 2009-07-24 Ulrich Drepper <drepper@redhat.com>
2589
2590 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2591 /lib/modules/* headers anymore. We have sane headers in the standard
2592 place now.
2593
2594 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2595
2596 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2597 "etf3enh" and "highgprs" added.
2598 (_dl_s390_platforms): "z10" added.
2599 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2600 Increased for the new entries.
2601 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2602 HWCAP_S390_HIGH_GPRS added.
2603
2604 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2605 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2606 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2607 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2608 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2609
2610 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2611
2612 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2613 avoid additional cpuid instructions. Most of the information is
2614 stored somewhere.
2615
2616 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2617 cache descriptors.
2618 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2619
2620 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2621 SSSE3 bit for Atoms.
2622 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2623 here anymore.
2624
2625 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2626 structure before copying it to avoid warning.
2627 * posix/tst-rfc3484-2.c (do_test): Likewise.
2628 * posix/tst-rfc3484-3.c (do_test): Likewise.
2629
2630 [BZ #10416]
2631 * include/unistd.h: Make header file suitable for C++ test cases.
2632 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2633
2634 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2635 stack alignment in the exit code.
2636
2637 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2638 potentially be zero.
2639
2640 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2641 unique symbol definition.
2642 Patch by Jakub Jelinek.
2643 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2644 make sure the object with the definition cannot be unloaded. Adjust
2645 a few types.
2646 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2647 the unique symbol hash table should not be const.
2648
2649 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2650
2651 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2652 unnecesary variables. Comment fixes.
2653
2654 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2655
2656 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2657 Use NONASCII_CASE information provided by the locale to determine
2658 whether optimized string load function can be used. Minor cleanups.
2659
2660 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2661
2662 * string/strcasestr.c (STRCASESTR): New macro.
2663 (__strcasestr): Renamed to ..
2664 (STRCASESTR): ...this.
2665 * string/strstr.c (STRSTR): New macro.
2666 (strstr): Renamed to ..
2667 (STRSTR): ...this.
2668 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2669 strstr-c strcasestr-c
2670 (CFLAGS-strstr.c): New.
2671 (CFLAGS-strcasestr.c): Likewise.
2672 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2673 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2674 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2675 * sysdeps/x86_64/multiarch/strstr.c: New file.
2676
2677 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2678
2679 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2680 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2681 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2682 _NL_CTYPE_NONASCII_CASE.
2683 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2684 field.
2685 (ctype_finish): Check whether there are any 8-bit characters outside
2686 the range ASCII has or whether the mapping isn't the same as for
2687 ASCII (±0x20). Set nonascii_case appropriately.
2688 (ctype_output): Add output handler for nonascii_case.
2689
2690 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2691
2692 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2693 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2694
2695 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2696
2697 [BZ #10360]
2698 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2699 0xffff in the EDNS0 record.
2700
2701 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2702
2703 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2704 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2705 is written before the list head update.
2706 Patch by Andreas Schwab <aschwab@redhat.com>.
2707
2708 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2709 Jakub Jelinek <jakub@redhat.com>
2710
2711 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2712 corruption thread-safe.
2713
2714 2009-07-13 Jakub Jelinek <jakub@redhat.com>
2715
2716 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2717 overrides atomic_compare_and_exchange_val_rel, define to
2718 atomic_compare_and_exchange_val_rel by default, otherwise default
2719 to catomic_compare_and_exchange_val_acq.
2720 (catomic_compare_and_exchange_bool_rel): If arch overrides
2721 atomic_compare_and_exchange_bool_rel, define to
2722 atomic_compare_and_exchange_bool_rel by default.
2723 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2724 Use catomic_compare_and_exchange_val_rel instead of
2725 catomic_compare_and_exchange_val_acq.
2726
2727 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2728
2729 * sysdeps/generic/ldsodefs.h: Add prototype for
2730 _dl_higher_prime_number.
2731 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2732
2733 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2734 restoring of ymm registers a bit.
2735
2736 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
2737
2738 * sysdeps/x86_64/memcmp.S: New file.
2739
2740 2009-07-15 Ulrich Drepper <drepper@redhat.com>
2741
2742 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2743 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
2744 pointers in writable memory.
2745
2746 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2747
2748 * config.h.in: Add HAVE_AVX_SUPPORT entry.
2749 * config.make.in: Add config-cflags-avx entry.
2750 * configure.in: Substitute libc_cv_cc_avx.
2751 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2752 * elf/tst-audit4.c: New file.
2753 * elf/tst-audit5.c: New file.
2754 * elf/tst-auditmod4a.c: New file.
2755 * elf/tst-auditmod4b.c: New file.
2756 * elf/tst-auditmod5a.c: New file.
2757 * elf/tst-auditmod5b.c: New file.
2758 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2759 link-defines.sym.
2760 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2761 (La_x86_64_vector): Likewise.
2762 (La_x86_64_regs): Append lr_vector.
2763 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2764 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2765 saving and restoring SSE registers to ...
2766 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2767 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2768 <link-defines.h>.
2769 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2770 La_x86_64_regs. Allocate extra space and jump to memory at
2771 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2772 (save_and_restore_vector_sse): New.
2773 (save_and_restore_vector_avx): Likewise.
2774 (check_avx): Likewise.
2775 (save_and_restore_vector): Likewise.
2776 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2777 HAVE_AVX_SUPPORT.
2778 * sysdeps/x86_64/link-defines.sym: New file.
2779
2780 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2781
2782 * elf/do-lookup.h: Removed after folding content into...
2783 * elf/dl-lookup.c: ...here.
2784
2785 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2786
2787 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2788
2789 * configure.in: Check for gnu_unique_symbol symbol type.
2790 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2791 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2792 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2793 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2794 change.
2795 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2796 unique symbol table.
2797 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2798 for first namespace.
2799 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2800 unique symbol hash table.
2801 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2802 * elf/tst-unique1.c: New file.
2803 * elf/tst-unique1mod1.c: New file.
2804 * elf/tst-unique1mod2.c: New file.
2805 * elf/tst-unique2.c: New file.
2806 * elf/tst-unique2mod1.c: New file.
2807 * elf/tst-unique2mod2.c: New file.
2808
2809 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2810
2811 * elf/elf.h (STB_GNU_UNIQUE): Define.
2812
2813 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2814 from...
2815 * include/inline-hashtab.h: ...here.
2816 (htab_expand): Adjust for renamed function. Correct memory handling.
2817
2818 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2819
2820 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2821
2822 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2823
2824 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2825 (PPC_FEATURE_HAS_VSX): Likewise.
2826
2827 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2828
2829 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2830 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2831
2832 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2833 aligned to 16 byte boundaries.
2834 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2835 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2836 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2837
2838 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2839
2840 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2841 * config.make.in (config-cflags-sse4): New variable.
2842 * configure.in: Substitute libc_cv_cc_sse4.
2843 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2844 HAVE_SSE4_SUPPORT.
2845 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2846 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2847 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2848 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2849 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2850 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2851 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2852 * sysdeps/x86_64/multiarch/strspn.S: New file.
2853
2854 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2855
2856 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2857 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2858 (tests): Add tst-audit3 for x86_64.
2859 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2860 ($(objpfx)tst-audit3): Define.
2861 ($(objpfx)tst-audit3.out): Define.
2862 (tst-audit3-ENV): Define.
2863 * elf/tst-audit3.c: New file.
2864 * elf/tst-auditmod3a.c: New file.
2865 * elf/tst-auditmod3b.c: New file.
2866 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2867 and restore xmm6.
2868
2869 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2870 (__stpncpy): Renamed to ...
2871 (STPNCPY): This.
2872 (stpncpy): Create alias only if STPNCPY is not defined.
2873 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2874 defined.
2875 (strncpy): Renamed to ...
2876 (STRNCPY): This.
2877 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2878 stpncpy-c strncpy-c for string.
2879 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2880 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2881 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2882 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2883 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2884 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2885
2886 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2887
2888 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2889 adding to fast bin list.
2890
2891 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2892
2893 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2894 inet_makeaddr. This worked only with class-based networks.
2895 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2896 Likewise.
2897
2898 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2899 recognize all types.
2900 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2901 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2902 be in host byte order.
2903
2904 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2905
2906 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2907 (MODEL_OFFSET): Define.
2908 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2909 family and model.
2910 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2911 out common code into new function get_common_indeces. Determine
2912 extended family and model for Intel processors.
2913
2914 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2915
2916 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2917 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2918 option.
2919 * resolv/res_send.c (reopen): New function. Broken out of...
2920 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2921 fallback mechanism. If single-request fails switch to
2922 single-request-reopen mode which opens a new socket for the second
2923 request.
2924
2925 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2926
2927 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2928 (CHECK_SP): Use it.
2929
2930 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2931
2932 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2933 for saved registers.
2934 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2935 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2936 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2937
2938 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2939
2940 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2941
2942 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2943
2944 * po/id.po: Update from translation team.
2945
2946 * po/bg.po: Update from translation team.
2947
2948 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2949
2950 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2951 defined.
2952 (strncmp): Renamed to STRNCMP.
2953 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2954 strncmp-c for string.
2955 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2956 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2957 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2958 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2959
2960 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2961
2962 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2963 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2964 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2965 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2966 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2967 ifuncmain7static.c.
2968 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2969 ifuncmain7static, and ifuncmain7picstatic.
2970 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2971 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2972 $(objpfx)ifuncmain7pie.out.
2973 (modules-names): Add ifuncmod5 ifuncmod6
2974 (ifuncmod5.so-no-z-defs): Define.
2975 (ifuncmod6.so-no-z-defs): Define.
2976 (CFLAGS-ifuncmain5pic.c): Define.
2977 (CFLAGS-ifuncmain5picstatic.c): Define.
2978 (CFLAGS-ifuncmain5staticpic.c): Define.
2979 (CFLAGS-ifuncdep5pic.c): Define.
2980 (CFLAGS-ifuncmain7pic.c): Define.
2981 (CFLAGS-ifuncmain7picstatic.c): Define.
2982 (CFLAGS-ifuncmain1staticpie.c): Define.
2983 (CFLAGS-ifuncmain5pie.c): Define.
2984 (CFLAGS-ifuncmain6pie.c): Define.
2985 (CFLAGS-ifuncmain7pie.c): Define.
2986 ($(objpfx)ifuncmain1staticpie.out): Define.
2987 ($(objpfx)ifuncmain1staticpie): Define.
2988 ($(objpfx)ifuncmain5pie.out): Define.
2989 ($(objpfx)ifuncmain5pie): Define.
2990 ($(objpfx)ifuncmain6pie.out): Define.
2991 ($(objpfx)ifuncmain6pie): Define.
2992 ($(objpfx)ifuncmain5): Define.
2993 ($(objpfx)ifuncmain5pic): Define.
2994 ($(objpfx)ifuncmain5static): Define.
2995 ($(objpfx)ifuncmain5staticpic): Define.
2996 ($(objpfx)ifuncmain5picstatic): Define.
2997 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2998 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2999 ifuncmain6pie.out.
3000 * elf/b/elf/ifuncmain1staticpie.c: New file.
3001 * elf/ifuncdep5.c: New file.
3002 * elf/ifuncdep5pic.c: New file.
3003 * elf/ifuncmain5.c: New file.
3004 * elf/ifuncmain5pic.c: New file.
3005 * elf/ifuncmain5picstatic.c: New file.
3006 * elf/ifuncmain5pie.c: New file.
3007 * elf/ifuncmain5static.c: New file.
3008 * elf/ifuncmain5staticpic.c: New file.
3009 * elf/ifuncmain6pie.c: New file.
3010 * elf/ifuncmain7.c: New file.
3011 * elf/ifuncmain7pic.c: New file.
3012 * elf/ifuncmain7picstatic.c: New file.
3013 * elf/ifuncmain7pie.c: New file.
3014 * elf/ifuncmain7static.c: New file.
3015 * elf/ifuncmod5.c: New file.
3016 * elf/ifuncmod6.c: New file.
3017
3018 2009-06-20 Ulrich Drepper <drepper@redhat.com>
3019
3020 [BZ #10085]
3021 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
3022 (nss_endgrent): New variable.
3023 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
3024 fields. Change type of files to bool and adjust all users.
3025 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
3026 (internal_endgrent): Call nss_endgrent if necessary.
3027 (add_group): New function. Broken out of...
3028 (check_and_add_group): ...here.
3029 (getgrent_next_nss): Remove test that any callback is available.
3030 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
3031 callback. If there is no blacklist we can trust the results returned
3032 by the initgroups_dyn callback. In case there is a callback and we
3033 find a group entry for the group ID but it doesn't contain the
3034 correct member, switch to the slow mode and use getgrent_r.
3035 (internal_getgrent_r): When we see a +: entry, determine whether
3036 there is any callback and which we can use the initgroups_dyn
3037 callback.
3038
3039 2009-06-18 Ulrich Drepper <drepper@redhat.com>
3040
3041 * malloc/malloc.c (_int_malloc): Add some consistency checks.
3042 (_int_free): Likewise.
3043
3044 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3045 AF_IEEE802154.
3046 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3047 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3048 and ARPHRD_IEEE802154_PHY.
3049
3050 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3051 relative to generic Linux version.
3052
3053 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
3054
3055 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3056 ($(objpfx)ifuncmain1vispie): Likewise.
3057
3058 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3059
3060 * login/Makefile: Build pt_chown as PIE.
3061
3062 2009-06-15 Andreas Schwab <aschwab@redhat.com>
3063
3064 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3065 a format string.
3066 * elf/sln.c (usage): Likewise.
3067 * malloc/memusage.sh (do_help): Likewise.
3068 * nss/getent.c (more_help): Likewise.
3069 * posix/getconf.c (main): Likewise.
3070 * sunrpc/rpcinfo.c (usage): Likewise.
3071 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3072
3073 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3074
3075 * login/programs/pt_chown.c: Use libcap to drop privileges other than
3076 those needed.
3077 * login/Makefile: If necessary link pt_chown with -lcap.
3078 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3079 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3080
3081 2009-06-16 Jakub Jelinek <jakub@redhat.com>
3082
3083 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3084 comparisons.
3085 * string/test-memchr.c (do_random_tests): Test very large lengths
3086 as well.
3087
3088 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
3089
3090 * Makeconfig (+link-pie): Define.
3091 (+prectorS): Define.
3092 (+postctorS): Define.
3093 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3094 * nscd/Makefile ($(objpfx)nscd): Likewise.
3095
3096 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
3097
3098 [BZ #10107]
3099 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3100 with cmplwi.
3101 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3102
3103 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3104
3105 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3106 into ...
3107 * sysdeps/unix/grantpt.c: ...here.
3108
3109 2009-06-15 Ulrich Drepper <drepper@redhat.com>
3110
3111 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3112 chmod if it is necessary.
3113
3114 [BZ #10166]
3115 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3116 when the slave device is in devpts or devfs.
3117
3118 [BZ #10183]
3119 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3120
3121 [BZ #10195]
3122 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3123 of nd_opt_home_agent_info_preference to uint16_t.
3124 Patch by Arnaud Ebalard <arno@natisbad.org>.
3125
3126 [BZ #10207]
3127 * nss/getent.c: Add support for printing gshadow data.
3128
3129 [BZ #10203]
3130 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3131 not just the currently used one and those which follow.
3132 Patch by Joe Landers <jlanders@vmware.com>.
3133
3134 [BZ #10196]
3135 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3136 * libio/Makefile: Run tst-fgetwc with necessary envvar.
3137 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3138
3139 [BZ #10217]
3140 * stdlib/abort.c: Define variable __abort_msg.
3141 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3142 * include/stdlib.h: Declare __abort_msg.
3143 * assert/assert-perr.c: Don't free buffer for message immediately.
3144 Store atomically in __abort_msg and free old buffer if necessary.
3145 * assert/assert.c: Likewise.
3146 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3147 store pointer in __abort_msg, and possibly free old string.
3148 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3149
3150 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3151
3152 [BZ #10211]
3153 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3154 handle leap seconds if they are available.
3155 Patch by Akinori Hattori <hattya@gentoo.org>.
3156
3157 * timezone/tzselect.ksh: Update from tzcode2009i.
3158 * timezone/zdump.c: Likewise.
3159 * timezone/zic.c: Likewise.
3160
3161 * timezone/africa: Update from tzdata2009i.
3162 * timezone/antarctica: Likewise.
3163 * timezone/asia: Likewise.
3164 * timezone/australasia: Likewise.
3165 * timezone/backward: Likewise.
3166 * timezone/etcetera: Likewise.
3167 * timezone/europe: Likewise.
3168 * timezone/factory: Likewise.
3169 * timezone/iso3166.tab: Likewise.
3170 * timezone/leapseconds: Likewise.
3171 * timezone/northamerica: Likewise.
3172 * timezone/pacificnew: Likewise.
3173 * timezone/solar87: Likewise.
3174 * timezone/solar88: Likewise.
3175 * timezone/solar89: Likewise.
3176 * timezone/southamerica: Likewise.
3177 * timezone/systemv: Likewise.
3178 * timezone/yearistype: Likewise.
3179 * timezone/zone.tab: Likewise.
3180
3181 2009-06-15 Jakub Jelinek <jakub@redhat.com>
3182
3183 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3184 STT_GNU_IFUNC symbol or in 8 into type_class.
3185
3186 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3187 instead of Elf64_Addr.
3188
3189 2009-06-14 Ulrich Drepper <drepper@redhat.com>
3190
3191 * po/sv.po: Update from translation team.
3192
3193 [BZ #10229]
3194 * misc/sys/select.h (__NFDBITS): Expression should have type int.
3195 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3196 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
3197 the C version.
3198
3199 2009-06-12 Ulrich Drepper <drepper@redhat.com>
3200
3201 * Versions.def: Add GLIBC_2.11 for libpthread.
3202
3203 2009-06-11 Ulrich Drepper <drepper@redhat.com>
3204
3205 * resolv/res_send.c (send_dg): Remember we switched to
3206 single-request mode.
3207
3208 2009-06-09 Ulrich Drepper <drepper@redhat.com>
3209
3210 * dlfcn/dlfcn.h: Remove comma at end of enum.
3211 Patch by J.H.M. Dassen <rdassen@redhat.com>.
3212
3213 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3214 parsing mode string.
3215
3216 2009-06-05 Ulrich Drepper <drepper@redhat.com>
3217
3218 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3219
3220 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3221
3222 * sysdeps/x86_64/multiarch/strlen.S: New file.
3223 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3224 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3225 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3226 content.
3227
3228 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3229 is defined.
3230
3231 2009-06-04 Ulrich Drepper <drepper@redhat.com>
3232
3233 * sysdeps/x86_64/strlen.S: Minor optimizations.
3234
3235 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
3236
3237 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3238 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3239 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3240 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3241 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3242 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3243 ifuncmain3.c, ifuncmod3.c,.
3244 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3245 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3246 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3247 ifuncmain4picstatic.
3248 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3249 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3250 ifuncmain3, ifuncmain4.
3251 (tests): Depend on $(objpfx)ifuncmain1pie.out and
3252 $(objpfx)ifuncmain1vispie.out.
3253 (modules-names): Add ifuncmod1 ifuncmod3.
3254 (generated): Add ifuncmain1pie ifuncmain1pie.out
3255 ifuncmain1vispie ifuncmain1vispie.out.
3256 Define rules to build and run the tests.
3257 * elf/ifuncdep1.c: New file.
3258 * elf/ifuncdep1pic.c: New file.
3259 * elf/ifuncdep2.c: New file.
3260 * elf/ifuncdep2pic.c: New file.
3261 * elf/ifuncmain1.c: New file.
3262 * elf/ifuncmain1pic.c: New file.
3263 * elf/ifuncmain1picstatic.c: New file.
3264 * elf/ifuncmain1pie.c: New file.
3265 * elf/ifuncmain1static.c: New file.
3266 * elf/ifuncmain1staticpic.c: New file.
3267 * elf/ifuncmain1vis.c: New file..
3268 * elf/ifuncmain1vispic.c: New file..
3269 * elf/ifuncmain1vispie.c: New file.
3270 * elf/ifuncmain2.c: New file.
3271 * elf/ifuncmain2pic.c: New file.
3272 * elf/ifuncmain2picstatic.c: New file.
3273 * elf/ifuncmain2static.c: New file.
3274 * elf/ifuncmain3.c: New file.
3275 * elf/ifuncmain4.c: New file.
3276 * elf/ifuncmain4picstatic.c: New file.
3277 * elf/ifuncmain4static.c: New file.
3278 * elf/ifuncmod1.c: New file.
3279 * elf/ifuncmod3.c: New file.
3280
3281 2009-06-03 Ulrich Drepper <drepper@redhat.com>
3282
3283 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3284
3285 2009-06-02 Ulrich Drepper <drepper@redhat.com>
3286
3287 [BZ #10221]
3288 * posix/Makefile (routines): Add execvpe.
3289 * posix/Versions: Export execvpe for GLIBC_2.11.
3290 * posix/execvp.c: Now only a wrapper. Move code to...
3291 * posix/execvpe.c: ...here. New file.
3292 * posix/unistd.h: Declare execvpe.
3293
3294 2009-06-01 Ulrich Drepper <drepper@redhat.com>
3295
3296 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3297 for STT_GNU_IFUNC handling for efficiency.
3298 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3299
3300 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3301 _exit.
3302 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3303
3304 2009-05-31 Ulrich Drepper <drepper@redhat.com>
3305
3306 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3307 for !SHARED.
3308
3309 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
3310
3311 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3312 is not defined.
3313 (__rela_iplt_start): New declaration.
3314 (__rela_iplt_end): Likewise.
3315 (__rel_iplt_start): Likewise.
3316 (__rel_iplt_end): Likewise.
3317 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3318 * elf/elf.h (R_386_IRELATIVE): New macro.
3319 (R_X86_64_IRELATIVE): New macro.
3320 (R_386_NUM): Updated.
3321 (R_X86_64_NUM): Likewise.
3322 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3323 (libc_ifunc_hidden_def): New macro.
3324 * sysdeps/generic/dl-irel.h: New file.
3325 * sysdeps/i386/dl-irel.h: New file.
3326 * sysdeps/x86_64/dl-irel.h: New file.
3327 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3328 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3329 Handle R_386_IRELATIVE.
3330 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3331 (elf_machine_lazy_rela): Likewise.
3332 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3333 R_X86_64_IRELATIVE.
3334 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3335
3336 2009-05-31 Ulrich Drepper <drepper@redhat.com>
3337
3338 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3339 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
3340 are no differences. If an architecture has bits in CPUID index 1
3341 meaning different things the values for the COMMON_CPUID_INDEX_1
3342 index must not be set.
3343 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3344 (HAS_POPCOUNT): ...this. New macro.
3345 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3346 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
3347 to set the value for Intel and AMD architectures.
3348 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3349 INTEL_CPUID_INDEX_1.
3350 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3351 change.
3352
3353 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
3354
3355 * configure.in: Move AC_CANONICAL_HOST before first use of $host
3356 and $build.
3357
3358 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3359
3360 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3361 (__expm1l): Set errno to ERANGE on overflow.
3362 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3363 (__tanl): Set errno to EDOM for ±Inf.
3364 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3365 (__cosl): Set errno to EDOM for ±Inf.
3366 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3367 (__sinl): Set errno to EDOM for ±Inf.
3368
3369 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3370 defined, use it.
3371 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3372 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3373 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3374
3375 2009-05-29 Ulrich Drepper <drepper@redhat.com>
3376
3377 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
3378 code accessing it.
3379 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3380
3381 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
3382
3383 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
3384 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3385 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3386 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3387
3388 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3389 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3390 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3391 defined.
3392 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3393 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3394
3395 2009-05-22 Jakub Jelinek <jakub@redhat.com>
3396
3397 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3398 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3399 is, either do nothing at all if __ASSUME_ACCEPT4, or
3400 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3401 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3402 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3403 define.
3404 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3405 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3406 internal_accept4 in socket directory.
3407
3408 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
3409
3410 * sysdeps/ia64/configure.in: New file.
3411
3412 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
3413
3414 [BZ #10162]
3415 * sysdeps/ia64/memchr.S: Use speculative load.
3416
3417 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3418 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3419 use it.
3420
3421 * sysdeps/i386/__longjmp.S: Add .text.
3422 * sysdeps/x86_64/__longjmp.S: Likewise.
3423
3424 2009-05-21 Ulrich Drepper <drepper@redhat.com>
3425
3426 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3427 __ASSUME_ACCEPT4 for IA-64.
3428
3429 2009-05-21 Jakub Jelinek <jakub@redhat.com>
3430
3431 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3432
3433 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3434 (SOCKOP_accept4): Define.
3435
3436 2009-05-20 Ulrich Drepper <drepper@redhat.com>
3437
3438 Sun approved the change of the license.
3439 * sunrpc/auth_des.c: Replace license text.
3440 * sunrpc/auth_none.c: Likewise.
3441 * sunrpc/auth_unix.c: Likewise.
3442 * sunrpc/authdes_prot.c: Likewise.
3443 * sunrpc/authuxprot.c: Likewise.
3444 * sunrpc/bindrsvprt.c: Likewise.
3445 * sunrpc/clnt_gen.c: Likewise.
3446 * sunrpc/clnt_perr.c: Likewise.
3447 * sunrpc/clnt_raw.c: Likewise.
3448 * sunrpc/clnt_simp.c: Likewise.
3449 * sunrpc/clnt_tcp.c: Likewise.
3450 * sunrpc/clnt_udp.c: Likewise.
3451 * sunrpc/clnt_unix.c: Likewise.
3452 * sunrpc/des_crypt.c: Likewise.
3453 * sunrpc/des_soft.c: Likewise.
3454 * sunrpc/get_myaddr.c: Likewise.
3455 * sunrpc/getrpcport.c: Likewise.
3456 * sunrpc/key_call.c: Likewise.
3457 * sunrpc/key_prot.c: Likewise.
3458 * sunrpc/openchild.c: Likewise.
3459 * sunrpc/pm_getmaps.c: Likewise.
3460 * sunrpc/pm_getport.c: Likewise.
3461 * sunrpc/pmap_clnt.c: Likewise.
3462 * sunrpc/pmap_prot.c: Likewise.
3463 * sunrpc/pmap_prot2.c: Likewise.
3464 * sunrpc/pmap_rmt.c: Likewise.
3465 * sunrpc/rpc/auth.h: Likewise.
3466 * sunrpc/rpc/auth_unix.h: Likewise.
3467 * sunrpc/rpc/clnt.h: Likewise.
3468 * sunrpc/rpc/des_crypt.h: Likewise.
3469 * sunrpc/rpc/key_prot.h: Likewise.
3470 * sunrpc/rpc/netdb.h: Likewise.
3471 * sunrpc/rpc/pmap_clnt.h: Likewise.
3472 * sunrpc/rpc/pmap_prot.h: Likewise.
3473 * sunrpc/rpc/pmap_rmt.h: Likewise.
3474 * sunrpc/rpc/rpc.h: Likewise.
3475 * sunrpc/rpc/rpc_des.h: Likewise.
3476 * sunrpc/rpc/rpc_msg.h: Likewise.
3477 * sunrpc/rpc/svc.h: Likewise.
3478 * sunrpc/rpc/svc_auth.h: Likewise.
3479 * sunrpc/rpc/types.h: Likewise.
3480 * sunrpc/rpc/xdr.h: Likewise.
3481 * sunrpc/rpc_clntout.c: Likewise.
3482 * sunrpc/rpc_cmsg.c: Likewise.
3483 * sunrpc/rpc_common.c: Likewise.
3484 * sunrpc/rpc_cout.c: Likewise.
3485 * sunrpc/rpc_dtable.c: Likewise.
3486 * sunrpc/rpc_hout.c: Likewise.
3487 * sunrpc/rpc_main.c: Likewise.
3488 * sunrpc/rpc_parse.c: Likewise.
3489 * sunrpc/rpc_parse.h: Likewise.
3490 * sunrpc/rpc_prot.c: Likewise.
3491 * sunrpc/rpc_sample.c: Likewise.
3492 * sunrpc/rpc_scan.c: Likewise.
3493 * sunrpc/rpc_scan.h: Likewise.
3494 * sunrpc/rpc_svcout.c: Likewise.
3495 * sunrpc/rpc_tblout.c: Likewise.
3496 * sunrpc/rpc_util.c: Likewise.
3497 * sunrpc/rpc_util.h: Likewise.
3498 * sunrpc/rpcinfo.c: Likewise.
3499 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3500 * sunrpc/rpcsvc/key_prot.x: Likewise.
3501 * sunrpc/rpcsvc/klm_prot.x: Likewise.
3502 * sunrpc/rpcsvc/mount.x: Likewise.
3503 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3504 * sunrpc/rpcsvc/rex.x: Likewise.
3505 * sunrpc/rpcsvc/rstat.x: Likewise.
3506 * sunrpc/rpcsvc/rusers.x: Likewise.
3507 * sunrpc/rpcsvc/sm_inter.x: Likewise.
3508 * sunrpc/rpcsvc/spray.x: Likewise.
3509 * sunrpc/rpcsvc/yppasswd.x: Likewise.
3510 * sunrpc/rtime.c: Likewise.
3511 * sunrpc/svc.c: Likewise.
3512 * sunrpc/svc_auth.c: Likewise.
3513 * sunrpc/svc_authux.c: Likewise.
3514 * sunrpc/svc_raw.c: Likewise.
3515 * sunrpc/svc_run.c: Likewise.
3516 * sunrpc/svc_simple.c: Likewise.
3517 * sunrpc/svc_tcp.c: Likewise.
3518 * sunrpc/svc_udp.c: Likewise.
3519 * sunrpc/svc_unix.c: Likewise.
3520 * sunrpc/svcauth_des.c: Likewise.
3521 * sunrpc/xcrypt.c: Likewise.
3522 * sunrpc/xdr.c: Likewise.
3523 * sunrpc/xdr_array.c: Likewise.
3524 * sunrpc/xdr_float.c: Likewise.
3525 * sunrpc/xdr_mem.c: Likewise.
3526 * sunrpc/xdr_rec.c: Likewise.
3527 * sunrpc/xdr_ref.c: Likewise.
3528 * sunrpc/xdr_sizeof.c: Likewise.
3529 * sunrpc/xdr_stdio.c: Likewise.
3530
3531 * po/da.po: Update from translation team.
3532
3533 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3534
3535 * sysdeps/sh/____longjmp_chk.S: New file.
3536 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3537 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3538
3539 2009-05-18 Jakub Jelinek <jakub@redhat.com>
3540 Ulrich Drepper <drepper@redhat.com>
3541
3542 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3543 (__nscd_cache_search): Assume each entry in the
3544 hash chain needs one hashentry and half of datahead. Use
3545 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3546
3547 2009-05-16 Ulrich Drepper <drepper@redhat.com>
3548
3549 * posix/sys/wait.h: Fix typos. Pretty printing.
3550 * stdlib/stdlib.h: Likewise. Correct comments.
3551
3552 [BZ #10159]
3553 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3554
3555 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3556 patch.
3557
3558 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3559
3560 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3561 Use it if we absolutely cannot reach any more correct list elements
3562 because that many do not fit into the currently mapped database.
3563
3564 2009-05-14 Jakub Jelinek <jakub@redhat.com>
3565
3566 * nscd/nscd_helper.c: Include stddef.h.
3567 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
3568 in a couple of places. Return NULL if trail is not less than
3569 datasize, don't consider dataheads with length smaller than
3570 offsetof (struct datahead, data) + datalen.
3571 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3572 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3573 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3574 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3575 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3576 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3577 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3578
3579 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3580 Rename ...
3581 (fallocate64): ... to this.
3582 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3583 Rename ...
3584 (fallocate64): ... to this.
3585 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3586 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3587 fallocate64@@GLIBC_2.10.
3588 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3589 fallocate64@@GLIBC_2.11.
3590 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3592 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3593 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3594
3595 * nscd/selinux.c (nscd_avc_destroy): Removed.
3596 * nscd/selinux.h (nscd_avc_destroy): Likewise.
3597 * nscd/nscd.c (termination_handler): Don't call
3598 nscd_avc_destroy.
3599
3600 2009-05-12 Jakub Jelinek <jakub@redhat.com>
3601
3602 * include/atomic.h: Formatting.
3603 (catomic_compare_and_exchange_val_acq): Don't define if already
3604 defined by bits/atomic.h.
3605
3606 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3607
3608 * math/libm-test.inc (expm1_test): Add test for range error.
3609
3610 * Versions.def: Add GLIBC_2.11 for libc.
3611 * debug/Makefile (routines): Add longjmp_chk.
3612 Add rules to build and run tst-longjmp_chk.
3613 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3614 * debug/longjmp_chk.c: New file.
3615 * debug/tst-longjmp_chk.c: New file.
3616 * include/bits/setjmp2.: New file.
3617 * include/stdio.h: Mark __fortify_fail as internal_function.
3618 * setjmp/Makefile (headers): Add bits/setjmp2.h.
3619 * setjmp/bits/setjmp2.h: New file.
3620 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3621 of the aliases.
3622 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3623 defined.
3624 * sysdeps/i386/____longjmp_chk.S: New file.
3625 * sysdeps/x86_64/____longjmp_chk.S: New file.
3626 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3627 * sysdeps/x86_64/__longjmp.S: Likewise.
3628
3629 * version.h: Bump for 2.11 development.
3630
3631 * elf/check-execstack.c: New file.
3632 * elf/Makefile: Add rules to build and run check-execstack.
3633
3634 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3635
3636 * version.h (VERSION): Bump to 2.10.1.
3637
3638 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3639 compatibility functions.
3640 * nss/getXXent_r.c: Likewise.
3641 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3642 * gshadow/getsgnam_r.c: Likewise.
3643 * gshadow/Version: Remove duplicate entries.
3644
3645 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3646 for recent processor.
3647 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3648 Likewise.
3649
3650 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3651
3652 * version.h (VERSION): Bump for 2.10 release.
3653 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3654
3655 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3656 same place we add ASFLAGS-config.
3657
3658 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3659
3660 [BZ #10128]
3661 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3662 or FORMERR and the other NOERROR, don't raise an error.
3663
3664 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3665
3666 [BZ #10118]
3667 * Makeconfig (+asflags): New variable based upon ASFLAG or
3668 asflags-cpu.
3669 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3670 * config.make.in (asflags-cpu): Add variable based upon
3671 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3672 the assembler.
3673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3674 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3675 recognizes power6 instruction set due to passing -mcpu=power6 from
3676 --with-cpu=power6 when compiling .S files.
3677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3678 Likewise.
3679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3680 Likewise.
3681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3682 Likewise.
3683
3684 2009-05-09 Jakub Jelinek <jakub@redhat.com>
3685
3686 * string/stratcliff.c (do_test): Test for zero length
3687 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3688 at the end of the page.
3689
3690 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3691
3692 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3693
3694 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3695 count is zero.
3696
3697 * po/da.po: Update from translation team.
3698
3699 2009-05-05 Jakub Jelinek <jakub@redhat.com>
3700
3701 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3702 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3703
3704 2009-05-05 Ulrich Drepper <drepper@redhat.com>
3705
3706 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3707 and READ_IMPLIES_EXEC.
3708
3709 2009-05-04 Ulrich Drepper <drepper@redhat.com>
3710
3711 * po/da.po: Update from translation team.
3712
3713 2009-04-29 Jakub Jelinek <jakub@redhat.com>
3714
3715 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3716 comment change.
3717
3718 2009-04-27 Jakub Jelinek <jakub@redhat.com>
3719
3720 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3721 to MAP_ANON in PROT_NONE mmap64 call.
3722 (open_archive): Likewise.
3723 (file_data_available_p): Use mmap64 instead of mremap.
3724 (enlarge_archive): Likewise. Update head if ah->addr changed.
3725 Attempt to reserve address space after mmap64 region.
3726
3727 2009-04-26 Ulrich Drepper <drepper@redhat.com>
3728
3729 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3730 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3731 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3732
3733 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3734 atanh should set ERANGE.
3735
3736 [BZ #10087]
3737 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3738 result of lookup to make call to implement STT_GNU_IFUNC.
3739 (_dl_profile_fixup): Likewise.
3740 Patch by H.J. Lu <hjl.tools@gmail.com>.
3741
3742 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3743 warning.
3744
3745 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3746 from definition.
3747
3748 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3749 label if it is not used.
3750
3751 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3752 of gmon_hist_hdr and gmon_hdr structures and use them.
3753 * elf/sprof.c: Likewise.
3754
3755 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3756 warning.
3757
3758 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3759
3760 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3761 to avoid cast.
3762
3763 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3764 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3765 to avoid warnings.
3766 (iruserok_af): Use ss_family instead of casts.
3767
3768 * gmon/gmon.c (write_hist): Define real-type variant of
3769 gmon_hist_hdr structure and use it.
3770 (write_gmon): Likewise for gmon_hdr.
3771
3772 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3773 function if we are not going to define it.
3774 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3775
3776 * inet/inet6_option.c (option_alloc): Add temporary variable to
3777 avoid warning.
3778
3779 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3780 name of VTable element.
3781 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3782 * libio/iovsscanf.c: Likewise.
3783 * libio/vasprintf.c: Likewise.
3784 * libio/vsnprintf.c: Likewise.
3785 * stdio-common/isoc99_vsscanf.c: Likewise.
3786 * stdlib/strfmon_l.c: Likewise.
3787 * debug/vasprintf_chk.c: Likewise.
3788 * debug/vsnprintf_chk.c: Likewise.
3789 * debug/vsprintf_chk.c: Likewise.
3790
3791 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3792 function pointers.
3793
3794 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3795
3796 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3797
3798 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3799
3800 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3801
3802 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3803 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3804 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3805 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3806 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3807 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3808 * math/libm-test.inc: Add tests for errno after tan calls with
3809 ±Inf.
3810
3811 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3812 errno value vor pow(+-0,neg).
3813 * math/libm-test.inc (pow_test): Add tests for errno value for
3814 pole errors.
3815
3816 * math/w_fmod.c: Also handle x=±Inf as error.
3817 * math/w_fmodf.c: Likewise.
3818 * math/w_fmodl.c: Likewise.
3819 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3820 x=±Inf or y=0.
3821
3822 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3823 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3824 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3825 * sysdeps/i386/fpu/s_sin.S: Likewise.
3826 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3827 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3828 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3829 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3830 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3831 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3832 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3833 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3834 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3835 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3836 ±Inf.
3837
3838 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3839 ERANGE for underflows.
3840 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3841
3842 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3843 the 2001 revision.
3844
3845 * libio/tst-widetext.input: Remove surrogates.
3846
3847 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3848
3849 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3850 for lgamma should set errno to ERANGE, not EDOM.
3851 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3852
3853 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3854
3855 [BZ #10093]
3856 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3857 UTF-16 surrogates.
3858
3859 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3860 space when temporarily mapping the whole content of the old file.
3861
3862 [BZ #10100]
3863 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3864 not zero.
3865
3866 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3867
3868 * iconvdata/sjis.c (BODY): Don't advance inptr before
3869 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3870 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3871 two byte chars.
3872
3873 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3874
3875 * locale/locarchive.h (struct locarhandle): Rename len field to
3876 mmaped and add new reserved field.
3877 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3878 (create_archive): Reserve address space and then map file into it.
3879 (open_archive): Likewise.
3880 (file_data_available_p): New function.
3881 (compare_from_file): New function.
3882 (close_archive): Adjust to member name changes.
3883 (add_locale): Before comparing locale data, check it is mapped.
3884 Otherwise fall back to reading from the file.
3885
3886 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3887
3888 * stdio-common/psiginfo.c: Include <errno.h>.
3889
3890 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3891
3892 [BZ #9920]
3893 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3894 to get consistency between 32 and 64 bit architectures.
3895
3896 [BZ #10052]
3897 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3898 directory for dummy syscall rules.
3899 Patch by Chris Steinbroner <hesh@pobox.com>.
3900
3901 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3902
3903 [BZ #10092]
3904 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3905 MNT_EXPIRE.
3906
3907 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3908
3909 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3910 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3911
3912 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3913
3914 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3915 data from vector to temporary buffer and call PWRITEV after it
3916 instead of vice versa.
3917 * sysdeps/posix/preadv.c: Fix up comment.
3918 * misc/preadv.c: Likewise.
3919 * misc/preadv64.c: Likewise.
3920 * misc/pwritev.c: Likewise.
3921 * misc/pwritev64.c: Likewise.
3922 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3923
3924 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3925
3926 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3927
3928 * shadow/Makefile (tests): Add tst-shadow.
3929 * shadow/tst-shadow.c: New file.
3930
3931 [BZ #9955]
3932 * gshadow/Makefile: New file.
3933 * gshadow/Versions: New file.
3934 * gshadow/fgetsgent.c: New file.
3935 * gshadow/fgetsgent_r.c: New file.
3936 * gshadow/getsgent.c: New file.
3937 * gshadow/getsgent_r.c: New file.
3938 * gshadow/getsgnam.c: New file.
3939 * gshadow/getsgnam_r.c: New file.
3940 * gshadow/gshadow.h: New file.
3941 * gshadow/putsgent.c: New file.
3942 * gshadow/sgetsgent.c: New file.
3943 * gshadow/sgetsgent_r.c: New file.
3944 * gshadow/tst-gshadow.c: New file.
3945 * include/gshadow.h: New file.
3946 * Makeconfig (all-subdirs): Add gshadow.
3947 * Makefile (installed-headers): Add gshadow/gshadow.h.
3948 * nss/Makefile (databases): Add sgrp.
3949 * nss/Versions: Add gshadow functions as private exports.
3950 * nss/nsswitch.conf: Add gshadow entry.
3951 * nss/sgrp-lookup.c: New file.
3952 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3953 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3954 * nss/nss_files/files-sgrp.c: New file.
3955 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3956 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3957
3958 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3959
3960 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3961 * stdio-common/reg-modifier.c: Likewise.
3962
3963 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3964
3965 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3966 is no FPU.
3967
3968 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3969
3970 [BZ #10086]
3971 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3972 headers up to 2.6.30.
3973
3974 * po/ca.po: Update from translation team.
3975
3976 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3977
3978 [BZ #10069]
3979 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3980 an object that uses static TLS if the TLS modid is higher than the
3981 reserve we always allocate. At least for multi-threaded code.
3982
3983 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3984
3985 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3986 Numerically stable check for valid width.
3987
3988 * locale/programs/locarchive.c (open_archive): Map the entire file
3989 and not just the administrative data.
3990 (add_locale): When we find a hash sum match compare the content
3991 to be sure.
3992
3993 * malloc/malloc.c (malloc_info): Output address space information.
3994
3995 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3996
3997 * malloc/malloc.c (malloc_info): Also output system memory information.
3998
3999 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
4000 architectures have preadv/pwritev in 2.6.30.
4001
4002 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
4003 * sysdeps/posix/readv.c: Likewise.
4004 Reported by Markus Armbruster <armbru@redhat.com>.
4005
4006 * malloc/hooks.c (top_check): Force hook value into register.
4007
4008 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4009
4010 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
4011 calls to _dl_relocate_object.
4012
4013 2009-04-16 Ulrich Drepper <drepper@redhat.com>
4014
4015 [BZ #9957]
4016 * malloc/malloc.c (force_reg): Define.
4017 (sYSMALLOc): Load hook variable into variable
4018 before test and force into register.
4019 (sYSTRIm): Likewise.
4020 (public_mALLOc): Force hook value into register.
4021 (public_fREe): Likewise.
4022 (public_rEALLOc): Likewise.
4023 (public_mEMALIGn): Likewise.
4024 (public_vALLOc): Likewise.
4025 (public_pVALLOc): Likewise.
4026 (public_cALLOc): Likewise.
4027 (__posix_memalign): Likewise.
4028 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
4029 before test and force into register.
4030 * malloc/hooks.c (top_check): Likewise.
4031 (public_sET_STATe): Pretty printing.
4032
4033 * resolv/res_send.c (send_dg): Don't just ignore the result we got
4034 in case we only receive one reply in single-request mode.
4035
4036 2009-04-16 Jakub Jelinek <jakub@redhat.com>
4037
4038 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4039 are dlopened in statically linked program even for __LM_ID_CALLER.
4040
4041 2009-04-16 Ulrich Drepper <drepper@redhat.com>
4042
4043 * resolv/res_send.c (send_dg): Don't switch into single-request
4044 mode if we already are in it.
4045
4046 2009-04-15 Ulrich Drepper <drepper@redhat.com>
4047
4048 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4049 are always at least 4 bytes in the returned line.
4050
4051 2009-04-15 Jakub Jelinek <jakub@redhat.com>
4052
4053 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4054 __libc_use_alloca (8192), if the stack is too small use 512 bytes
4055 instead of 8K. Stop searching in /proc/stat after hitting first
4056 line not starting with cpu.
4057 (next_line): Truncate too long
4058 lines at buffer size * 3/4 instead of pretending there were line
4059 breaks inside of large lines.
4060
4061 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4062
4063 * sysdeps/x86_64/mp_clz_tab.c: New file.
4064
4065 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
4066 Ulrich Drepper <drepper@redhat.com>
4067
4068 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4069 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4070 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4071
4072 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
4073
4074 * sysdeps/sh/libc-tls.c: New file.
4075
4076 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4077
4078 2009-04-14 Roland McGrath <roland@redhat.com>
4079
4080 * elf/elf.h: Add various missing ARM constants, to match binutils.
4081
4082 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4083
4084 Optimizations from GMP.
4085 * sysdeps/x86_64/add_n.S: New file.
4086 * sysdeps/x86_64/addmul_1.S: New file.
4087 * sysdeps/x86_64/lshift.S: New file.
4088 * sysdeps/x86_64/mul_1.S: New file.
4089 * sysdeps/x86_64/rshift.S: New file.
4090 * sysdeps/x86_64/sub_n.S: New file.
4091 * sysdeps/x86_64/submul_1.S: New file.
4092
4093 2009-04-14 Jakub Jelinek <jakub@redhat.com>
4094
4095 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4096 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4097 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4098 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4099
4100 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4101
4102 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4103 preadv/pwritev.
4104
4105 2009-04-13 Ulrich Drepper <drepper@redhat.com>
4106
4107 * sysdeps/x86-64/strrchr.S: New file.
4108
4109 2009-04-10 Ulrich Drepper <drepper@redhat.com>
4110
4111 * stdio-common/printf.h (struct printf_info): Add user element.
4112 New types printf_arginfo_size_function, printf_va_arg_function.
4113 Declare register_printf_specifier, register_printf_modifier,
4114 register_printf_type.
4115 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4116 (union printf_arg): Add pa_user element.
4117 Adjust __printf_arginfo_table type.
4118 Add __printf_va_arg_table, __printf_modifier_table,
4119 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4120 declarations.
4121 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4122 If registered arginfo call failed try normal specifier.
4123 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4124 function.
4125 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4126 * stdio-common/Versions: Export register_printf_modifier,
4127 register_printf_type, and register_printf_specifier for GLIBC_2.10.
4128 * stdio-common/reg-modifier.c: New file.
4129 * stdio-common/reg-type.c: New file.
4130 * stdio-common/reg-printf.c (__register_printf_specifier): New
4131 function. Mostly the old __register_printf_function function but
4132 uses locking and type of third parameter changed.
4133 (__register_printf_function): Implement using
4134 __register_printf_specifier.
4135 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4136 calls to arginfo functions. Allocate enough memory for user-defined
4137 types. Call new va_arg functions to get user-defined types.
4138 Try installed handlers even for existing format specifiers first.
4139
4140 2009-04-09 Ulrich Drepper <drepper@redhat.com>
4141
4142 * sysdeps/x86_64/rawmemchr.S: New file.
4143
4144 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4145 Simplified code and possible copy problem fixed.
4146
4147 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4148 function if it is not defined. Add some necessary casts.
4149 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4150
4151 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4152 have preadv/pwritev in 2.6.30.
4153
4154 2009-04-08 Ulrich Drepper <drepper@redhat.com>
4155
4156 * malloc/malloc.c (malloc_info): New function.
4157 * malloc/malloc.h: Declare it.
4158 * malloc/Versions: Export malloc_info for GLIBC_2.10.
4159
4160 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4161 to avoid PLT slot.
4162
4163 * malloc/malloc.c (_int_realloc): Add parameter with old block
4164 size. Remove duplicated test. Don't handle mmap'ed blocks here.
4165 Adjust all callers.
4166 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4167
4168 2009-04-07 Ulrich Drepper <drepper@redhat.com>
4169
4170 * sysdeps/x86_64/strchrnul.S: New file.
4171
4172 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4173 depending libcrypt on -lfreebl3.
4174
4175 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4176 preadv/pwritev in 2.6.30.
4177
4178 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4179 instead of __strcasecmp.
4180
4181 * string/stratcliff.c (do_test): Add memchr tests..
4182 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4183 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4184 first read quad word.
4185
4186 2009-04-06 Ulrich Drepper <drepper@redhat.com>
4187
4188 * string/strverscmp.c (__strverscmp): Fix last cleanups.
4189 * string/tst-svc.input: Add new test case.
4190 * string/tst-svc.expect: Adjust.
4191 * string/Makefile: Don't ignore tst-svc error.
4192
4193 * sysdeps/x86_64/memchr.S: New file.
4194
4195 * resolv/resolv.h (RES_SNGLKUP): Define.
4196 * resolv/res_init.c (res_setoptions): Recognize single-request option.
4197 * resolv/res_send.c (send_dg): If we sent two requests at once and
4198 only get one reply before timeout switch to mode where we send the
4199 second request only after the first answer has been received.
4200
4201 2009-04-05 Ulrich Drepper <drepper@redhat.com>
4202
4203 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4204 * sysdeps/x86_64/strchr.S: Likewise.
4205
4206 2009-04-03 Ulrich Drepper <drepper@redhat.com>
4207
4208 * configure.in: We need to test for the compiler earlier.
4209
4210 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4211 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4212 GLIBC_2.10.
4213 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4214 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4215 and pwritev.
4216 * misc/preadv.c: New file.
4217 * misc/preadv64.c: New file.
4218 * misc/pwritev.c: New file.
4219 * misc/pwritev64.c: New file.
4220 * sysdeps/posx/preadv.c: New file.
4221 * sysdeps/posx/preadv64.c: New file.
4222 * sysdeps/posx/pwritev.c: New file.
4223 * sysdeps/posx/pwritev64.c: New file.
4224 * sysdeps/unix/sysv/linux/preadv.c: New file.
4225 * sysdeps/unix/sysv/linux/preadv64.c: New file.
4226 * sysdeps/unix/sysv/linux/pwritev.c: New file.
4227 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4228 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4229 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4230
4231 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4232 compatibility code.
4233 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4234
4235 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4236 __ASSUME_COMPLETE_READV_WRITEV.
4237 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4238 with modern kernels.
4239 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4240
4241 * sysdeps/posix/readv.c: Since read is a cancellation point we have
4242 to free a possible malloced buffer in case of cancellation.
4243 * sysdeps/posix/writev.c: Likewise for write.
4244
4245 2009-04-02 Ulrich Drepper <drepper@redhat.com>
4246
4247 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4248
4249 * configure.in: Recognize --enable-nss-crypt.
4250 * config.make.in: Add nss-crypt entry.
4251 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4252 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
4253 and include path for NSS directory to compiler for md5-crypt,
4254 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
4255 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4256 function implementation, use NSS. Introduce wrappers around the
4257 hash function calls. Little code size optimization.
4258 * crypt/sha256-crypt.c: Likewise.
4259 * crypt/sha512-crypt.c: Likewise.
4260 * scripts/check-local-headers.sh: Ignore nss3 directory.
4261
4262 * configure.in: Rename pic_default to libc_cv_pic_default.
4263 * config.make.in: Likewise.
4264
4265 2009-04-01 Roland McGrath <roland@redhat.com>
4266
4267 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4268 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4269 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4270 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4271 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4272 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4273 (R_SPARC_NUM): Update.
4274 From Dave Miller <davem@davemloft.net>.
4275
4276 2009-04-01 Ulrich Drepper <drepper@redhat.com>
4277
4278 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4279
4280 2009-03-31 Ulrich Drepper <drepper@redhat.com>
4281
4282 * elf/dl-open.c: Keep track of used name spaces and only iterate over
4283 those which are used.
4284 * elf/dl-addr.c: Likewise.
4285 * elf/dl-caller.c: Likewise.
4286 * elf/dl-fini.c: Likewise.
4287 * elf/dl-iteratephdr.c: Likewise.
4288 * elf/dl-libc.c: Likewise.
4289 * elf/dl-load.c: Likewise.
4290 * elf/dl-support.c: Likewise.
4291 * elf/dl-sym.c: Likewise.
4292 * elf/rtld.c: Likewise.
4293 * sysdeps/generic/ldsodefs.h: Likewise.
4294
4295 * elf/dl-load.c: Remove support for systems without MAP_ANON.
4296 * elf/dl-minimal.c: Likewise.
4297 * elf/dl-misc.c: Likewise.
4298 * elf/rtld.c: Likewise.
4299 * sysdeps/generic/ldsodefs.h: Likewise.
4300
4301 2009-03-30 Ulrich Drepper <drepper@redhat.com>
4302
4303 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4304 Avoid reuse of complex expression.
4305
4306 * po/fr.po: Update from translation team.
4307
4308 2009-03-16 Ulrich Drepper <drepper@redhat.com>
4309
4310 * include/dirent.h: Yet more changes to match sort function type
4311 change.
4312 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4313 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4314 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4315
4316 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
4317
4318 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4319
4320 2009-03-16 Ulrich Drepper <drepper@redhat.com>
4321
4322 * nscd/connections.c (restart): Try to preserve the process name
4323 by reading the /proc/self/exe symlink and using the return name.
4324 Patch by Jeff Bastian <jbastian@redhat.com>.
4325
4326 2009-03-15 Ulrich Drepper <drepper@redhat.com>
4327
4328 [BZ #9733]
4329 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4330 if we are not loading a new audit library.
4331 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4332 Only use profiling trampoline for auditing if we are not relocating
4333 an audit library.
4334 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4335 * elf/rtld.c: Likewise.
4336 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4337
4338 * elf/rtld.c (dl_main): Extend help message for --audit option.
4339
4340 [BZ #9759]
4341 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4342 alphasort64, versionsort, and versionsort64 to POSIX 2008.
4343 * dirent/alphasort.c: Adjust implementation to type change.
4344 * dirent/alphasort64.c: Likewise.
4345 * dirent/scandir.c: Likewise.
4346 * dirent/versionsort.c: Likewise.
4347 * dirent/versionsort64.c: Likewise.
4348 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4349 declaration.
4350 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4351 declaration.
4352
4353 [BZ #9880]
4354 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4355 correctly. Set segleft member in output as required.
4356 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4357 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4358
4359 [BZ #9881]
4360 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4361 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4362 * inet/Makefile (tests): Add tst-inet6_rth.
4363 * inet/tst-inet6_rth.c: New file.
4364
4365 [BZ #5807]
4366 * string/strlen.c (strlen): Fix omission in the expression to test
4367 for NUL bytes.
4368
4369 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4370
4371 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4372
4373 * elf/dl-runtime.c (reloc_offset): Define.
4374 (reloc_index): Define.
4375 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4376 (_dl_fixup_profile): Likewise. Use reloc_index instead of
4377 computing index from reloc_offset.
4378 (_dl_call_pltexit): Likewise.
4379 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4380 the relocation index to _dl_fixup.
4381 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4382 _dl_call_pltexit.
4383 * sysdeps/x86_64/dl-runtime.c: New file.
4384
4385 [BZ #9893]
4386 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4387 alignment of La_x86_64_regs. Store xmm parameters.
4388 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4389
4390 [BZ #9913]
4391 * string/strverscmp.c (__strverscmp): Fix case of different digits
4392 in fractional part of string.
4393 Patch by Jingyu Liu <jyliu@fortinet.com>.
4394 * string/Makefile (tests): Add tst-svc2.
4395 * string/tst-svc2.c: New file.
4396
4397 * string/strverscmp.c (__strverscmp): Optimize size of tables.
4398
4399 * locale/iso-639.def: Add Min Nan.
4400
4401 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4402
4403 [BZ #9948]
4404 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4405
4406 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4407
4408 * elf/dl-sysdep.c (auxvars): Compress data structure.
4409
4410 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4411 STT_GNU_IFUNC handling.
4412 (elf_machine_rela): Likewise.
4413
4414 2009-03-13 Ulrich Drepper <drepper@redhat.com>
4415
4416 * config.h.in (USE_MULTIARCH): Define.
4417 * configure.in: Handle --enable-multi-arch.
4418 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4419 (_dl_fixup_profile): Likewise.
4420 * elf/do-lookup.c (dl_lookup_x): Likewise.
4421 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4422 * elf/elf.h (STT_GNU_IFUNC): Define.
4423 * include/libc-symbols.h (libc_ifunc): Define.
4424 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4425 framework in init-arch.h to get CPUID values.
4426 * sysdeps/x86_64/multiarch/Makefile: New file.
4427 * sysdeps/x86_64/multiarch/init-arch.c: New file.
4428 * sysdeps/x86_64/multiarch/init-arch.h: New file.
4429 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4430
4431 * config.make.in (experimental-malloc): Define.
4432 * configure.in: Handle --enable-experimental-malloc.
4433 * malloc/Makefile: Handle experimental-malloc flag.
4434 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4435 * malloc/arena.c: Likewise.
4436 * malloc/hooks.c: Likewise.
4437 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4438
4439 2009-03-11 Ulrich Drepper <drepper@redhat.com>
4440
4441 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4442 prediction. A few size optimizations.
4443
4444 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4445
4446 * time/tzset.c: Optimize a bit for size.
4447
4448 2009-03-10 Jakub Jelinek <jakub@redhat.com>
4449
4450 * include/stdio.h (fmemopen): Add libc_hidden_proto.
4451 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4452
4453 * elf/sprof.c: Avoid warning about multi-line comment.
4454
4455 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4456
4457 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4458 DST name.
4459 * time/tst-posixtz.c: Add tests for quoted timezone names.
4460
4461 2009-03-10 Jakub Jelinek <jakub@redhat.com>
4462
4463 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4464 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4465 200809L instead of 200112L.
4466 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4467 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4468
4469 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4470 instead of __quick_exit_funcs to __run_exit_handlers.
4471 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4472 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4473 (__cxa_at_quick_exit): Remove attribute_hidden.
4474 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4475 to __run_exit_handlers.
4476 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4477 attribute_hidden.
4478
4479 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4480
4481 * po/id.po: Update from translation team.
4482
4483 2009-02-18 Jakub Jelinek <jakub@redhat.com>
4484
4485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4486 .machine push; .machine "power6" and .machine pop around mtfsf
4487 insns outside of _ARCH_PWR6 define.
4488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4489 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4490 Likewise.
4491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4492 Likewise.
4493 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4494 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4495 relax_fenv_state): Likewise.
4496
4497 2009-03-08 Ulrich Drepper <drepper@redhat.com>
4498
4499 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4500 cxa_at_quick_exit.
4501 (static-only-routines): Add at_quick_exit.
4502 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4503 GLIBC_2.10.
4504 * stdlib/quick_exit.c: New file.
4505 * stdlib/at_quick_exit.c: New file.
4506 * stdlib/cxa_at_quick_exit.c: New file.
4507 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
4508 it appropriately.
4509 (__internal_atexit): New function.
4510 (__new_exitfn): Now takes parameter to point to the list to use.
4511 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4512 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
4513 (exit): ...here. Just call __run_exit_handlers appropriately.
4514 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4515 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
4516 * stdlib/on_exit.c: Adjust call to __new_exitfn.
4517 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4518
4519 * po/id.po: Update from translation team.
4520
4521 2009-03-07 Ulrich Drepper <drepper@redhat.com>
4522
4523 * po/ru.po: Update from translation team.
4524
4525 2009-03-04 Ulrich Drepper <drepper@redhat.com>
4526
4527 * po/nl.po: Update from translation team.
4528
4529 2009-03-03 Ulrich Drepper <drepper@redhat.com>
4530
4531 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4532 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4533 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4534 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4535 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4536 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4537 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4538
4539 * po/pl.po: Update from translation team.
4540
4541 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4542
4543 [BZ #7083]
4544 * sysdeps/unix/sysv/linux/fallocate.c: New file.
4545 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4546 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4547 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4548 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4549 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4550 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4551 for GLIBC_2.10.
4552 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4553 Add fallocate and fallocate64.
4554
4555 * io/fcntl.h: Pretty printing.
4556
4557 2009-03-02 Richard Guenther <rguenther@suse.de>
4558
4559 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4560 attribute also for non-C99 inline semantics variant.
4561
4562 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4563
4564 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4565 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4566 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4567 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4569 Likewise.
4570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4571 Likewise.
4572
4573 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4574
4575 * po/cs.po: Update from translation team.
4576
4577 2009-02-28 Ulrich Drepper <drepper@redhat.com>
4578
4579 * po/bg.po: Update from translation team.
4580 * po/sv.po: Likewise.
4581 * po/fi.po: Likewise.
4582 * po/vi.po: Likewise.
4583
4584 2009-02-27 Roland McGrath <roland@redhat.com>
4585
4586 * Makeconfig (%.v.i): Depend on Makeconfig.
4587 Exclude % lines from initial #-comment removal.
4588
4589 2009-02-27 Ulrich Drepper <drepper@redhat.com>
4590
4591 * po/ko.po: Update from translation team.
4592
4593 2009-02-26 Roland McGrath <roland@redhat.com>
4594
4595 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4596 avoids unused warning.
4597
4598 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
4599 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4600
4601 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4602 sys/ucontext.h and asm/elf.h. Include sys/user.h.
4603 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4604 and asm/user.h. Include asm/ptrace.h.
4605 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4606 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4607 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4608 Undefine.
4609 (start_thread): Don't undefine.
4610 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4611 Define.
4612
4613 2009-02-26 Ulrich Drepper <drepper@redhat.com>
4614
4615 * wctype/wctype.h: The *_l functions are in POSIX 2008.
4616 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4617 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4618 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4619 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4620 200112L to 200809L.
4621 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4622 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4623 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4624 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4625 _SC_THREAD_ROBUST_PRIO_PROTECT.
4626 * posix/unistd.h: fexecve is in POSIX 2008.
4627 * time/time.h: strftime_l is in POSIX 2008.
4628 * io/sys/stat.h: futimens is in POSIX 2008.
4629 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4630 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4631 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4632 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4633 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4634 open_memstream, and vdprintf are in POSIX 2008.
4635
4636 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4637
4638 * include/features.h: Define macros for XPG7/POSIX 2008.
4639 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4640 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4641 POSIX 2008.
4642 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4643 * locale/xlocale.h: Define locale_t type.
4644 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4645 in POSIX 2008. Don't define locale_t here.
4646 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4647 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4648 UTIME_OMIT only with __USE_ATFILE.
4649 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4650 * stdio-common/psiginfo.c: New file.
4651 * stdio-common/psiginfo-data.h: New file.
4652 * stdio-common/psiginfo-define.h: New file.
4653 * stdio-common/Makefile (routines): Add psiginfo.
4654 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4655 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4656 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4657 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4658 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4659 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4660 * io/sys/stat.h: Move mknodat definition into same conditional as
4661 mknod.
4662 * time/sys/time.h: futimesat is not among the functions accepted
4663 into the POSIX standard.
4664
4665 * include/features.h: If no feature selection given and we select
4666 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4667 * posix/Versions: Export __posix_getopt.
4668 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4669 Use it to alternatively initialize __posixly_correct.
4670 (_getopt_internal_r): Take addition parameter. Pass on to
4671 _getopt_initialize.
4672 (_getopt_internal): Take addition parameter. Pass on to
4673 _getopt_internal_r.
4674 (getopt): Pass additional zero to _getopt_internal.
4675 (__posix_getopt): New function.
4676 * posix/getopt.h: Add redirection for getopt.
4677 * posix/getopt1.c (getopt_long): Pass additional zero to
4678 _getopt_internal.
4679 (getopt_long_only): Likewise.
4680 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4681 (_getopt_long_only_r): Likewise.
4682 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4683 _getopt_internal_r.
4684
4685 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4686
4687 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4688 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4689 * sysdeps/posix/sysconf.c (__sysconf): Handle
4690 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4691 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4692
4693 2009-02-24 Roland McGrath <roland@redhat.com>
4694
4695 [BZ #9895]
4696 * README.template: Reworded not to use substituted version number.
4697 Renamed to ...
4698 * README: ... here (no longer generated).
4699 * Makefile (README): Target removed.
4700
4701 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4702
4703 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4704 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4705 instead.
4706
4707 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4708
4709 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4710
4711 2009-02-22 Ulrich Drepper <drepper@redhat.com>
4712
4713 * po/bg.po: Update from translation team.
4714
4715 2009-02-16 Jakub Jelinek <jakub@redhat.com>
4716
4717 * stdlib/monetary.h: Uglify function parameter names.
4718 * sunrpc/rpc/pmap_clnt.h: Likewise.
4719 * sunrpc/rpc/svc.h: Likewise.
4720 * sunrpc/rpc/xdr.h: Likewise.
4721 * sunrpc/rpc/clnt.h: Likewise.
4722 * resolv/netdb.h: Likewise.
4723 * resolv/arpa/nameser.h: Likewise.
4724 * resolv/resolv.h: Likewise.
4725 * argp/argp.h: Likewise.
4726 * locale/langinfo.h: Likewise.
4727 * io/sys/stat.h: Likewise.
4728 * posix/spawn.h: Likewise.
4729 * nis/rpcsvc/nislib.h: Likewise.
4730 * malloc/obstack.h: Likewise.
4731 * sysdeps/ia64/bits/link.h: Likewise.
4732 * sysdeps/i386/bits/link.h: Likewise.
4733 * sysdeps/s390/bits/link.h: Likewise.
4734 * sysdeps/powerpc/bits/link.h: Likewise.
4735 * sysdeps/x86_64/bits/link.h: Likewise.
4736 * sysdeps/sparc/bits/link.h: Likewise.
4737 * sysdeps/sh/bits/link.h: Likewise.
4738 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4739 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4740 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4741 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4742
4743 2008-12-01 Fredrik Unger <fred@tree.se>
4744
4745 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4746 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4747 _FP_UNPACK_RAW_2, fix up first argument.
4748
4749 2009-02-15 Ulrich Drepper <drepper@redhat.com>
4750
4751 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4752 (GET_NPROCS_PARSER): Change parameters and use next_line.
4753 (__get_nprocs): Rewrite to not use stdio routines.
4754 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4755 Change parameters and use next_line.
4756
4757 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4758
4759 [BZ #5381]
4760 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4761 Change mempool_alloc prototype.
4762 * nscd/mem.c (gc): Don't handle mem_in_flight.
4763 (mempool_alloc): Third parameter now only indicates whether this is the
4764 first call (to allocate data) or not. If it is, get db rdlock.
4765 Release it on error. Don't handle mem_in_flight.
4766 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4767 Adjust third parameter of mempool_alloc calls.
4768 Nothing to do here in case mempool_alloc fails.
4769 Avoid local variable shadowing parameter. No need to get db rdlock
4770 before calling cache_add.
4771 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4772 no mem_in_flight array anymore.
4773 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4774 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4775 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4776 in case mempool_alloc fails. No need to get db rdlock before calling
4777 cache_add.
4778 * nscd/hstcache.c (cache_addhst): Likewise.
4779 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4780 * nscd/servicescache.c (cache_addserv): Likewise.
4781 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4782
4783 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4784
4785 * po/lt.po: Update from translation team.
4786
4787 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4788
4789 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4790 defined, allow additional data to be added using the optional
4791 MORE_ELF_HEADER_DATA macro.
4792 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4793 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4794
4795 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4796
4797 * include/atomic.h: Define catomic_and if not already defined.
4798 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4799 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4800
4801 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4802
4803 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4804 Change all callers.
4805 (_int_realloc): Likewise. Third argument is now padded size
4806 All _int_* functions are now static.
4807
4808 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4809 * malloc/arena.c: Likewise.
4810 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4811 functions.
4812
4813 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4814 easily.
4815
4816 * malloc/malloc.c: Add branch prediction for use of the hooks.
4817
4818 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4819
4820 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4821
4822 [BZ #7095]
4823 * bits/confname.h: Add SUSv7 macros for getconf environments.
4824 * bits/environments.h: Likewise.
4825 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4826 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4827 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4828 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4829 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4830 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4831 * posix/getconf.c: Likewise.
4832 * posix/sysconf.c: Likewise.
4833 * sysdeps/posix/sysconf.c: Likewise.
4834 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4835 environments.
4836
4837 2009-01-16 Petr Baudis <pasky@suse.cz>
4838
4839 [BZ #9753]
4840 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4841 even if we currently have zero nscount.
4842
4843 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4844
4845 [BZ #9781]
4846 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4847 the input line is too long.
4848
4849 * po/Makefile (libc.pot): Add f_print as function taking c-format
4850 parameter.
4851
4852 * debug/xtrace.sh: Unify translatable messages.
4853 * elf/ldd.bash.in: Likewise.
4854 * elf/sprof.c: Likewise.
4855 * locale/programs/locale.c: Likewise.
4856 * malloc/memusage.sh: Likewise.
4857 * nss/getent.c: Likewise.
4858
4859 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4860
4861 * debug/pcprofiledump.c (print_version,
4862 argp_program_version_hook): New function.
4863 * elf/ldconfig.c (more_help): New function.
4864 (argp): Use it.
4865 * elf/sln.c (usage): New function.
4866 (main): Support --help and --version.
4867 * malloc/memusagestat.c (print_version): New function.
4868 (argp_program_version_hook): New variable.
4869 * nscd/nscd.c (more_help): New function.
4870 (argp): Use it.
4871 * posix/getconf.c (main): Send --version output to stdout.
4872 Support --help.
4873 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4874 arguments. All callers changed.
4875 (print_version): New function.
4876 (parseargs): Support --help and --version.
4877 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4878 changed.
4879 (print_version): New function.
4880 (main): Use getopt_long. Support --help and --version.
4881 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4882 --version.
4883
4884 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4885
4886 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4887 (update_data): Fix handling of wrapping back
4888 to the beginning of the buffer.
4889
4890 [BZ #9823]
4891 * stdio-common/psignal.c (psignal): Fix test for empty string.
4892
4893 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4894
4895 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4896 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4897 move _null_auth to .rodata.
4898
4899 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4900 value of 24.
4901
4902 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4903
4904 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4905 today than when the original code was written. Use larger
4906 buffers. This also makes it unnecessary to have stat information,
4907 if this causes extra efforts.
4908 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4909 __alloc_dir.
4910
4911 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4912
4913 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4914 is set.
4915 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4916 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4917 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4918 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4919 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4920 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4921
4922 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4923
4924 * po/ru.po: Update from translation team.
4925
4926 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4927
4928 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4929 Add _tid slot to maintain consistency with kernel.
4930
4931 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4932
4933 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4934 incomplete characters at end of input buffer.
4935 * libio/Makefile (tests): Add tst-fgetwc.
4936 * libio/tst-fgetwc.c: New file.
4937 * libio/tst-fgetwc.input: New file.
4938
4939 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4940
4941 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4942
4943 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4944
4945 [BZ #9793]
4946 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4947 *OUTBUFSTART unless the whole output fit into the buffer.
4948 * iconv/Makefile (tests): Add tst-iconv4.
4949 * iconv/tst-iconv4.c: New file.
4950
4951 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4952
4953 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4954 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4955
4956 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4957
4958 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4959 newer linker scripts.
4960
4961 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4962
4963 [BZ #7040]
4964 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4965 inotify_rm_watch should have type int.
4966
4967 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4968
4969 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4970 Make aligned_restore_vmx a local symbol.
4971 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4972 Likewise.
4973
4974 2009-01-30 Andreas Jaeger <aj@suse.de>
4975
4976 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4977 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4978 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4979 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4980 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4981 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4982 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4983
4984 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4985
4986 [BZ #9726]
4987 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4988 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4989
4990 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4991
4992 [BZ #9726]
4993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4994 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4996 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4997
4998 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4999
5000 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
5001 memcpy instead of memcmp.
5002 (_dl_setup_pointer_guard): Likewise.
5003
5004 2009-01-30 Ulrich Drepper <drepper@redhat.com>
5005
5006 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
5007 manipulated brk, use malloc_printerr.
5008 * misc/sbrk.c (__sbrk): Better error handling for nonsense
5009 requests.
5010
5011 2009-01-30 Jakub Jelinek <jakub@redhat.com>
5012
5013 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
5014 rindex): For C++ add inlines so that they can be recognized as
5015 builtins.
5016 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
5017
5018 2009-01-29 Ulrich Drepper <drepper@redhat.com>
5019 Jakub Jelinek <jakub@redhat.com>
5020
5021 * string/string.h: Define correct C++ prototypes for gcc 4.4.
5022 * wcsmbs/wchar.h: Likewise.
5023
5024 2009-01-29 Ulrich Drepper <drepper@redhat.com>
5025
5026 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
5027 (stackinfo_sub_sp): Define.
5028
5029 2009-01-28 Ulrich Drepper <drepper@redhat.com>
5030
5031 [BZ #9750]
5032 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
5033 * include/alloca.h (alloca_account): Define.
5034 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5035 (stackinfo_sub_sp): Define.
5036
5037 * nscd/connections.c (nscd_init): If database file access fails
5038 check whether this is due to permission problems and bail in that
5039 case.
5040
5041 [BZ #9741]
5042 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5043 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5044
5045 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5046
5047 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5048 Add "t" to clobber list.
5049 (INTERNAL_SYSCALL_NCS): Likewise.
5050
5051 2009-01-28 Ulrich Drepper <drepper@redhat.com>
5052
5053 * nss/getent.c (print_networks): Don't print comma between aliases.
5054
5055 2009-01-23 Ulrich Drepper <drepper@redhat.com>
5056
5057 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5058
5059 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5060 the hash table.
5061 * misc/Makefile (tests): Add bug-hsearch1.
5062 * misc/bug-hsearch1.c: New file.
5063
5064 2009-01-22 Roland McGrath <roland@redhat.com>
5065
5066 * Makeconfig (%.v.i): Strip trailing # comments,
5067 not only whole-line comments.
5068
5069 2009-01-10 Ulrich Drepper <drepper@redhat.com>
5070
5071 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5072 one parameter. If non-NULL use it to initialize return value.
5073 (_dl_setup_pointer_guard): New function.
5074 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5075 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5076 * elf/rtld.c (security_init): Pass _dl_random to
5077 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
5078 pointer_chk_guard.
5079 * elf/dl-sysdep.c (_dl_random): New variable.
5080 (_dl_sysdep_start): Handle AT_RANDOM.
5081 (_dl_show_auxv): Likewise.
5082 * elf/dl-support.c (_dl_random): New variable.
5083 (_dl_aux_init): Handle AT_RANDOM.
5084 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5085 to _dl_setup_stack_chk_guard.
5086
5087 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5088
5089 2009-01-10 Roland McGrath <roland@redhat.com>
5090
5091 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5092
5093 2009-01-08 Ulrich Drepper <drepper@redhat.com>
5094
5095 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5096
5097 [BZ #9706]
5098 * nss/nss_files/files-parse.c (strtou32): New function.
5099 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5100 across 32-bit and 64-bit platforms.
5101 (INT_FIELD_MAYBE_NULL): Likewise.
5102
5103 2009-01-08 Jakub Jelinek <jakub@redhat.com>
5104
5105 [BZ #9720]
5106 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5107 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5108 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5109 Likewise.
5110
5111 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
5112
5113 [BZ #697]
5114 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5115 being NULL also if there are no backreferences.
5116 * posix/rxspencer/tests: Add testcases.
5117
5118 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
5119
5120 [BZ #9697]
5121 * posix/bug-regex17.c: Add testcases.
5122 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5123 handling.
5124
5125 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
5126
5127 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5128 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5129 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5130 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5131 for elf subdir.
5132 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5133 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5134 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5135 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5136 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5137 * sysdeps/unix/sysv/linux/s390/Versions: New file.
5138
5139 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
5140
5141 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5142 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5143 re_string_skip_chars, re_string_reconstruct): Likewise.
5144 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5145
5146 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
5147
5148 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5149 adjust the buffer alignment.
5150
5151 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5152
5153 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5154 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5155 net/route.h.
5156
5157 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5158 flavor to description only when flavor is not NULL.
5159
5160 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5161 mutex after SIGIO/SIGURG lookup loop.
5162
5163 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5164
5165 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5166
5167 2009-01-03 Ulrich Drepper <drepper@redhat.com>
5168
5169 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5170 handling.
5171
5172 2009-01-02 Ulrich Drepper <drepper@redhat.com>
5173
5174 * sysdeps/unix/sysv/linux/kernel-features.h
5175 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5176
5177 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5178 if no output is written.
5179
5180 * version.h: Bump to 2.10 development.
5181
5182 * posix/getconf.c: Update copyright year.
5183 * nss/getent.c: Likewise.
5184 * iconv/iconvconfig.c: Likewise.
5185 * iconv/iconv_prog.c: Likewise.
5186 * elf/ldconfig.c: Likewise.
5187 * catgets/gencat.c: Likewise.
5188 * csu/version.c: Likewise.
5189 * elf/ldd.bash.in: Likewise.
5190 * elf/sprof.c (print_version): Likewise.
5191 * locale/programs/locale.c: Likewise.
5192 * locale/programs/localedef.c: Likewise.
5193 * nscd/nscd.c (print_version): Likewise.
5194 * debug/xtrace.sh: Likewise.
5195 * malloc/memusage.sh: Likewise.
5196 * malloc/mtrace.pl: Likewise.
5197 * debug/catchsegv.sh: Likewise.
5198
5199 2008-12-29 Mike Frysinger <vapier@gentoo.org>
5200
5201 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5202 script.
5203
5204 2008-12-29 Ulrich Drepper <drepper@redhat.com>
5205
5206 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5207 gethostbyname4_r function call succeeded, just leave the loop.
5208
5209 [BZ #9694]
5210 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5211 very end.
5212 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5213 * wctype/Makefile (tests): Add bug-wctypeh.
5214 * wctype/bug-wctypeh.c: New file.
5215
5216 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5217 LOCALDOMAIN is defined.
5218 * nscd/nscd_getai.c (__nscd_getai): Likewise.
5219
5220 * sysdeps/x86_64/bits/select.h: New file.
5221
5222 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5223
5224 2008-12-21 Bruno Haible <bruno@clisp.org>
5225
5226 [BZ #9677]
5227 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5228 if no output is written.
5229
5230 2008-12-13 Klaus Dittrich <kladit@arcor.de>
5231
5232 * login/utmp_file.c (pututline_file): Replace call to dup2 with
5233 libc internal symbol __dup2 to avoid access through the PLT.
5234
5235 2008-12-08 Ulrich Drepper <drepper@redhat.com>
5236
5237 [BZ #6545]
5238 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5239 available only for __USE_GNU.
5240
5241 * inet/Makefile (tests): Add tst-getni2.
5242 * inet/tst-getni2.c: New file.
5243
5244 [BZ #7080]
5245 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5246 NULL when NI_NAMEREQD is set.
5247 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5248 * inet/Makefile (tests): Add tst-getni1.
5249 * inet/tst-getni1.c: New file.
5250
5251 2008-12-03 Petr Baudis <pasky@suse.cz>
5252
5253 [BZ #7067]
5254 * nscd/connections.c (invalidate_cache): Use prune_run_lock
5255 instead of prune_lock.
5256 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5257 * nscd/nscd.h (database_dyn): Add prune_run_cache.
5258
5259 2008-12-07 Ulrich Drepper <drepper@redhat.com>
5260
5261 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5262 use.
5263
5264 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5265 handling.
5266
5267 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5268 after reading name server list.
5269
5270 [BZ #7058]
5271 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5272 handling for host name aliases.
5273
5274 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
5275
5276 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5277 instead of doing things manually.
5278
5279 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
5280
5281 * posix/regex_internal.h (build_wcs_upper_buffer):
5282 Return type is reg_error_t.
5283
5284 2008-12-05 Ulrich Drepper <drepper@redhat.com>
5285
5286 * posix/globtest.sh: Use mktemp to create temporary file and
5287 directory.
5288
5289 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5290 sets correctly.
5291 (__CPU_CLR_S): Likewise.
5292 (__CPU_ISSET_S): Likewise.
5293
5294 2008-12-05 Joseph Myers <joseph@codesourcery.com>
5295 Ulrich Drepper <drepper@redhat.com>
5296
5297 * scripts/firstversion.awk: Use custom comparison function to compare
5298 version numbers.
5299 * scripts/versions.awk: Use sort invocation which can handle
5300 multi-digit sub-version numbers.
5301
5302 2008-12-04 Ulrich Drepper <drepper@redhat.com>
5303
5304 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5305 * locale/iso-639.def: Add Chhattisgarhi entry.
5306
5307 2008-12-02 Ulrich Drepper <drepper@redhat.com>
5308
5309 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5310 ESRCH return value.
5311 (_nss_dns_gethostbyname4_r): Likewise.
5312 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5313 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5314 gethostbyname4_r, we don't have a separate IPv6 status, so copy
5315 the no_data variable.
5316
5317 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5318 information at the correct index.
5319
5320 * socket/sys/socket.h: Declare accept4.
5321 * socket/accept4.c: New file.
5322 * sysdeps/unix/sysv/linux/accept4.c: New file.
5323 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5324 * socket/Makefile (routines): Add accept4.
5325 * socket/Versions: Export accept4 with version GLIBC_2.10.
5326 * socket/paccept.c: Removed.
5327 * sysdeps/unix/sysv/linux/paccept.c: Removed.
5328 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5329 * Versions.def: Define GLIBC_2.10 for libc.
5330 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5331
5332 * nscd/connections.c: Use accept4.
5333
5334 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5335
5336 2008-12-01 Ulrich Drepper <drepper@redhat.com>
5337
5338 * resolv/res_send.c (send_dg): Create sockets with non-blocking
5339 flag already set.
5340
5341 * stdlib/setenv.c (unsetenv): Don't search environment if it does
5342 not exist.
5343 * stdlib/Makefile (tests): Add tst-unsetenv1.
5344 * stdlib/tst-unsetenv1.c: New file.
5345
5346 2008-11-29 Ulrich Drepper <drepper@redhat.com>
5347
5348 * login/utmp_file.c (file_writable): New variable.
5349 (setutent_file): Don't try to open file for writing.
5350 (pututline_file): Before writing, make descriptor writable if
5351 necessary.
5352
5353 2008-11-26 Ulrich Drepper <drepper@redhat.com>
5354
5355 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5356 to IPv4 or IPv6 if an interface has been found.
5357
5358 2008-11-26 Roland McGrath <roland@redhat.com>
5359
5360 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5361 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5362
5363 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5364 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5365 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5366
5367 * elf/elf.h (NT_386_IOPERM): New macro.
5368 (NT_PPC_VSX): New macro.
5369
5370 2008-11-25 Roland McGrath <roland@redhat.com>
5371
5372 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5373 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5374 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5375 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5376 Subdirectories moved to ports repository.
5377 * configure.in (base_machine): Remove alpha case.
5378
5379 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
5380
5381 * sysdeps/mach/strerror_l.c: New file.
5382
5383 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
5384
5385 [BZ #6411]
5386 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5387 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5388 magic numbers.
5389 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5390 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5391 (relax_fenv_state): Same as above.
5392 (FPSCR_29): Reserve bit in ISA 2.05.
5393 (FPSCR_NI): Provide define for compat.
5394 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5395 magic numbers.
5396 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5397 magic numbers.
5398 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
5399 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5400 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5401 access to hwcap to account for hwcap size increase to uint64_t.
5402 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5403 Likewise.
5404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5405 (*setcontext): Likewise.
5406 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5407 New file.
5408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5409 New file.
5410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5411 (*setcontext): dynamically select mtfsf insn based on
5412 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5413 increase to uint64_t.
5414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5415 (*swapcontext): dynamically select mtfsf insn based on
5416 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5417 increase to uint64_t.
5418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5419 New file.
5420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5421 New file.
5422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5423 (*setcontext): dynamically select mtfsf insn based on
5424 PPC_FEATURE_HAS_DFP.
5425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5426 (*swapcontext): dynamically select mtfsf insn based on
5427 PPC_FEATURE_HAS_DFP.
5428
5429 2008-11-13 Ulrich Drepper <drepper@redhat.com>
5430
5431 * version.h: Bump for 2.9 release.
5432 * include/features.h (__GLIBC_MINOR__): Bump to 9.
5433
5434 [BZ #7029]
5435 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5436 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5437 all the rounding.
5438
5439 2008-11-11 Ulrich Drepper <drepper@redhat.com>
5440
5441 [BZ #7009]
5442 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5443 unknown request types for now.
5444
5445 2008-11-11 Roland McGrath <roland@redhat.com>
5446
5447 * sysdeps/x86_64/configure: New file.
5448
5449 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5450 * configure: Regenerated.
5451
5452 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5453
5454 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5455 correct instruction to remove the stack frame.
5456
5457 2008-11-03 Michael Matz <matz@suse.de>
5458
5459 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5460 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5461
5462 2008-11-07 Jakub Jelinek <jakub@redhat.com>
5463
5464 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5465 Remove.
5466
5467 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5468 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5469 of the thread variable instead of void *.
5470 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5471 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5472 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5473 __libc_tsd_define arguments.
5474 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5475 __libc_tsd_address arguments. Remove union hack.
5476 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5477 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5478 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5479 Adjust __libc_tsd_{set,get} arguments.
5480 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5481 __libc_tsd_define arguments.
5482 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5483 arguments.
5484 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5485 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5486 (LOCALE): Adjust __libc_tsd_define arguments.
5487 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5488 arguments.
5489 (LOCALE): Adjust __libc_tsd_define arguments.
5490 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5491 arguments.
5492 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5493 arguments.
5494
5495 2008-11-02 Ulrich Drepper <drepper@redhat.com>
5496
5497 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5498 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5499
5500 2008-11-01 Ulrich Drepper <drepper@redhat.com>
5501
5502 [BZ #6966]
5503 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5504
5505 2008-10-24 Joseph Myers <joseph@codesourcery.com>
5506 Ulrich Drepper <drepper@redhat.com>
5507
5508 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5509 definition for GCC 3.1 and later.
5510
5511 2008-10-31 Jakub Jelinek <jakub@redhat.com>
5512
5513 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5514 refetch dtv, as it might have changed.
5515 * elf/Makefile: Add rules to build and run tst-tls18.
5516 * elf/tst-tls18.c: New test.
5517 * elf/tst-tlsmod18a.c: New file.
5518
5519 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
5520
5521 [BZ #6875]
5522 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5523
5524 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5525
5526 [BZ #6867]
5527 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5528
5529 [BZ #6919]
5530 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5531 Fix length of copy operation.
5532
5533 2008-10-02 Pierre Habouzit <madcoder@debian.org>
5534
5535 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5536 and fix its calling convention.
5537
5538 2008-10-07 Andreas Schwab <schwab@suse.de>
5539
5540 [BZ #6942]
5541 * resolv/res_send.c (send_vc): Fix last change.
5542 (send_dg): Align here as well.
5543
5544 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5545
5546 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5547 return value in case rlimit is RLIM_INFINITY.
5548
5549 [BZ #6947]
5550 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5551 for UL_SETFSIZE.
5552 * resource/Makefile (tests): Add bug-ulimit1.
5553 * resource/bug-ulimit1.c: New file.
5554
5555 [BZ #6974]
5556 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5557 without dot. Properly terminate the string with a null byte.
5558 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5559
5560 [BZ #6980]
5561 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5562 negative sizees.
5563 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5564 negative __size.
5565
5566 [BZ #6995]
5567 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5568
5569 2008-10-30 Ulrich Drepper <drepper@redhat.com>
5570
5571 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5572 abort if there is no initgroups_dyn function.
5573
5574 * resolv/res_send.c (send_dg): On timeout, only return nonzero
5575 result if any of the queries really provided an answer.
5576
5577 2008-10-28 Ulrich Drepper <drepper@redhat.com>
5578
5579 * po/lt.po: Update from translation team.
5580
5581 2008-10-26 Ulrich Drepper <drepper@redhat.com>
5582
5583 * po/id.po: Update from translation team.
5584
5585 2008-10-24 Ulrich Drepper <drepper@redhat.com>
5586
5587 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5588 Fix tests for existence of second reply.
5589
5590 2008-10-23 Ulrich Drepper <drepper@redhat.com>
5591
5592 * po/id.po: New file.
5593 Contributed by the Indonesian translation team.
5594
5595 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
5596
5597 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5598 initialization.
5599
5600 2008-10-17 Jakub Jelinek <jakub@redhat.com>
5601
5602 * elf/Makefile: Add rules to build and run tst-tls17.
5603 * elf/tst-tls17.c: New test.
5604 * elf/tst-tlsmod17a.c: New file.
5605 * elf/tst-tlsmod17b.c: Likewise.
5606
5607 2008-10-17 Ulrich Drepper <drepper@redhat.com>
5608
5609 * stdlib/divmod_1.c: Use correct type for dummy variable.
5610 * stdlib/mod_1.c: Likewise.
5611
5612 2008-10-16 Ulrich Drepper <drepper@redhat.com>
5613
5614 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5615
5616 2008-10-16 Jakub Jelinek <jakub@redhat.com>
5617
5618 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5619 __nonnull order for C++.
5620 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5621 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5622
5623 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
5624
5625 * stdlib/longlong.h: Update from GCC.
5626
5627 2008-10-09 Jakub Jelinek <jakub@redhat.com>
5628 David S. Miller <davem@davemloft.net>
5629
5630 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5631 make sure any registers used with 64-bit 'branch-on-register'
5632 instructions have their top 32-bits clear.
5633 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5634 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5635
5636 2008-09-18 Andreas Schwab <schwab@suse.de>
5637
5638 [BZ #6942]
5639 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5640 Properly handle partial reads.
5641
5642 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5643
5644 * elf/elf.h (STO_MIPS_PLT): New.
5645 (R_MIPS_COPY): New.
5646 (R_MIPS_JUMP_SLOT): New.
5647 (R_MIPS_NUM): Redefine to 128.
5648 (DT_MIPS_PLTGOT): New.
5649 (DT_MIPS_RWPLT): New.
5650 (DT_MIPS_NUM): Redefine to 0x35.
5651
5652 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5653
5654 * timezone/africa: Update from tzdata2008f.
5655 * timezone/asia: Likewise.
5656 * timezone/australasia: Likewise.
5657 * timezone/europe: Likewise.
5658 * timezone/leapseconds: Likewise.
5659 * timezone/northamerica: Likewise.
5660 * timezone/southamerica: Likewise.
5661 * timezone/zone.tab: Likewise.
5662
5663 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5664
5665 * nscd/connections.c: Disable use of paccept for now.
5666
5667 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5668
5669 * socket/Versions: Remove paccept export for GLIBC_2.9.
5670 * socket/Makefile (routines): Remove paccept.
5671 * socket/sys/socket.h: Remove paccept declaration.
5672
5673 * po/sv.po: Update from translation team.
5674
5675 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5676
5677 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5678 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5679
5680 2008-09-16 Ulrich Drepper <drepper@redhat.com>
5681
5682 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5683 Patch by Olivier Fourdan <ofourdan@redhat.com>.
5684
5685 2008-09-15 Ulrich Drepper <drepper@redhat.com>
5686
5687 * sunrpc/rpc/svc.h: Declare svcfd_create.
5688 Patch by Michael Solberg <msolberg@redhat.com>.
5689
5690 2008-09-12 Flavio Leitner <fleitner@redhat.com>
5691 Ulrich Drepper <drepper@redhat.com>
5692
5693 * malloc/malloc.c (public_vALLOc): Try other arenas in case
5694 _int_valloc fails.
5695 (public_pVALLOc): Likewise.
5696
5697 2008-09-02 Andreas Jaeger <aj@suse.de>
5698
5699 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5700 commit.
5701
5702 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
5703
5704 [BZ #6860]
5705 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5706
5707 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
5708
5709 * Makefile (check-data): Check data directory in add-ons.
5710 * elf/Makefile (check-data): Likewise.
5711
5712 2008-08-18 Roland McGrath <roland@redhat.com>
5713
5714 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5715 * configure: Regenerated.
5716 * config.make.in (cflags-cpu): New substituted variable.
5717 (with-cpu): Variable removed.
5718 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5719
5720 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
5721
5722 [BZ #6845]
5723 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5724 __signbitl definition and __LONG_DOUBLE_128__ guard from:
5725 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5726 redundant. Functions which call floating point assembler operations
5727 should go into a sysdeps powerpc/fpu directory.
5728
5729 2008-08-15 Ulrich Drepper <drepper@redhat.com>
5730
5731 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5732 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5733
5734 2008-08-14 Ulrich Drepper <drepper@redhat.com>
5735
5736 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5737
5738 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5739 change related to AT_EXECFN. We cannot use that string.
5740 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5741 _dl_execfn member.
5742 * elf/dl-support.c: Remove _dl_execfn variable.
5743 (_dl_aux_init): Remove handling of AT_EXECFN.
5744 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5745 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5746
5747 2008-08-13 Ulrich Drepper <drepper@redhat.com>
5748
5749 [BZ #6544]
5750 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
5751 byte gets added to writes and seeks from the end use the length of
5752 the buffer and not the currently terminating NUL byte.
5753
5754 [BZ #6634]
5755 * login/utmp_file.c (getutent_r_file): Take additional parameter.
5756 Set to true if locking failed.
5757 (getutid_r_file): Adjust caller.
5758 (pututline_file): Likewise. Return NULL in this case.
5759 Patch mostly by halesh.s@gmail.com.
5760
5761 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5762
5763 [BZ #6589]
5764 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5765 Define.
5766 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5767
5768 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5769
5770 [BZ #6839]
5771 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5772 macro since it is now available in elf/dynamic-link.h.
5773
5774 2008-08-12 Roland McGrath <roland@frob.com>
5775
5776 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5777 in case used outside of libc.
5778 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5779
5780 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5781
5782 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5783 directly instead of going through dn_comp.
5784
5785 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5786
5787 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5788 Fix asm constraints.
5789
5790 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5791
5792 [BZ #6790]
5793 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5794 (IPV6_PMTUDISC_PROBE): Likewise.
5795
5796 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5797
5798 [BZ #6791]
5799 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5800
5801 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5802 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5803
5804 [BZ #6817]
5805 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5806 Added the members 'vsx' and 'arch_2_06'.
5807 (_dl_powerpc_platforms): Add the member 'power7'.
5808 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5809 to reflect the changes required by VSX and ISA 2.06.
5810 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5811 'power7'.
5812 Defined PPC_PLATFORM_POWER7.
5813 (_dl_string_platform): Add support for POWER7.
5814 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5815 capability and ISA 2.06.
5816
5817 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5818
5819 [BZ #6824]
5820 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5821 macro to detect use of 128 bit long double.
5822 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5823
5824 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5825
5826 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5827
5828 [BZ #5794]
5829 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5830 parameters.
5831 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5832 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5833
5834 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5835
5836 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5837 guaranteed to be large enough to read inotify event. Ignore
5838 EAGAIN error. Better error message. Add branch predicition.
5839 (main_loop_epoll): Likewise.
5840
5841 2008-08-02 Roland McGrath <roland@frob.com>
5842
5843 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5844 Add memory clobbers.
5845
5846 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5847
5848 * manual/arith.texi: Avoid @strong{Note:}.
5849 * manual/creature.texi: Likewise.
5850 * manual/filesys.texi: Likewise.
5851 * manual/math.texi: Likewise.
5852 * manual/memory.texi: Likewise.
5853 * manual/resource.texi: Likewise.
5854 * manual/syslog.texi: Likewise.
5855 * manual/time.texi: Likewise.
5856
5857 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5858 to prevent warning.
5859
5860 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5861
5862 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5863 new epoll_create1 interface.
5864 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5865 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5866 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5867
5868 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5869 (NS_GET32): Likewise.
5870
5871 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5872 syscalls, too.
5873
5874 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5875 use the AT_EXECFN value if it is no absolute path.
5876 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5877 __ASSUME_AT_EXECFN.
5878
5879 * Versions.def: Add GLIBC_2.9 to libresolv.
5880 * include/resolv.h: Remove hidden proto declarations for __ns_*
5881 functions. Add them for __dn_count_labels and __p_secstodate.
5882 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5883 Define ns_msg_getflags macro here.
5884 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5885 and __p_secstodate.
5886 * resolv/Versions: Export functions from <arpa/nameser.h> from
5887 libresolv in version GLIBC_2.9.
5888 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5889 hidden definitions.
5890 * resolv/ns_netint.c: Likewise.
5891 * resolv/ns_parse.c: Likewise.
5892 * resolv/ns_print.c: Likewise.
5893 * resolv/ns_samedomain.c: Likewise.
5894 * resolv/ns_ttl.c: Likewise.
5895 * resolv/arpa/nameser_compat.h: Likewise.
5896 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5897 function calls.
5898 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5899 instead of ns_get16.
5900 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5901 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5902 (gaih_getanswer_slice): Likewise.
5903 * resolv/Makefile (libresolv-routines): Add ns_date.
5904 * resolv/ns_date.c: New file.
5905
5906 * elf/Makefile (check-localplt.out): Also check libresolv and
5907 libcrypt.
5908
5909 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5910
5911 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5912 __ASSUME_O_CLOEXEC.
5913
5914 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5915
5916 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5917 buffer passed to NSS functions.
5918
5919 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5920
5921 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5922 Define.
5923
5924 * misc/syslog.c (openlog_internal): Fix compile problem.
5925
5926 2008-07-28 Roland McGrath <roland@redhat.com>
5927
5928 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5929
5930 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5931
5932 * io/ftw.c (add_object): Remove inline to avoid warning.
5933
5934 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5935
5936 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5937 Use it instead of locally defined resplen2 variable.
5938 (res_nsend): Adjust for __libc_res_nsend interface change.
5939 (send_vc): Initialize *resplen2 if necessary. Read length of
5940 package into an appropriately aligned variable. Store converted length
5941 in new variable and use it appropriately.
5942 Add branch prediction help.
5943 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5944 and pass it on to __libc_res_nsend. Adjust all callers.
5945 (__libc_res_nsearch): Likewise.
5946 (__libc_res_nqeurydomain): Likewise.
5947 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5948 change.
5949 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5950 Define resplen2 variable and pass it to __libc_res_nsearch and then
5951 to gaih_getanswer.
5952 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5953 Add branch prediction.
5954 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5955 (gaih_getanswer): Don't decode second slice if first one failed due
5956 to a too small buffer. Don't let not found status of second
5957 decoder shadow results of the first.
5958 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5959 and __libc_res_nquery interface changes
5960 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5961 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5962 __libc_res_nsearch, and __libc_res_nsend.
5963 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5964 change.
5965 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5966 __libc_res_nsearch interface changes.
5967
5968 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5969
5970 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5971
5972 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5973 file descriptors with close-on-exec set.
5974 (exec_comm_child): Fix the case where the write end of the pipe is
5975 STDOUT_FILENO already. In case it is, clear close-on-exec.
5976
5977 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5978 * io/pipe2.c: Likewise.
5979 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5980 instead of __ASSUME_PACCEPT.
5981 * include/unistd.h: Declare __have_pipe2.
5982 * libio/iopopen.c: Implement "e" flag.
5983 * libio/Makefile (tests): Add tst-popen1.
5984 * libio/tst-popen1.c: New file.
5985
5986 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5987 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5988
5989 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5990
5991 [BZ #6771]
5992 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5993 success call of _IO_SEEKOFF or calls which failed because the
5994 descriptor is for a pipe.
5995
5996 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5997 magic number.
5998
5999 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
6000
6001 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
6002 F_SETFD use if we know fopen set the flag.
6003
6004 * login/utmp_file.c (setutent_file): Minor optimization in case
6005 O_CLOEXEC is available.
6006
6007 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
6008
6009 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
6010 * elf/Makefile: Use pie-ccflag variable.
6011 * nscd/Makefile: Likewise.
6012 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
6013
6014 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
6015
6016 [BZ #6724]
6017 * Versions.def: Add GLIBC_2.9 version tag for libutil.
6018 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
6019 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
6020 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
6021 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
6022 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
6023 utmp32, utmpx32 and login32.
6024 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
6025 versions of struct utmp functions to libc and libutil.
6026 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
6027 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
6028 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
6029 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
6030 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
6031 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
6032 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
6033 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
6034 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6035 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6036 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6037 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6038 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6039 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6040 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6041 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6042 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6043 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6044 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6045 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6046 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6047 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6048
6049 2008-07-26 Ulrich Drepper <drepper@redhat.com>
6050
6051 * scripts/gen-as-const.awk: Generate more widely usable code by
6052 using 64-bit arithmetic.
6053
6054 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6055 the same treatment as narrow output code in last patch.
6056
6057 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6058
6059 [BZ #6763]
6060 * elf/dl-load.c (local_strdup): Remove inline.
6061 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6062 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6063 part of the object.
6064
6065 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6066
6067 2008-07-25 Ulrich Drepper <drepper@redhat.com>
6068
6069 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6070 the new syscalls, too.
6071
6072 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6073 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6074
6075 [BZ #6698]
6076 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6077 parameter for end of buffer. If temporary copy is too large use
6078 malloc.
6079 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6080 interface change.
6081 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
6082 string rewrite when allocating buffer.
6083
6084 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6085 syscalls, too.
6086
6087 * nscd/connections.c (nscd_init): Clean up fcntl call.
6088
6089 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6090 SOCK_NONBLOCK if possible.
6091
6092 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6093 SOCK_CLOEXEC if available.
6094
6095 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6096 __libc_clntudp_bufcreate_internal.
6097 * include/sys/socket.h: Declare __have_sock_cloexec.
6098 * socket/Makefile (aux): Add have_sock_cloexec.
6099 * socket/have_sock_cloexec.c: New file.
6100 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6101 __libc_clntudp_bufcreate.
6102 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6103 which takes an additional parameter. Create socket with non-blocking
6104 mode and close-on-exec flag set, if wanted.
6105 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6106 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6107 instead of clntudp_create. The socket has already the close-on-exec
6108 flag set if SOCK_CLOEXEC is defined.
6109
6110 2008-07-24 Ulrich Drepper <drepper@redhat.com>
6111
6112 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6113 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6114 appropriate.
6115 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6116 non-blocking mode by using socket, paccept, and inotify_init1.
6117
6118 * Versions.def (glibc): Add GLIBC_2.9.
6119 * io/Makefile (routines): Add dup3 and pipe2.
6120 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6121 * io/dup3.c: New file.
6122 * io/pipe2.c: New file.
6123 * posix/unistd.h: Declare dup3 and pipe2.
6124 * socket/Makefile (routines): Add paccept.
6125 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6126 * socket/paccept.c: New file.
6127 * socket/sys/socket.h: Declare paccept.
6128 * sysdeps/unix/syscalls.list: Add entry for dup3.
6129 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6130 epoll_create2 and inotify_init1.
6131 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6132 * sysdeps/unix/sysv/linux/paccept.c: New file.
6133 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6134 possible.
6135 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6136 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6137 inotify_init1, and pipe2 entries.
6138 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6139 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6140 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6141 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6142 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6143 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6144 SOCK_NONBLOCK.
6145 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6146 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6147 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6148 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6149 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6150 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6151 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6152 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6153 EPOLL_NONBLOCK. Declare epoll_create2.
6154 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6155 EFD_NONBLOCK.
6156 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6157 IN_NONBLOCK. Declare inotify_init1.
6158 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6159 SFD_NONBLOCK.
6160 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6161 TFD_NONBLOCK.
6162
6163 * elf/elf.h: Define AT_EXECFN.
6164 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6165 LD_ORIGIN_PATH.
6166 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6167 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
6168 if __ASSUME_AT_EXECFN is defined.
6169 (_dl_aux_init): Handle AT_EXECFN.
6170 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6171 for 2.6.27 and up.
6172 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6173 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6174 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6175 _dl_execfn if available and avoid compatibility code if
6176 __ASSUME_AT_EXECFN is defined.
6177
6178 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6179 _dl_discover_osversion only for older kernels.
6180
6181 2008-07-22 Roland McGrath <roland@frob.com>
6182
6183 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6184
6185 2008-07-21 Roland McGrath <roland@frob.com>
6186
6187 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6188 returned too much data out of line.
6189
6190 2008-07-20 Ulrich Drepper <drepper@redhat.com>
6191
6192 * locale/setlocale.c (setname): Remove inline to avoid compiler
6193 warning.
6194
6195 [BZ #6712]
6196 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6197
6198 2008-07-15 Ulrich Drepper <drepper@redhat.com>
6199
6200 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6201 doesn't manage to write anything, fail.
6202
6203 * malloc/hooks.c (__malloc_check_init): Remove printf.
6204
6205 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6206
6207 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6208
6209 2008-07-12 Ulrich Drepper <drepper@redhat.com>
6210
6211 * nscd/connections.c (main_loop_poll): Fix handling of read errors
6212 from inotify.
6213 (main_loop_epoll): Likewise.
6214
6215 2008-07-09 Ulrich Drepper <drepper@redhat.com>
6216
6217 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6218
6219 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6220 if DEBUG is defined.
6221
6222 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6223 query. Adjust buffer size computation for padding.
6224
6225 2008-07-08 Ulrich Drepper <drepper@redhat.com>
6226
6227 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6228 * stdio-common/tst-setvbuf1.c: New file.
6229 * stdio-common/tst-setvbuf1.expect: New file.
6230
6231 [BZ #6719]
6232 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6233 when selecting fully-buffered stream.
6234 Patch by Wang Xin <wxinee@gmail.com>.
6235
6236 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
6237
6238 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6239 (__open_2): New function.
6240 (__open64_2): New alias to __open_2.
6241 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6242 (__openat_2): New function.
6243 (__openat64_2): New alias to __openat_2.
6244
6245 2008-07-06 Ulrich Drepper <drepper@redhat.com>
6246
6247 [BZ #6723]
6248 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6249
6250 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6251
6252 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6253 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6254 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6255 __hurd_dfail.
6256 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6257 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6258 * sysdeps/mach/hurd/send.c (__send): Likewise.
6259 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6260 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6261
6262 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
6263
6264 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6265 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6266 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6267 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6268 * hurd/get-host.c (_hurd_get_host_config): Likewise.
6269 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6270
6271 2008-06-27 Ulrich Drepper <drepper@redhat.com>
6272
6273 [BZ #6657]
6274 * time/strptime_l.c: Don't clear s.era_cnt after successful match
6275 of %EY.
6276 Patch by Petr Baudis.
6277
6278 2008-06-26 Ulrich Drepper <drepper@redhat.com>
6279
6280 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6281 Patch by Peter Jones <pjones@redhat.com>.
6282
6283 2008-06-25 Ulrich Drepper <drepper@redhat.com>
6284
6285 [BZ #6654]
6286 * stdlib/canonicalize.c (__realpath): readlink can write too much
6287 into the buffer on platforms without PATH_MAX.
6288
6289 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
6290
6291 [BZ #6653]
6292 * posix/tst-regex.c (main): Rename to...
6293 (do_test): ... this. Remove cmdline option processing.
6294 (TIMEOUT): Define.
6295 (TEST_FUNCTION): Define.
6296 (CMDLINE_OPTIONS): Define.
6297
6298 2008-06-25 Ulrich Drepper <drepper@redhat.com>
6299
6300 [BZ #5210]
6301 * configure.in: Add -Werror to -fstack-protector test to catch
6302 unsupported architectures.
6303 Patch by Gilles Esponasse <g.esp@free.fr>.
6304
6305 2008-06-17 Joseph Myers <joseph@codesourcery.com>
6306
6307 * stdlib/tst-setcontext.c: Set back_in_main before exit if
6308 getcontext returns ENOSYS.
6309
6310 2008-06-18 Ulrich Drepper <drepper@redhat.com>
6311
6312 * nscd/connections.c (main_loop_poll): Fix test for read error.
6313 (main_loop_epoll): Likewise.
6314
6315 2008-06-13 Ulrich Drepper <drepper@redhat.com>
6316
6317 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6318 better place so it is not called when nscd is used.
6319
6320 * nscd/connections.c: Also recognize and handle changes to the
6321 resolver configuration file.
6322
6323 2008-06-12 Ulrich Drepper <drepper@redhat.com>
6324
6325 * time/strftime.c: Pass reference to tzset_called around to handle
6326 recursive calls.
6327
6328 [BZ #6612]
6329 * time/strftime.c (__strftime_internal): Call tzset() only
6330 when printing timezone-dependent values.
6331 Based on a patch by Petr Baudis <pasky@suse.cz>.
6332
6333 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6334 unconditionally use second gaih_getanswer_slice result.
6335
6336 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6337 (getaddrinfo): RES must always be non-NULL.
6338
6339 2008-06-12 Jakub Jelinek <jakub@redhat.com>
6340
6341 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6342 cr[34] registers.
6343 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6344 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6345 Likewise.
6346 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6347 register.
6348
6349 2008-06-12 Ulrich Drepper <drepper@redhat.com>
6350
6351 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6352 fields.
6353 * nscd/connections.c (inotify_fd): New variable.
6354 (nscd_init): Try to open an inotify descriptor.
6355 If successful, watch files for databases using inotify instead of
6356 having prune threads stat the files.
6357 (nscd_run_prune): Recognize clear_cache flag being set and call
6358 prune_cache appropriately.
6359 (main_loop_poll): Add inotify descriptor to wait set and handle the
6360 reported changes.
6361 (main_loop_epoll): Likewise.
6362 * nscd/cache.c (prune_cache): Don't stat files for databases if
6363 inotify is used.
6364 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6365 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6366
6367 * nscd/grpcache.c (cache_addgr): Correctly compute size of
6368 fixed-size portion of the record.
6369 * nscd/servicescache.c (cache_addserv): Likewise.
6370 * nscd/pwdcache.c (cache_addpw): Likewise.
6371 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6372
6373 2008-06-11 Ulrich Drepper <drepper@redhat.com>
6374
6375 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6376 out we don't use uninitialized memory.
6377
6378 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6379 the client.
6380
6381 2008-06-10 Ulrich Drepper <drepper@redhat.com>
6382
6383 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6384 ignore T_DNAME messages.
6385 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6386
6387 2008-06-05 Jakub Jelinek <jakub@redhat.com>
6388
6389 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6390 Avoid segfault if first GETC returns eof/'\0'/'\n'.
6391
6392 2008-06-03 Jakub Jelinek <jakub@redhat.com>
6393
6394 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6395 instead of portstr to nscd_getserv_r. Patch by
6396 Roman Kagan <rkagan@mail.ru>.
6397
6398 2008-05-26 Jim Meyering <meyering@redhat.com>
6399
6400 Remove more useless "if" tests before "free".
6401 * include/inline-hashtab.h (htab_delete): Likewise.
6402 * libio/freopen.c (freopen): Likewise.
6403 * libio/freopen64.c (freopen64): Likewise.
6404 * locale/programs/ld-collate.c (collate_read): Likewise.
6405 * misc/fstab.c (libc_freeres_fn): Likewise.
6406 * posix/glob.c (globfree): Likewise.
6407
6408 2008-05-24 Ulrich Drepper <drepper@redhat.com>
6409
6410 * string/Makefile (strop-tests): Add memmem.
6411 * string/test-memmem.c: New file.
6412 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6413 (test_init): Size buf1 according to BUF1PAGES.
6414
6415 2008-05-24 Jakub Jelinek <jakub@redhat.com>
6416
6417 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6418 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6419 (CFLAGS-scanf17.c): New.
6420 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6421 * stdio-common/scanf15.c (main): Likewise.
6422 * stdio-common/scanf16.c: New file.
6423 * stdio-common/scanf17.c: New file.
6424
6425 2008-05-24 Ulrich Drepper <drepper@redhat.com>
6426
6427 * resolv/res_send.c (send_dg): If we already have one of two
6428 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6429 use the one answer insted of failing.
6430
6431 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
6432
6433 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6434 being executed on PowerPC as the expected result exceeds IBM
6435 long double 128 __LDBL_MAX__.
6436
6437 2008-05-21 Roland McGrath <roland@redhat.com>
6438
6439 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6440
6441 * Makefile (check-data): Use $(abi-name) before other guesses.
6442 Look in $(add-ons) dirs before scripts/data/.
6443 * elf/Makefile (check-data): Likewise.
6444
6445 * scripts/soversions.awk: Grok ABI line.
6446 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6447 Emit definition for abi-name variable.
6448
6449 2008-05-21 Ulrich Drepper <drepper@redhat.com>
6450
6451 * string/endian.h: Define new fixed-size hto* and *toh macros only
6452 if [__USE_BSD].
6453
6454 * iconvdata/Depend: Add localedata.
6455
6456 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6457
6458 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6459
6460 2008-05-08 David S. Miller <davem@davemloft.net>
6461
6462 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6463 HIDDEN_JUMPTARGET.
6464 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6465 (__SYSCALL_CLOBBERS): Remove %g* registers.
6466 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6467 (__SYSCALL_CLOBBERS): Likewise.
6468 * scripts/data/localplt-sparc-linux-gnu.data: New file.
6469 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6470
6471 2008-05-21 Jakub Jelinek <jakub@redhat.com>
6472
6473 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6474 (CALL_ERRNO_LOCATION): Define.
6475 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6476 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6477 (CALL_ERRNO_LOCATION): Define.
6478 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6479 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6480 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6481
6482 2008-05-20 Ulrich Drepper <drepper@redhat.com>
6483
6484 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6485 variable.
6486
6487 2008-05-20 Jakub Jelinek <jakub@redhat.com>
6488
6489 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6490 (FIRST_FRAME_POINTER): Define.
6491
6492 2008-05-09 David S. Miller <davem@davemloft.net>
6493
6494 * sysdeps/sparc/sparc64/backtrace.c: New file.
6495
6496 2008-05-14 David S. Miller <davem@davemloft.net>
6497
6498 * sysdeps/sparc/machine-gmon.h: New file.
6499 * sysdeps/sparc/sparc-mcount.S: Likewise.
6500 * sysdeps/sparc/Makefile: Add sparc-mcount target to
6501 sysdep_routines in gmon directory.
6502
6503 2008-05-19 Jakub Jelinek <jakub@redhat.com>
6504
6505 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6506
6507 2008-05-19 Ulrich Drepper <drepper@redhat.com>
6508
6509 * resolv/res_query.c (__libc_res_nquery): In case one of two
6510 answer was too short don't try to read that answer's header.
6511
6512 * resolv/res_send.c (send_dg): In case of timeout and there are
6513 two queries and one has been answered, return value indicating
6514 success.
6515
6516 2008-05-18 Ulrich Drepper <drepper@redhat.com>
6517
6518 * nscd/cache.c (cache_add): Take additional parameter specifying
6519 whether this is in response of a cache refill. Check alignment
6520 of package data. Revamp waking of pruning thread.
6521 (prune_cache): Small optimization.
6522 * nscd/nscd.h: Adjust cache_add prototypes.
6523 * nscd/aicache.c: Adjust cache_add calls.
6524 * nscd/grpcache.c: Likewise.
6525 * nscd/hstcache.c: Likewise.
6526 * nscd/initgrcache.c: Likewise.
6527 * nscd/pwdcache.c: Likewise.
6528 * nscd/servicescache.c: Likewise.
6529 * nscd/connections.c (restart): Really disable cache use before
6530 exec attempt. If it fails, reenable cache.
6531 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
6532 time to max to be able to notice concurrent cache additions. Unlock
6533 prune_lock while performing gc. Afterwards compute wakeup time with
6534 current wakeup_time value in mind.
6535
6536 2008-05-17 Ulrich Drepper <drepper@redhat.com>
6537
6538 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6539
6540 * nscd/mem.c (gc): Correctly determine highest used array element
6541 in mark.
6542
6543 * nscd/mem.c (markrange): Add assert to check entries are all
6544 aligned. Small cleanup in bitmap use.
6545
6546 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6547 blockoff of type nscd_ssize_t.
6548 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6549 (mempoll_alloc): Record block offset and not address.
6550
6551 * nscd/mem.c (gc): Fix test for stack overuse.
6552
6553 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6554 more asserts.
6555
6556 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6557 entry is available, believe it.
6558
6559 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6560 no answers return NSS_STATUS_NOTFOUND.
6561 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6562 buffer does not have any content.
6563
6564 2008-05-16 Ulrich Drepper <drepper@redhat.com>
6565
6566 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6567
6568 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6569 lookup, don't assign canon unconditionally.
6570
6571 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6572
6573 * string/Makefile (distribute): Add str-two-way.h.
6574
6575 2008-03-29 Eric Blake <ebb9@byu.net>
6576
6577 Rewrite string searches to O(n) rather than O(n^2).
6578 * string/str-two-way.h: New file. For linear fixed-allocation
6579 string searching.
6580 * string/memmem.c: New implementation.
6581 * string/strstr.c: New implementation.
6582 * string/strcasestr.c: New implementation.
6583
6584 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
6585
6586 * posix/regcomp.c (optimize_utf8): Add a note on why we test
6587 opr.ctx_type.
6588 (calc_first): Initialize constraint field.
6589 (duplicate_node_closure): Use it instead of special casing ANCHORS.
6590 Use search_duplicated_node to avoid loops. Fix grammar.
6591 (duplicate_node): Merge constraint field for all node types.
6592 (calc_eclosure_iter): Look at constraint field for all node types.
6593 * posix/regex_internal.c (create_cd_newstate): Don't look at
6594 create_cd_newstate.
6595
6596 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6597
6598 [BZ #6428]
6599 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6600
6601 [BZ #6442]
6602 * string/endian.h: Add macros for fixed-size endian conversion.
6603 * bits/byteswap.h: Allow inclusion from <endian.h>.
6604 * sysdeps/i386/bits/byteswap.h: Likewise.
6605 * sysdeps/ia64/bits/byteswap.h: Likewise.
6606 * sysdeps/s390/bits/byteswap.h: Likewise.
6607 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6608 * string/Makefile (tests): Add tst-endian.
6609 * string/tst-endian.c: New file.
6610
6611 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6612 Patch by Reuben Thomas.
6613
6614 2008-05-14 Joseph Myers <joseph@codesourcery.com>
6615
6616 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6617
6618 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6619
6620 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6621
6622 [BZ #6461]
6623 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6624 Add missing braces.
6625 (BODY for __gconv_transform_internal_ascii): Likewise.
6626
6627 [BZ #6472]
6628 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6629 to be treated like link-local addresses.
6630 (match_prefix): Don't treat IPv4 loopback address special when
6631 converting to v4 mapped addressed.
6632
6633 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6634 if necessary.
6635 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6636 * posix/tst-rfc3484-2.c: Likewise.
6637 * posix/tst-rfc3484-3.c: Likewise.
6638
6639 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6640 and SCTP.
6641
6642 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6643
6644 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6645
6646 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6647
6648 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6649
6650 * po/lt.po: New file. From Lituanian translation team.
6651
6652 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6653
6654 Introduce TLS descriptors for i386 and x86_64.
6655 * include/inline-hashtab.h: New file, copied from 2005's
6656 libiberty, with fix for memory leak imported afterwards by
6657 Glauber de Oliveira Costa.
6658 * elf/tlsdeschtab.h: New file.
6659 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6660 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6661 (CHECK_STATIC_TLS): Move to...
6662 * elf/dynamic-link.h: ... this file.
6663 (TRY_STATIC_TLS): New macro.
6664 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6665 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6666 R_386_TLS_DESC): Define.
6667 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6668 binutils.
6669 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6670 R_X86_64_TLSDESC): Define.
6671 (R_386_NUM, R_X86_64_NUM): Adjust.
6672 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6673 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6674 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6675 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6676 release tlsdesc_table.
6677 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6678 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6679 (elf_machine_rel): Handle R_386_TLS_DESC.
6680 (elf_machine_rela): Likewise.
6681 (elf_machine_lazy_rel): Likewise.
6682 (elf_machine_lazy_rela): Likewise.
6683 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6684 * sysdeps/i386/dl-tlsdesc.S: New file.
6685 * sysdeps/i386/dl-tlsdesc.h: New file.
6686 * sysdeps/i386/tlsdesc.c: New file.
6687 * sysdeps/i386/tlsdesc.sym: New file.
6688 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6689 tlsdesc_table.
6690 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6691 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6692 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6693 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6694 release tlsdesc_table.
6695 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6696 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6697 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6698 (elf_machine_rel): Handle R_X86_64_TLSDESC.
6699 (elf_machine_rela): Likewise.
6700 (elf_machine_lazy_rel): Likewise.
6701 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6702 (__tls_get_addr): Do not declare for non-shared compiles.
6703 * sysdeps/x86_64/dl-tlsdesc.S: New file.
6704 * sysdeps/x86_64/dl-tlsdesc.h: New file.
6705 * sysdeps/x86_64/tlsdesc.c: New file.
6706 * sysdeps/x86_64/tlsdesc.sym: New file.
6707 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6708 tlsdesc_table for both 32- and 64-bit structs.
6709
6710 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6711
6712 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6713 its own function. This reduces the frame setup costs and more.
6714
6715 2008-02-11 Joseph Myers <joseph@codesourcery.com>
6716
6717 [BZ #3406]
6718 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6719 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6720
6721 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6722
6723 * io/openat.c (__openat_2): Also pass fd to __openat.
6724 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6725 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6726
6727 * string/tester.c (test_memcmp): Add a few more tests.
6728 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6729
6730 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6731
6732 * nscd/cache.c (cache_add): Before returning with failure and this
6733 is the first use of the record, mark it as unusable.
6734 * nscd/aicache.c: Don't touch the dataset after cache_add returns
6735 reporting a failure.
6736 * nscd/grpcache.c: Likewise
6737 * nscd/hstcache.c: Likewise.
6738 * nscd/initgrcache.c: Likewise.
6739 * nscd/pwdcache.c: Likewise.
6740 * nscd/servicescache.c: Likewise.
6741
6742 2008-05-10 Roland McGrath <roland@redhat.com>
6743
6744 [BZ #6505]
6745 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6746
6747 2008-05-08 David S. Miller <davem@davemloft.net>
6748
6749 * misc/truncate64.c (truncate64): Use __truncate not truncate.
6750
6751 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6752 (__ieee754_y0l): Likewise.
6753 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6754 (__ieee754_y1l): Likewise.
6755 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6756 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6757 frexpl and ldexpl. math_private.h provides them and the latter
6758 is not even used.
6759 (__log1pl): Use __frexpl.
6760
6761 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6762
6763 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6764 prototypes.
6765 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6766 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6767 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6768 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6769 af==AF_UNSPEC.
6770 (_nss_nis_gethostbyname4_r): New function.
6771 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6772 Change to also handle af==AF_UNSPEC.
6773 (get_tablename): New function. Use it to avoid duplication.
6774 (_nss_nisplus_gethostbyname4_r): New function.
6775 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6776 available.
6777 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6778 * nss/nss.h: Define struct gaih_addrtuple.
6779 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6780 af==AF_UNSPEC.
6781 (_nss_files_gethostbyname4_r): New function.
6782 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6783 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6784 calls.
6785 * resolv/res_query.c (__libc_res_nquery): Take two additional
6786 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6787 look up IPv4 and IPv6.
6788 Change all callers.
6789 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6790 for an additional query and answer buffer. Pass to send_vc and
6791 send_dg.
6792 (send_vc): Send possibly two requests and receive two answers.
6793 (send_dg): Likewise.
6794 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6795 __libc_res_nquery.
6796 (_nss_dns_gethostbyname4_r): New function.
6797 (gaih_getanswer_slice): Likewise.
6798 (gaih_getanswer): Likewise.
6799 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6800 __libc_res_nquery call.
6801 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6802 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6803 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6804 available.
6805
6806 2008-05-05 David S. Miller <davem@davemloft.net>
6807
6808 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6809 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6810
6811 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6812
6813 Fix termios bit macros.
6814 Move *DLY definitions where they belong, in termios.h.
6815 Add *[0-3] definitions.
6816 Fixes confusion between VT and FF.
6817 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6818 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6819 are already defined to avoid collision with termios.h.
6820 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6821 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6822 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6823 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6824 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6825 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6826 VTDLY, VT0, VT1): New macros.
6827 [__USE_GNU] (OLCUC): Change value of macro.
6828 [__USE_XOPEN] (OFILL): New macro.
6829 [__USE_BSD] (CRTSCTS): Change value.
6830 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6831 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6832 (B7200, B14400, B28800, B76800): New macros.
6833
6834 2008-05-01 David S. Miller <davem@davemloft.net>
6835
6836 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6837 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6838 (gen-as-const-headers): Add it.
6839 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6840 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6841 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6842 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6843
6844 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6845 six system call parameters.
6846 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6847
6848 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6849
6850 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6851 RUSAGE_LWP.
6852 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6853 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6854
6855 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6856
6857 * stdlib/tst-setcontext.c: Include unistd.h.
6858
6859 2008-04-25 David S. Miller <davem@davemloft.net>
6860
6861 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6862 Pass "union semun" properly in to sys_ipc, it must be passed
6863 by value, not by reference.
6864
6865 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6866
6867 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6868 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6869 * nscd/connections.c (mem_in_flight): Likewise.
6870
6871 * nscd/nscd.h (dbs): Make hidden.
6872
6873 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6874 Avoid returning -1, return 0 instead.
6875
6876 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6877
6878 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6879
6880 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6881
6882 [BZ #5209]
6883 * sysdeps/unix/sysv/linux/times.c: New file.
6884
6885 [BZ #5381]
6886 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6887 mem_in_flight_list variables. Add new parameter to mempool_alloc
6888 prototype.
6889 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6890 appropriate mem_in_flight element.
6891 (gc): Take allocations which have not yet been committed to the
6892 database into account.
6893 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6894 Reset mem_in_flight before returning.
6895 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6896 cue it up in mem_in_flight_list.
6897 * nscd/aicache.c: Adjust mempool_alloc call.
6898 * nscd/grpcache.c: Likewise.
6899 * nscd/hstcache.c: Likewise.
6900 * nscd/initgrcache.c: Likewise.
6901 * nscd/pwdcache.c: Likewise.
6902 * nscd/servicescache.c: Likewise.
6903 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6904 of -fpie.
6905
6906 * nscd/connections.c (handle_request): Provide better error message
6907 in case SELinux forbids the service.
6908
6909 * version.h (VERSION): Bump to 2.8.90.
6910
6911 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6912
6913 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6914
6915 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6916
6917 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6918 Also use for 32-bit.
6919 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6920 __nextafter instead of nextafter to avoid local PLT.
6921 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6922 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6923
6924 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6925
6926 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6927 __fe_nomask_env.
6928 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6929 <fenv_libc.h> instead of <fenv.h>.
6930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6932
6933 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6934
6935 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6936 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6937 function from fegetexcept and make old name weak alias.
6938 * include/fenv.h: Declare __fegetexcept.
6939 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6940 fegetexcept.
6941 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6942 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6943 to fetestexcept.
6944 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6945 instead of frexpl to avoid local PLT.
6946 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6947 ilogbl to avoid local PLT.
6948 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6949 instead of ldexpl to avoid local PLT.
6950 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6951 __roundl not roundl to avoid local PLT.
6952 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6953 local PLTs. Use __sincosl instead of separate sinl and cosl
6954 calls.
6955 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6956
6957 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6958 version for ppc64 to 2.4.21 since without it makecontext will fail.
6959
6960 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6961 to the ABI in use.
6962 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6963 .__tls_get_addr.
6964 [__powerpc64__] (TLS_GD): Likewise.
6965
6966 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6967
6968 [BZ #4997]
6969 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6970 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6971 mantissa.
6972 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6973 Likewise. Also account for when x is an odd number between 2^52
6974 and 2^53-1.
6975 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6976 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6977 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6978 detect aforementioned erroneous conditions.
6979
6980 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6981
6982 * configure.in: Check for -fno-section-anchors in addition to
6983 -fno-toplevel-reorder.
6984
6985 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6986
6987 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6988
6989 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6990 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6991 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6992 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6993 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6994 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6995
6996 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6997
6998 [BZ #5443]
6999 * time/era.c: Transform __libc_setlocale_lock into rwlock.
7000 * time/alt_digit.c: Likewise.
7001 * wcsmbs/wcsmbsload.c: Likewise.
7002
7003 2008-04-10 Ulrich Drepper <drepper@redhat.com>
7004
7005 * version.h (VERSION): Bump to 2.8.
7006
7007 * timzeone/asia: Update from tzdata2008b.
7008 * timezone/backward: Likewise.
7009 * timezone/europe: Likewise.
7010 * timezone/northamerica: Likewise.
7011 * timezone/southamerica: Likewise.
7012 * timezone/iso3166.tab: Likewise.
7013 * timezone/leapseconds: Likewise.
7014 * timezone/zone.tab: Likewise.
7015 * timezone/private.h: Update from tzcode2008a.
7016 * timezone/zdump.c: Likewise.
7017 * timezone/zic.c: Likewise.
7018
7019 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
7020
7021 [BZ #5741]
7022 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
7023 Define additonal Data Cache Block instruction macros.
7024 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
7025 Replace dcbst with dcbf and sync with sync/isync.
7026
7027 2008-02-21 Alan Modra <amodra@bigpond.net.au>
7028
7029 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
7030 Always set ELF_RTYPE_CLASS_PLT.
7031 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
7032
7033 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
7034
7035 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7036 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7037 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7038 For ISA 2.01 and later replace mftb with mfspr 268.
7039
7040 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
7041
7042 [BZ #5768]
7043 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7044 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7045
7046 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
7047
7048 [BZ #5768]
7049 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7050 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7051 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7052 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7053
7054 2008-04-10 Jakub Jelinek <jakub@redhat.com>
7055
7056 * stdlib/tst-makecontext.c (othervar): New variable.
7057 (cf): Test sign extending the argument to long.
7058
7059 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
7060
7061 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7062 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7063 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7064 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7065 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7066 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7067 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7068
7069 2008-02-22 Alan Modra <amodra@bigpond.net.au>
7070
7071 * elf/Makefile (tests): Substitute tests-vis-yes here.
7072 (tests-vis-yes): Delete.
7073 (modules-name, modules-vis-yes): Similarly.
7074
7075 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
7076
7077 [BZ #4407]
7078 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7079 Preserve sign in signgamp when x is zero.
7080
7081 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
7082
7083 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7084 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7085 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7086 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7087 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7088 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7089
7090 2008-04-09 Ulrich Drepper <drepper@redhat.com>
7091
7092 [BZ #4314]
7093 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7094 buffers.
7095
7096 [BZ #5209]
7097 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7098 a reserved error value.
7099
7100 * stdlib/tst-makecontext.c: Change parameter to cf to negative
7101 value to check for correct sign extension.
7102
7103 [BZ #5436]
7104 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7105 Copy 64-bit parameter values even though this is not required in
7106 the standard.
7107
7108 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7109 PC save.
7110
7111 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
7112
7113 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7114 PC save.
7115
7116 2008-04-09 Jakub Jelinek <jakub@redhat.com>
7117
7118 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7119
7120 2008-04-09 Ulrich Drepper <drepper@redhat.com>
7121
7122 [BZ #5998]
7123 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7124 in line-buffered stream failed.
7125 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7126
7127 2008-04-08 Ulrich Drepper <drepper@redhat.com>
7128
7129 [BZ #6024]
7130 * scripts/abi-versions.awk: If the version specified by
7131 --enable-oldest-abi is older than the first version for this
7132 architecture, use the default version.
7133
7134 * locale/programs/ld-collate.c (collate_read): Ignore script lines
7135 as well when ignoring the whole category.
7136
7137 2008-04-07 Ulrich Drepper <drepper@redhat.com>
7138
7139 [BZ #6042]
7140 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7141 ETHERTYPE_* definitions.
7142 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7143
7144 2008-04-07 Jakub Jelinek <jakub@redhat.com>
7145
7146 * stdlib/mbtowc.c (__no_r_state): Remove.
7147 (mbtowc): New static state variable. Use it instead of
7148 __no_r_state.
7149 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7150 (__wctomb_state): New hidden variable.
7151 (wctomb): Use __wctomb_state instead of __no_r_state.
7152 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7153 (__wctomb_state): New extern decl.
7154 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7155
7156 2008-04-07 Ulrich Drepper <drepper@redhat.com>
7157
7158 [BZ #5475]
7159 * resolv/res_init.c: Handle scope IDs in resolv.conf.
7160
7161 2008-04-07 Jakub Jelinek <jakub@redhat.com>
7162
7163 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7164
7165 2008-04-06 Ulrich Drepper <drepper@redhat.com>
7166
7167 * po/nl.po: Update from translation team.
7168
7169 2008-03-31 Ulrich Drepper <drepper@redhat.com>
7170
7171 [BZ #6007]
7172 * string/strfry.c: Handle empty strings again.
7173
7174 2008-03-30 Ulrich Drepper <drepper@redhat.com>
7175
7176 [BZ #5443]
7177 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7178 before looking for translation.
7179 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7180 * locale/freelocale.c: Likewise.
7181 * locale/newlocale.c: Likewise.
7182 * locale/setlocale.c: Likewise.
7183 Based partially on a patch by ryo@np.css.fujitsu.com.
7184
7185 2008-03-30 Jakub Jelinek <jakub@redhat.com>
7186
7187 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7188 acquiring wrlock. Do conv_tab allocation while holding lock.
7189 * intl/Makefile: Add rules to build and run tst-gettext6.
7190 * intl/tst-gettext6.c: New test.
7191 * intl/tst-gettext6.sh: New file.
7192
7193 2008-03-30 Ulrich Drepper <drepper@redhat.com>
7194
7195 * po/nl.po: Update from translation team.
7196
7197 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7198 provided through st_blksize, try the default size before giving up.
7199
7200 2008-03-29 Ulrich Drepper <drepper@redhat.com>
7201
7202 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7203
7204 [BZ #5939]
7205 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7206
7207 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7208 error message. POSIX today does not require the messages to be in
7209 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
7210
7211 [BZ #5979]
7212 * sunrpc/auth_unix.c: Unify printed strings.
7213 * sunrpc/clnt_tcp.c: Likewise.
7214 * sunrpc/clnt_udp.c: Likewise.
7215 * sunrpc/clnt_unix.c: Likewise.
7216 * sunrpc/svc_tcp.c: Likewise.
7217 * sunrpc/svc_udp.c: Likewise.
7218 * sunrpc/svc_unix.c: Likewise.
7219 * sunrpc/xdr.c: Likewise.
7220 * sunrpc/xdr_array.c: Likewise.
7221 * sunrpc/xdr_rec.c: Likewise.
7222 * sunrpc/xdr_ref.c: Likewise.
7223 * locale/programs/ld-time.c (time_finish): Unify messages.
7224 * locale/programs/locfile.c (handle_copy): Fix typo.
7225 * nscd/nscd.c (options): Fix typo.
7226
7227 [BZ #5995]
7228 * stdlib/strtod_l.c: Use correct sign for result in one more
7229 underflow case.
7230 Patch by Eric Blake <ebb9@byu.net>.
7231
7232 2008-03-27 Jakub Jelinek <jakub@redhat.com>
7233
7234 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7235 and creat system calls.
7236 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7237 call.
7238 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7239 system calls.
7240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7241 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7242 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7243
7244 2008-03-27 Ulrich Drepper <drepper@redhat.com>
7245
7246 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7247 <linux/limits.h> has defined it.
7248 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7249 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7250 headers.
7251 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7252 it instead of ARG_MAX.
7253
7254 2008-03-25 Jakub Jelinek <jakub@redhat.com>
7255
7256 * posix/gai.conf: Fix comment for scope nullbits.
7257 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7258 default to 128 bits for v4 mapped addresses.
7259
7260 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
7261
7262 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7263 ptrace call to get the ieee_instruction_pointer from the kernel.
7264 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7265 ptrace call to set the ieee_instructtion_pointer.
7266 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7267 Add comment that ieee_instruction_pointer is always 0.
7268
7269 2008-03-09 Andreas Jaeger <aj@suse.de>
7270
7271 [BZ #5857]
7272 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7273 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7274 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7275
7276 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7277 (rint_test): Likewise.
7278
7279 2008-03-24 Ulrich Drepper <drepper@redhat.com>
7280
7281 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7282 call.
7283 (__nisfind_server): Similar for open readColdStartFile call.
7284 Patch partially by Jim Meyering.
7285 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7286 around internal_setent call.
7287
7288 * po/vi.po: New Vietnamese translation.
7289
7290 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7291 ADJ_OFFSET_SS_READ.
7292
7293 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7294 remove CLONE_STOPPED.
7295
7296 2008-02-10 Jim Meyering <meyering@redhat.com>
7297
7298 Remove useless "if" before "free":
7299 * elf/ldconfig.c (parse_conf_include): Likewise.
7300 * gmon/gmon.c (weak_alias): Likewise.
7301 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7302 * inet/rcmd.c (__validuser2_sa): Likewise.
7303 * intl/bindtextdom.c (set_binding_values): Likewise.
7304 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7305 * libio/genops.c (save_for_backup): Likewise.
7306 * libio/wgenops.c (save_for_wbackup): Likewise.
7307 * locale/programs/ld-collate.c (collate_read): Likewise.
7308 * locale/programs/linereader.c (get_string): Likewise.
7309 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7310 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7311 * resolv/res_debug.c (do_section): Likewise.
7312 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7313 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7314 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7315 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7316 * time/tzset.c (tzset_internal): Likewise.
7317
7318 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7319
7320 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7321 of ASSEMBLER.
7322
7323 2008-03-11 Ulrich Drepper <drepper@redhat.com>
7324
7325 [BZ #5903]
7326 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7327 not stream for output file. Open output file here.
7328 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7329 and output file name.
7330 (process_fd): Likewise.
7331 (process_file): Likewise.
7332 (main): Adjust callers of changed functions.
7333 * iconv/iconv_prog.h: Adjust prototype.
7334
7335 2008-03-09 Andreas Jaeger <aj@suse.de>
7336
7337 [BZ #5753]
7338 * sysdeps/ia64/ieee754.h: Use protected namespace
7339 __BIG_ENDIAN/__LITTLE_ENDIAN.
7340 * sysdeps/ieee754/ieee754.h: Likewise.
7341 Patch by Aurelien Jarno <aurelien@aurel32.net>.
7342
7343 2008-03-08 Roland McGrath <roland@frob.com>
7344
7345 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7346 ignore a signal that came from a machine exception, treat it as a
7347 fatal core-dump signal instead.
7348 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7349
7350 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7351 Clear DF bit in thread state's eflags.
7352 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7353
7354 2008-03-08 Ulrich Drepper <drepper@redhat.com>
7355
7356 [BZ #5774]
7357 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7358 of NAN(...) sequence.
7359 * stdlib/Makefile (tests): Add tst-strtod6.
7360 * stdlib/tst-strtod6.c: New file.
7361
7362 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7363
7364 [BZ #5762]
7365 * posix/getopt.c (_getopt_internal_r): Clarify error message by
7366 putting offending option character in quotes. Clean up error
7367 messages.
7368 * po/be.po: Adjust msgstr in translation file.
7369 * po/bg.po: Likewise.
7370 * po/ca.po: Likewise.
7371 * po/cs.po: Likewise.
7372 * po/da.po: Likewise.
7373 * po/de.po: Likewise.
7374 * po/es.po: Likewise.
7375 * po/fr.po: Likewise.
7376 * po/hr.po: Likewise.
7377 * po/ko.po: Likewise.
7378 * po/nl.po: Likewise.
7379 * po/rw.po: Likewise.
7380 * po/sk.po: Likewise.
7381 * po/sv.po: Likewise.
7382 * po/tr.po: Likewise.
7383 * po/zh_CN.po: Likewise.
7384 * po/zh_TW.po: Likewise.
7385
7386 [BZ #5760]
7387 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7388 Patch by Roland Bless <roland@bless.de>.
7389
7390 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7391 .o file.
7392 * elf/Makefile (routines): Add dl-sysdep.
7393 (elide-routines.os): Likewise.
7394
7395 2008-03-07 Ulrich Drepper <drepper@redhat.com>
7396
7397 [BZ #5786]
7398 * elf/dl-sysdep.c: Undefine ROUND after use.
7399 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7400 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7401 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7402 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7403 to ...
7404 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7405 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7406 if necessary.
7407 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7408
7409 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7410 _dl_tls_get_addr_soft element.
7411 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7412 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7413 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7414 GLRO.
7415 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7416 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7417 of internal_function.
7418
7419 * stdlib/Makefile (aux): Add tens_in_limb.
7420 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7421 * stdlib/tens_in_limb.c: ...here. New file.
7422
7423 [BZ #5778]
7424 * sysdeps/unix/sysv/linux/pathconf.h: Declare
7425 __statfs_chown_restricted.
7426 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7427 for _PC_CHOWN_RESTRICTED.
7428 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7429 Implement __statfs_chown_restricted.
7430 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7431 _POSIX_CHOWN_RESTRICTED value to zero.
7432 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7433 defined to zero.
7434
7435 * sysdeps/x86_64/rtld-memset.c: New file.
7436
7437 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
7438
7439 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7440
7441 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7442 Barcelona machine. Make default fall through branch of
7443 __x86_64_preferred_memory_instruction check as the integer code path.
7444
7445 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7446
7447 * sysdeps/x86_64/cacheinfo.c
7448 (__x86_64_preferred_memory_instruction): New variable.
7449 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7450
7451 * sysdeps/x86_64/memset.S: Rewrite.
7452
7453 2008-03-04 Jakub Jelinek <jakub@redhat.com>
7454
7455 * include/stdio.h (__asprintf_chk, __dprintf_chk,
7456 __obstack_printf_chk): New prototypes.
7457 (__vasprintf_chk, __vdprintf_chk,
7458 __obstack_vprintf_chk): Likewise.
7459 Add libc_hidden_proto.
7460 * libio/obprintf.c
7461 (_IO_obstack_jumps): No longer static, add attribute_hidden.
7462 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7463 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7464 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7465 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7466 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7467 __obstack_vprintf_chk): New prototypes.
7468 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7469 obstack_vprintf): New inlines.
7470 * debug/dprintf_chk.c: New file.
7471 * debug/vdprintf_chk.c: New file.
7472 * debug/asprintf_chk.c: New file.
7473 * debug/vasprintf_chk.c: New file.
7474 * debug/obprintf_chk.c: New file.
7475 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7476 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7477 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7478 @@GLIBC_2.8.
7479 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7480 vdprintf_chk and obprintf_chk, set CFLAGS for them.
7481 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7482 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7483 libc_hidden_proto.
7484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7485 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7486 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7487 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7488 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7489 @@GLIBC_2.8.
7490 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7491 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7492 obstack_vprintf_chk.
7493 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7494 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7495 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7496 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7497 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7498 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7499
7500 2008-03-04 Ulrich Drepper <drepper@redhat.com>
7501
7502 [BZ #5779]
7503 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7504 Patch by Roy Marples <roy@marples.name>.
7505
7506 [BZ #5736]
7507 * malloc/malloc.c: Fix typo in comment.
7508
7509 [BZ #5627]
7510 * locale/iso-639.def: Add Shuswap.
7511
7512 2008-02-25 Jakub Jelinek <jakub@redhat.com>
7513
7514 [BZ #5790]
7515 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7516 overwrite *h_errnop/*errnop values from getanswer_r in case of
7517 failure.
7518
7519 2008-03-03 Ulrich Drepper <drepper@redhat.com>
7520
7521 [BZ #5818]
7522 * nscd/connections.c (dbs): Add initializers for .suggested_module.
7523 (verify_persistent_db): Remove one unnecessary test and add a new one
7524 for bad configuration.
7525 (nscd_init): Improve error reported when persistent database cannot
7526 be reused.
7527 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7528 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7529 .suggested_module and .max_db_size and case config file says the
7530 values are zero.
7531 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7532
7533 [BZ #5854]
7534 * nis/ypclnt.c (yp_order): Fix handling of return value of
7535 do_ypcall_tr call.
7536 Patch by Jeff Moyer <jmoyer@redhat.com>.
7537
7538 * po/fr.po: Update from translation team.
7539
7540 2008-02-22 Andreas Jaeger <aj@suse.de>,
7541 Carlos O'Donell <carlos@systemhalted.org>
7542
7543 [BZ #5012]
7544 * FAQ.in: Describe why glibc needs to be compiled with
7545 optimization.
7546
7547 2008-02-19 Roland McGrath <roland@redhat.com>
7548
7549 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7550
7551 2008-02-15 Ulrich Drepper <drepper@redhat.com>
7552
7553 [BZ #5737]
7554 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7555 __USE_MISC is defined.
7556
7557 2008-02-10 Ulrich Drepper <drepper@redhat.com>
7558
7559 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7560 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7561 sys/timerfd.h.
7562 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7563 timerfd_gettime, timerfd_settime.
7564 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7565 timerfd_gettime, timerfd_settime for GLIBC_2.8.
7566
7567 2008-02-08 Roland McGrath <roland@redhat.com>
7568
7569 * elf/elf.h (NT_PPC_SPE): New macro.
7570
7571 2008-02-06 Roland McGrath <roland@redhat.com>
7572
7573 * Makerules ($(common-objpfx)sysd-rules):
7574 Depend on $(sysdep-makeconfigs).
7575
7576 2008-01-31 Roland McGrath <roland@redhat.com>
7577
7578 [BZ #5442]
7579 * configure.in: Use -print-file-name if it yields a directory,
7580 for each of include and include-fixed.
7581 * configure: Regenerated.
7582
7583 * Makeconfig (sysd-rules-targets): New variable.
7584 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7585 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7586
7587 2008-01-30 Roland McGrath <roland@redhat.com>
7588
7589 * manual/libc.texinfo: Update back-cover text.
7590
7591 * elf/elf.h (NT_386_TLS): New macro.
7592
7593 2008-01-29 Roland McGrath <roland@redhat.com>
7594
7595 * Makeconfig (sysd-rules-patterns): New variable.
7596 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7597 (check-inhibit-asm): New canned sequence, replaces ...
7598 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7599 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7600 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7601 (CFLAGS-rtld): Variable removed.
7602
7603 2008-01-24 Roland McGrath <roland@redhat.com>
7604
7605 * configure.in: Let configure fragments set base_os.
7606 * configure: Regenerated.
7607
7608 2008-01-22 Ulrich Drepper <drepper@redhat.com>
7609
7610 * po/ko.po: Update from translation team.
7611
7612 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
7613
7614 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7615
7616 2008-01-12 Andreas Jaeger <aj@suse.de>
7617
7618 [BZ #5040]
7619 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7620 Add EPOLLRDHUP.
7621
7622 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
7623
7624 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7625 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7626 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7627
7628 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7629
7630 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7631 * elf/dl-close.c (_dl_close): Check for it.
7632 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7633 (_dl_allocate_static_tls): Likewise.
7634 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7635 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7636 to it.
7637 * elf/tst-tls16.c: New file.
7638 * elf/tst-tlsmod16a.c: New file.
7639 * elf/tst-tlsmod16b.c: New file.
7640 * elf/Makefile: Add rules to build and run tst-tls16.
7641
7642 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7643
7644 [BZ #5628]
7645 * bits/shm.h: Fix comment describing shmid_ds.
7646 * sysdeps/gnu/bits/shm.h: Likewise.
7647 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7648 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7649 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7650 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7651 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7652 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7653 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7654 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7655 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7656
7657 [BZ #5607]
7658 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7659 prototypes.
7660 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7661 additional suffixes.
7662 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7663 Add optional functions mq_timedreceive and mq_timedsend.
7664 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7665 * conform/data/pthread.h-data: Fix prototype of
7666 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7667 * conform/data/semaphore.h-data: Allow time.h definitions.
7668 * conform/data/signal.h-data: Likewise.
7669 * conform/data/stdio.h-data: getw and putw are not required in v6.
7670 * conform/data/stdlib.h-data: Change setstate prototype.
7671 * conform/data/string.h-data: Fix strerror_r prototype.
7672 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7673 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7674 Fix readlink prototype.
7675 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7676 in6addr_loopback.
7677 * inet/netinet/in.h: Cleanup namespace.
7678 * posix/regex.h: Likewise.
7679 * resolv/netdb.h: Likewise.
7680 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7681 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7682 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7683 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7684 of names of in in6_addr.
7685 (default_precedence): Likewise.
7686 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7687 NULL definition.
7688
7689 2008-01-15 Ulrich Drepper <drepper@redhat.com>
7690
7691 * conform/data/fmtmsg.h-data: Add missing allows.
7692 * conform/data/ftw.h-data: Likewise.
7693 * conform/data/inttypes.h-data: Likewise.
7694 * conform/data/math.h-data: Likewise.
7695 * conform/data/signal.h-data: Likewise.
7696 * conform/data/net/if.h-data: Likewise.
7697 * conform/data/netinet/in.h-data: Likewise.
7698 * conform/data/sys/socket.h-data: Likewise.
7699
7700 [BZ #5614]
7701 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7702 (__strtok_r): Simplify.
7703 * string/tester.c (test_strtok_r): Add test case for futile search
7704 with single-character seach string.
7705
7706 2008-01-12 Ulrich Drepper <drepper@redhat.com>
7707
7708 * po/ko.po: Update from translation team.
7709
7710 2008-01-11 Andreas Jaeger <aj@suse.de>
7711
7712 [BZ #5600]
7713 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7714 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7715 kernel header.
7716
7717 2008-01-10 Ulrich Drepper <drepper@redhat.com>
7718
7719 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7720 native interface lookup in all the relevant places.
7721
7722 2008-01-10 Jakub Jelinek <jakub@redhat.com>
7723 Ulrich Drepper <drepper@redhat.com>
7724
7725 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7726 field. Use sockaddr_in6 for source_addr.
7727 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
7728 (match_prefix): Likewise.
7729 (get_label): Likewise.
7730 (get_precedence): Likewise.
7731 (rfc3484_sort): Change to use indirect access to results array.
7732 Adjust to use of sockaddr_in6. Replace service_order test with
7733 simple index comparison.
7734 (getaddrinfo): Define order array. Initialize it. Don't initialize
7735 service_order field. Adjust qsort_t calls. Access sorted result
7736 array indirectly through order array.
7737 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7738 * posix/tst-rfc3484-2.c: Likewise.
7739 * posix/tst-rfc3484-3.c: Likewise.
7740
7741 2008-01-09 Ulrich Drepper <drepper@redhat.com>
7742
7743 [BZ #5541]
7744 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7745 pollfd structures.
7746 Patch by André Cruz.
7747
7748 [BZ #5545]
7749 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7750 (clnt_spcreateerror): Likewise.
7751
7752 [BZ #5553]
7753 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7754 (public_mEMALIGn): Likewise.
7755 Patch mostly by Daniel Jacobowitz.
7756
7757 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7758
7759 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7760 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7761 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7762 * stdlib/tst-makecontext2.c: New test.
7763
7764 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7765
7766 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7767 defined.
7768 (REINIT_PARAMS): Likewise. Undefine before end of file.
7769 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7770 transliteration hooks and REINIT_PARAMS afterwards.
7771 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7772 status.
7773 (REINIT_PARAMS): Define.
7774 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7775 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7776 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7777 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7778 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7779 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7780 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7781 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7782 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7783 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7784 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7785 * iconvdata/tst-iconv7.c: New test.
7786
7787 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7788
7789 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7790
7791 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7792
7793 [BZ #5112]
7794 * nscd/connections.c (restart): Fix condition.
7795
7796 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7797
7798 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7799 __ctype_toupper_loc): Add __THROW.
7800
7801 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7802
7803 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7804 recognition of interface family.
7805
7806 * posix/getconf.c: Update copyright year.
7807 * nss/getent.c: Likewise.
7808 * iconv/iconvconfig.c: Likewise.
7809 * iconv/iconv_prog.c: Likewise.
7810 * elf/ldconfig.c: Likewise.
7811 * catgets/gencat.c: Likewise.
7812 * csu/version.c: Likewise.
7813 * elf/ldd.bash.in: Likewise.
7814 * elf/sprof.c (print_version): Likewise.
7815 * locale/programs/locale.c: Likewise.
7816 * locale/programs/localedef.c: Likewise.
7817 * nscd/nscd.c (print_version): Likewise.
7818 * debug/xtrace.sh: Likewise.
7819 * malloc/memusage.sh: Likewise.
7820 * malloc/mtrace.pl: Likewise.
7821 * debug/catchsegv.sh: Likewise.
7822
7823 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7824
7825 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7826 second lookup.
7827
7828 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7829
7830 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7831 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7832
7833 2007-12-17 Roland McGrath <roland@redhat.com>
7834
7835 * inet/ether_line.c (ether_line): Remove unused variable.
7836
7837 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7838
7839 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7840 and winp.
7841 * login/openpty.c (openpty): Likewise.
7842 * login/pty.h (openpty, forkpty): Likewise.
7843 * manual/terminal.texi (openpty, forkpty): Likewise.
7844
7845 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7846
7847 * malloc/malloc.c (public_cALLOc): For arenas other than
7848 main_arena, count all bytes inside the mprotect_size range of the
7849 heap as uninitialized.
7850
7851 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7852
7853 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7854 executable stacks.
7855
7856 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7857 mTRIm for all of them.
7858 (mTRIm): Additionally iterate over all free blocks and use madvise
7859 to free memory for all those blocks which contain at least one
7860 memory page.
7861 * malloc/tst-trim1.c: New file.
7862 * malloc/Makefile (tests): Add tst-trim1.
7863
7864 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7865
7866 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7867
7868 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7869 First cast argument to long
7870 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7871 Return long.
7872 (__vdso_clock_gettime): Likewise.
7873 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7874 return long.
7875
7876 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7877
7878 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7879 * locale/nl_langinfo_l.c: Real implementation, copied from
7880 nl_langinfo.c.
7881 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7882
7883 2007-12-01 Jim Meyering <meyering@redhat.com>
7884
7885 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7886 that would inhibit utf8-optimization of a regexp containing line-
7887 or buffer-anchors, e.g., `^', `$'.
7888
7889 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7890
7891 * time/bug-getdate1.c (do_test): Don't use century values which
7892 aren't valid on 32-bit systems.
7893
7894 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7895
7896 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7897 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7898 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7899 __strcat_g, __strncat_g): Add __asm__.
7900
7901 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7902
7903 [BZ #5477]
7904 * io/fchmodat.c: Fix typo in stub_warning use.
7905 Patch by Petr Salinger.
7906
7907 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7908
7909 * iconvdata/hp-thai8.c: New file.
7910 * iconvdata/Makefile: Add rules for hp-thai8.c.
7911 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7912 * iconvdata/gconv-modules: Likewise.
7913
7914 [BZ #5464]
7915 * iconvdata/hp-greek8.c: New file.
7916 * iconvdata/Makefile: Add rules for hp-greek8.c.
7917 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7918 * iconvdata/gconv-modules: Likewise.
7919
7920 [BZ #5463]
7921 * iconvdata/hp-turkish8.c: New file.
7922 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7923 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7924 * iconvdata/gconv-modules: Likewise.
7925
7926 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7927 (shrink_heap): ... this new function.
7928 (heap_trim): Call shrink_heap instead of grow_heap.
7929
7930 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7931 case don't call alloc_perturb.
7932
7933 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7934
7935 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7936 possible.
7937 * sysdeps/unix/sysv/linux/kernel-features.h
7938 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7939 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7940
7941 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7942
7943 [BZ #5424]
7944 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7945 * stdio-common/Makefile (tests): Add bug22.
7946 * stdio-common/bug22.c: New file.
7947
7948 [BZ #5451]
7949 * time/getdate.c: Fix filling in default values.
7950 * time/bug-getdate1.c: New file.
7951 * time/Makefile: Add rules to build and run bug-getdate1.
7952
7953 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7954 * iconvdata/ebcdic-es.c: Likewise.
7955 * iconvdata/ebcdic-es-a.c: Likewise.
7956 * iconvdata/ebcdic-uk.c: Likewise.
7957 * iconvdata/iso8859-16.c: Likewise.
7958 * iconvdata/viscii.c: Likewise.
7959 * iconvdata/iso8859-9e.c: Likewise.
7960 * iconvdata/Makefile: Adjust appropriately.
7961
7962 [BZ #5428]
7963 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7964 __need_wint_t.
7965
7966 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7967
7968 [BZ #5427]
7969 * iconvdata/hp-roman9.c: New file.
7970 * iconvdata/Makefile: Add rules for hp-roman9.c.
7971 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7972 * iconvdata/gconv-modules: Likewise.
7973
7974 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7975 * iconvdata/Makefile: Adjust appropriately.
7976
7977 [BZ #5441]
7978 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7979 structure, it's allocated with alloca.
7980 * stdio-common/Makefile (tests): Add bug21.
7981 * stdio-common/bug21.c: New file.
7982
7983 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7984
7985 [BZ #5452]
7986 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7987 keyword for gcc's braced-groups.
7988
7989 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7990
7991 [BZ #5454]
7992 * inet/ether_line.c: Strip hostname of whitespaces.
7993 * inet/Makefile (tests): Add tst-ether_line.
7994 * inet/tst-ether_line.c: New file.
7995
7996 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7997
7998 [BZ #5439]
7999 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
8000
8001 [BZ #5435]
8002 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
8003
8004 * stdlib/tst-setcontext.c: Catch the case where the links gets
8005 messed up and we do not reach main again.
8006
8007 * po/ca.po: Update from translation team.
8008
8009 2007-11-26 Ulrich Drepper <drepper@redhat.com>
8010
8011 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
8012 * posix/regex.h (REG_ENOSYS): Likewise.
8013 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
8014
8015 2007-11-25 Ulrich Drepper <drepper@redhat.com>
8016
8017 * nscd/nscd.h (MAX_STACK_USE): Define.
8018 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
8019 (gc): Initialize stack_used based on allocation in prune_cache.
8020 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
8021 Clear array before use.
8022
8023 * nscd/aicache.c (addhstaiX): Update statistics counter in case
8024 memory allocation failed.
8025 * nscd/hstcache.c (cache_addhst): Likewise.
8026 * nscd/grpcache.c (cache_addgr): Likewise.
8027 * nscd/servicescache.c (cache_addserv): Likewise.
8028 * nscd/pwdcache.c (cache_addpw): Likewise.
8029 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8030
8031 2007-11-23 Ulrich Drepper <drepper@redhat.com>
8032
8033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
8034 and creat system calls.
8035
8036 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8037
8038 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
8039
8040 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8041 Add netiucv/iucv.h.
8042 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8043 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8044 protocol.
8045 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8046 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8047 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8048
8049 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
8050
8051 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8052 strncat): Define as macros to avoid compile errors.
8053
8054 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
8055 creat entries.
8056
8057 2007-11-22 Ulrich Drepper <drepper@redhat.com>
8058
8059 [BZ #5382]
8060 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8061 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8062 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8063 overflow it.
8064 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8065
8066 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8067 Return zero in case the thread library is not NPTL.
8068
8069 [BZ #5375]
8070 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8071 initializing interface list.
8072
8073 [BZ #5378]
8074 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8075 use result of nss_getgrgid_r if nothing was found. For other
8076 error return with a failure.
8077 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8078
8079 * locale/programs/ld-collate.c (collate_read): Fix loop to match
8080 macro name.
8081
8082 2007-11-19 Ulrich Drepper <drepper@redhat.com>
8083
8084 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8085 (get_scope): For IPv4 scope, use scopes table.
8086 (fini): Free scopes table if necessary.
8087 (free_scopelist): New function.
8088 (scopecmp): New function.
8089 (gaiconf_init): Also handle scopev4 entries.
8090 * posix/tst-rfc3484.c (do_test): Initialize scopes.
8091 * posix/tst-rfc3484-2.c (do_test): Likewise.
8092 * posix/gai.conf: Document scopev4 defaults.
8093 * posix/Makefile (tests): Add tst-rfc3484-3.
8094 * posix/tst-rfc3484-3.c: New file.
8095
8096 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8097 Teredo tunnels.
8098 * posix/gai.conf: Update for current default tables.
8099
8100 2007-11-19 Ulrich Drepper <drepper@redhat.com>
8101
8102 * po/tr.po: Update from translation team.
8103
8104 2007-11-18 Roland McGrath <roland@frob.com>
8105
8106 * manual/arith.texi (Remainder Functions): Spelling fix.
8107 From Shaun Silk <genix@mysoul.com.au>.
8108
8109 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8110
8111 2007-11-17 Ulrich Drepper <drepper@redhat.com>
8112
8113 * po/zh_CN.po: Update from translation team.
8114
8115 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8116 Add sys/signalfd.h and sys/eventfd.h.
8117
8118 2007-11-15 Bruno Haible <bruno@clisp.org>
8119
8120 [BZ #5346]
8121 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8122 union.
8123 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8124 (DCIGETTEXT): Change the allocation of the 'search' variable so that
8125 it needs only fixed stack space. Delay the initialization of
8126 msgid_len until it is needed.
8127
8128 2007-11-15 Andreas Jaeger <aj@suse.de>
8129
8130 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8131 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8132
8133 2007-11-15 Ulrich Drepper <drepper@redhat.com>
8134
8135 * po/ko.po: Update from translation team.
8136
8137 2007-11-14 Ulrich Drepper <drepper@redhat.com>
8138
8139 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8140 significantly. The device type is also part of the ifinfomsg data.
8141
8142 * po/sv.po: Update from translation team.
8143 * po/nl.po: Likewise.
8144
8145 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8146 to wake up in 24 hours.
8147
8148 * nscd/gai.c (__ioctl): Define. Include check_native.c.
8149
8150 2007-11-13 Ulrich Drepper <drepper@redhat.com>
8151
8152 * po/cs.po: Update from translation team.
8153 * po/pl.po: Likewise.
8154
8155 * include/ifaddrs.h: Remove in6ai_temporary.
8156 (struct in6addrinfo): Add index element.
8157 Declare __check_native.
8158 * inet/Makefile (aux): Add check_native.
8159 * sysdeps/unix/sysv/linux/check_native.c: New file.
8160 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8161 IFA_F_TEMPORARY. Pass back ifa_index.
8162 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8163 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
8164 call __check_native if necessary.
8165 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
8166 to sort addresses. Pass information about the results.
8167 * posix/tst-rfc3484.c: Adjust for addition of index field and change
8168 of rfc3484_sort interface.
8169 * posix/tst-rfc3484-2.c: Likewise.
8170
8171 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
8172 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8173 for _quicksort.
8174 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8175 (qsort_r): Renamed from qsort. Take additional parameter and pass it
8176 on as third parameter to compare function and _quicksort.
8177 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8178 to the compare function.
8179 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8180 * Versions.def: Add GLIBC_2.8 for libc.
8181
8182 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8183 * posix/tst-rfc3484-2.c: Likewise.
8184
8185 * include/kernel-features.h: Moved to...
8186 * sysdeps/mach/hurd/kernel-features.h: ...here.
8187
8188 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
8189
8190 * sysdeps/i386/i586/memcpy_chk.S: New file.
8191 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8192 * sysdeps/i386/i586/memset_chk.S: Likewise.
8193
8194 2007-11-12 Ulrich Drepper <drepper@redhat.com>
8195
8196 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8197 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8198 list of interfaces. Also store prefix length.
8199 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8200 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8201 prefix if source and destination address are in the same subnet.
8202 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
8203 Always look for matching record in in6ai list.
8204 Correct source_addr_len value for IPv6->IPv4 converted records.
8205
8206 2007-11-11 Roland McGrath <roland@frob.com>
8207
8208 * include/kernel-features.h: New file.
8209
8210 2007-11-10 Ulrich Drepper <drepper@redhat.com>
8211
8212 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8213 complications for 64-bit platforms.
8214
8215 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8216 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
8217 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8218 open64_2.
8219 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8220 entries.
8221 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8222 * sysdeps/wordsize-64/alphasort.c: New file.
8223 * sysdeps/wordsize-64/alphasort64.c: New file.
8224 * sysdeps/wordsize-64/fseeko.c: New file.
8225 * sysdeps/wordsize-64/fseeko64.c: New file.
8226 * sysdeps/wordsize-64/ftello.c: New file.
8227 * sysdeps/wordsize-64/ftello64.c: New file.
8228 * sysdeps/wordsize-64/ftw.c: New file.
8229 * sysdeps/wordsize-64/ftw64.c: New file.
8230 * sysdeps/wordsize-64/iofgetpos.c: New file.
8231 * sysdeps/wordsize-64/iofgetpos64.c: New file.
8232 * sysdeps/wordsize-64/iofopen.c: New file.
8233 * sysdeps/wordsize-64/iofopen64.c: New file.
8234 * sysdeps/wordsize-64/iofsetpos.c: New file.
8235 * sysdeps/wordsize-64/iofsetpos64.c: New file.
8236 * sysdeps/wordsize-64/lockf.c: New file.
8237 * sysdeps/wordsize-64/lockf64.c: New file.
8238 * sysdeps/wordsize-64/mkostemp.c: New file.
8239 * sysdeps/wordsize-64/mkostemp64.c: New file.
8240 * sysdeps/wordsize-64/mkstemp.c: New file.
8241 * sysdeps/wordsize-64/mkstemp64.c: New file.
8242 * sysdeps/wordsize-64/scandir.c: New file.
8243 * sysdeps/wordsize-64/scandir64.c: New file.
8244 * sysdeps/wordsize-64/tmpfile.c: New file.
8245 * sysdeps/wordsize-64/tmpfile64.c: New file.
8246 * sysdeps/wordsize-64/versionsort.c: New file.
8247 * sysdeps/wordsize-64/versionsort64.c: New file.
8248 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8249 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8250 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8251 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8252 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8253 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8254 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8255 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8256 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8257 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8258 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8259 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8260
8261 * crypt/sha256-crypt.c: Fix a comment.
8262 * crypt/sha512-crypt.c: Likewise.
8263
8264 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
8265
8266 * sysdeps/x86_64/memset.S: Add sfence after movnti.
8267
8268 2007-11-07 Ulrich Drepper <drepper@redhat.com>
8269
8270 [BZ #5277]
8271 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8272 because output buffer is too small break, don't loop.
8273 * iconvdata/Makefile (tests): Add bug-iconv6.
8274 * iconvdata/bug-iconv6.c: New file.
8275
8276 2007-11-06 Ulrich Drepper <drepper@redhat.com>
8277
8278 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8279 with size_t type.
8280 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8281 size_t. Add casts where needed.
8282
8283 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8284 old headers, don't call avc_has_perm if we don't have the
8285 permission information.
8286
8287 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
8288
8289 * elf/rtld.c (dl_main): Use the page size to find the map start.
8290
8291 2007-11-05 Ulrich Drepper <drepper@redhat.com>
8292
8293 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8294 Patch by Szymon Siwek <sls@poczta.wp.pl>.
8295
8296 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8297 when the lookup call failed.
8298
8299 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8300 Add prune_cond and wakeup_time.
8301 (CACHE_PRUNE_INTERNAL): Define.
8302 Update declarations of prune_cache and setup_thread.
8303 * nscd/connections.c (dbs): Update initializers.
8304 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8305 (nscd_init): Default number of threads is now 4.
8306 (invalidate_cache): Take lock before calling prune_cache.
8307 (handle_request): If SELinux forbids the request, say so.
8308 (readylist_cond): Use static initializer.
8309 (nscd_run_prune): New function. Used only by pruning threads.
8310 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
8311 here.
8312 (fd_ready): Update nscd_run reference.
8313 (start_threads): No need to initialize readylist_cond.
8314 Start pruning threads separately.
8315 * nscd/nscd_setup_thread.c: Change return value type to int and always
8316 return 0.
8317 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8318 to int and return nonzero value if we can use the TID address hack.
8319 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8320 the database is later than the new entry's timeout, update the
8321 wakeup time and wake the cleanup thread.
8322 (prune_cache): Return seconds the next entry in the database is still
8323 valid. Remove locking for pruning here.
8324 * nscd/nscd.conf: Document default number of threads.
8325
8326 2007-10-31 Ulrich Drepper <drepper@redhat.com>
8327
8328 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8329 stack is properly aligned for the target function.
8330 Correct unwind info.
8331
8332 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8333 when using auditing libraries.
8334
8335 2007-10-29 Ulrich Drepper <drepper@redhat.com>
8336
8337 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8338 _nss_dns_getnetbyaddr2_r.
8339 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
8340 extra parameter to getanswer_r.
8341 (_nss_dns_getnetbyaddr_r): Now a wrapper around
8342 _nss_dns_getnetbyaddr2_r.
8343
8344 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8345 gethstbynm3_r.
8346 * nscd/gethstbynm2_r.c: Remove.
8347 * nscd/gethstbynm3_r.c: New file.
8348 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8349 __gethostbyaddr_r.
8350 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
8351 __gethostbyaddr_r compatibility wrapper.
8352 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
8353 determining timeout of entry.
8354 (lookup): Take new parameter and pass it to __gethostbyname3_r and
8355 __gethostbyaddr2_r.
8356 (addhstbyX): Pass reference to variable for TTL to lookup and
8357 cache_addhst.
8358 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8359 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8360 and __nss_next2. Remove __nss_services_lookup.
8361 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
8362 Add compat wrapper.
8363 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8364 __nss_next2.
8365 * nss/getXXent_r.c: Likewise.
8366 * nss/getnssent_r.c: Likewise.
8367 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
8368 does not exist in module, try the optional second name.
8369 (__nss_next2): New function.
8370 (__nss_next): Now wrapper around __nss_next2.
8371 * nss/nsswitch.h: Adjust __nss_lookup prototype.
8372 Declare __nss_next2.
8373 Adjust definition of db_lookup_function type.
8374 * nss/service-lookup.c: Define NO_COMPAT.
8375 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8376 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8377 * inet/ether_ntoh.c: Likewise.
8378 * sunrpc/netname.c: Likewise.
8379 * sunrpc/publickey.c: Likewise.
8380 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
8381 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8382 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8383 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8384 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8385
8386 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8387
8388 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8389
8390 2007-10-28 Ulrich Drepper <drepper@redhat.com>
8391
8392 [BZ #5204]
8393 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8394 * crypt/sha512c-test.c: Likewise.
8395
8396 [BZ #5225]
8397 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8398 to keep track of end of %[ format string element.
8399 * stdio-common/Makefile (tests): Add bug20.
8400 * stdio-common/bug20.c: New file.
8401
8402 [BZ #5222]
8403 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8404 path elements in counting mode.
8405
8406 2007-10-27 Andreas Jaeger <aj@suse.de>
8407
8408 [BZ #5040]
8409 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8410
8411 [BZ #3112]
8412 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8413 (__cleanup): Free shared library when exiting.
8414 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8415 (__cleanup): Free shared library when exiting.
8416
8417 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
8418
8419 [BZ #2549]
8420 * math/libm-test.inc (check_float_internal): Support
8421 denormalized return.
8422
8423 2007-10-23 Andreas Jaeger <aj@suse.de>
8424
8425 [BZ #5208]
8426 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8427 __LONG_LONG_PAIR to handle little endian byte order.
8428 Suggested by abhishekrai@google.com
8429
8430 2007-10-27 Ulrich Drepper <drepper@redhat.com>
8431
8432 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8433
8434 2007-10-26 Ulrich Drepper <drepper@redhat.com>
8435
8436 * nscd/cache.c (prune_cache): Move test for modified file outside
8437 of locking.
8438
8439 2007-10-21 Andreas Jaeger <aj@suse.de>
8440
8441 * manual/texinfo.tex: Update to latest version.
8442
8443 * manual/sysinfo.texi (System Parameters): Fix Formatting.
8444
8445 * manual/arith.texi (Status bit operations): Fix formatting.
8446
8447 * manual/errno.texi (Error Messages): Fix formatting.
8448
8449 * manual/sysinfo.texi (System Parameters): Fix formatting.
8450
8451 * manual/libc.texinfo: Update VERSION and UPDATED.
8452
8453 2007-10-19 Roland McGrath <roland@redhat.com>
8454
8455 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8456
8457 2007-10-06 David S. Miller <davem@davemloft.net>
8458
8459 * configure.in: Add sparcv9v2 and sparc64v2.
8460 * scripts/config.sub: Likewise.
8461 * configure: Regenerate.
8462 * elf/elf.h (HWCAP_SPARC_N2): New.
8463 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8464 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8465 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8466 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8467 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8468 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8469 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8470
8471 2007-10-18 Ulrich Drepper <drepper@redhat.com>
8472
8473 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8474 even if the poll result indicates there is data to read.
8475 Patch by Jeff Moyer <jmoyer@redhat.com>.
8476
8477 2007-10-18 Roland McGrath <roland@redhat.com>
8478
8479 * elf/elf.h (NT_PPC_VMX): New macro.
8480
8481 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8482
8483 * version.h (VERSION): Set to 2.7.90.
8484
8485 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8486
8487 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
8488 weak_alias.
8489
8490 2007-10-17 Roland McGrath <roland@frob.com>
8491
8492 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8493 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8494
8495 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8496
8497 * version.h (VERSION): Bump to 2.7.
8498 * include/features.h (__GLIBC_MINOR__): Bump to 7.
8499
8500 [BZ #5186]
8501 * time/tzset.c (__tz_convert): Don't force testing for a change of
8502 TZ if not called from localtime. But then also see whether the
8503 file changed, in case __use_tzfile is set.
8504
8505 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8506 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8507 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8508 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8509 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8510 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8511 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8512 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8513
8514 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8515
8516 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8517 and admin selects to be able to replace the gai.conf file, lock
8518 data structures around the qsort call.
8519
8520 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8521
8522 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8523 new memset.
8524 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
8525 too high for the improvements. Implement bzero unconditionally for
8526 use in libc.
8527
8528 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8529 Jakub Jelinek <jakub@redhat.com>
8530
8531 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8532 even when time_t is 32-bit.
8533 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8534 timezone data read by __tzfile_default. Ensure __tzname[0] is
8535 always set after the search.
8536
8537 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8538
8539 * time/tzfile.c (__tzfile_read): Help the compiler recognize
8540 unreachable code on 32-bit machines.
8541
8542 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8543
8544 [BZ #5184]
8545 * time/strftime_l.c: Include stdbool.h.
8546 (my_strftime): New wrapper, old function renamed to...
8547 (__strftime_internal): ... new function. Add tzset_called
8548 argument, pass it down to recursive calls, don't call tzset ()
8549 if already true, set to true after call to tzset ().
8550
8551 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8552
8553 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8554 into account when copying TZ string.
8555
8556 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8557
8558 * time/tzfile.c (__tzfile_compute): For use_last case set i to
8559 num_transition rather than num_transitions - 1.
8560
8561 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8562
8563 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8564 PIC indirect jump.
8565
8566 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8567 a local label rather than HIDDEN_JUMPTARGET.
8568
8569 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8570
8571 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8572 (init_cacheinfo): Initialize it.
8573 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8574 Always define bzero.
8575 Remove non-glibc code.
8576 * sysdeps/x86_64/bzero.S: Make an empty file.
8577
8578 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
8579
8580 * sysdeps/x86_64/cacheinfo.c
8581 (__x86_64_preferred_memory_instruction): New.
8582 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8583
8584 * sysdeps/x86_64/memset.S: Rewrite.
8585
8586 2007-10-15 Roland McGrath <roland@redhat.com>
8587
8588 * po/libc.pot: Regenerated.
8589
8590 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8591
8592 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8593 pointers.
8594
8595 [BZ #3425]
8596 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8597 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8598 address record to T_A/T_AAAA requests.
8599
8600 2007-10-14 Ulrich Drepper <drepper@redhat.com>
8601
8602 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8603
8604 * posix/glob.c: Add some branch prediction throughout.
8605
8606 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8607 read from nscd.
8608
8609 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8610 service_order.
8611 (rfc3484_sort): Make sure that even if qsort doesn't support
8612 stable sorting out sorting here is stable by comparing service_order.
8613 (getaddrinfo): Initialize service_order.
8614 * posix/tst-rfc3484.c (do_test): Adjust for addition of
8615 service_order field to sorting structure.
8616 * posix/tst-rfc3484-2.c (do_test): Likewise.
8617
8618 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8619 * time/tzset.c (tzset_internal): Break TZ string parsing out into
8620 __tzset_parse_tz and updating of daylight, timezone, tzname into
8621 update_vars.
8622 (__tz_compute): Renamed from tz_compute. Take additional parameters.
8623 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8624 happens in __tz_compute.
8625 * time/tzfile.c (__tzfile_read): Also read TZ string.
8626 (find_transition): Fold into __tzfile_compute.
8627 (__tzfile_compute): For times beyond the last transition try to
8628 use the TZ string.
8629 * timezone/tst-timezone.c: Information in daylight and tzname does
8630 change for Asia/Tokyo timezone with more concrete information.
8631 Remove the test.
8632
8633 * include/stdio.h: Add libc_hidden_proto for ftello.
8634 * libio/ftello.c: Add libc_hidden_def.
8635
8636 [BZ #1140]
8637 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8638 on the specified time and not the last entries in the file. Move
8639 code to determine tzname[] to...
8640 (find_transition): ...here. Add ugly guess for times before the
8641 first transition.
8642
8643 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8644
8645 [BZ #3195]
8646 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8647 no entry.
8648 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8649 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8650 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8651 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8652
8653 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8654 read mechanism when there are no group members and avoid no-op
8655 read syscall in this case.
8656
8657 [BZ #3242]
8658 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8659 (__readall): If reading failed due to EAGAIN error wait a bit
8660 and possibly try again.
8661 (__readvall): Likewise.
8662
8663 2007-10-13 Bruno Haible <bruno@clisp.org>
8664
8665 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8666 when we cannot recode the message.
8667
8668 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8669
8670 [BZ #4359]
8671 * libio/__freading.c (__freading): Don't return true for
8672 write-only streams. For read/write streams, check whether we
8673 performed a read operation already.
8674 * libio/Makefile (tests): Add tst-ext2.
8675 * libio/tst-ext2.c: New file.
8676
8677 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8678
8679 * locale/programs/repertoire.c (repertoire_read): Always free
8680 memory for repertoire file name [Coverity CID 270].
8681
8682 * elf/cache.c (save_aux_cache): Free memory allocated for
8683 temporary file name [Coverity CID 267].
8684
8685 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8686
8687 * misc/Makefile (headers): Add bits/error.h.
8688
8689 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8690
8691 * posix/fnmatch_loop.c: Take rule index returned as part of
8692 findidx return value into account when accessing weights.
8693 * posix/regcomp.c: Likewise.
8694 * posix/regexec.c: Likewise.
8695
8696 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8697 (skip_to): Fix problems with parameter of elifdef/elifndef.
8698
8699 2007-10-11 Ulrich Drepper <drepper@redhat.com>
8700
8701 * iconv/gconv_simple.c: Add some branch prediction.
8702
8703 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8704
8705 * locale/programs/ld-collate.c (collate_read): If ignore_content
8706 and nowtok is tok_define, eat any tok_eol tokens.
8707
8708 2007-10-11 Jakub Jelinek <jakub@redhat.com>
8709
8710 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8711 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8712
8713 * inet/netinet/in.h: Don't include bits/socket.h.
8714 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8715 macro.
8716 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8717
8718 2007-10-10 Ulrich Drepper <drepper@redhat.com>
8719
8720 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8721 and tok_elifndef.
8722 * locale/programs/locfile-kw.gperf: Likewise.
8723 * locale/programs/ld-collate.c: Implement primitive preprocessor.
8724
8725 2007-10-10 Jakub Jelinek <jakub@redhat.com>
8726
8727 * stdio-common/printf-parse.h: Include string.h and wchar.h.
8728 (__find_specwc): Change into __extern_always_inline function.
8729 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
8730 (__parse_one_specmb): Remove ps argument.
8731 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8732 Adjust __find_specmb and __parse_one_specmb callers.
8733 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8734 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8735 Removed.
8736 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8737 caller.
8738
8739 2007-10-09 Ulrich Drepper <drepper@redhat.com>
8740
8741 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8742 with some Pentium Ds.
8743
8744 2007-10-08 Ulrich Drepper <drepper@redhat.com>
8745
8746 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8747 __read not read.
8748 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8749 __write not write.
8750
8751 2007-10-07 Ulrich Drepper <drepper@redhat.com>
8752
8753 [BZ #181]
8754 * locale/C-time.c: Set week_1stday data to 19971201.
8755 * locale/programs/ld-time.c (time_finish): Default for
8756 first_workday is Monday.
8757
8758 [BZ #2633]
8759 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8760
8761 [BZ #5103]
8762 * posix/glob.c (glob): Recognize patterns starting \/.
8763 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8764 (main): Add test for pattern starting \/.
8765
8766 * misc/error.h: Use __const instead of const.
8767 * misc/bits/error.h: Likewise.
8768
8769 2007-10-07 Andreas Jaeger <aj@suse.de>
8770
8771 * include/bits/error.h: New file.
8772
8773 * misc/bits/error.h (error_at_line): Fix prototype.
8774
8775 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8776
8777 [BZ #3924]
8778 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8779 more little bugs in creating the stack frame when pltexit has to
8780 be called.
8781
8782 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8783 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8784
8785 [BZ #4407]
8786 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8787 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8788 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8789 * math/libm-test.inc: Add test for this case.
8790
8791 [BZ #5010]
8792 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8793 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8794 map service succeeded.
8795 (svc_is_mapped): New function.
8796 (svc_unregister): Use it before trying to unmap service.
8797
8798 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8799
8800 * timezone/zic.c: Update from tzcode2007h.
8801
8802 [BZ #5063]
8803 * timezone/africa: Update from tzdata2007h.
8804 * timezone/antarctica: Likewise.
8805 * timezone/asia: Likewise.
8806 * timezone/australasia: Likewise.
8807 * timezone/europe: Likewise.
8808 * timezone/leapseconds: Likewise.
8809 * timezone/northamerica: Likewise.
8810 * timezone/southamerica: Likewise.
8811 * timzeone/zone.tab: Likewise.
8812
8813 [BZ #5104]
8814 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8815
8816 [BZ #5113]
8817 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8818 avoid warning with -Wconversion.
8819 (__strndup): Likewise.
8820 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8821
8822 [BZ #5112]
8823 * nscd/connections.c (restart): Don't resync if database is
8824 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8825
8826 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8827 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8828
8829 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8830 evetnfd_read, eventfd_write.
8831 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8832 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8833 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8834 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8835 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8836 eventfd_write for GLIBC_2.7.
8837
8838 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8839 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8840 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8841 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8842
8843 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8844
8845 * stdlib/msort.c: Include stdint.h.
8846 (struct msort_param): New type.
8847 (msort_with_tmp): Use struct msort_param pointer for unchanging
8848 parameters. Add optimized handling for several common sizes
8849 and indirect sorting mode.
8850 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8851 sorting.
8852 Suggested by Belazougui Djamel .
8853
8854 * stdlib/Makefile (tests): Add tst-qsort2.
8855 * stdlib/tst-qsort2.c: New test.
8856
8857 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8858
8859 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8860 for dup2 in case another thread races with the current one. Retry
8861 in this case.
8862
8863 * misc/error.h: Remove support for use outside of libc. We have to
8864 include <features.h> now. Include <bits/error.h> if possible.
8865 * misc/bits/error.h: New file.
8866
8867 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8868
8869 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8870 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8871 __extern_always_inline functions unconditionally, drop macros.
8872
8873 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8874 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8875 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8876
8877 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8878 add __artificial__ attribute.
8879
8880 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8881
8882 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8883 backward to forward direction.
8884
8885 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8886
8887 [BZ #645]
8888 * locale/programs/ld-collate.c (collate_finish): Compare against last
8889 used section which is known to have rules defined.
8890 (collate_read): After order_start, correctly record order of sections
8891 and queue sections up.
8892
8893 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8894
8895 [BZ #5071]
8896 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8897 the same number of pages.
8898 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8899
8900 * locale/programs/ld-collate.c (collate_read): After initial copy
8901 statement, continue in state 0.
8902
8903 * include/stdio_ext.h (__fsetlocking): Define as macro.
8904
8905 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8906
8907 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8908 of section order.
8909
8910 * po/pt_BR.po: Fix typo.
8911
8912 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8913
8914 * iconvdata/Makefile (modules): Add ISO8859-9E.
8915 (distribute): Add iso8859-9e.c.
8916 (gen-8bit-gap-modules): Add iso8859-9e.
8917 * iconvdata/iso8859-9e.c: New file.
8918 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8919 * iconvdata/TESTS: Likewise.
8920 * iconvdata/tst-tables.sh: Likewise.
8921
8922 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8923
8924 * locale/iso-639.def: Add several new entries.
8925
8926 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8927
8928 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8929 void * pointers instead of struct link_map **.
8930 (_dl_scope_free): Change argument type to void *.
8931 * include/link.h (struct link_map): Change type of l_reldeps
8932 to struct link_map_reldeps, move l_reldepsact into that
8933 struct too.
8934 * elf/dl-deps.c: Include atomic.h.
8935 (_dl_map_object_deps): Only change l->l_initfini when it is
8936 fully populated, use _dl_scope_free for freeing it. Optimize
8937 removal of libs from reldeps by using l_reserved flag, when
8938 some removal is needed, allocate a new list instead of
8939 reallocating and free the old with _dl_scope_free. Adjust
8940 for l_reldeps and l_reldepsact changes.
8941 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8942 searching in l_initfini and l_reldeps without holding dl_load_lock.
8943 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8944 l_reldepsact changes.
8945 * elf/dl-close.c (_dl_close_worker): Likewise.
8946 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8947
8948 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8949
8950 * iconvdata/Makefile (modules): Add KOI8-RU.
8951 (distribute): Add koi8-ru.c.
8952 (gen-8bit-gap-modules): Add koi8-ru.
8953 * iconvdata/koi8-ru.c: New file.
8954 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8955 * iconvdata/TESTS: Likewise.
8956 * iconvdata/tst-tables.sh: Likewise.
8957
8958 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8959
8960 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8961
8962 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8963 with __warning__/__error__ attributes.
8964 (__warnattr): Define.
8965 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8966 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8967 __warnattr.
8968 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8969 of __*_chk if compile time detectable overflow is found.
8970 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8971 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8972 with __warnattr.
8973 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8974 instead of __*_chk if compile time detectable overflow is found.
8975 (__gets_alias): Rename to...
8976 (__gets_warn): ... this. Add __warnattr.
8977 (gets): Call __gets_warn instead of __gets_alias.
8978 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8979 aliases with __warnattr.
8980 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8981 time detectable overflow is found.
8982 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8983 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8984 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8985 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8986 __getdomainname_chk_warn): New aliases with __warnattr.
8987 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8988 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8989 __*_chk_warn instead of __*_chk if compile time detectable overflow
8990 is found.
8991 (__getgroups_chk): Rename argument to __listlen from listlen.
8992 (__getwd_alias): Rename to...
8993 (__getwd_warn): ... this. Add __warnattr.
8994 (getwd): Call __getwd_warn instead of __getwd_alias.
8995 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8996 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8997 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8998 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8999 __wcsnrtombs_chk_warn): New aliases with __warnattr.
9000 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
9001 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
9002 compile time detectable overflow is found.
9003 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
9004 to use __*_chk or not.
9005 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
9006 in comparisons which function should be called and in __*_chk*
9007 arguments. Call __*_chk_warn instead of __*_chk if compile time
9008 detectable overflow is found.
9009 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
9010 __*_chk argument.
9011 * debug/tst-chk1.c (do_test): Add a few more tests.
9012
9013 2007-09-24 Ulrich Drepper <drepper@redhat.com>
9014
9015 [BZ #5058]
9016 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
9017 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
9018 (_nl_unload_domain): Finalize conversions_lock.
9019 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
9020 handling table of known conversions.
9021
9022 2007-09-24 Jakub Jelinek <jakub@redhat.com>
9023
9024 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
9025 close_not_cancel_no_status instead of close.
9026
9027 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
9028
9029 [BZ #5028]
9030 * posix/regcomp.c (lookup_collation_sequence_value): Check that
9031 nrules != 0 for multibyte chars.
9032
9033 2007-09-23 Ulrich Drepper <drepper@redhat.com>
9034
9035 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9036 Provide better error message in case the type is unknown.
9037
9038 [BZ #4963]
9039 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9040 * string/stratcliff.c: Make usable to test wide char functions.
9041 * wcsmbs/wcsatcliff.c: New file.
9042 * wcsmbs/Makefiel (tests): Add wcsatcliff.
9043
9044 [BZ #4972]
9045 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9046 (distribute): Add mac-centraleurope.c.
9047 (gen-8bit-gap-modules): Add mac-centraleurope.
9048 * iconvdata/mac-centraleurope.c: New file.
9049 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9050 * iconvdata/TESTS: Likewise.
9051 * iconvdata/tst-tables.sh: Likewise.
9052
9053 [BZ #5043]
9054 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9055
9056 2007-09-21 Ulrich Drepper <drepper@redhat.com>
9057
9058 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9059 from __x86_64_core_cache_size_half.
9060 (init_cacheinfo): Compute shared cache size for AMD processors with
9061 shared L3 correctly.
9062 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9063 name change.
9064 Patch in large parts by Evandro Menezes.
9065
9066 2007-09-19 Ulrich Drepper <drepper@redhat.com>
9067
9068 * elf/dl-lookup.c (add_dependency): Handle failing memory
9069 allocation for dependency list. Remove unnecessary check.
9070
9071 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9072 open/close when determining source addresses.
9073
9074 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9075 sha512-crypt, and sha512.
9076 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9077 (distribute): Add sha256.h and sha512.h.
9078 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9079 and call the appropriate code.
9080 * crypt/sha256-crypt.c: New file.
9081 * crypt/sha256.c: New file.
9082 * crypt/sha256.h: New file.
9083 * crypt/sha256c-test.c: New file.
9084 * crypt/sha256test.c: New file.
9085 * crypt/sha512-crypt.c: New file.
9086 * crypt/sha512.c: New file.
9087 * crypt/sha512.h: New file.
9088 * crypt/sha512c-test.c: New file.
9089 * crypt/sha512test.c: New file.
9090
9091 2007-09-19 Jakub Jelinek <jakub@redhat.com>
9092
9093 * misc/bits/syslog.h (syslog): Remove extraneous argument from
9094 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9095 __syslog_chk.
9096
9097 2007-09-18 Jakub Jelinek <jakub@redhat.com>
9098
9099 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9100 %as in fscanf format strings.
9101
9102 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9103 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9104 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9105 Likewise.
9106 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9107 Likewise.
9108
9109 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9110 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9111 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9112 * elf/dl-sym.c (do_sym): Likewise.
9113 * include/link.h (struct link_map): Add l_serial field.
9114 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9115 * elf/dl-lookup.c (add_dependency): Add flags argument.
9116 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9117 flags, use THREAD_GSCOPE_RESET_FLAG before and
9118 THREAD_GSCOPE_SET_FLAG after
9119 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9120 Don't dereference map until it has been found on some list.
9121 If map->l_serial changed, return -1.
9122
9123 2007-09-17 Jakub Jelinek <jakub@redhat.com>
9124
9125 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9126 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9127 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9128 libc_hidden_proto.
9129 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9130 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9131 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9132 add libc_hidden_proto.
9133 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9134 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9135 conformance requested.
9136 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9137 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9138 conformance requested.
9139 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9140 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9141 conformance requested.
9142 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9143 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9144 ISO C99 or POSIX conformance requested.
9145 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9146 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9147 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9148 and __isoc99_vsscanf@@GLIBC_2.7.
9149 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9150 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9151 (tests): Add scanf14.
9152 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9153 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9154 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9155 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9156 CFLAGS-isoc99_scanf.c): Add $(exceptions).
9157 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9158 from using internal headers.
9159 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9160 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9161 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9162 and __isoc99_vswscanf@@GLIBC_2.7.
9163 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9164 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9165 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9166 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9167 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9168 * stdio-common/isoc99_scanf.c: New file.
9169 * stdio-common/isoc99_vsscanf.c: New file.
9170 * stdio-common/isoc99_vscanf.c: New file.
9171 * stdio-common/isoc99_vfscanf.c: New file.
9172 * stdio-common/isoc99_fscanf.c: New file.
9173 * stdio-common/isoc99_sscanf.c: New file.
9174 * wcsmbs/isoc99_fwscanf.c: New file.
9175 * wcsmbs/isoc99_vswscanf.c: New file.
9176 * wcsmbs/isoc99_swscanf.c: New file.
9177 * wcsmbs/isoc99_wscanf.c: New file.
9178 * wcsmbs/isoc99_vwscanf.c: New file.
9179 * wcsmbs/isoc99_vfwscanf.c: New file.
9180 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9181 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9182 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9183 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9184 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9185 * stdio-common/scanf14.c: New test.
9186 * stdio-common/scanf15.c: New test.
9187 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9188 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9189 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9190 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9191 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9192 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9193 __nldbl___isoc99_scanf@@GLIBC_2.7,
9194 __nldbl___isoc99_fscanf@@GLIBC_2.7,
9195 __nldbl___isoc99_sscanf@@GLIBC_2.7,
9196 __nldbl___isoc99_vscanf@@GLIBC_2.7,
9197 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9198 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9199 __nldbl___isoc99_wscanf@@GLIBC_2.7,
9200 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9201 __nldbl___isoc99_swscanf@@GLIBC_2.7,
9202 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9203 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9204 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9205 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9206 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9207 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9208 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9209 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9210 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9211 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9212 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9213 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9214 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9215 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9216 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9217 functions.
9218 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9219 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9220 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9221 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9222 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9223 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9224 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9225 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9226 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9227 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9228 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9229 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9230
9231 * stdio-common/Makefile (tests): Add scanf13.
9232 (scanf13-ENV): New.
9233 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9234 m modifier followed by l.
9235 (STRING_ARG): Add width argument.
9236 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9237 <case L_('C')>: Handle %mlc and %mC.
9238 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9239 arguments.
9240 * stdio-common/scanf13.c: New test.
9241
9242 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9243 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9244
9245 2007-09-18 Ulrich Drepper <drepper@redhat.com>
9246
9247 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9248 type and __THROW marker of splice, vmsplice, and tee.
9249 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9250 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9251 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9252 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9253 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9254 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9255 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9256 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9257 as cancellation points.
9258
9259 2003-11-01 Daniel Jacobowitz <dan@debian.org>
9260
9261 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9262 parse more than three parts of the version number.
9263
9264 2007-09-15 Ulrich Drepper <drepper@redhat.com>
9265
9266 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9267 modifier. Patch by Jakub Jelinek.
9268
9269 2007-08-26 Jakub Jelinek <jakub@redhat.com>
9270
9271 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9272 call_fallocate in misc subdir.
9273 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9274 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9275 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9276 instead of __fallocate64.
9277 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9278
9279 2007-09-15 Jakub Jelinek <jakub@redhat.com>
9280
9281 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9282 * rt/Makefile (headers): Add bits/mqueue2.h.
9283 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9284 optimizing with GCC and __va_arg_pack_len is defined.
9285 * rt/bits/mqueue2.h: New file.
9286 * rt/mq_open.c (__mq_open): Renamed from mq_open.
9287 (mq_open): New strong_alias.
9288 (__mq_open_2): New function.
9289 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9290 (mq_open): New strong_alias.
9291 (__mq_open_2): New function.
9292 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9293 * Versions.def (librt): Add GLIBC_2.7 version.
9294 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9295 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9296
9297 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9298 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9299 is defined rather than when not C++.
9300 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9301 __openat64_alias): New redirects.
9302 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9303 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9304 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9305 (open, open64, openat, openat64): Rewrite as __extern_always_inline
9306 functions instead of function-like macros.
9307
9308 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
9309
9310 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9311 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9312 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9313
9314 2007-09-15 Mike Frysinger <vapier@gentoo.org>
9315
9316 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9317 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9318
9319 2007-09-14 Mike Frysinger <vapier@gentoo.org>
9320
9321 * inet/tst-network.c: Increment ERRORS for failing tests.
9322
9323 2007-09-07 Jakub Jelinek <jakub@redhat.com>
9324
9325 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9326 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9327 implement as __extern_always_inline function.
9328 (vsyslog): Define as __extern_always_inline function unconditionally.
9329 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9330 When __va_arg_pack is defined, implement as __extern_always_inline
9331 functions.
9332 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9333 __extern_always_inline functions unconditionally.
9334 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9335 bits/stdio2.h will be included.
9336 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9337 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9338 implement as __extern_always_inline functions.
9339 (vswprintf, vwprintf, vfwprintf): Define as
9340 __extern_always_inline functions unconditionally.
9341 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9342
9343 2007-09-03 Jakub Jelinek <jakub@redhat.com>
9344
9345 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9346 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9347 attribute.
9348 * include/features.h (__USE_EXTERN_INLINES): Define only when
9349 __extern_inline is defined.
9350 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9351 is defined instead of when not __cplusplus.
9352 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9353 is defined instead of when not __cplusplus.
9354 * socket/sys/socket.h: Include bits/socket2.h when
9355 __extern_always_inline is defined instead of when not __cplusplus.
9356 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9357 is defined instead of when not __cplusplus.
9358 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9359 is defined instead of when not __cplusplus.
9360 * string/string.h: Include bits/string3.h when __extern_always_inline
9361 is defined instead of when not __cplusplus.
9362 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9363 is defined instead of when not __cplusplus.
9364 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9365 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9366 is not defined.
9367 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9368 defined __extern_always_inline instead of !defined __cplusplus.
9369 * libio/bits/stdio-ldbl.h: Likewise.
9370 * wcsmbs/bits/wchar-ldbl.h: Likewise.
9371 * misc/bits/syslog.h (syslog): Don't define for C++.
9372 (vsyslog): Use __extern_always_inline function for C++ instead of
9373 a macro.
9374 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9375 whenever that macro is defined.
9376 (vprintf): Don't provide the inline for C++.
9377 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9378 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9379 define the macros for C++.
9380 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9381 __extern_always_inline functions for C++.
9382 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9383 stat64, lstat64, fstat64, fstatat64): Don't define if not
9384 __USE_EXTERN_INLINES.
9385 * wcsmbs/bits/wchar2.h: Fix #error message.
9386 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9387 (vswprintf, vwprintf, vfwprintf): Define using
9388 __extern_always_inline functions for C++.
9389 * string/bits/string3.h: Don't #undef macros if __cplusplus.
9390 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9391 strncpy, strcat, strncat): Define as __extern_always_inline
9392 functions instead of macros for C++.
9393 * math/bits/cmathcalls.h: Guard __extern_inline routines with
9394 defined __extern_inline.
9395 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9396 to __extern_inline whenever that macro is defined.
9397 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9398 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9399 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9400 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9401 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9402 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9403 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9404 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9405 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9406 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9407 prototypes. Only provide __extern_inline routines if
9408 __USE_EXTERN_INLINES.
9409 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9410 tests.
9411 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9412 For now avoid some *printf tests in C++. Skip all testing
9413 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9414 is not.
9415 * debug/tst-chk4.cc: New file.
9416 * debug/tst-chk5.cc: New file.
9417 * debug/tst-chk6.cc: New file.
9418 * debug/tst-lfschk4.cc: New file.
9419 * debug/tst-lfschk5.cc: New file.
9420 * debug/tst-lfschk6.cc: New file.
9421 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9422 prototypes in C++.
9423 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9424 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9425 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9426
9427 2007-09-13 Ulrich Drepper <drepper@redhat.com>
9428
9429 * po/cs.po: Update from translation team.
9430
9431 2007-09-11 Roland McGrath <roland@redhat.com>
9432
9433 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9434 compiling.
9435
9436 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9437
9438 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9439
9440 2007-09-05 Roland McGrath <roland@redhat.com>
9441
9442 * manual/signal.texi (Signaling Another Process): Typo fix.
9443 From Karl Berry <karl@freefriends.org>.
9444
9445 2007-08-29 Ulrich Drepper <drepper@redhat.com>
9446
9447 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9448 zero if not defined.
9449 (make_request): Recognize optimistic addresses and treat them like
9450 deprecated addresses.
9451 Reported by Neil Horman <nhorman@redhat.com>.
9452
9453 2007-08-28 Ulrich Drepper <drepper@redhat.com>
9454
9455 * nscd/connections.c (send_ro_fd): Also transfer file size.
9456 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9457 file size don't call fstat.
9458
9459 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9460 ahead and map the file. This should always be correct and we can
9461 catch problems later.
9462
9463 2007-08-28 Jakub Jelinek <jakub@redhat.com>
9464
9465 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9466 prototypes.
9467 (__fread_alias, __fread_unlocked_alias): New aliases.
9468 (fread): New extern inline.
9469 (fread_unlocked): Likewise. Undef macro before definition of
9470 the inline function.
9471 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9472 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9473 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9474 and __fread_unlocked_chk@@GLIBC_2.7.
9475 * debug/fread_chk.c: New file.
9476 * debug/fread_u_chk.c: New file.
9477 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9478
9479 2007-08-27 Jakub Jelinek <jakub@redhat.com>
9480
9481 * sysdeps/unix/sysv/linux/syscalls.list
9482 (personality): Change caller to EXTRA.
9483
9484 2007-08-25 Ulrich Drepper <drepper@redhat.com>
9485
9486 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9487 to keep gcc quiet.
9488 * iconvdata/iso-2022-cn.c (BODY): Likewise.
9489
9490 * locale/programs/ld-collate.c (collate_output): Avoid warning if
9491 NDEBUG is defined.
9492
9493 * Makerules: Use -p option with mkdir.
9494
9495 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9496 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9497 (_xdr_directory_obj): Likewise.
9498 (xdr_entry_obj): Likewise.
9499 (xdr_group_obj): Likewise.
9500 (xdr_link_obj): Likewise.
9501 (xdr_table_obj): Likewise.
9502 (_xdr_nis_result): Likewise.
9503 (_xdr_ns_request): Likewise.
9504 (_xdr_ib_request): Likewise.
9505 (_xdr_nis_taglist): Likewise.
9506 (xdr_cback_data): Likewise.
9507 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9508 (xdr_ypresp_maplist): Likewise.
9509
9510 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9511
9512 * posix/regex_internal.h: Prevent some declarations and definitions
9513 to be seen when used in tests.
9514
9515 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9516 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9517
9518 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9519
9520 * config.make.in (datarootdir): Add to shut up configure.
9521
9522 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9523 associativity for fully-associative caches.
9524
9525 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9526 requests. Fill on more associativity values for L2.
9527 Patch mostly by Evandro Menezes.
9528
9529 2007-08-24 Ulrich Drepper <drepper@redhat.com>
9530
9531 * sysdeps/unix/sysv/linux/x86_64/init-first.c
9532 (_libc_vdso_platform_setup): Avoid using exported variable by using
9533 alias.
9534
9535 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9536
9537 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9538 fallocate64 as EXTRA. It is not referenced if the symbol isn't
9539 defined.
9540
9541 2007-08-23 Ulrich Drepper <drepper@redhat.com>
9542
9543 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9544 align stack for call if pltexit is to be used.
9545
9546 [BZ #3924]
9547 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9548 align for function call in case pltexit has to be called later.
9549
9550 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9551 implicit atomic operation when storing function pointer.
9552 (_dl_runtime_profile): Likewise.
9553
9554 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9555
9556 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9557 NIS_NOTFOUND.
9558
9559 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9560
9561 [BZ #4566]
9562 * string/strtok.c: Fix typo in comment.
9563
9564 [BZ #4582]
9565 * debug/segfault.c: Fix typos in comments.
9566
9567 [BZ #4588]
9568 * stdio-common/tempnam.c: Fix comment, it is not checked that
9569 TMPDIR points to a writable directory.
9570
9571 [BZ #4726]
9572 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9573 memory allocated for the name server address.
9574
9575 [BZ #4946]
9576 * nscd/connections.c (handle_request): Using sendfile always
9577 requires that mmap is used for the database.
9578 Patch by Petr Baudis <pasky@suse.cz>.
9579
9580 [BZ #4905]
9581 * nscd/hstcache.c (cache_addhst): When reloading an entry which
9582 suddenly has two or more addresses, ignore it and remove the old
9583 entry.
9584
9585 [BZ #4814]
9586 * resolv/res_hconf.c: Prepare for compiling outside libc.
9587 * nscd/res_hconf.c: New file.
9588 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
9589 the new file.
9590 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9591 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9592
9593 * nscd/hstcache.c (cache_addhst): Minimal optimization.
9594
9595 [BZ #4925]
9596 * debug/pcprofiledump.c: Turn on internationalization by calling
9597 setlocale. Patch mostly by Benno Schulenberg.
9598
9599 [BZ #4936]
9600 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9601 the state.
9602 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9603 * iconvdata/bug-iconv5.c: New file.
9604
9605 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
9606
9607 [BZ #4896]
9608 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9609 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9610 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9611 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9612 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9613 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9614 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9615 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9616
9617 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9618
9619 [BZ #4937]
9620 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9621 lookup loop. Suggested by John Reiser.
9622
9623 2007-08-21 Jakub Jelinek <jakub@redhat.com>
9624
9625 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9626
9627 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9628
9629 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9630 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9631 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9632 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9633 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9634 to...
9635 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9636
9637 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9638
9639 * po/nl.po: Update from translation team.
9640
9641 2007-08-16 Andreas Jaeger <aj@suse.de>
9642
9643 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9644 Reported by Peter Festner <peter.festner@ewetel.net>.
9645
9646 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9647
9648 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9649
9650 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9651
9652 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9653 to check for undefined symbols.
9654
9655 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9656 If the syscall fails, set errno to the actual returned error number
9657 rather than EINVAL.
9658 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9659 arguments are incorrect, set errno to EINVAL, if the syscall
9660 fails, set errno to the actual returned error number.
9661
9662 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9663 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9664
9665 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9666 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9667 file.
9668 (ASI_PNF, ASI_BLK_P): Don't define.
9669 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9670 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9671 file.
9672 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9673 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9674 file.
9675
9676 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9677
9678 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9679 FE_UNDERFLOW on Niagara CPUs.
9680
9681 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9682 exceptions.
9683
9684 2007-08-14 Jakub Jelinek <jakub@redhat.com>
9685
9686 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9687 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9688 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9689 flush should be used or not inside of the function.
9690 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9691
9692 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9693 __thread_start): Use HIDDEN_JUMPTARGET.
9694 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9695 __thread_start): Likewise.
9696 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9697
9698 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9699 Add libc_hidden_proto.
9700 (STRTOF): Add libc_hidden_proto.
9701 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9702 (strtold_l, wcstold_l): Use them as second argument for
9703 long_double_symbol.
9704
9705 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9706
9707 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
9708
9709 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9710
9711 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
9712
9713 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9714
9715 * po/bg.po: New file. From the translation team.
9716
9717 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9718
9719 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9720 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9721 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9722 when each feature was introduced.
9723
9724 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9725 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9726 (CHECK_HASH): New macro.
9727 (PREPARE_VERSION): Use it.
9728
9729 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9730 prototype if not __ASSUME_PSELECT.
9731 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9732 prototype if not __ASSUME_PPOLL.
9733
9734 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9735
9736 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9737 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9738 is defined.
9739
9740 2007-08-13 Ulrich Drepper <drepper@redhat.com>
9741
9742 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9743 (_libc_vdso_platform_setup): If vDSO is not available point
9744 __vdso_gettimeofday to the vsyscall.
9745 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9746 __vdso_gettimeofday instead of vsyscall.
9747
9748 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9749
9750 * nscd/servicescache.c: Include kernel-features.h.
9751 * nscd/gai.c: Likewise.
9752 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9753 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9754 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9755 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9756 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9757 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9758 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9759 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9760 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9761
9762 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9763
9764 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9765 and _dl_get_origin defines anymore.
9766
9767 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9768 Build fix for systems which might lack POSIX timer support.
9769
9770 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9771 (_libc_vdso_platform_setup): Mangle function pointers before storing
9772 them.
9773 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9774 Demangle vdso pointer before use.
9775 (INTERNAL_VSYSCALL): Likewise.
9776
9777 * elf/cache.c (primes): Mark as const.
9778 Noted by Roland McGrath.
9779
9780 2007-08-01 Andreas Jaeger <aj@suse.de>
9781 Jakub Jelinek <jakub@redhat.com>
9782
9783 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9784 (options): Add option.
9785 (parse_opt): Handle option.
9786 (manual_link): Adjust process_file caller. Call implicit_soname.
9787 (search_dir): Formatting. Use and populate auxiliary cache.
9788 (main): Load and save auxiliary cache.
9789 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9790 stat64 from fstat64 to caller.
9791 (implicit_soname): New function.
9792 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9793 leave *soname as NULL.
9794 * elf/cache.c: Include libgen.h.
9795 (print_entry, print_cache, compare, save_cache, add_to_cache):
9796 Formatting and cleanups.
9797 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9798 aux_cache_file): New structures.
9799 (AUX_CACHEMAGIC): Define.
9800 (primes): New array.
9801 (aux_hash_size, aux_hash): New variables.
9802 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9803 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9804 load_aux_cache, save_aux_cache): New functions.
9805 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9806 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9807 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9808 (process_file): Adjust prototype.
9809
9810 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9811
9812 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9813 with __need_size_t.
9814
9815 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9816
9817 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9818 r_found_version structure as second parameter.
9819 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9820 (_dl_vdso_vsym): Change type of second parameter accordingly.
9821 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9822 (_libc_vdso_platform_setup): Adjust.
9823 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9824 (_libc_vdso_platform_setup): Likewise.
9825
9826 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9827 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9828 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9829 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9830 * csu/libc-start.c: Pretty printing.
9831 Use VDSO_SETUP if defined.
9832 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9833 and let generic code call into _libc_vdso_platform_setup.
9834 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9835 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9836 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9837 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9838 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9839 for GLIBC_PRIVATE.
9840 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9841 (sysdep_rountines): Add dl-vdso.
9842
9843 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9844 of routines.
9845
9846 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9847 attribute_hidden to __vdso_gettimeofday prototype.
9848
9849 2007-08-12 Roland McGrath <roland@redhat.com>
9850
9851 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9852 From: Karl Berry <karl@freefriends.org>.
9853
9854 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9855
9856 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9857 an atime update for the files we read.
9858
9859 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9860
9861 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9862
9863 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9864 instead of mkstemp.
9865
9866 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9867 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9868 * misc/mkostemp.c: New file.
9869 * misc/mkostemp64.c: New file.
9870 * stdlib/stdlib.h: Declare the new functions.
9871 * sysdeps/posix/tempname.c: Add new parameter which is added to
9872 the flags for open. Remove __GT_BIGFILE handling.
9873 * stdio-common/tempname.c: Likewise.
9874 * include/stdio.h: Adjust __gen_tempname prototype.
9875 Renumber __GT_* constants.
9876 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9877 * misc/mkdtemp.c: Likewise.
9878 * misc/mkstemp.c: Likewise.
9879 * misc/mkstemp64.c: Likewise.
9880 * misc/mktemp.c: Likewise.
9881 * stdio-common/tempnam.c: Likewise.
9882 * stdio-common/tmpfile.c: Likewise.
9883 * stdio-common/tmpfile64.c: Likewise.
9884 * stdio-common/tmpnam.c: Likewise.
9885 * stdio-common/tmpnam_r.c: Likewise.
9886
9887 2007-08-10 Roland McGrath <roland@frob.com>
9888
9889 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9890 New macros.
9891 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9892 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9893
9894 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9895
9896 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9897 possible.
9898 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9899 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9900 * nss/nss_files/files-have_o_cloexec.c: New file.
9901
9902 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9903 available.
9904
9905 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9906
9907 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9908 ___new_wcstold_l): New weak aliases.
9909 (strtold_l, wcstold_l): Use them as second argument for
9910 long_double_symbol.
9911
9912 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9913
9914 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9915 register in test for error.
9916
9917 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9918 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9919
9920 * po/sv.po: Update from translation team.
9921
9922 2007-08-06 Roland McGrath <roland@redhat.com>
9923
9924 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9925 Remove __strto*_l inlines.
9926 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9927 * stdlib/strtod.c: Add libc_hidden_def.
9928 * stdlib/strtod_l.c: Likewise.
9929 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9930 for __new_strtold and __new_wcstold.
9931 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9932 __STRTOF, STRTOF.
9933 * stdlib/strtol.c: Add libc_hidden_def.
9934 * stdlib/strtol_l.c: Likewise.
9935 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9936 strtoq.
9937
9938 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9939
9940 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9941 * scripts/data/localplt-generic.data: ... here.
9942 * elf/Makefile (check-data): Get generic file if no other.
9943 ($(objpfx)check-localplt.out): Make target unconditional.
9944
9945 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9946 Use ElfW(Nhdr).
9947
9948 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9949
9950 * po/zh_CN.po: Updated translation from translation team.
9951
9952 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9953
9954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9955 Don't use CGOTSETUP and CGOTRESTORE macros.
9956
9957 2007-08-04 Roland McGrath <roland@redhat.com>
9958
9959 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9960
9961 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9962
9963 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9964 __extension__ around the whole statement expression.
9965
9966 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9967
9968 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9969 elements during initialization.
9970
9971 * po/pl.po: Updated translation from translation team.
9972 * po/tr.po: Likewise.
9973 * po/nl.po: Likewise.
9974
9975 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9976
9977 * rt/aio.h: Add __nonnull attributes.
9978
9979 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9980
9981 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9982 * stdlib/Makefile (tests): Add tst-strtod5.
9983 (tst-strtod5-ENV): New.
9984 * stdlib/tst-strtod5.c: New file.
9985
9986 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9987 failed.
9988 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9989 on failure.
9990
9991 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9992 allocated.
9993
9994 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9995
9996 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9997 numbers.
9998
9999 2007-08-02 Ulrich Drepper <drepper@redhat.com>
10000
10001 * io/Makefile (aux): Add have_o_cloexec.
10002 * include/fcntl.h: Declare __have_o_cloexec.
10003 * io/have_o_cloexec.c: New file.
10004 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
10005 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
10006 fcntl call if not necessary.
10007 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
10008 of local variable.
10009
10010 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
10011 Avoid memset, add explicit initialization.
10012 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
10013 to the end and change into zero-sized array.
10014 Move lock member to fill a hole on 64-bit platforms.
10015
10016 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
10017 inline functions.
10018 * include/stdlib.h: Add __strto*_internal prototypes here.
10019 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
10020 inline functions.
10021 * include/wchar.h: Add __wcsto*_internal prototypes.
10022 * sysdeps/generic/inttypes.h: No need to protect the declaration
10023 of the __strto*_internal and __wcsto*_internal members here.
10024
10025 * rt/mqueue.h: Change const to __const and add nonnull attributes.
10026
10027 2007-08-02 Roland McGrath <roland@redhat.com>
10028
10029 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
10030 $(inst_bindir)/getconf if possible.
10031
10032 * posix/Makefile ($(objpfx)getconf.speclist): New target.
10033 (generated): Add it.
10034 ($(inst_libexecdir)/getconf): Use it.
10035
10036 2007-08-01 Ulrich Drepper <drepper@redhat.com>
10037
10038 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10039 /proc is faster and sufficient. /sys is still needed for
10040 __get_nprocs_conf.
10041
10042 2007-08-01 Jakub Jelinek <jakub@redhat.com>
10043
10044 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10045 syscall as __fallocate64.
10046 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10047 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10048
10049 2007-07-30 Jakub Jelinek <jakub@redhat.com>
10050
10051 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10052 value.
10053
10054 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10055 if off_t is different rank from size_t.
10056
10057 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10058 uw_frame_state_for): Avoid type punning warnings.
10059 * sysdeps/generic/unwind-dw2-fde-glibc.c
10060 (_Unwind_IteratePhdrCallback): Likewise.
10061 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10062 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10063 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10064 pointers.
10065
10066 2007-07-31 Ulrich Drepper <drepper@redhat.com>
10067
10068 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10069 total processors using sysfs.
10070 (__get_nprocs): Use sysfs to determine which processors are online.
10071
10072 2007-07-31 Jakub Jelinek <jakub@redhat.com>
10073
10074 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10075 syscall arguments count.
10076
10077 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10078
10079 2007-07-30 Roland McGrath <roland@redhat.com>
10080
10081 * manual/libc.texinfo: Update copyrights, formatting magic, and
10082 @dircategory. From Karl Berry <karl@freefriends.org>.
10083
10084 2007-07-29 Ulrich Drepper <drepper@redhat.com>
10085
10086 [BZ #4860]
10087 * io/Makefile (headers): Add bits/fcntl2.h.
10088
10089 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10090 using gcc builtin.
10091 (__CPU_EQUAL_S): Likewise.
10092
10093 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10094 (tests): Add tst-cpuset.
10095 * posix/sched_cpualloc.c: New file.
10096 * posix/sched_cpufree.c: New file.
10097 * posix/tst-cpuset.c: New file.
10098 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10099 GLIBC_2.7.
10100 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10101 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10102 macros. Define CPU_*_S macros.
10103
10104 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10105
10106 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10107 entry.
10108
10109 [BZ #4858]
10110 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10111 #.0g and value rounded to 1.0.
10112 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10113
10114 2007-07-26 Jakub Jelinek <jakub@redhat.com>
10115
10116 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10117 for int_frac_digits and frac_digits.
10118
10119 * login/logout.c (logout): Avoid aliasing violation.
10120 * login/logwtmp.c (logwtmp): Likewise.
10121
10122 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10123
10124 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10125 to avoid warning.
10126 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10127 warning.
10128 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10129 warning.
10130 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10131 to avoid warnings.
10132
10133 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10134 void **.
10135 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10136
10137 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10138 char * to avoid warning.
10139 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10140
10141 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10142
10143 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10144 allocate_arrays): Cast second argument to charmap_find_symbol
10145 to char * to avoid warnings.
10146
10147 * locale/programs/repertoire.c (repertoire_new_char): Change
10148 from_nr, to_nr and cnt to unsigned long, adjust printf format
10149 string.
10150
10151 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10152 Cast second argument to new_element to char * to avoid warnings.
10153
10154 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10155
10156 * intl/gettextP.h (struct loaded_domain): Change plural to const
10157 struct expression *.
10158 * intl/plural-eval.c (plural_eval): Change first argument to
10159 const struct expression *.
10160 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10161 argument to const struct expression **.
10162 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10163 prototypes.
10164 * intl/loadmsgcat (_nl_unload_domain): Cast away const
10165 in call to __gettext_free_exp.
10166
10167 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10168 unitialized wstring/wpattern var warnings.
10169
10170 * posix/runtests.c (struct a_test): Make data field const char *.
10171
10172 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10173 vars if not LDBL_MANT_DIG >= 106.
10174
10175 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10176
10177 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10178 __find_specmb to avoid warning.
10179
10180 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10181
10182 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10183 to avoid warnings.
10184
10185 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10186 initializer.
10187
10188 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10189 tv var when it will be actually used.
10190
10191 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10192 to avoid warnings.
10193
10194 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10195 char array resp. pointer.
10196 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10197 char array.
10198 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10199 to const unsigned char **.
10200 (ucs4_to_cns11643): Change second argument to unsigned char *.
10201 * iconvdata/euc-tw.c (BODY): Change endp type to
10202 const unsigned char *.
10203 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10204 to unsigned char *.
10205 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10206 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10207 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10208 types to unsigned char pointers/arrays instead of char.
10209 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10210 to unsigned char *.
10211 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10212 * iconvdata/jis0212.h: Include assert.h.
10213 (ucs4_to_jisx0212): Change second argument to unsigned char *.
10214 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10215 of trying to handle that.
10216 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10217 shut up a warning.
10218 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10219 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10220 two dimensional const unsigned char arrays.
10221 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10222 Initialize endp to inptr to shut up a warning.
10223
10224 2007-07-20 Jakub Jelinek <jakub@redhat.com>
10225
10226 [BZ #4772]
10227 * time/strptime_l.c (__strptime_internal): Silently ignore
10228 strftime modifiers and field width in recursive calls.
10229
10230 * include/time.h (enum ptime_locale_status): Remove.
10231 (__strptime_internal): Remove decided and era_cnt arguments,
10232 add statep argument.
10233 * time/strptime_l.c (__strptime_internal): Remove decided
10234 and era_cnt arguments, add statep argument. Don't recompute
10235 any fields in recursive calls, only update caller's tm
10236 and state, if recursive call fails, don't change tm nor
10237 any state.
10238 (get_alt_number): Adjust.
10239 (recursive): Adjust caller.
10240 (strptime): Likewise.
10241 * time/strptime.c (strptime): Likewise.
10242
10243 2007-07-19 Jakub Jelinek <jakub@redhat.com>
10244
10245 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10246 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10247 if from and to charsets are the same.
10248 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10249 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10250 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10251
10252 2007-07-17 Jakub Jelinek <jakub@redhat.com>
10253
10254 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10255 Don't define wint_t when __need_mbstate_t unless it
10256 is necessary.
10257 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10258 in the typedef if possible.
10259 * wctype/wctype.h (wint_t): Define by including
10260 wchar.h with __need_wint_t instead of including stddef.h
10261 with __need_wint_t and as fallback definining it ourselves.
10262 * iconv/gconv.h (__need_wint_t): Define before including
10263 wchar.h.
10264 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10265 or _GLIBCPP_USE_WCHAR_T.
10266 (__need_wchar_t): Don't define
10267 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10268 (__need_wint_t): Don't define before including stddef.h,
10269 define before including wchar.h only if _LIBC or
10270 _GLIBCPP_USE_WCHAR_T.
10271 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10272 * sysdeps/mach/hurd/_G_config.h: Likewise.
10273 * sysdeps/generic/_G_config.h: Likewise.
10274 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10275 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10276 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10277 if _LIBC or _GLIBCPP_USE_WCHAR_T.
10278
10279 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10280
10281 * sysdeps/posix/posix_fallocate64.c: Undefine
10282 __posix_fallocate64_l64 before alias handling.
10283 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10284 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10285 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10286 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10287
10288 * io/tst-posix_fallocate.c: Include <fcntl.h>.
10289
10290 2007-07-23 Jakub Jelinek <jakub@redhat.com>
10291
10292 * locale/programs/ld-collate.c (atwc): New variable.
10293 (add_to_tablewc): New toplevel function, moved from collate_output.
10294 (collate_output): Remove add_to_tablewc nested function.
10295
10296 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10297 (name_insert): New function.
10298 (write_output): Remove hash_table and hash_size vars and name_insert
10299 nested function.
10300
10301 2007-07-24 Roland McGrath <roland@redhat.com>
10302
10303 * Makerules (install-others-programs-nosubdir): New target.
10304 (install-no-libc.a-nosubdir): Depend on it.
10305
10306 * iconv/Makefile (install-others-programs): Set this instead of
10307 install-others.
10308 * login/Makefile (install-others-programs): Likewise.
10309 * posix/Makefile (install-others-programs): Likewise.
10310
10311 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10312 dependencies.
10313
10314 2007-07-23 Ulrich Drepper <drepper@redhat.com>
10315
10316 * io/Makefile (tests): Add tst-posix_fallocate.
10317 * io/tst-posix_fallocate.c: New file.
10318
10319 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10320 __ASSUME_FALLOCATE.
10321
10322 2007-07-22 Roland McGrath <roland@frob.com>
10323
10324 * hurd/getdport.c: Add missing copyright year update.
10325
10326 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10327 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10328
10329 2007-07-22 Ulrich Drepper <drepper@redhat.com>
10330
10331 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10332
10333 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10334 O_CLOEXEC is needed.
10335 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10336 Avoid additional fcntl to set O_CLOEXEC if not needed.
10337 * nis/nss_compat/compat-initgroups.c: Likewise.
10338 * nis/nss_compat/compat-pwd.c: Likewise.
10339 * nis/nss_compat/compat-spwd.c: Likewise.
10340
10341 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10342
10343 [BZ #3665]
10344 * manual/errno.texi: Change ECANCELED value to 119.
10345
10346 [BZ #4610]
10347 * mach/lock-intern.h: Include <sys/cdefs.h>.
10348
10349 [BZ #4178]
10350 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10351 reading A.
10352
10353 [BZ #4126]
10354 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10355 to __sigsuspend.
10356
10357 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10358
10359 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
10360
10361 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10362 `__ASSEMBLER__'.
10363 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10364
10365 2007-07-21 Ulrich Drepper <drepper@redhat.com>
10366
10367 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10368 descriptor received from nscd.
10369
10370 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10371
10372 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10373 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10374 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10375 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10376 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10377 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10378
10379 2007-07-20 Jakub Jelinek <jakub@redhat.com>
10380
10381 [BZ #4816]
10382 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10383
10384 [BZ #4813]
10385 * login/forkpty.c (forkpty): Close master and slave fds on
10386 fork failure. Patch by
10387 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10388
10389 2007-07-18 Jakub Jelinek <jakub@redhat.com>
10390
10391 * include/features.h (__USE_ISOC95): New define.
10392 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10393 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10394 for -std=iso9899:199409.
10395 * CONFORMANCE: Remove comments about unsupported AMD1.
10396
10397 2007-07-17 Jakub Jelinek <jakub@redhat.com>
10398
10399 * sysdeps/ia64/sched_cpucount.c: New file.
10400 * sysdeps/powerpc/sched_cpucount.c: New file.
10401
10402 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10403 __BEGIN_DECLS/__END_DECLS around the prototype.
10404 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
10405 pointer to const cpu_set_t.
10406
10407 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10408 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10409 __need_size_t and include stddef.h.
10410 * sysvipc/sys/msg.h: Likewise.
10411 * posix/sched.h: Likewise.
10412 * hurd/hurd/signal.h (__need_size_t): Define.
10413
10414 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10415 neither does signal.h in pedantic ISO C namespaces. stdio.h
10416 no longer defines wint_t or wchar_t.
10417
10418 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10419 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10420 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10421 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10422 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10423 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10424 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10425 * debug/printf_chk.c (__printf_chk): Likewise.
10426 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10427 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10428
10429 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10430 Define.
10431
10432 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10433 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10434
10435 2007-07-16 Jakub Jelinek <jakub@redhat.com>
10436
10437 [BZ #4792]
10438 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10439 * malloc/malloc.h (realloc): Likewise.
10440
10441 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10442 if one of proc_file_chain streams has that fileno.
10443 * stdio-common/Makefile (tests): Add tst-popen2.
10444 * stdio-common/tst-popen2.c: New test.
10445
10446 2007-07-14 Jakub Jelinek <jakub@redhat.com>
10447
10448 * elf/ldconfig.c: Allow GPLv2 or any later version.
10449 * elf/readlib.c: Likewise.
10450 * elf/chroot_canon.c: Likewise.
10451 * elf/cache.c: Likewise.
10452 * nscd/mem.c: Likewise.
10453 * nscd/getpwuid_r.c: Likewise.
10454 * nscd/grpcache.c: Likewise.
10455 * nscd/aicache.c: Likewise.
10456 * nscd/getsrvbynm_r.c: Likewise.
10457 * nscd/nscd.c: Likewise.
10458 * nscd/servicescache.c: Likewise.
10459 * nscd/getsrvbypt_r.c: Likewise.
10460 * nscd/initgrcache.c: Likewise.
10461 * nscd/gethstbyad_r.c: Likewise.
10462 * nscd/gethstbynm2_r.c: Likewise.
10463 * nscd/getgrnam_r.c: Likewise.
10464 * nscd/nscd_setup_thread.c: Likewise.
10465 * nscd/getpwnam_r.c: Likewise.
10466 * nscd/gai.c: Likewise.
10467 * nscd/connections.c: Likewise.
10468 * nscd/dbg_log.c: Likewise.
10469 * nscd/cache.c: Likewise.
10470 * nscd/hstcache.c: Likewise.
10471 * nscd/nscd_conf.c: Likewise.
10472 * nscd/getgrgid_r.c: Likewise.
10473 * nscd/pwdcache.c: Likewise.
10474 * catgets/gencat.c: Likewise.
10475 * locale/programs/linereader.h: Likewise.
10476 * locale/programs/locarchive.c: Likewise.
10477 * locale/programs/ld-paper.c: Likewise.
10478 * locale/programs/locfile-kw.h: Likewise.
10479 * locale/programs/ld-address.c: Likewise.
10480 * locale/programs/xmalloc.c: Likewise.
10481 * locale/programs/ld-time.c: Likewise.
10482 * locale/programs/localedef.c: Likewise.
10483 * locale/programs/simple-hash.c: Likewise.
10484 * locale/programs/xstrdup.c: Likewise.
10485 * locale/programs/ld-numeric.c: Likewise.
10486 * locale/programs/locfile-kw.gperf: Likewise.
10487 * locale/programs/ld-collate.c: Likewise.
10488 * locale/programs/charmap-kw.gperf: Likewise.
10489 * locale/programs/charmap.h: Likewise.
10490 * locale/programs/charmap-kw.h: Likewise.
10491 * locale/programs/config.h: Likewise.
10492 * locale/programs/locfile.c: Likewise.
10493 * locale/programs/ld-ctype.c: Likewise.
10494 * locale/programs/charmap.c: Likewise.
10495 * locale/programs/ld-messages.c: Likewise.
10496 * locale/programs/repertoire.h: Likewise.
10497 * locale/programs/locale.c: Likewise.
10498 * locale/programs/ld-name.c: Likewise.
10499 * locale/programs/linereader.c: Likewise.
10500 * locale/programs/locfile.h: Likewise.
10501 * locale/programs/3level.h: Likewise.
10502 * locale/programs/ld-monetary.c: Likewise.
10503 * locale/programs/ld-measurement.c: Likewise.
10504 * locale/programs/charmap-dir.c: Likewise.
10505 * locale/programs/ld-identification.c: Likewise.
10506 * locale/programs/localedef.h: Likewise.
10507 * locale/programs/charmap-dir.h: Likewise.
10508 * locale/programs/repertoire.c: Likewise.
10509 * locale/programs/simple-hash.h: Likewise.
10510 * locale/programs/ld-telephone.c: Likewise.
10511 * locale/programs/locale-spec.c: Likewise.
10512 * locale/programs/locfile-token.h: Likewise.
10513 * posix/getconf.c: Likewise.
10514 * iconv/dummy-repertoire.c: Likewise.
10515 * iconv/iconv_charmap.c: Likewise.
10516 * iconv/iconvconfig.c: Likewise.
10517 * iconv/iconv_prog.c: Likewise.
10518 * malloc/memusagestat.c: Likewise.
10519 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10520
10521 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10522
10523 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10524 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10525 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10526 check for the first argument.
10527
10528 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10529
10530 [BZ #4775]
10531 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10532 (__tgmath_real_type): Fix if expr is const int or other const
10533 qualified integral type.
10534 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10535 expressions and handle const qualified arguments.
10536 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10537 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10538 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10539 statement expressions.
10540 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10541 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10542 (__TGMATH_UNARY_IMAG): Define.
10543 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10544 * math/Makefile (tests): Add test-tgmath2.
10545 (CFLAGS-test-tgmath2.c): Add.
10546 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10547 count_cfloat, count_cldouble): New variables.
10548 (NCCALLS): Define.
10549 (main): Check number of complex calls as well.
10550 (F(compile_test)): Add complex tests and tests with const qualified
10551 arguments.
10552 (y, z, ccount): Define.
10553 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10554 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10555 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10556 F(cproj)): New functions.
10557 * math/test-tgmath2.c: New test.
10558
10559 2007-07-11 Jakub Jelinek <jakub@redhat.com>
10560
10561 [BZ #4776]
10562 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10563 RPATH etc. as "/" rather than "", don't segfault on empty paths,
10564 instead output ".".
10565 * dlfcn/Makefile (distribute): Add glreflib3.c.
10566 (module-names): Add glreflib3.
10567 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10568 glreflib1.so.
10569 (LDFLAGS_glreflib3.so): New.
10570 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10571 glreflib1.so.
10572 * dlfcn/glreflib3.c: New file.
10573
10574 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10575 returned -1, return NULL.
10576 * intl/explodename.c (_nl_explode_name): Return -1 if
10577 _nl_normalize_codeset failed.
10578
10579 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
10580
10581 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10582 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
10583 and avoid branch misspredicts for > 31 bytes memset case.
10584 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10585 Remove toc ref to __cache_line_size.
10586
10587 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10588 to get ISA-V2.0 branch hints.
10589 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10590 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10591 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10592 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10593 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10594 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10595 Remove toc ref to __cache_line_size.
10596
10597 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10598 Include math_ldbl_opt.h.
10599
10600 2007-07-10 Ulrich Drepper <drepper@redhat.com>
10601
10602 [BZ #4773]
10603 * time/strptime_l.c (__strptime_internal): Implement greedy
10604 matching of weekday and month names.
10605
10606 2007-07-09 Roland McGrath <roland@redhat.com>
10607
10608 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10609 (ELF_NOTE_ABI): Use it.
10610 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10611
10612 2007-07-09 Ulrich Drepper <drepper@redhat.com>
10613
10614 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10615 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10616
10617 2007-07-07 Ulrich Drepper <drepper@redhat.com>
10618
10619 [BZ #4745]
10620 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10621 in loop to look for conversion specifier to avoid testing of
10622 wrong errno value.
10623 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10624 * stdio-common/bug18.c: New file.
10625 * stdio-common/bug18a.c: New file.
10626 * stdio-common/bug19.c: New file.
10627 * stdio-common/bug19a.c: New file.
10628
10629 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10630
10631 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10632 running awk script.
10633
10634 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10635
10636 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10637 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10638 Return NULL if mmap failed instead of asserting it does not.
10639 (calloc): Check for integer overflow.
10640
10641 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10642 than LONG_MAX / 10.
10643
10644 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10645
10646 [BZ #4702]
10647 * nis/nss-default.c: Include errno.h.
10648 (init): Preserve errno.
10649
10650 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10651
10652 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10653
10654 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10655
10656 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10657
10658 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10659
10660 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10661
10662 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10663
10664 * sysdeps/s390/dl-procinfo.c: New file.
10665 * sysdeps/s390/dl-procinfo.h: New file.
10666 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10667
10668 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10669
10670 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10671 in PT_NOTE segments with multiple notes.
10672 * elf/readelflib.c (process_elf_file): Likewise.
10673
10674 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10675
10676 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10677 ISO C compliant.
10678
10679 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10680
10681 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10682
10683 2007-06-13 Jakub Jelinek <jakub@redhat.com>
10684
10685 * include/link.h: Don't include rtld-lowlevel.h.
10686 (struct link_map): Remove l_scope_lock.
10687 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10688 (_dl_scope_free_list): New field (variable) in _rtld_global.
10689 (DL_LOOKUP_SCOPE_LOCK): Remove.
10690 (_dl_scope_free): New prototype.
10691 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10692 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10693 (_dl_profile_fixup): Likewise.
10694 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
10695 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10696 THREAD_GSCOPE_RESET_FLAG around it.
10697 * elf/dl-close.c (_dl_close_worker): Don't use
10698 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
10699 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
10700 scopes were queued or if l_scope_mem has been abandoned.
10701 * elf/dl-open.c (_dl_scope_free): New function.
10702 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
10703 * elf/dl-support.c (_dl_scope_free_list): New variable.
10704 * elf/dl-lookup.c (add_dependency): Remove flags argument.
10705 Remove DL_LOOKUP_SCOPE_LOCK handling.
10706 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
10707 handling.
10708 * elf/dl-object.c (_dl_new_object): Don't use
10709 __rtld_mrlock_initialize.
10710
10711 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10712
10713 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10714 to fill in holes
10715 (rtld_global_ro): Likewise.
10716
10717 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10718
10719 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10720 Move PT_LOAD checking to...
10721 (_dl_addr_inside_object): ... here, new function.
10722 * elf/dl-sym.c (do_sym): If not l_contiguous,
10723 call _dl_addr_inside_object.
10724 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10725 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10726 * elf/dl-open.c (dl_open_worker): Likewise.
10727 (_dl_addr_inside_object): New function if IS_IN_rtld.
10728 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10729 holes are present or are PROT_NONE protected.
10730 * include/link.h (struct link_map): Add l_contiguous field.
10731 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10732
10733 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10734 Tomas Janousek <tjanouse@redhat.com>
10735 Ulrich Drepper <drepper@redhat.com>
10736
10737 [BZ #4647]
10738 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
10739 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10740 socket.
10741 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
10742 unused member a bitmap.
10743 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10744 servers are configured.
10745
10746 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10747
10748 * elf/rtld.c (dl_main): Don't call init_tls more than once.
10749
10750 2007-06-17 Andreas Schwab <schwab@suse.de>
10751
10752 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10753
10754 2007-06-16 Andreas Jaeger <aj@suse.de>
10755
10756 [BZ #4125]
10757 * sysdeps/unix/sysv/linux/sys/ptrace.h
10758 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10759 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10760 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10761 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10762 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10763 Define.
10764 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10765 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10766 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10767 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10768
10769 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10770
10771 [BZ #4599]
10772 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10773 determining whether there are IPv4/IPv6 addresses, ignore loopback
10774 addresses.
10775
10776 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10777
10778 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10779 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10780 as the return type. Change type of "r" variable to CMPtype.
10781 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10782 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10783 * soft-fp/gedf2.c (__gedf2): Likewise.
10784 * soft-fp/gesf2.c (__gesf2): Likewise.
10785 * soft-fp/getf2.c (__getf2): Likewise.
10786 * soft-fp/ledf2.c (__ledf2): Likewise.
10787 * soft-fp/lesf2.c (__lesf2): Likewise.
10788 * soft-fp/letf2.c (__letf2): Likewise.
10789 * soft-fp/unorddf2 (__unorddf2): Likewise.
10790 * soft-fp/unordsf2 (__unordsf2): Likewise.
10791 * soft-fp/unordtf2 (__unordtf2): Likewise.
10792
10793 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10794
10795 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10796 make sure gcc doesn't mess around with this.
10797
10798 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10799
10800 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10801
10802 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10803
10804 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10805 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10806 at most once per _dl_close_worker.
10807
10808 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10809
10810 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10811 __sched_cpucount as const.
10812 * posix/sched_cpucount.c: Adjust.
10813
10814 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10815 instruction for counting bits.
10816 * sysdeps/x86_64/sched_cpucount.c: New file.
10817
10818 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10819
10820 * configure.in: Avoid variable named BASH.
10821 * config.make.in: Likewise.
10822 Patch in part by Mike Frysinger.
10823
10824 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10825
10826 [BZ #4586]
10827 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10828 pseudo-zeros as zero.
10829 * sysdeps/x86_64/ldbl2mpn.c: New file.
10830 * sysdeps/ia64/ldbl2mpn.c: New file.
10831
10832 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10833
10834 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10835 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10836 Remove unreachable code at the end.
10837
10838 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10839
10840 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10841 ldbl-128ibm in comment.
10842 (fpclassifyl): Correct classification of denormals.
10843 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10844 return value for MIN denormal. Rewrite using long double math too
10845 correctly handle denormals and canonicalize the results.
10846
10847 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10848
10849 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10850 (__mpn_construct_long_double): Fix conversion where result ought
10851 to be smaller than __LDBL_MIN__, or the low double should be
10852 denormal. Fix decision where to negate low double - honor round
10853 to even rules.
10854 * stdio-common/tst-sprintf2.c: Include string.h.
10855 (COMPARE_LDBL): Define.
10856 (TEST): Also test whether a string hexadecimal float representation
10857 can be parsed back to the number.
10858 (main): Add a couple of further tests.
10859
10860 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10861
10862 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10863 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10864 is non-zero, but smaller than 2 * __DBL_MIN__.
10865 * stdio-common/tst-sprintf2.c: New test.
10866 * stdio-common/Makefile (tests): Add tst-sprintf2.
10867
10868 * math/test-misc.c (main): Don't run last batch of tests with
10869 IBM long double format.
10870
10871 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10872
10873 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10874 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10875 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10876 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10877 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10878 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10879 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10880 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10881 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10882 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10885 New file.
10886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10887 New file.
10888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10889 New file.
10890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10891 New file.
10892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10893 New file.
10894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10896 New file.
10897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10898 New file.
10899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10900 New file.
10901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10902 New file.
10903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10904 New file.
10905
10906 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10907
10908 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10909 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10910 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10911 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10912 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10913 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10914 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10915 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10916
10917 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10918
10919 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10920 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10921 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10922 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10923 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10924 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10925 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10926 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10927
10928 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10929
10930 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10931 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10932 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10933 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10934
10935 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10936
10937 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10938 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10939
10940 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10941
10942 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10943 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10944 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10945 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10946
10947 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10948
10949 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10950 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10951
10952 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10953
10954 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10955 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10956
10957 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10958 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10959 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10960 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10961
10962 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10963
10964 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10965 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10966 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10967 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10968
10969 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10970
10971 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10972 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10973 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10974 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10975 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10976 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10977
10978 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10979
10980 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10981 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10982 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10983 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10984
10985 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10986
10987 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10988 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10989 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10990 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10991 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10992 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10993 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10994 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10995 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10996 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10997 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10998 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10999 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
11000 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
11001 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
11002 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
11003
11004 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
11005
11006 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
11007 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
11008
11009 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
11010
11011 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
11012 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
11013
11014 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11015
11016 * sysdeps/powerpc/powerpc32/970/Implies: New file.
11017 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
11018 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
11019 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
11020 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
11021 * sysdeps/powerpc/powerpc64/970/Implies: New file.
11022 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
11023 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
11024 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
11025 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
11026
11027 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
11028
11029 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
11030
11031 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
11032
11033 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
11034 branch miss-predicts. Ensure that cache line crossing does not impact
11035 dispatch grouping.
11036
11037 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
11038
11039 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11040 "../../powerpc32/power4/memcopy.h".
11041 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11042 "../../powerpc32/power4/wordcopy.c".
11043
11044 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
11045
11046 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11047 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11048 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11049 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11050 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11051 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11052
11053 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
11054
11055 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11056
11057 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
11058
11059 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11060 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11061 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11062 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11063 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11064 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11065 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11066 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11067
11068 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
11069
11070 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11071
11072 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
11073
11074 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11075 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11076 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11077 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11078 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11079 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11080 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11081
11082 2007-05-29 Roland McGrath <roland@redhat.com>
11083
11084 * po/Makefile (po-sed-cmd): New variable.
11085 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11086
11087 2007-05-29 Ulrich Drepper <drepper@redhat.com>
11088
11089 * crypt/md5-crypt.c: Fix comment.
11090
11091 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11092 of crashing. When this is the case or if the reply is malformed,
11093 don't try to close the new file descriptor since it does not
11094 exist.
11095 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11096
11097 2007-05-28 Jakub Jelinek <jakub@redhat.com>
11098
11099 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11100 if __NR_utimensat is not defined.
11101
11102 2007-05-26 Ulrich Drepper <drepper@redhat.com>
11103
11104 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11105
11106 2007-05-25 Jakub Jelinek <jakub@redhat.com>
11107
11108 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11109 (open): Fix comment typos. Don't call __open_2 if flags
11110 is a compile time constant without O_CREAT.
11111 (__open64_2): Add nonnull attribute.
11112 (open64): Fix comment typos. Don't call __open64_2 if flags
11113 is a compile time constant without O_CREAT.
11114 (__openat_2): Add nonnull attribute, fix nonnull attribute
11115 on redirect.
11116 (openat): Fix comment typos. Don't call __openat_2 if flags
11117 is a compile time constant without O_CREAT.
11118 (__openat64_2): Add nonnull attribute, fix nonnull attribute
11119 on redirect.
11120 (openat64): Fix comment typos. Don't call __openat64_2 if flags
11121 is a compile time constant without O_CREAT.
11122
11123 2007-05-24 Ulrich Drepper <drepper@redhat.com>
11124
11125 * Makerules (sysd-rules): Define PTW for ptw-* files.
11126 * Versions: Define GLIBC_2.7 for libc.
11127 * include/stdio.h: Declare __fortify_fail.
11128 * debug/fortify_fail.c: New file.
11129 * debug/Makefile (routines): Add fortify_fail.
11130 * debug/chk_fail.c: Use __fortify_fail.
11131 * debug/stack_chk_fail.c: Likewise.
11132 * io/Versions: Export __open_2, __open64_2, __openat_2, and
11133 __openat64_2 for GLIBC_2.7.
11134 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11135 * io/open.c: Define *_2 variant of function which checks for O_CREAT
11136 and fails if necessary.
11137 * io/open64.c: Likewise.
11138 * io/openat.c: Likewise.
11139 * io/openat64.c: Likewise.
11140 * sysdeps/unix/sysv/linux/open64.c: Likewise.
11141 * sysdeps/unix/sysv/linux/openat.c: Likewise.
11142 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11143 * io/bits/fcntl2.h: New file.
11144 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11145 __openat64_2.
11146 * include/bits/fcntl2.h: New file.
11147 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11148 Add open_2.
11149 * sysdeps/unix/sysv/linux/open_2.c: New file.
11150
11151 2007-05-21 Ulrich Drepper <drepper@redhat.com>
11152
11153 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11154 as second parameter to handle_intel.
11155
11156 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11157 the entry.
11158
11159 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11160 handling to ...
11161 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
11162 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11163 cacheinfo.
11164 * sysdeps/x86_64/memcpy.S: Complete rewrite.
11165 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11166 Patch by Evandro Menezes <evandro.menezes@amd.com>.
11167
11168 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11169
11170 2007-05-21 Jakub Jelinek <jakub@redhat.com>
11171
11172 [BZ #4525]
11173 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11174 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11175 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11176
11177 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11178
11179 [BZ #4514]
11180 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11181 reinitialize workend at the start of each do_positional format spec
11182 loop, free workstart before do_positional loops.
11183 (printf_unknown): Fix size of work_buffer.
11184 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11185
11186 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11187 (public_sET_STATe): If ms->version < 3, put all chunks into
11188 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11189 chunks.
11190
11191 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11192 * malloc/hooks.c: Likewise.
11193 * malloc/arena.c: Likewise.
11194 * malloc/malloc.c (do_check_malloc_state): Don't assert
11195 n_mmaps is not greater than n_mmaps_max. This removes the need
11196 for the previous change.
11197
11198 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11199 2007-05-07 commit.
11200
11201 2007-05-19 Ulrich Drepper <drepper@redhat.com>
11202
11203 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11204 Define for kernel >= 2.6.22.
11205
11206 2007-05-18 Ulrich Drepper <drepper@redhat.com>
11207
11208 * elf/dl-close.c (_dl_close_worker): When removing object from
11209 global scope, wait for all lookups to finish afterwards.
11210 * elf/dl-open.c (add_to_global): When global scope array must
11211 grow, allocate a new one and free old array only after all
11212 lookups finish.
11213 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11214 (_dl_lookup_symbol_x): Likewise.
11215 * elf/dl-support.c: Define _dl_wait_lookup_done.
11216 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11217 _dl_wait_lookup_done.
11218
11219 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11220 not overlapping with arena.
11221
11222 * malloc/mcheck.c (reallochook): If size==0, free the block.
11223
11224 * rt/tst-shm.c: Use fstat64 instead of fstat.
11225
11226 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11227 __NR_sync_file_range is not defined.
11228
11229 2007-05-17 Ulrich Drepper <drepper@redhat.com>
11230
11231 Dummy files to prevent stub versions from being used.
11232 * sysdeps/x86_64/fpu/k_cosl.c: New file.
11233 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11234 * sysdeps/x86_64/fpu/k_sinl.c: New file.
11235 * sysdeps/x86_64/fpu/k_tanl.c: New file.
11236
11237 * version.h (VERSION): Set to 2.6.90.
11238
11239 2007-05-14 Ulrich Drepper <drepper@redhat.com>
11240
11241 * version.h (VERSION): Define to 2.6.
11242 * include/features.h (__GLIBC_MINOR__): Define to 6.
11243
11244 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11245
11246 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11247 sizes.
11248
11249 2007-05-13 Ulrich Drepper <drepper@redhat.com>
11250
11251 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11252 number of mmaps. n_mmaps_max is the target.
11253 * malloc/hooks.c: Likewise.
11254 * malloc/arena.c: Likewise.
11255
11256 2007-05-12 Andreas Jaeger <aj@suse.de>
11257
11258 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11259 getpid.
11260
11261 2007-05-11 Ulrich Drepper <drepper@redhat.com>
11262
11263 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11264 adding new variables.
11265
11266 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11267 optimize. Completely extend global scope array before making the
11268 new entries visible.
11269
11270 2007-05-10 Ulrich Drepper <drepper@redhat.com>
11271
11272 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11273 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11274 tst-getcpu.
11275
11276 * include/link.h: Move l_version and l_nversion members around to
11277 fill gaps.
11278
11279 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11280
11281 * sysdeps/unix/sysv/linux/sched_setaffinity.c
11282 (__sched_setaffinity_new): If syscall was successful and
11283 RESET_VGETCPU_CACHE is defined, use it before returning.
11284 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11285
11286 * io/sys/stat.h: Make sure struct timespec is defined for
11287 __USE_ATFILE.
11288
11289 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11290 UTIME_OMIT.
11291 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11292 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11293 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11294 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11295 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11296 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11297 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11298 * io/sys/stat.h: Declare utimensat, futimens.
11299 * io/utimensat.c: New file.
11300 * io/futimens.c: New file.
11301 * sysdeps/unix/sysv/linux/utimensat.c: New file.
11302 * sysdeps/unix/sysv/linux/futimens.c: New file.
11303 * io/Makefile (routines): Add utimensat, futimens.
11304 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11305 * sysdeps/unix/sysv/linux/lutimes.c: New file.
11306 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11307 available.
11308
11309 * include/sys/cdefs.h: Redefine __nonnull so that test for
11310 incorrect parameters in the libc code itself are not omitted.
11311
11312 2007-05-09 Jakub Jelinek <jakub@redhat.com>
11313
11314 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11315 exception in addition to inexact when asked to raise only FE_INEXACT.
11316
11317 [BZ #3427]
11318 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11319 in *envp.
11320
11321 2007-05-07 Ulrich Drepper <drepper@redhat.com>
11322
11323 [BZ #4403]
11324 * string/strfry.c (strfry): Make result more random.
11325
11326 2007-05-07 Richard Henderson <rth@redhat.com>
11327
11328 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11329 if __NO_LONG_DOUBLE_MATH.
11330 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11331 available in the compiler, add .arch directive to the assembly.
11332
11333 2007-05-07 Jakub Jelinek <jakub@redhat.com>
11334
11335 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11336 compat_symbol to GLIBC_2_1.
11337 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11338 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11339 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11340 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11341 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11342 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11343 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11344 libc, not libm.
11345 (__isnanl): New compat_symbol.
11346
11347 2007-05-07 Ulrich Drepper <drepper@redhat.com>
11348 Jakub Jelinek <jakub@redhat.com>
11349
11350 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11351 (new_heap): Initialize mprotect_size.
11352 (grow_heap): When growing, only mprotect from mprotect_size till
11353 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
11354 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11355
11356 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
11357 Peter Bergner <bergner@us.ibm.com>
11358
11359 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11360 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
11361 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11362 * sysdeps/powerpc/fpu/fe_mask.c: New file.
11363 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11364 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11365 Call __fe_mask_env() if all FP exceptions disabled.
11366 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11367 from old FPSCR to new fenv to propagate DFP rounding modes.
11368 Call __fe_mask_env() if FP exceptions previously enabled.
11369 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11370 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
11371 transitioning from all exceptions disabled to any exception enabled
11372 or visa versa.
11373 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11374 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
11375 when transitioning from all exceptions disabled to any exception
11376 enabled or visa versa.
11377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11378 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11383
11384 2007-05-06 Ulrich Drepper <drepper@redhat.com>
11385
11386 [BZ #4465]
11387 * posix/unistd.h: Remove __THROW from fdatasync.
11388
11389 2007-05-06 Mike Frysinger <vapier@gentoo.org>
11390
11391 [BZ #4465]
11392 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11393
11394 2007-05-06 Ulrich Drepper <drepper@redhat.com>
11395
11396 * stdio-common/vfprintf.c (process_string_arg): Optimize
11397 ridiculous precision in wide char code printing multi-byte string.
11398 Reported by Jim Meyering <jim@meyering.net>.
11399
11400 [BZ #4131]
11401 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11402 boundaries to work around systems with overlapping binary loading.
11403 Based on a patch by Suzuki <suzuki@in.ibm.com>.
11404
11405 2007-05-04 Ulrich Drepper <drepper@redhat.com>
11406
11407 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11408 __mbsnrtowcs after last change.
11409
11410 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11411 (get_ident): Likewise.
11412
11413 2007-05-03 Jakub Jelinek <jakub@redhat.com>
11414
11415 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11416 with setting the sticky bit.
11417 * math/test-misc.c (main): Add more truncation tests.
11418
11419 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
11420
11421 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11422 double in the function declaration.
11423 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11424 double in the function declaration.
11425 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11426 float in the function declaration.
11427 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11428 float in the function declaration.
11429
11430 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11431 denormal operands. Do not generate FP_EX_DENORM exception.
11432 (FP_UNPACK_RAW_EP): Ditto.
11433 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11434 undefined _FP_UNPACK_RAW_E.
11435 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11436 undefined _FP_UNPACK_RAW_EP.
11437 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11438 undefined _FP_PACK_RAW_E.
11439 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11440 undefined _FP_PACK_RAW_EP.
11441
11442 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11443 _FP_FRAC_COPY_2.
11444 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11445 _FP_FRAC_COPY_4.
11446
11447 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
11448 Jakub Jelinek <jakub@redhat.com>
11449
11450 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11451 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
11452 this case.
11453 * soft-fp/op-common.h (FP_TRUNC): Ditto.
11454
11455 2007-05-03 Jakub Jelinek <jakub@redhat.com>
11456
11457 * math/test-misc.c (main): Add tests for rounding long double
11458 values close to smallest double denormalized value to double.
11459
11460 2007-04-30 Joseph Myers <joseph@codesourcery.com>
11461
11462 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11463 condition for truncating to 0. Set sticky bit for such
11464 truncation.
11465
11466 2007-05-02 Jakub Jelinek <jakub@redhat.com>
11467
11468 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11469 fixed length array for ignore.
11470
11471 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11472
11473 [BZ #4438]
11474 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11475 stack for large precisions.
11476 * stdio-common/test-vfprintf.c (main): Add test for large
11477 precision.
11478
11479 2007-04-30 Jakub Jelinek <jakub@redhat.com>
11480
11481 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11482 for exponent 0.
11483 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11484
11485 [BZ #4439]
11486 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11487 account in the size check.
11488 * resolv/tst-inet_ntop.c: New test.
11489 * resolv/Makefile (tests): Add tst-inet_ntop.
11490
11491 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11492 Jakub Jelinek <jakub@redhat.com>
11493
11494 [BZ #4349]
11495 * malloc/malloc.c: Keep separate list for first blocks on the bin
11496 lists with a given size. This helps skipping over list elements
11497 we know won't fit in two places.
11498 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11499
11500 2007-04-28 Ulrich Drepper <drepper@redhat.com>
11501
11502 [BZ #4102]
11503 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11504 label to Teredo tunnel addresses 2001://32.
11505
11506 2007-04-27 Ulrich Drepper <drepper@redhat.com>
11507
11508 * locale/programs/ld-collate.c (collate_read): Allow order_start
11509 after copy.
11510
11511 * locale/programs/ld-collate.c (collate_read): Fix printing of
11512 error message.
11513
11514 [BZ #3213]
11515 * locale/C-translit.h.in: Add entry for U2044.
11516
11517 [BZ #4342]
11518 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11519 hexa-decimal floats without exponent.
11520 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11521
11522 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11523
11524 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11525 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11526 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11527 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11528 GLIBC_2.6.
11529 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11530 Add sched_getcpu.
11531
11532 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11533
11534 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11535 of 0 after the out_fail label.
11536
11537 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11538
11539 [BZ #4406]
11540 * iconv/gconv_charset.h (strip): Allow ':'.
11541 * iconv/iconv_open.c (iconv_open): Adjust comment.
11542
11543 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11544
11545 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11546 version.
11547
11548 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11549
11550 [BZ #4381]
11551 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11552 alignment of buffer and tmp_buffer.
11553 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11554 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11555 alignment of buffer.
11556 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
11557 bigger than INT_MAX.
11558 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
11559 h_errnop arguments. Fail if buflen is too small.
11560 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11561
11562 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11563
11564 [BZ #4405]
11565 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11566 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
11567
11568 2007-04-22 Roland McGrath <roland@redhat.com>
11569
11570 * elf/elf.h (NT_PRXFPREG): New macro.
11571
11572 2007-04-19 Andreas Jaeger <aj@suse.de>
11573
11574 [BZ #3905]
11575 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11576 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11577 Added.
11578
11579 2007-04-19 Ulrich Drepper <drepper@redhat.com>
11580
11581 * include/sys/mman.h: Mark madvise hidden.
11582 * misc/madvise.c: Add libc_hidden_def.
11583
11584 2007-04-06 Jakub Jelinek <jakub@redhat.com>
11585
11586 * nis/nis_domain_of.c (__nis_domain_of): New function.
11587 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11588 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11589 * nis/nis_call.c (rec_dirsearch): Likewise.
11590 (first_shoot): Likewise. Remove search_parent_first argument.
11591 (struct nis_server_cache): Rename search_parent_first field
11592 to search_parent.
11593 (nis_server_cache_search, nis_server_cache_add): Rename
11594 search_parent_first argument to search_parent.
11595 (__nisfind_server): Likewise. If search_parent, call
11596 __nis_domain_of.
11597
11598 2007-04-18 Ulrich Drepper <drepper@redhat.com>
11599
11600 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11601
11602 2007-04-17 Ulrich Drepper <drepper@redhat.com>
11603
11604 [BZ #4368]
11605 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11606
11607 2007-04-16 Ulrich Drepper <drepper@redhat.com>
11608
11609 [BZ #4364]
11610 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11611
11612 2007-04-15 Jakub Jelinek <jakub@redhat.com>
11613
11614 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11615 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11616 current number of locales in SUPPORTED.
11617 (create_archive): Initialize serial.
11618 (enlarge_archive): Preserve aliases rather than duplicating
11619 their locrecs.
11620
11621 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11622
11623 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11624 after _IO_un_link, not before it.
11625
11626 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11627 special case handling when wcp == wstartp + 1. Fix a comment typo.
11628 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11629
11630 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11631
11632 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11633 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11634 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11635 Remove __THROW.
11636 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11637 _IO_file_xsgetn_maybe_mmap): Likewise.
11638 * libio/oldfileops.c (old_do_write): Likewise.
11639 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11640 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11641 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11642 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11643 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11644 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11645 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11646 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11647 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11648 _IO_file_underflow, _IO_file_underflow_mmap,
11649 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11650 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11651 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11652 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11653 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11654 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11655 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11656 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11657 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11658 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11659 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11660 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11661 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11662 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11663 _IO_adjust_column_internal, _IO_default_uflow_internal,
11664 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11665 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11666 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11667 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11668 _IO_file_close_it_internal, _IO_file_underflow_internal,
11669 _IO_file_overflow_internal, _IO_file_attach_internal,
11670 _IO_file_fopen_internal, _IO_file_sync_internal,
11671 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11672 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11673 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11674 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11675 _IO_seekpos_unlocked): Likewise.
11676 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11677 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11678
11679 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11680
11681 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11682 argument in xmalloc size computation.
11683
11684 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11685
11686 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11687 math_opt_barrier and math_force_eval macros.
11688
11689 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11690
11691 [BZ #3306]
11692 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11693 * sysdeps/i386/fpu/math_private.h: New file.
11694 * sysdeps/x86_64/fpu/math_private.h: New file.
11695 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11696 math_force_eval macros. Use "+m" constraint on asm rather than
11697 "=m" and "m".
11698 * math/s_nextafter.c (__nextafter): Likewise.
11699 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11700 Likewise.
11701 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11702 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11703 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11704 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11705 math_opt_barrier and math_force_eval macros.
11706 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11707 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11708 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11709 (__nexttoward): Use math_opt_barrier and
11710 math_force_eval macros. Use "+m" constraint on asm rather than
11711 "=m" and "m". Only use asm to force double result if
11712 FLT_EVAL_METHOD is 2.
11713 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11714 (__nexttowardf): Use math_opt_barrier and
11715 math_force_eval macros. Use "+m" constraint on asm rather than
11716 "=m" and "m". Only use asm to force double result if
11717 FLT_EVAL_METHOD is not 0.
11718 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11719 (__nexttowardf): Use math_opt_barrier and
11720 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11721 x to float using asm.
11722 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11723 (__nldbl_nexttowardf): Use math_opt_barrier and
11724 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11725 x to float using asm.
11726 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11727 (__nexttowardf): Use math_opt_barrier and math_force_eval
11728 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
11729 * math/bug-nextafter.c (zero, inf): New variables.
11730 (main): Add new tests.
11731 * math/bug-nexttoward.c (zero, inf): New variables.
11732 (main): Add new tests.
11733
11734 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11735
11736 [BZ #3427]
11737 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11738 exceptions both in SW and MXCSR.
11739 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11740 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11741 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11742 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11743 in MXCSR if SSE is available.
11744 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11745 and ldsodefs.h.
11746 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11747 Fix comment typo.
11748 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11749 Return 0 rather than 1.
11750 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11751 Remove incorrect part of a comment. Fix argument to feraiseexcept.
11752 * math/test-fenv.c (feholdexcept_tests): New function.
11753 (main): Call it.
11754
11755 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11756
11757 [BZ #3427]
11758 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11759 in SW.
11760
11761 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11762
11763 [BZ #4344]
11764 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11765 Reported by David Anderson <davea42@earthlink.net>.
11766
11767 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11768
11769 * posix/sys/wait.h: Remove unnecessary forward declaration.
11770
11771 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11772
11773 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11774 with obj->do_servers after first_shoot.
11775
11776 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11777
11778 * posix/Makefile (routines): Add sched_cpucount.
11779 (tests): Add tst-cpucount.
11780 * posix/sched_cpucount.c: New file.
11781 * posix/tst-cpucount.c: New file.
11782 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11783 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11784 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11785 * posix/sched.h: Define CPU_COUNT.
11786
11787 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11788
11789 * posix/fnmatch.c (STRUCT): Define.
11790 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11791 * posix/fnmatch_loop.c (struct STRUCT): New type.
11792 (FCT): Add ends argument. If ends != NULL and normal * is
11793 seen in the pattern, store current pattern and string pointers
11794 and return. Adjust recursive calls.
11795 (EXT): Adjust FCT callers.
11796 (STRUCT): Undef at the end of the file.
11797 * posix/Makefile (tests): Add tst-fnmatch2.
11798 * posix/tst-fnmatch2.c: New test.
11799
11800 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11801
11802 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11803 and 1 on failure.
11804
11805 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11806 Change last argument to unsigned int.
11807
11808 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11809
11810 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11811
11812 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11813
11814 * config.h.in (HAVE_LIBCAP): Add.
11815 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11816 sys/capabilities.h.
11817 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11818 free_caps. Cast away const from 4th cap_set_flag argument.
11819
11820 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11821
11822 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11823 GLIBC_2.6.
11824 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11825 Add sync_file_range.
11826 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11827
11828 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11829
11830 * sysdeps/powerpc/bits/atomic.h
11831 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11832 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11833 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11834 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11835 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11836 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11837 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11838 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11839 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11840 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11841 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11842 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11843 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11844 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11845 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11846 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11847 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11848 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11849 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11850 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11851
11852 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11853
11854 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11855 (__cache_line_size): Define the variable here. Add
11856 attribute_hidden, remove weak_extern.
11857 (__libc_start_main): Set __cache_line_size
11858 unconditionally.
11859 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11860 (__cache_line_size): Define the variable here. Add
11861 attribute_hidden, remove weak_extern.
11862 (DL_PLATFORM_AUXV): Set __cache_line_size
11863 unconditionally.
11864 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11865 weak_extern, add attribute_hidden.
11866 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11867 defined in ld.so.
11868 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11869 definition.
11870 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11871
11872 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11873
11874 [BZ #4276]
11875 * timezone/africa: Update from tzdata2007d.
11876 * timezone/asia: Likewise.
11877 * timezone/australasia: Likewise.
11878 * timezone/backward: Likewise.
11879 * timezone/europe: Likewise.
11880 * timezone/iso3166.tab: Likewise.
11881 * timezone/leapseconds: Likewise.
11882 * timezone/northamerica: Likewise.
11883 * timezone/southamerica: Likewise.
11884 * timezone/zone.tab: Likewise.
11885
11886 * timezone/private.h: Update from tzcode2007d.
11887 * timezone/zdump.c: Likewise.
11888 * timezone/zic.c: Likewise.
11889
11890 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11891
11892 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11893 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11894 variables.
11895 (nis_server_cache_search, nis_server_cache_add): New functions.
11896 (__nisfind_server): Use them. Add dbp and flags argument, if
11897 call __nisbind_create.
11898 (__nisbind_create): Add server_used and current_ep arguments,
11899 only call __nis_findfastest if server_used is ~0.
11900 (__do_niscall2, __prepare_niscall): Adjust callers.
11901 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11902 ckey_cache_euid, ckey_cache_lock): New variables.
11903 (get_ckey): New function.
11904 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11905 __pmap_getnisport. Save __pmap_getnisport result in
11906 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11907 key.
11908 * nis/nis_lookup.c (nis_lookup): Likewise.
11909 * nis/nis_table.c (nis_list): Likewise.
11910 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11911 prototypes.
11912
11913 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11914 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11915 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11916 _nss_nisplus_getservbyport_r): Likewise.
11917 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11918 _nss_nisplus_getnetbyaddr_r): Likewise.
11919 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11920 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11921 _nss_nisplus_getntohost_r): Likewise.
11922 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11923 _nss_nisplus_getrpcbynumber_r): Likewise.
11924
11925 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11926
11927 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11928 * configure: Rebuilt.
11929
11930 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11931 bit-fields.
11932 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11933
11934 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11935
11936 [BZ #2831]
11937 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11938 bit-fields.
11939
11940 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11941
11942 * nscd/gai.c: Include alloca.h.
11943 (__libc_use_alloca): Define.
11944
11945 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11946
11947 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11948 smaller scopes.
11949 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11950 (DL_DST_REQUIRED): Adjust user.
11951
11952 * include/dlfcn.h (struct link_map): New forward decl.
11953
11954 * inet/getnameinfo.c: Include stddef.h.
11955 (getnameinfo): Use offsetof.
11956
11957 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11958
11959 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11960
11961 * string/strerror_l.c: Include stdlib.h.
11962
11963 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11964 * config.make.in (gnu89-inline-CFLAGS): New variable.
11965 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11966 -std=gnu99.
11967 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11968 * argp/argp.h: Use it.
11969 * bits/mathinline.h: Likewise.
11970 * bits/sigset.h: Likewise.
11971 * bits/string.h: Likewise.
11972 * ctype/ctype.h: Likewise.
11973 * hurd/hurd.h: Likewise.
11974 * hurd/hurd/fd.h: Likewise.
11975 * hurd/hurd/port.h: Likewise.
11976 * hurd/hurd/signal.h: Likewise.
11977 * hurd/hurd/threadvar.h: Likewise.
11978 * hurd/hurd/userlink.h: Likewise.
11979 * io/sys/stat.h: Likewise.
11980 * libio/bits/stdio.h: Likewise.
11981 * libio/bits/stdio2.h: Likewise.
11982 * mach/lock-intern.h: Likewise.
11983 * mach/mach/mig_support.h: Likewise.
11984 * math/bits/cmathcalls.h: Likewise.
11985 * posix/bits/unistd.h: Likewise.
11986 * socket/bits/socket2.h: Likewise.
11987 * stdlib/bits/stdlib.h: Likewise.
11988 * stdlib/stdlib.h: Likewise.
11989 * string/argz.h: Likewise.
11990 * string/bits/string2.h: Likewise.
11991 * string/bits/string3.h: Likewise.
11992 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11993 * sysdeps/generic/inttypes.h: Likewise.
11994 * sysdeps/generic/machine-lock.h: Likewise.
11995 * sysdeps/generic/machine-sp.h: Likewise.
11996 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11997 * sysdeps/i386/i486/bits/string.h: Likewise.
11998 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11999 * sysdeps/mach/alpha/machine-lock.h: Likewise.
12000 * sysdeps/mach/alpha/machine-sp.h: Likewise.
12001 * sysdeps/mach/i386/machine-lock.h: Likewise.
12002 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
12003 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
12004 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
12005 * sysdeps/s390/bits/string.h: Likewise.
12006 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
12007 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12008 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
12009 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12010 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12011 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
12012 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12013 * wcsmbs/bits/wchar2.h: Likewise.
12014 * wcsmbs/wchar.h: Likewise.
12015 * stdlib/gmp.h: Likewise. Include <features.h> to get
12016 __extern_inline definition.
12017
12018 2007-03-15 Jakub Jelinek <jakub@redhat.com>
12019
12020 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
12021 NULL.
12022
12023 [BZ #3919]
12024 * math/libm-test.inc (log_test): Test -Inf and NaN.
12025 (log10_test, log1p_test, log2_test): Test -Inf.
12026 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
12027 FE_INVALID when argument is qNaN.
12028 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
12029 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
12030 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
12031 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
12032 andb $1, %ah with testb $1, %ah, don't test for parity, instead
12033 testb $4, %ah and jump if non-zero.
12034 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12035 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12036
12037 [BZ #4101]
12038 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12039 ancestors with the same depths.
12040 Patch by Niels Moeller <nisse@lysator.liu.se>.
12041 (filter_doc): Don't crash if argp is NULL.
12042 * argp/Makefile (tests): Add tst-argp2.
12043 * argp/tst-argp2.c: New test.
12044
12045 [BZ #4130]
12046 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12047 open_not_cancel_2.
12048 (updwtmp_file): Likewise.
12049
12050 [BZ #4181]
12051 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12052 (inet6_opt_append): Don't check extlen is big enough if extbuf
12053 is NULL.
12054 (inet6_opt_finish): Likewise.
12055 * inet/Makefile (tests): Add test-inet6_opt.
12056 * inet/test-inet6_opt.c: New test.
12057
12058 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12059 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12060 NLMSG_ERR. Instead use a page sized buffer.
12061 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12062 buffer.
12063
12064 2007-03-14 Richard Henderson <rth@redhat.com>
12065
12066 * sysdeps/alpha/fpu/s_llround.c: New file.
12067 * sysdeps/alpha/fpu/s_llroundf.c: New file.
12068 * sysdeps/alpha/fpu/s_lround.c: New file.
12069 * sysdeps/alpha/fpu/s_lroundf.c: New file.
12070 * sysdeps/alpha/fpu/s_round.c: New file.
12071 * sysdeps/alpha/fpu/s_roundf.c: New file.
12072 * sysdeps/alpha/fpu/s_trunc.c: New file.
12073 * sysdeps/alpha/fpu/s_truncf.c: New file.
12074
12075 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12076 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12077 * sysdeps/alpha/fpu/s_floor.c: Likewise.
12078 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12079 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12080 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12081
12082 * sysdeps/alpha/fpu/s_fmax.S: New file.
12083 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12084 * sysdeps/alpha/fpu/s_fmin.S: New file.
12085 * sysdeps/alpha/fpu/s_fminf.S: New file.
12086 * sysdeps/alpha/fpu/s_isnan.c: New file.
12087 * sysdeps/alpha/fpu/s_isnanf.c: New file.
12088 * sysdeps/alpha/fpu/s_llrint.c: New file.
12089 * sysdeps/alpha/fpu/s_llrintf.c: New file.
12090 * sysdeps/alpha/fpu/s_lrint.c: New file.
12091 * sysdeps/alpha/fpu/s_lrintf.c: New file.
12092 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12093 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12094
12095 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12096 (__fdimf, fdimf, __fdim, fdim): Remove.
12097 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12098 (__isnanf, __isnan, __isnanl): New.
12099
12100 2007-03-13 Richard Henderson <rth@redhat.com>
12101
12102 * sysdeps/ieee754/ldbl-128/Makefile: New file.
12103
12104 2007-03-13 Richard Henderson <rth@redhat.com>
12105
12106 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12107 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12108 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12109 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12110 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12111 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12112
12113 2007-03-13 Richard Henderson <rth@redhat.com>
12114
12115 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12116 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12117 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12118 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12119 Move to dl-auxv.h; initialize instead of extern weak.
12120 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12121 weak symbol.
12122 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12123 Extern instead of initialized.
12124
12125 2007-03-13 Richard Henderson <rth@redhat.com>
12126
12127 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12128 __sigsuspend_nocancel.
12129
12130 2007-03-06 Ulrich Drepper <drepper@redhat.com>
12131
12132 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12133 172.16/12 address range.
12134
12135 2007-03-02 Jakub Jelinek <jakub@redhat.com>
12136
12137 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12138 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12139 message.
12140
12141 2007-03-01 Jakub Jelinek <jakub@redhat.com>
12142
12143 [BZ #4069]
12144 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12145 earlier.
12146 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12147
12148 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12149 for x qNaN and y either +-inf or non-integer value.
12150 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12151 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12152 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12153
12154 2007-02-10 Mike Frysinger <vapier@gentoo.org>
12155
12156 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12157 from sysdep_headers.
12158
12159 2007-02-28 Jakub Jelinek <jakub@redhat.com>
12160
12161 * time/tzfile.c (find_transition): Instead of a linear search try to
12162 guess the transition index, use a linear search if the result is at
12163 most 10 transitions away from the guess or binary search otherwise.
12164
12165 2007-02-27 Jakub Jelinek <jakub@redhat.com>
12166
12167 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12168 memory reallocation.
12169
12170 2007-02-21 Ulrich Drepper <drepper@redhat.com>
12171
12172 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12173 and fix some typos.
12174 Optimize use of TOLOWER.
12175
12176 [BZ #3325]
12177 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12178 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12179 * sysdeps/i386/fpu/e_fmod.S: Likewise.
12180
12181 [BZ #3458]
12182 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12183 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12184
12185 [BZ #4076]
12186 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12187 (open_dir_stream): Likewise.
12188 * io/Makefile (tests): Add bug-ftw5.
12189 * io/bug-ftw5.c: New file.
12190
12191 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12192 * nscd/servicescache.c (cache_addserv): Likewise.
12193
12194 * nscd/grpcache.c (cache_addgr): In case a record changed on
12195 refresh, adjust key_copy.
12196
12197 [BZ #4074]
12198 * nscd/pwdcache.c (cache_addpw): In case a record changed on
12199 refresh, adjust key_copy.
12200
12201 [BZ #4070]
12202 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12203 special cases.
12204 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12205
12206 2007-02-19 Ulrich Drepper <drepper@redhat.com>
12207
12208 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12209 optimization.
12210
12211 * stdio-common/vfscanf.c: Small cleanups throughout.
12212
12213 2007-02-18 Ulrich Drepper <drepper@redhat.com>
12214
12215 [BZ #3325]
12216 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12217 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12218 * sysdeps/i386/fpu/e_fmod.S: Likewise.
12219 Patch by Jared Casper <jaredcasper@gmail.com>.
12220
12221 * sysdeps/unix/closedir.c: Outside libc don't use locking.
12222 * sysdeps/unix/opendir.c: Likewise.
12223 * sysdeps/unix/readdir.c: Likewise.
12224
12225 [BZ #2211]
12226 * stdio-common/vfscanf.c: Handle localized digits etc for floating
12227 point numbers.
12228 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12229
12230 * stdio-common/vfscanf.c: Fix problems in width accounting.
12231 * stdio-common/tst-sscanf.c (double_tests): New tests.
12232 (main): Hook them up.
12233
12234 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12235 More simplifications of floating-point reader.
12236
12237 * stdio-common/Makefile (tests): Add tst-swscanf.
12238 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12239 testing.
12240 * stdio-common/tst-swscanf.c: New file.
12241
12242 2007-02-17 Ulrich Drepper <drepper@redhat.com>
12243
12244 [BZ #2633]
12245 * libio/stdio.h: Define struct _IO_FILE in global namespace.
12246 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12247 Remove using for __jmp_buf_tag.
12248 * locale/locale.h (struct lconv): Also define in std namespace.
12249 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12250
12251 [BZ #3842]
12252 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12253 using __libc_enable_secure.
12254
12255 [BZ #3818]
12256 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12257
12258 [BZ #3745]
12259 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12260 of names for ellipsises.
12261
12262 [BZ #3348]
12263 * malloc/memusage.sh: Cleanups.
12264 * debug/xtrace.sh: Quoting and trap changes.
12265
12266 2007-02-16 Ulrich Drepper <drepper@redhat.com>
12267
12268 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12269
12270 * locale/iso-3166.def: Update entry for Serbia.
12271 * locale/iso-4217.def: Define RSD, remove CSD.
12272
12273 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12274 and 64-bit operations.
12275
12276 [BZ #4040]
12277 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12278 16-bit operations.
12279
12280 * nscd/nscd.c (parse_opt): One more conversion to use send instead
12281 of writev.
12282
12283 2007-02-15 Ulrich Drepper <drepper@redhat.com>
12284
12285 [BZ #3991]
12286 * assert/assert.h (assert): Simplify.
12287 (assert_perror): Likewise.
12288 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12289
12290 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12291 reqdata.
12292
12293 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12294 change: don't pass NULL in place of an integer.
12295
12296 2007-02-02 Bruno Haible <bruno@clisp.org>
12297
12298 [BZ #3954]
12299 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12300 Add mapping for U+327E.
12301 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12302 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12303 mapping of 0xD9 0xE8.
12304 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12305 mapping of U+327E.
12306 Reported by Jungshik Shin <jungshik@google.com>.
12307
12308 [BZ #3955]
12309 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12310 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12311 Reported by Jungshik Shin <jungshik@google.com>.
12312
12313 2007-02-14 Ulrich Drepper <drepper@redhat.com>
12314
12315 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12316 byte variants.
12317
12318 [BZ #4040]
12319 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12320 byte variants. Patch mostly be tom@tommay.net.
12321
12322 2007-02-14 Jakub Jelinek <jakub@redhat.com>
12323
12324 [BZ #3996]
12325 * posix/glob.c (attribute_hidden): Define if not defined.
12326 (glob): Unescape dirname, filename or username when needed and not
12327 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
12328 is NULL. Handle unescaped [ in pattern without closing ].
12329 Don't pass GLOB_CHECK down to recursive glob for directories.
12330 (__glob_pattern_type): New function.
12331 (__glob_pattern_p): Implement using __glob_pattern_type.
12332 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12333 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12334 Remove unreachable code.
12335 * posix/globtest.sh: Add a couple of new tests.
12336
12337 2007-02-13 Ulrich Drepper <drepper@redhat.com>
12338
12339 * po/ru.po: Update from translation team.
12340
12341 2007-02-12 Jakub Jelinek <jakub@redhat.com>
12342
12343 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12344 to the list of i486+ CPUs.
12345 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12346
12347 2007-02-12 Ulrich Drepper <drepper@redhat.com>
12348
12349 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12350 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12351 references.
12352
12353 2007-02-09 Ulrich Drepper <drepper@redhat.com>
12354
12355 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12356
12357 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12358 * resolv/res_mkquery.c: Define __res_nopt.
12359 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12360 try adding EDNS0 record.
12361 * resolv/res_send.c (send_dg): If request failed with FORMERR and
12362 EDNS0 record was send make sure we don't try it again.
12363 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12364 * include/resolv.h: Declare __res_nopt.
12365
12366 2007-02-08 Jakub Jelinek <jakub@redhat.com>
12367
12368 [BZ #3944]
12369 * time/strptime_l.c (__strptime_internal): Set have_mon for
12370 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
12371 have been computed from tm_yday and tm_year. Don't crash
12372 in day_of_the_week or day_of_the_year if not have_mon
12373 and tm_mon contains bogus value.
12374 * time/Makefile (tests): Add tst-strptime3.
12375 * time/tst-strptime3.c: New test.
12376
12377 2007-02-05 Jakub Jelinek <jakub@redhat.com>
12378
12379 [BZ #3957]
12380 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12381 bit for RE_HAT_LISTS_NOT_NEWLINE.
12382 (build_charclass_op): Remove bogus comment.
12383 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12384 * posix/bug-regex27.c: New test.
12385 * posix/bug-regex28.c: New test.
12386
12387 2007-02-03 Ulrich Drepper <drepper@redhat.com>
12388
12389 * po/sv.po: Update from translation team.
12390
12391 2007-02-02 Ulrich Drepper <drepper@redhat.com>
12392
12393 * nscd/nscd_helper.c (open_socket): Minor size optimization.
12394
12395 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12396
12397 * include/locale.h (__uselocale): Add libc_hidden_proto.
12398 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12399
12400 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12401 gettimeofday.
12402
12403 2007-02-01 Ulrich Drepper <drepper@redhat.com>
12404
12405 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12406 returning.
12407 (PTR_DEMANGLE): Real definition now that it's not the same as
12408 PRT_MANGLE anymore.
12409 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12410
12411 * string/strerror_l.c: New file.
12412 * string/Makefile (routines): Add strerror_l.
12413 * string/string.h: Declare strerror_l.
12414 * string/Versions: Export strerror_l for GLIBC_2.6.
12415
12416 2007-01-31 Ulrich Drepper <drepper@redhat.com>
12417
12418 * nscd/nscd_helper.c (open_socket): Now takes request type and key
12419 as parameter. Construct request record. Try sending request
12420 before the first poll use, it usually succeeds. Adjust all
12421 callers.
12422 * nscd/nscd-client.h: Define MAXKEYLEN.
12423 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12424
12425 2007-01-31 Jakub Jelinek <jakub@redhat.com>
12426
12427 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12428 from return value.
12429 * nscd/nscd_helper.c: Include string.h.
12430 (__nscd_cache_search): Remove const qualifier from return value.
12431 On strict alignment architectures check hash entry and data head
12432 alignment.
12433 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12434 mmapped data during GC cycle contains garbage. If
12435 __nscd_drop_map_ref fails, decrement mapped->counter when returning
12436 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12437 dropped to 0.
12438 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12439 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12440 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12441 * nscd/nscd_getai.c (__nscd_getai): Likewise.
12442 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12443
12444 2007-01-30 Ulrich Drepper <drepper@redhat.com>
12445
12446 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12447
12448 2007-01-26 Ulrich Drepper <drepper@redhat.com>
12449
12450 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12451 names not numbers in cfi_*.
12452
12453 2007-01-26 Andreas Jaeger <aj@suse.de>
12454
12455 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12456 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12457 Correct values of PER_HPUX and PER_OSF4.
12458
12459 2007-01-24 Ulrich Drepper <drepper@redhat.com>
12460
12461 * elf/dl-minimal.c: Undefine _itoa first.
12462 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12463 * malloc/mtrace.c: Revert last change.
12464 * posix/wordexp.c: Likewise.
12465
12466 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12467
12468 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12469 and __geode__ to the list of i486+ CPUs.
12470 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12471
12472 2007-01-23 Ulrich Drepper <drepper@redhat.com>
12473
12474 * stdio-common/_itoa.c: Include <limits.h>.
12475 * stdio-common/_itowa.c: Likewise.
12476
12477 2007-01-22 Ulrich Drepper <drepper@redhat.com>
12478
12479 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12480 platforms.
12481 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12482 64-bit platforms.
12483 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12484 possible.
12485 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12486 if possible.
12487
12488 [BZ #3902]
12489 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12490 * stdio-common/Makefile (tests): Add bug17.
12491 * stdio-common/bug17.c: New file.
12492
12493 2007-01-19 Ulrich Drepper <drepper@redhat.com>
12494
12495 * iconvdata/brf.c: New file.
12496 * iconvdata/testdata/BRF: New file.
12497 * iconvdata/testdata/BRF..UTF8: New file.
12498 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12499 * iconvdata/Makefile: Add rules to build BRF.
12500 * iconvdata/TESTS: Add BRF entry.
12501 * iconvdata/gconv-modules: Likewise.
12502 * iconvdata/tst-tables.sh: Likewise.
12503
12504 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
12505
12506 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12507 type `long long int', not `long int'.
12508 (wcstoq): Likewise.
12509
12510 2007-01-18 Ulrich Drepper <drepper@redhat.com>
12511
12512 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12513 of values on 64-bit platforms which are too large.
12514
12515 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
12516 Joe Kerian <jkerian@us.us.ibm.com>
12517
12518 [BZ #2749]
12519 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12520 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
12521 (__copysignl): Use signbit() for comparison.
12522 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12523 SET_LDOUBLE_WORDS64.
12524
12525 [BZ #2423, #2749]
12526 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12527 (__ceill): Remove calls to fegetround(), fesetround().
12528 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12529 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12530 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12531
12532 2007-01-17 Jakub Jelinek <jakub@redhat.com>
12533
12534 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12535
12536 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12537
12538 2007-01-17 Ulrich Drepper <drepper@redhat.com>
12539
12540 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12541 demangle pointer.
12542 * csu/libc-start.c: Likewise.
12543
12544 2007-01-16 Ulrich Drepper <drepper@redhat.com>
12545
12546 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12547 really work anyway.
12548
12549 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12550
12551 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
12552 users.
12553 (handle_request): Remove unnecessary tests.
12554
12555 * nscd/cache.c (cache_add): Record the failure to add to the cache.
12556
12557 2007-01-15 Jakub Jelinek <jakub@redhat.com>
12558
12559 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12560 workbits in semi-raw fraction.
12561
12562 * math/test-misc.c: Add new tests.
12563
12564 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
12565
12566 * math/basic-test.c: Include test-skeleton.c.
12567 (TEST_TRUNC): Define.
12568 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12569 (main): Rename to ...
12570 (do_test): ...this. Run new tests.
12571 (TEST_FUNCTION): Define.
12572
12573 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
12574 Joe Kerian <jkerian@us.us.ibm.com>
12575
12576 [BZ #2749]
12577 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12578 handling for high words.
12579 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12580 and overflow for infinity.
12581
12582 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12583
12584 * nscd/connections.c (handle_request): Add a __builtin_expect.
12585
12586 * nscd/connections.c (serv2db): Change type into structure which
12587 also says whether this is a request for data. Renamed to
12588 servinfo. All users changed.
12589 (handle_request): Much simpler test whether we should search the cache.
12590
12591 * nscd/connections.c (handle_request): Fix thinko in selinux test
12592 invocation.
12593
12594 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12595 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12596 it before getting dl_load_lock and then relock.
12597 (_dl_lookup_symbol_x): Pass flags to add_dependency.
12598 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12599 case we unlocked the scope.
12600 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12601 _dl_lookup_symbol_x in case we locked the scope.
12602 (_dl_profile_fixup): Likewise.
12603 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12604 set DL_LOOKUP_SCOPE_LOCK.
12605
12606 2007-01-13 Ulrich Drepper <drepper@redhat.com>
12607
12608 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12609 CFLAGS-getsrvbynpt_r.c.
12610 * nscd/getsrvbynm_r.c: New file.
12611 * nscd/getsrvbypt_r.c: New file.
12612 * nscd/nscd_getserv_r.c: New file.
12613 * nscd/servicescache.c: New file.
12614 * nscd/Makefile (routines): Add nscd_getserv_r.
12615 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12616 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12617 CFLAGS-getsrvbypt_r.c.
12618 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12619 table. Add entries for services database.
12620 * nscd/connections.c (serv2str): Mark as const. Add entries for
12621 services database.
12622 (dbs): Add .reset_res and servdb initialization.
12623 (serv2db): Add entries for services database.
12624 (verify_persistent_db): Accept dbnr == servdb.
12625 (invalidate_cache): Rewrite database name recognition to use a table.
12626 Call res_init() if .reset_res is set for database.
12627 (handle_request): Add code to handle services database.
12628 * nscd/gai.c: Don't define __getservbyname_r.
12629 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12630 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12631 (serv_response_header): Define.
12632 (struct datahead): Add serv_response_header member.
12633 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12634 using table.
12635 * nscd/nscd.conf: Add entries for services database.
12636 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12637 Declare serv_iov_disabled.
12638 Declare addservbyname, readdservbyname, addservbyport, and
12639 readdservbyport.
12640 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12641 (find_db): Fix error message.
12642 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12643 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12644 * nscd/selinux.c (perms): Add entries for services database.
12645 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12646 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12647
12648 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12649 * nscd/hstcache.c: Likewise.
12650 * nscd/pwdcache.c: Likewise.
12651
12652 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12653 computation of keylen.
12654
12655 * include/string.h: Only redefine strndupa if this is really for
12656 libc code.
12657
12658 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12659
12660 * nscd/nscd_gethst_r.c: Minor cleanups.
12661
12662 * nscd/connections.c (handle_request): Check selinux permissions
12663 for all non-admin commands.
12664
12665 * sysdeps/i386/i486/bits/atomic.h: Define
12666 atomic_compare_and_exchange_val_acq,
12667 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12668 using __sync_* built-ins for gcc >= 4.1.
12669 * sysdeps/x86_64/bits/atomic.h: Likewise.
12670
12671 [BZ #3840]
12672 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12673 and .oS.d files.
12674
12675 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
12676
12677 * stdlib/tst-makecontext.c: Include errno.h. Change main()
12678 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
12679 (do_test): Check errno and exit(0) if ENOSYS.
12680
12681 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12682
12683 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12684 thousands separators.
12685 * stdlib/Makefile: Add rules to build and run tst-strtod4.
12686 * stdlib/tst-strtod4.c: New test.
12687
12688 [BZ #3855]
12689 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12690 hexadecimal digit should accept just the initial 0.
12691 * stdlib/tst-strtod2.c (tests): New variable.
12692 (do_test): Run several tests rather than just one.
12693
12694 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12695
12696 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12697 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12698
12699 2007-01-10 Ulrich Drepper <drepper@redhat.com>
12700
12701 * io/fts.c: Make sure fts_cur is always valid after return from
12702 fts_read.
12703 Patch by Miloslav Trmac <mitr@redhat.com>.
12704
12705 2006-10-27 Richard Sandiford <richard@codesourcery.com>
12706
12707 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12708 (R_MIPS_NUM): Bump by 1.
12709
12710 2007-01-03 Jakub Jelinek <jakub@redhat.com>
12711
12712 * posix/execvp.c: Include alloca.h.
12713 (allocate_scripts_argv): Renamed to...
12714 (scripts_argv): ... this. Don't allocate buffer here nor count
12715 arguments.
12716 (execvp): Use alloca if possible.
12717 * posix/Makefile: Add rules to build and run tst-vfork3 test.
12718 * posix/tst-vfork3.c: New test.
12719
12720 2007-01-03 Ulrich Drepper <drepper@redhat.com>
12721
12722 * string/Makefile (tst-strxfrm2-ENV): Define.
12723 * stdlib/Makefile (tst-strtod3-ENV): Define.
12724
12725 2007-01-02 Ulrich Drepper <drepper@redhat.com>
12726
12727 * posix/getconf.c: Update copyright year.
12728 * nss/getent.c: Likewise.
12729 * iconv/iconvconfig.c: Likewise.
12730 * iconv/iconv_prog.c: Likewise.
12731 * elf/ldconfig.c: Likewise.
12732 * catgets/gencat.c: Likewise.
12733 * csu/version.c: Likewise.
12734 * elf/ldd.bash.in: Likewise.
12735 * elf/sprof.c (print_version): Likewise.
12736 * locale/programs/locale.c: Likewise.
12737 * locale/programs/localedef.c: Likewise.
12738 * nscd/nscd.c (print_version): Likewise.
12739 * debug/xtrace.sh: Likewise.
12740 * malloc/memusage.sh: Likewise.
12741 * malloc/mtrace.pl: Likewise.
12742 * debug/catchsegv.sh: Likewise.
12743
12744 2006-12-24 Ulrich Drepper <drepper@redhat.com>
12745
12746 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12747 attempts.
12748
12749 2006-12-23 Ulrich Drepper <drepper@redhat.com>
12750
12751 * posix/wordexp.c: Remove some unnecessary tests.
12752
12753 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
12754
12755 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12756 blacklist the group till after we look it up.
12757
12758 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12759
12760 * include/atomic.h (atomic_forced_read): New macro.
12761
12762 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12763
12764 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12765
12766 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12767
12768 * nss/getXXbyYY_r.c: Include atomic.h.
12769 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12770 add atomic_write_barrier () in between.
12771
12772 * stdlib/Makefile (tests): Add tst-makecontext.
12773 * stdlib/tst-makecontext.c: New test.
12774
12775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12776 (__makecontext): Don't realign uc_mcontext.uc_regs.
12777
12778 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12779
12780 * elf/dl-support.c: Include dl-procinfo.h.
12781 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12782 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12783 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12784 Define.
12785 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12786 hardcoded constants.
12787 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12788 PPC_PLATFORM_* macros for array designators.
12789
12790 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12791
12792 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12793 names to the beginning.
12794 (_dl_powerpc_platforms): Add "power6x".
12795 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12796 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12797 (_DL_PLATFORMS_COUNT): Increase.
12798 (_dl_string_platform): Handle power6x case.
12799 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12800 PPC_FEATURE_POWER6_EXT): Define.
12801 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12802
12803 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12804
12805 [BZ #3747]
12806 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12807 [-2^31 .. 2^31) range.
12808 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12809 targets.
12810 * stdlib/tst-rand48-2.c: New test.
12811 * stdlib/Makefile (tests): Add tst-rand48-2.
12812
12813 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12814
12815 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12816
12817 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12818
12819 * misc/tst-pselect.c (do_test): Make sure the helper process is
12820 terminating when the test is aborted.
12821
12822 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12823
12824 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12825 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12826 Handle relatime mount option.
12827
12828 [BZ #2337]
12829 * libio/Makefile (tests): Add tst-setvbuf1.
12830 * libio/tst-setvbuf1.c: New file.
12831
12832 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12833
12834 [BZ #2337]
12835 * libio/genops.c (__uflow): Fix a typo.
12836 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12837 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12838 the narrow buffer size.
12839
12840 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12841
12842 [BZ #2337]
12843 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12844 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12845 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12846 in _flags.
12847 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12848 _IO_wstr_finish): Likewise.
12849 * libio/wmemstream.c (open_wmemstream): Likewise.
12850 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12851 even for wide streams.
12852
12853 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12854
12855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12856 kernel-features.h.
12857
12858 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12859
12860 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12861 separators also if no non-zero digits found.
12862 * stdlib/Makefile (tests): Add tst-strtod3.
12863
12864 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12865
12866 [BZ #3632]
12867 * include/features.h: Fix comment about default value for
12868 _POSIX_C_SOURCE.
12869
12870 [BZ #3664]
12871 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12872 empty parsed strings.
12873 * stdlib/Makefile (tests): Add tst-strtod2.
12874 * stdlib/tst-strtod2.c: New file.
12875
12876 [BZ #3673]
12877 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12878 computation.
12879 * stdlib/Makefile (tests): Add tst-atof2.
12880 * stdlib/tst-atof2.c: New file.
12881
12882 [BZ #3674]
12883 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12884 correctly if removing trailing zero of hex-float.
12885 * stdlib/Makefile (tests): Add tst-atof1.
12886 * stdlib/tst-atof1.c: New file.
12887
12888 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12889
12890 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12891 Start searching for next comma at p rather than rest.
12892 * misc/Makefile (tests): Add tst-mntent2.
12893 * misc/tst-mntent2.c: New test.
12894
12895 * misc/getusershell.c (initshells): Check for integer overflows.
12896 Make strings buffer one bigger as fgets always succeeds when second
12897 argument is 1. Don't use calloc for shells array. Disallow
12898 / as shell.
12899
12900 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12901
12902 * malloc/memusage.c: Handle realloc with new size of zero and
12903 non-NULL pointer correctly.
12904 (me): Really write first record twice.
12905 (struct entry): Make format bi-arch safe.
12906 (dest): Write out more realloc statistics.
12907 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12908
12909 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12910
12911 * nis/nis_subr.c (nis_getnames): Revert last change.
12912
12913 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12914
12915 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12916 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12917 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12918 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12919 ENOTTY.
12920 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12921 * io/tst-ttyname_r.c: New test.
12922
12923 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12924
12925 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12926
12927 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12928
12929 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12930 jump table entries.
12931
12932 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12933
12934 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12935 `clone' function to ensure proper unwinding stop of gdb.
12936 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12937
12938 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12939
12940 * nscd/nscd.init: Remove obsolete and commented-out -S option
12941 handling.
12942
12943 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12944
12945 [BZ #3514]
12946 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12947
12948 [BZ #3515]
12949 * manual/string.texi (strtok): Remove duplicate paragraph.
12950
12951 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12952
12953 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12954 libgcc not supporting `rflags' unwinding (register # >= 17).
12955
12956 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12957
12958 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12959 succeeded.
12960
12961 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12962 Jakub Jelinek <jakub@redhat.com>
12963 Jan Kratochvil <jan.kratochvil@redhat.com>
12964
12965 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12966 unwind information.
12967 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12968 'restore_rt' even in the 'signal' directory.
12969 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12970
12971 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12972
12973 [BZ #3559]
12974 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12975 malloc crashed. Don't allocate memory unnecessarily in each
12976 loop.
12977
12978 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12979
12980 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12981
12982 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12983
12984 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12985
12986 2006-11-18 Bruno Haible <bruno@clisp.org>
12987
12988 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12989 __sysconf only after having tried to call getgroups32.
12990
12991 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12992
12993 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12994 addresses for IPv4 queries if they can be mapped.
12995
12996 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12997
12998 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12999 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
13000 (signmask): Add .size directive.
13001 (othermask): Add .type directive.
13002
13003 2006-11-14 Ulrich Drepper <drepper@redhat.com>
13004
13005 * po/nl.po: Update from translation team.
13006
13007 * timezone/zdump.c: Redo fix for BZ #3137.
13008
13009 2006-11-14 Jakub Jelinek <jakub@redhat.com>
13010
13011 * nss/nss_files/files-alias.c (get_next_alias): Set line back
13012 to first_unused after parsing :include: file.
13013
13014 2006-11-10 Ulrich Drepper <drepper@redhat.com>
13015
13016 * timezone/africa: Update from tzdata2006o.
13017 * timezone/antarctica: Likewise.
13018 * timezone/asia: Likewise.
13019 * timezone/australasia: Likewise.
13020 * timezone/backward: Likewise.
13021 * timezone/europe: Likewise.
13022 * timezone/iso3166.tab: Likewise.
13023 * timezone/northamerica: Likewise.
13024 * timezone/southamerica: Likewise.
13025 * timezone/zone.tab: Likewise.
13026
13027 * time/tzfile.c (__tzfile_read): Extend to handle new file format
13028 on machines with 64-bit time_t.
13029
13030 * timezone/checktab.awk: Update from tzcode2006o.
13031 * timezone/ialloc.c: Likewise.
13032 * timezone/private.h: Likewise.
13033 * timezone/scheck.c: Likewise.
13034 * timezone/tzfile.h: Likewise.
13035 * timezone/tzselect.ksh: Likewise.
13036 * timezone/zdump.c: Likewise.
13037 * timezone/zic.c: Likewise.
13038
13039 [BZ #3483]
13040 * elf/ldconfig.c (main): Call setlocale and textdomain.
13041 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13042
13043 [BZ #3480]
13044 * manual/argp.texi: Fix typos.
13045 * manual/charset.texi: Likewise.
13046 * manual/errno.texi: Likewise.
13047 * manual/filesys.texi: Likewise.
13048 * manual/lang.texi: Likewise.
13049 * manual/maint.texi: Likewise.
13050 * manual/memory.texi: Likewise.
13051 * manual/message.texi: Likewise.
13052 * manual/resource.texi: Likewise.
13053 * manual/search.texi: Likewise.
13054 * manual/signal.texi: Likewise.
13055 * manual/startup.texi: Likewise.
13056 * manual/stdio.texi: Likewise.
13057 * manual/sysinfo.texi: Likewise.
13058 * manual/syslog.texi: Likewise.
13059 * manual/time.texi: Likewise.
13060 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13061
13062 [BZ #3465]
13063 * sunrpc/clnt_raw.c: Minimal message improvements.
13064 * sunrpc/pm_getmaps.c: Likewise.
13065 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13066 * nis/nis_print_group_entry.c: Likewise.
13067 * locale/programs/repertoire.c: Likewise.
13068 * locale/programs/charmap.c: Likewise.
13069 * malloc/memusage.sh: Likewise.
13070 * elf/dl-deps.c: Likewise.
13071 * locale/programs/ld-collate.c: Likewise.
13072 * libio/vswprintf.c: Likewise.
13073 * malloc/memusagestat.c: Likewise.
13074 * sunrpc/auth_unix.c: Likewise.
13075 * sunrpc/rpc_main.c: Likewise.
13076 * nscd/cache.c: Likewise.
13077 * locale/programs/repertoire.c: Unify output messages.
13078 * locale/programs/charmap.c: Likewise.
13079 * locale/programs/ld-ctype.c: Likewise.
13080 * locale/programs/ld-monetary.c: Likewise.
13081 * locale/programs/ld-numeric.c: Likewise.
13082 * locale/programs/ld-time.c: Likewise.
13083 * elf/ldconfig.c: Likewise.
13084 * nscd/selinux.c: Likewise.
13085 * elf/cache.c: Likewise.
13086 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13087
13088 [BZ #3451]
13089 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13090 change atomic.
13091 (ceil): Likewise.
13092
13093 2006-11-10 Jakub Jelinek <jakub@redhat.com>
13094
13095 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13096 if N is one bigger than return value.
13097 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13098 and l1 last arguments, if buf is defined, verify the return value
13099 equals to strlen (buf) and verify no byte beyond passed length
13100 is modified.
13101
13102 2006-11-10 Ulrich Drepper <drepper@redhat.com>
13103
13104 * po/sv.po: Update from translation team.
13105
13106 2006-11-09 Ulrich Drepper <drepper@redhat.com>
13107
13108 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13109 noinline attribute.
13110
13111 2006-11-10 Jakub Jelinek <jakub@redhat.com>
13112
13113 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13114 noinline attribute.
13115
13116 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13117 Use __new_sys_siglist instead of _sys_siglist_internal as
13118 second macro argument.
13119 (_old_sys_siglist): Use declare_symbol_alias macro instead of
13120 strong_alias.
13121
13122 2006-11-09 Ulrich Drepper <drepper@redhat.com>
13123
13124 [BZ #3493]
13125 * posix/unistd.h (sysconf): Remove const attribute.
13126
13127 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13128 temporary or deprecated addresses.
13129 Patch by Sridhar Samudrala <sri@us.ibm.com>.
13130
13131 * string/Makefile (tests): Add tst-strxfrm2.
13132 * string/tst-strxfrm2.c: New file.
13133
13134 2006-10-09 Jakub Jelinek <jakub@redhat.com>
13135
13136 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13137 rather than r->r_brk.
13138
13139 2006-11-08 Jakub Jelinek <jakub@redhat.com>
13140
13141 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13142 optimization even if needed > n.
13143
13144 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13145 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13146 return false, otherwise return true.
13147 (cache_rpath): Return decompose_rpath return value.
13148
13149 2006-11-07 Jakub Jelinek <jakub@redhat.com>
13150
13151 * include/libc-symbols.h (declare_symbol): Rename to...
13152 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
13153 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13154 .size directive.
13155 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13156 changes.
13157 * sysdeps/gnu/siglist.c: Likewise.
13158
13159 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
13160
13161 * sysdeps/powerpc/fpu/bits/mathinline.h
13162 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13163 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
13164
13165 2006-11-05 Ulrich Drepper <drepper@redhat.com>
13166
13167 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13168 Update handling of cache descriptor 0x49 for new models.
13169 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13170 Likewise.
13171
13172 2006-11-02 Jakub Jelinek <jakub@redhat.com>
13173
13174 * malloc/memusage.c (dest): Reset not_me back to false after
13175 printing statistics.
13176
13177 2006-11-02 Ulrich Drepper <drepper@redhat.com>
13178
13179 * configure.in: Work around ld --help change and avoid -z relro
13180 test completely if the architecture doesn't care about security.
13181
13182 2006-11-01 Ulrich Drepper <drepper@redhat.com>
13183
13184 * po/sv.po: Update from translation team.
13185
13186 2006-10-31 Ulrich Drepper <drepper@redhat.com>
13187
13188 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13189 generate compatibility version.
13190
13191 2006-10-29 Ulrich Drepper <drepper@redhat.com>
13192
13193 * configure.in: Relax -z relro requirement a bit.
13194
13195 * po/sv.po: Update from translation team.
13196
13197 2006-10-29 Jakub Jelinek <jakub@redhat.com>
13198
13199 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13200 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13201 * elf/dl-close.c (_dl_close_worker): Likewise.
13202 * elf/dl-open.c (_dl_open_worker): Likewise.
13203 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13204
13205 2006-10-27 Ulrich Drepper <drepper@redhat.com>
13206
13207 * configure.in: Require assembler support for visibility, compiler
13208 support for visibility and aliases, linker support for various -z
13209 options.
13210 * Makeconfig: Remove conditional code which now is unnecessary.
13211 * config.h.in: Likewise.
13212 * config.make.in: Likewise.
13213 * dlfcn/Makefile: Likewise.
13214 * elf/Makefile: Likewise.
13215 * elf/dl-load.c: Likewise.
13216 * elf/rtld.c: Likewise.
13217 * include/libc-symbols.h: Likewise.
13218 * include/stdio.h: Likewise.
13219 * io/Makefile: Likewise.
13220 * io/fstat.c: Likewise.
13221 * io/fstat64.c: Likewise.
13222 * io/fstatat.c: Likewise.
13223 * io/fstatat64.c: Likewise.
13224 * io/lstat.c: Likewise.
13225 * io/lstat64.c: Likewise.
13226 * io/mknod.c: Likewise.
13227 * io/mknodat.c: Likewise.
13228 * io/stat.c: Likewise.
13229 * io/stat64.c: Likewise.
13230 * libio/stdio.c: Likewise.
13231 * nscd/Makefile: Likewise.
13232 * stdlib/Makefile: Likewise.
13233 * stdlib/atexit.c: Likewise.
13234 * sysdeps/generic/ldsodefs.h: Likewise.
13235 * sysdeps/i386/dl-machine.h: Likewise.
13236 * sysdeps/i386/sysdep.h: Likewise.
13237 * sysdeps/i386/i686/memcmp.S: Likewise.
13238 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13239 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13240 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13241
13242 * Makerules: USE_TLS support is now default.
13243 * tls.make.c: Likewise.
13244 * csu/Versions: Likewise.
13245 * csu/libc-start.c: Likewise.
13246 * csu/libc-tls.c: Likewise.
13247 * csu/version.c: Likewise.
13248 * dlfcn/dlinfo.c: Likewise.
13249 * elf/dl-addr.c: Likewise.
13250 * elf/dl-cache.c: Likewise.
13251 * elf/dl-close.c: Likewise.
13252 * elf/dl-iteratephdr.c: Likewise.
13253 * elf/dl-load.c: Likewise.
13254 * elf/dl-lookup.c: Likewise.
13255 * elf/dl-object.c: Likewise.
13256 * elf/dl-open.c: Likewise.
13257 * elf/dl-reloc.c: Likewise.
13258 * elf/dl-support.c: Likewise.
13259 * elf/dl-sym.c: Likewise.
13260 * elf/dl-sysdep.c: Likewise.
13261 * elf/dl-tls.c: Likewise.
13262 * elf/ldconfig.c: Likewise.
13263 * elf/rtld.c: Likewise.
13264 * elf/tst-tls-dlinfo.c: Likewise.
13265 * elf/tst-tls1.c: Likewise.
13266 * elf/tst-tls10.h: Likewise.
13267 * elf/tst-tls14.c: Likewise.
13268 * elf/tst-tls2.c: Likewise.
13269 * elf/tst-tls3.c: Likewise.
13270 * elf/tst-tls4.c: Likewise.
13271 * elf/tst-tls5.c: Likewise.
13272 * elf/tst-tls6.c: Likewise.
13273 * elf/tst-tls7.c: Likewise.
13274 * elf/tst-tls8.c: Likewise.
13275 * elf/tst-tls9.c: Likewise.
13276 * elf/tst-tlsmod1.c: Likewise.
13277 * elf/tst-tlsmod13.c: Likewise.
13278 * elf/tst-tlsmod13a.c: Likewise.
13279 * elf/tst-tlsmod14a.c: Likewise.
13280 * elf/tst-tlsmod2.c: Likewise.
13281 * elf/tst-tlsmod3.c: Likewise.
13282 * elf/tst-tlsmod4.c: Likewise.
13283 * elf/tst-tlsmod5.c: Likewise.
13284 * elf/tst-tlsmod6.c: Likewise.
13285 * include/errno.h: Likewise.
13286 * include/link.h: Likewise.
13287 * include/tls.h: Likewise.
13288 * locale/global-locale.c: Likewise.
13289 * locale/localeinfo.h: Likewise.
13290 * malloc/arena.c: Likewise.
13291 * malloc/hooks.c: Likewise.
13292 * malloc/malloc.c: Likewise.
13293 * resolv/Versions: Likewise.
13294 * sysdeps/alpha/dl-machine.h: Likewise.
13295 * sysdeps/alpha/libc-tls.c: Likewise.
13296 * sysdeps/generic/ldsodefs.h: Likewise.
13297 * sysdeps/generic/tls.h: Likewise.
13298 * sysdeps/i386/dl-machine.h: Likewise.
13299 * sysdeps/ia64/dl-machine.h: Likewise.
13300 * sysdeps/ia64/libc-tls.c: Likewise.
13301 * sysdeps/mach/hurd/fork.c: Likewise.
13302 * sysdeps/mach/hurd/i386/tls.h: Likewise.
13303 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13304 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13305 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13306 * sysdeps/s390/libc-tls.c: Likewise.
13307 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13308 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13309 * sysdeps/sh/dl-machine.h: Likewise.
13310 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13311 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13312 * sysdeps/x86_64/dl-machine.h: Likewise.
13313
13314 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13315 split out locking and parameter checking.
13316 (_dl_close): Call _dl_close_worker after locking and checking.
13317 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13318 _dl_close.
13319 * elf/Makefile: Add rules to build and run tst-thrlock.
13320 * elf/tst-thrlock.c: New file.
13321
13322 [BZ #3426]
13323 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13324 reality.
13325
13326 [BZ #3429]
13327 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13328 we are sure we do not need it anymore for _dl_close. Also move
13329 the asserts inside the lock region.
13330 Patch mostly by Suzuki <suzuki@in.ibm.com>.
13331
13332 2006-10-27 Jakub Jelinek <jakub@redhat.com>
13333
13334 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13335 argument.
13336 (_dl_lookup_symbol_x): Adjust caller.
13337
13338 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13339 _ns_global_scope.
13340 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13341
13342 * elf/dl-libc.c: Revert l_scope name changes.
13343 * elf/dl-load.c: Likewise.
13344 * elf/dl-object.c: Likewise.
13345 * elf/rtld.c: Likewise.
13346 * elf/dl-close.c (_dl_close): Likewise.
13347 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
13348 always use __rtld_mrlock_{change,done}. Always free old scope list
13349 here if not l_scope_mem.
13350 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13351 change. Never free scope list here. Just __rtld_mrlock_lock before
13352 the lookup and __rtld_mrlock_unlock it after the lookup.
13353 * elf/dl-sym.c: Likewise.
13354 * include/link.h (struct r_scoperec): Remove.
13355 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13356 with l_scope_mem and l_scoperec_lock with l_scope_lock.
13357
13358 2006-10-25 Ulrich Drepper <drepper@redhat.com>
13359
13360 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13361
13362 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13363
13364 * configure.in: Disable building profile libraries by default.
13365
13366 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13367
13368 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13369 as signed longs, check for x_base + pos overflow.
13370 * sunrpc/Makefile (tests): Add tst-xdrmem2.
13371 * sunrpc/tst-xdrmem2.c: New test.
13372
13373 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13374
13375 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13376 _dl_lookup_symbol_x code.
13377
13378 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13379
13380 * elf/dl-runtime.c: Include sysdep-cancel.h.
13381 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13382 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
13383 instead of catomic_* macros.
13384 * elf/dl-sym.c: Include sysdep-cancel.h.
13385 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13386 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13387 * elf/dl-close.c: Include sysdep-cancel.h.
13388 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13389 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13390 * elf/dl-open.c: Include sysdep-cancel.h.
13391 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13392 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13393
13394 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13395
13396 [BZ #3313]
13397 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13398 fastbin rather than end of fastbin array.
13399
13400 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13401
13402 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13403 body macro.
13404 * sysdeps/x86_64/bits/atomic.h
13405 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13406 (catomic_decrement): Use correct body macro.
13407
13408 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13409
13410 * include/atomic.h: Add a unique prefix to all local variables
13411 in macros.
13412 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13413
13414 2006-10-16 Ulrich Drepper <drepper@redhat.com>
13415
13416 [BZ #3369]
13417 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13418 and 7.
13419
13420 2006-10-14 Ulrich Drepper <drepper@redhat.com>
13421
13422 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13423
13424 2006-10-13 Ulrich Drepper <drepper@redhat.com>
13425
13426 [BZ #3313]
13427 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13428 determine highest fast bin to consolidate, always look into all of
13429 them.
13430 (do_check_malloc_state): Only require for empty bins for large
13431 sizes in main arena.
13432
13433 * libio/stdio.h: Add more __wur attributes.
13434
13435 * elf/dl-minimal.c (realloc): Optimize last patch.
13436
13437 2006-10-12 Richard Sandiford <richard@codesourcery.com>
13438
13439 [BZ #3352]
13440 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13441 and use memcpy() if it does.
13442
13443 2006-11-12 Andreas Jaeger <aj@suse.de>
13444
13445 [BZ #2510]
13446 * manual/search.texi (Hash Search Function): Clarify.
13447 (Array Search Function): Clarify.
13448
13449 2006-11-12 Joseph Myers <joseph@codesourcery.com>
13450
13451 [BZ #2830]
13452 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13453 shifting.
13454 * math/atest-exp2.c (read_mpn_hex): Likewise.
13455 * math/atest-sincos.c (main): Likewise.
13456
13457 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13458
13459 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13460 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13461 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13462 version GLIBC_2.6.
13463 * Versions.def: Add GLIBC_2.6 for libc.
13464
13465 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13466
13467 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13468
13469 2006-10-11 Jakub Jelinek <jakub@redhat.com>
13470
13471 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13472
13473 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13474
13475 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13476 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13477
13478 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13479
13480 * include/atomic.c: Define catomic_* operations.
13481 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
13482 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13483 * malloc/memusage.c: Likewise.
13484 * gmon/mcount.c: Likewise.
13485 * elf/dl-close.c: Likewise.
13486 * elf/dl-open.c: Likewise.
13487 * elf/dl-profile.c: Likewise.
13488 * elf/dl-sym.c: Likewise.
13489 * elf/dl-runtime.c: Likewise.
13490 * elf/dl-fptr.c: Likewise.
13491 * resolv/res_libc.c: Likewise.
13492
13493 2006-10-10 Ulrich Drepper <drepper@redhat.com>
13494
13495 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13496 components which lack them.
13497
13498 * nis/nis_subr.c (nis_getnames): Make sure that we always return
13499 at least one entry consisting of the parameter concatenated with
13500 the domain.
13501
13502 2006-10-10 Roland McGrath <roland@frob.com>
13503
13504 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13505 * sysdeps/mach/hurd/futimes.c: Likewise.
13506 * sysdeps/mach/hurd/lutimes.c: Likewise.
13507
13508 2006-10-09 Ulrich Drepper <drepper@redhat.com>
13509 Jakub Jelinek <jakub@redhat.com>
13510
13511 Implement reference counting of scope records.
13512 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13513 from the list in objects which remain. Always allocate new scope
13514 record.
13515 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13516 don't resize, allocate a new one.
13517 * elf/dl-runtime.c: Update reference counters before using a scope
13518 array.
13519 * elf/dl-sym.c: Likewise.
13520 * elf/dl-libc.c: Adjust for l_scope name change.
13521 * elf/dl-load.c: Likewise.
13522 * elf/dl-object.c: Likewise.
13523 * elf/rtld.c: Likewise.
13524 * include/link.h: Include <rtld-lowlevel.h>. Define struct
13525 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
13526 Add l_scoperec_lock.
13527 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13528 * sysdeps/generic/rtld-lowlevel.h: New file.
13529
13530 * include/atomic.h: Rename atomic_and to atomic_and_val and
13531 atomic_or to atomic_or_val. Define new macros atomic_and and
13532 atomic_or which do not return values.
13533 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13534 Various cleanups.
13535 * sysdeps/i386/i486/bits/atomic.h: Likewise.
13536
13537 * po/sv.po: Update from translation team.
13538
13539 2006-10-07 Ulrich Drepper <drepper@redhat.com>
13540
13541 * Versions.def: Add GLIBC_2.6 to libpthread.
13542
13543 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13544 (versioned_symbol): Likewise.
13545 (compat_symbol): Likewise.
13546
13547 * po/tr.po: Update from translation team.
13548
13549 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13550
13551 * nis/Banner: Removed. It's been integral part forever and the
13552 author info is incomplete anyway.
13553 * libio/Banner: Likewise.
13554
13555 * nis/nis_table.c (nis_list): If __follow_path fails in the new
13556 code, make sure the nis_freeresult call doesn't crash and that the
13557 result is reported correctly.
13558
13559 2006-09-27 Jakub Jelinek <jakub@redhat.com>
13560
13561 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13562 when callback is NULL.
13563
13564 * nis/Versions (libnss_nisplus): Add
13565 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13566 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13567 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13568 _nss_create_tablename): Rename to...
13569 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13570 ... these. No longer static.
13571 (internal_setgrent): Adjust users.
13572 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13573 Don't use locking around _nss_grp_create_tablename call.
13574 * nis/nss_nisplus/nisplus-initgroups.c: New file.
13575
13576 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13577
13578 * version.h (VERSION): Bump to 2.5.90 for new development tree.
13579
13580 2006-10-06 Andreas Jaeger <aj@suse.de>
13581
13582 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13583
13584 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13585
13586 * po/pl.po: Update from translation team.
13587
13588 * nscd/nscd.c (main): Fix typo in message.
13589 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13590
13591 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13592
13593 [BZ #3291]
13594 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13595 errno.h, signal.h, unistd.h and sysdep-cancel.h.
13596 (__sigprocmask): Define.
13597
13598 2006-10-02 Ulrich Drepper <drepper@redhat.com>
13599
13600 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13601 used.
13602
13603 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13604
13605 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13606 in oldtotal and newtotal calculation.
13607 * nscd/nscd-client.h (struct mapped_database): Add datasize
13608 field.
13609 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13610 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13611 increased.
13612 (__nscd_cache_search): Add checks to make sure we never reference
13613 data beyond the current mapping.
13614
13615 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
13616
13617 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13618 variables const to avoid compiler warnings.
13619
13620 * io/fts.c (fts_close): Remove redundant checks.
13621 (fts_build): Likewise.
13622 (fts_palloc): Likewise.
13623
13624 * manual/message.texi (Advanced gettext functions,
13625 Using gettextized software): Fix typos.
13626
13627 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13628
13629 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13630 explain why there are no leaks.
13631
13632 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13633
13634 * libio/wmemstream.c: Include <wchar.h>.
13635 * libio/bug-wmemstream1.c: Likewise.
13636 * libio/tst-wmemstream1.c: Likewise.
13637 * libio/tst-wmemstream2.c: Likewise.
13638
13639 * version.h (RELEASE): Bump to 2.5.
13640 * README: Regenerated.
13641
13642 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13643
13644 [BZ #3273]
13645 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13646 found no group members.
13647 Patch by Petr Baudis.
13648
13649 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13650
13651 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13652 assert bootstrap_map.l_tls_modid is zero.
13653 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13654 if USE___THREAD.
13655
13656 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13657
13658 * libio/stdio.h: Move open_wmemstream prototype to ...
13659 * wcsmbs/wchar.h: ... here.
13660
13661 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13662
13663 [BZ #3252]
13664 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13665 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13666 __{,l}chown to handle the rest.
13667 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13668 fchownat syscall and __ASSUME_32BITUIDS case inline, call
13669 __{,l}chown to handle the rest.
13670 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13671 i386/fchownat.c.
13672 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13673 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13674
13675 [BZ #3253]
13676 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13677 time, rather allocate increasingly bigger arrays of pointers, if
13678 possible with alloca, if too large with malloc.
13679
13680 2006-09-24 Jakub Jelinek <jakub@redhat.com>
13681
13682 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13683
13684 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13685
13686 2006-09-24 Ulrich Drepper <drepper@redhat.com>
13687
13688 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13689 home addresses.
13690 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13691 IFA_F_HOMEADDRESS flag for interfaces.
13692 * include/ifaddrs.h (struct in6addrinfo): Define
13693 in6ai_homeaddress.
13694
13695 2006-09-21 Jakub Jelinek <jakub@redhat.com>
13696
13697 [BZ #3225]
13698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13699 PTR_DEMANGLE3): Define.
13700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13701 PTR_DEMANGLE3): Likewise.
13702 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13703 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13704 Likewise.
13705 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13706
13707 2006-09-20 Jakub Jelinek <jakub@redhat.com>
13708
13709 * po/libc.pot: Regenerated.
13710 * po/be.po: Updated.
13711 * po/ca.po: Likewise.
13712 * po/cs.po: Likewise.
13713 * po/da.po: Likewise.
13714 * po/de.po: Likewise.
13715 * po/el.po: Likewise.
13716 * po/en_GB.po: Likewise.
13717 * po/es.po: Likewise.
13718 * po/fi.po: Likewise.
13719 * po/fr.po: Likewise.
13720 * po/gl.po: Likewise.
13721 * po/hr.po: Likewise.
13722 * po/hu.po: Likewise.
13723 * po/ja.po: Likewise.
13724 * po/ko.po: Likewise.
13725 * po/nb.po: Likewise.
13726 * po/nl.po: Likewise.
13727 * po/pl.po: Likewise.
13728 * po/pt_BR.po: Likewise.
13729 * po/ru.po: Likewise.
13730 * po/rw.po: Likewise.
13731 * po/sk.po: Likewise.
13732 * po/sv.po: Likewise.
13733 * po/tr.po: Likewise.
13734 * po/zh_CN.po: Likewise.
13735 * po/zh_TW.po: Likewise.
13736
13737 [BZ #3137]
13738 * iconv/iconv_prog.c (main): Fix spelling in error message.
13739 * iconv/iconvconfig.c (main): Likewise.
13740 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13741 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13742 * locale/programs/localedef.c (main): Likewise.
13743 * locale/programs/repertoire.c (repertoire_read): Likewise.
13744 * timezone/zdump.c (main): Likewise.
13745 * nscd/connections.c (handle_request): Fix spelling in log message.
13746 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13747
13748 2006-09-20 Ulrich Drepper <drepper@redhat.com>
13749
13750 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13751 interfaces.
13752
13753 2006-09-20 Andreas Jaeger <aj@suse.de>
13754
13755 * math/libm-test.inc (lrint_test_upward): Fix typo.
13756
13757 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13758
13759 [BZ #2592]
13760 * math/libm-test.inc (lrint_test_tonearest): New function.
13761 (lrint_test_towardzero): New function.
13762 (lrint_test_downward): New function.
13763 (lrint_test_upward): New function.
13764 (main): Run these new tests.
13765 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13766 of values near to 0.
13767 (two52): Use double not long double.
13768 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13769 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13770 (two23): Use float not double.
13771 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13772 (two23): Use float not double.
13773 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13774 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13775 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13776 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13777
13778 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13779
13780 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13781 Cast sp to unsigned long to avoid compiler warning.
13782 Use __makecontext_ret function instead of a trampoline on the stack.
13783 (__makecontext_ret): New function.
13784 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13785
13786 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13787
13788 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13789 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13790 bits.
13791
13792 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13793
13794 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13795 sure no reference to the unloaded map's search list remains in the
13796 dependency's scope.
13797
13798 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13799
13800 * elf/Makefile: Add rules to build and run unload7 test.
13801 * elf/unload7.c: New test.
13802 * elf/unload7mod1.c: New file.
13803 * elf/unload7mod2.c: New file.
13804
13805 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13806
13807 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13808 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13809 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13810 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13811 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13812 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13813 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13814 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13815 PTRACE_GETEVENTMSG): Likewise.
13816 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13817 values.
13818
13819 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13820
13821 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13822 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13823 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13824 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13825
13826 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13827
13828 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13829 write '\0' to the fd.
13830 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13831 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13832 Change regs to unsigned long pointer from unsigned int, fix fscr
13833 offset.
13834
13835 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13836
13837 * io/Makefile (CFLAGS-fstatat.c): Set.
13838 (CFLAGS-fstatat64.c): Likewise.
13839 (CFLAGS-mknodat.c): Likewise.
13840
13841 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13842 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13843 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13844 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13845
13846 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13847 Steven Munroe <sjmunroe@us.ibm.com>
13848
13849 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13850 names to the beginning. Rename "cell" to "cellbe".
13851 (_dl_powerpc_platforms): New.
13852 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13853 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13854 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13855 (_DL_HWCAP_PLATFORM): Define to new mask.
13856 (_dl_platform_string, _dl_string_platform): New functions.
13857 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13858 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13859
13860 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13861
13862 [BZ #2526]
13863 * README.libm: Fix a thinko in sqrt algorithm description.
13864
13865 [BZ #3143]
13866 * manual/string.texi (argz_delete): Fix prototype.
13867 Patch by <alpt@freaknet.org>.
13868
13869 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13870
13871 [BZ #3138]
13872 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13873 * io/tst-fcntl.c (do_prepare): Likewise.
13874 * posix/tst-exec.c (do_prepare): Likewise.
13875 * posix/tst-preadwrite.c (do_prepare): Likewise.
13876 * posix/tst-spawn.c (do_prepare): Likewise.
13877 * posix/tst-truncate.c (do_prepare): Likewise.
13878 * rt/tst-aio.c (do_prepare): Likewise.
13879 * rt/tst-aio64.c (do_prepare): Likewise.
13880 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13881 size_t.
13882
13883 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13884
13885 [BZ #2821]
13886 * time/mktime.c (guess_time_tm): Fix overflow detection.
13887 * time/Makefile (tests): Add bug-mktime1.
13888 * time/bug-mktime1.c: New file.
13889
13890 [BZ #3189, #3188]
13891 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13892 (mremap): Likewise.
13893
13894 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13895
13896 [BZ #1006]
13897 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13898 Ensure relocation doesn't clobber any bits outside of the
13899 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13900 R_SPARC_HI22 and R_SPARC_H44.
13901
13902 [BZ #2775]
13903 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13904 (long) (MINSIZE + nb - old_size) is positive.
13905
13906 * malloc/arena.c (grow_heap): When growing bail even if new_size
13907 is negative.
13908
13909 [BZ #3155]
13910 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13911 stack below r1.
13912
13913 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13914
13915 * posix/regex_internal.c (re_string_reconstruct): Handle
13916 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13917 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13918 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13919 re_string_context_at.
13920 * posix/Makefile: Add rules to build and run bug-regex26 test.
13921 * posix/bug-regex26.c: New test.
13922
13923 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13924 rather than col_sym_free. Move seqp declaration earlier.
13925
13926 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13927
13928 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13929
13930 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13931 decl before first goto out.
13932
13933 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13934
13935 * Makerules (shlib.lds): If have-hash-style, put .hash section
13936 at the end of the RO segment.
13937
13938 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13939
13940 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13941 style hash table format is used.
13942
13943 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13944
13945 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13946 randomization rather than before.
13947 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13948
13949 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13950
13951 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13952
13953 * malloc/malloc.c (_int_malloc): Use full list insert and not
13954 shortcut which assumes the list is empty for large requests
13955 too.
13956
13957 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13958
13959 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13960
13961 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13962 and offout arguments to the prototype.
13963 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13964 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13965 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13966 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13967 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13968 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13969 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13970 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13971
13972 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13973
13974 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13975
13976 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13977 dlopen parameters.
13978
13979 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13980
13981 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13982 only if herrno is NETDB_INTERNAL. Handle errors other than
13983 ERANGE outside of the loops, handle TRY_AGAIN.
13984
13985 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13986 if other's ctype category was missing.
13987 * locale/programs/ld-collate.c (collate_read): Return if
13988 copy_locale's collate category is missing.
13989
13990 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13991
13992 [BZ #2684]
13993 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13994 arenas if allocation failed.
13995 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13996
13997 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13998
13999 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
14000 waste bins[0..1].
14001 (malloc_state): Reduce bins size by 2.
14002 (_int_malloc): Fix test for large enough buffer for early termination.
14003 When no unsorted block matches perfectly and an exiting block has
14004 to be split, use full list insert and not shortcut which assumes
14005 the list is empty.
14006
14007 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
14008 failure.
14009
14010 2006-08-24 Ulrich Drepper <drepper@redhat.com>
14011
14012 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
14013 do anything.
14014
14015 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
14016 symbol require exact match (these are PLTs).
14017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
14018 (_dl_ppc64_addr_sym_match): Likewise.
14019
14020 [BZ #2683]
14021 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
14022 If symbol has a value use it.
14023 * elf/tst-dladdr1.c: New file.
14024 * elf/Makefile: Add rules to build and run tst-addr1.
14025
14026 2006-08-24 Jakub Jelinek <jakub@redhat.com>
14027
14028 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
14029 keeps failing and heap growth or new heap creation isn't
14030 successful either.
14031 * malloc/tst-malloc.c (main): Add new tests.
14032
14033 2006-08-24 Ulrich Drepper <drepper@redhat.com>
14034
14035 [BZ #2734]
14036 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14037 as in the x86-64 code to use bswap.
14038
14039 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
14040
14041 [BZ #2680]
14042 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14043 __USE_UNIX98.
14044 * posix/bits/unistd.h: Likewise.
14045
14046 2006-05-15 Mike Frysinger <vapier@gentoo.org>
14047
14048 [BZ #2751]
14049 * string/strchr.c: Add cast to avoid warning.
14050
14051 2006-08-21 Ulrich Drepper <drepper@redhat.com>
14052
14053 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14054 platforms define as 512K. For 64-bit platforms as 32MB. The lower
14055 limit is needed to avoid the exploding of the address space
14056 requirement for secondary heaps.
14057 * malloc/arena.c (HEAP_MAX_SIZE): Define using
14058 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14059
14060 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
14061
14062 [BZ #3018]
14063 * Makerules (depfiles): Handle extra-test-objs the same as
14064 extra-objs.
14065 (common-mostlyclean): Likewise.
14066 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14067 instead.
14068 * elf/Makefile (extra-objs): Likewise.
14069 * stdlib/Makefile (extra-objs): Likewise.
14070
14071 2006-08-14 Eric Blake <ebb9@byu.net>
14072
14073 [BZ #3044]
14074 * misc/error.h: Assume C89 or better.
14075 * misc/error.c: Likewise.
14076
14077 2006-08-21 Ulrich Drepper <drepper@redhat.com>
14078
14079 [BZ #3040]
14080 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14081 __ASSUME_ATFCTS is defined.
14082
14083 2006-08-19 Ulrich Drepper <drepper@redhat.com>
14084
14085 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14086 to sort in each call.
14087
14088 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14089 is empty simply return and use next service.
14090 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14091
14092 * locale/programs/charmap.c (charmap_read): Add new parameter. It
14093 tells us when not finding a charmap file is an error.
14094 * locale/programs/charmap.h: Adjust charmap_read prototype.
14095 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14096 cannot find a charmap.
14097 * locale/programs/localedef.c (main): Adjust charmap_read call.
14098
14099 2006-08-15 Jakub Jelinek <jakub@redhat.com>
14100
14101 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14102 sysdeps/posix/pause.c implementation instead.
14103
14104 2006-08-09 Jakub Jelinek <jakub@redhat.com>
14105
14106 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14107 to EPERM.
14108
14109 2006-08-13 Andreas Schwab <schwab@suse.de>
14110
14111 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14112 Don't clobber caller's LRSAVE.
14113 (_dl_prof_resolve): Likewise.
14114
14115 2006-08-14 Ulrich Drepper <drepper@redhat.com>
14116
14117 [BZ #1996]
14118 * libio/memstream.c (open_memstream): Allocate initial buffer with
14119 calloc.
14120 * libio/wmemstream.c (open_wmemstream): Likewise.
14121 * libio/strops.c: Pretty printing.
14122 (_IO_str_overflow): Clear uninitialized part of the new buffer.
14123 (enlarge_userbuf): New function.
14124 (_IO_str_seekoff): Call it if seek position is larger than current
14125 buffer.
14126 * libio/wstrops.c: Likewise.
14127 * libio/vasprintf.c: Add comment as to why we do not have to use
14128 calloc instead of malloc to allocate initial buffer.
14129 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14130 * libio/bug-memstream1.c: New file.
14131 * libio/bug-wmemstream1.c: New file.
14132
14133 2006-08-13 Ulrich Drepper <drepper@redhat.com>
14134
14135 * libio/wstrops.c: Remove dead macro definitions and comments.
14136 * libio/strops.c: Likewise.
14137
14138 [BZ #2764]
14139 * login/utmpname.c (__utmpname): Remove unnecessary test.
14140
14141 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
14142
14143 [BZ #2832]
14144 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14145 0s from integers.
14146
14147 2006-08-13 Ulrich Drepper <drepper@redhat.com>
14148
14149 [BZ #2987]
14150 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14151 for CPU clocks.
14152 * sysdeps/unix/clock_settime.c: Add support for platform-specific
14153 setting of CPU clocks.
14154
14155 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
14156
14157 [BZ #2841]
14158 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14159 since C99 requires the result to promote to 'int' when uint_least8_t
14160 and uint_least16_t promote to 'int'.
14161
14162 2006-08-12 Ulrich Drepper <drepper@redhat.com>
14163
14164 [BZ #3013]
14165 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14166 lenght of one output field, correct bitmask creation.
14167 * locale/programs/ld-time.c: Add alignment.
14168
14169 [BZ #2997]
14170 * misc/error.c: Add space between program name and message if file
14171 name is missing.
14172
14173 2006-08-03 Eric Blake <ebb9@byu.net>
14174
14175 [BZ #2998]
14176 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14177
14178 2006-08-09 Ulrich Drepper <drepper@redhat.com>
14179
14180 * malloc/memusagestat.c: Silence warnings.
14181
14182 * malloc/malloc.c: Dynamically size mmap treshold if the program
14183 frees mmaped blocks.
14184 Patch by Valerie Henson and Arjan van de Ven.
14185
14186 2006-08-08 Jakub Jelinek <jakub@redhat.com>
14187
14188 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14189 __USE_GNU.
14190
14191 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14192 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14193 (DEF): Don't put the var into .gnu.linkonce.r.* section.
14194 Only provide var definitions in strtol_l (or for *ull*
14195 in strtoll_l).
14196
14197 * stdio-common/bug16.c (tests): New array.
14198 (do_tests): Allow the first hexadecimal digit
14199 to be 1, 2, 4 or 8. Do 3 additional tests.
14200
14201 * sysdeps/s390/fpu/libm-test-ulps: Update.
14202
14203 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14204 fchownat syscall if available.
14205 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14206 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14207 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14208
14209 2006-08-07 Ulrich Drepper <drepper@redhat.com>
14210
14211 * nis/nis_xdr.c: Avoid some function calls.
14212
14213 2006-08-07 Jakub Jelinek <jakub@redhat.com>
14214 Ulrich Drepper <drepper@redhat.com>
14215
14216 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14217 short cut if only one name component is stripped away.
14218
14219 2006-08-07 Ulrich Drepper <drepper@redhat.com>
14220
14221 * nis/nis_call.c: Minor cleanups throughout.
14222 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14223 (first_shoot): Add search_parent_first parameter. Only if it is set
14224 search parent server first.
14225 If directory for table found through cold start cache is not the same
14226 as referenced in the cache, don't use it.
14227 (__nisfind_server): Take additional parameter. Pass it on to
14228 first_shoot.
14229 (__prepare_niscall): Adjust __nisfind_server call.
14230 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14231 * nis/nis_table.c: Adjust __nisfind_server call.
14232 * nis/nis_lookup.c: Likewise.
14233 (nis_lookup): Don't loop endlessly if name is reduced to ".".
14234
14235 2006-08-03 Ulrich Drepper <drepper@redhat.com>
14236
14237 [BZ #2182]
14238 * math/s_cacosh.c: Return values from positive branch.
14239 * math/s_cacoshf.c: Likewise.
14240 * math/s_cacoshl.c: Likewise.
14241
14242 [BZ #2883]
14243 * sysvipc/sys/msg.h: Change return value to ssize_t.
14244 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14245 * sysvipc/msgrcv.c: Likewise.
14246 * include/sys/msg.h: Likewise.
14247
14248 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14249 test introduced in patch for bz #661.
14250 (getgrouplist): Simplify code a bit. Don't allocate one additional
14251 element for NEWGROUPS.
14252
14253 [BZ #2908]
14254 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14255 'f', use '1' as leading digit not '\1'.
14256 * stdio-common/Makefile (tests): Add bug16.
14257 * stdio-common/bug16.c: New file.
14258
14259 [BZ #2914]
14260 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14261 and don't try to open it. The patch introducing the macro
14262 contained a bug and used the same file name as the new file
14263 instead of using /var/adm/hostid. Nobody complaint so I'm taking
14264 this out completely.
14265
14266 [BZ #2926]
14267 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14268 Patch by Jerry James <Jerry.James@usu.edu>.
14269
14270 * rt/Makefile (tests): Add tst-clock2.
14271 * rt/tst-clock2.c: New file.
14272
14273 [BZ #2978]
14274 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14275 function and its parameters and pass it to new thread.
14276 (__gai_notify): Add support for alternative waiting for completion.
14277 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14278 waiting for completion.
14279 * resolv/getaddrinfo_a.c: Likewise.
14280 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14281 waiting for completion is used.
14282 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14283 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14284 * resolv/gai_error.c: Likewise.
14285 * resolv/gai_sigqueue.c: Likewise.
14286
14287 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
14288
14289 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14290 errno to EBADF and return MACH_PORT_NULL.
14291
14292 2006-06-23 Joseph Myers <joseph@codesourcery.com>
14293
14294 [BZ #2980]
14295 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14296
14297 2006-08-02 Ulrich Drepper <drepper@redhat.com>
14298
14299 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14300 walk them instead of the symbol table.
14301
14302 2006-08-01 Ulrich Drepper <drepper@redhat.com>
14303
14304 [BZ #2098]
14305 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14306 status of NSS calls, not the number of returned entries.
14307
14308 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14309 request_key, keyctl.
14310
14311 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14312
14313 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14314
14315 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
14316
14317 * elf/tst-auditmod1.c: Fix typo in #error.
14318
14319 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14320
14321 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14322
14323 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14324
14325 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
14326
14327 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14328 that the directory is empty even on non-POSIX filesystems.
14329
14330 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14331
14332 * elf/dl-open.c (dl_open_worker): Add branch prediction.
14333
14334 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14335 the backend NSS module. If backend setgrent call failed, don't have
14336 internal_setgrent fail. Just remember this until it is needed.
14337 * nis/nss_compat/compat-pwd.c: Likewise.
14338 * nis/nss_compat/compat-spwd.c: Likewise.
14339
14340 2006-07-30 Roland McGrath <roland@redhat.com>
14341
14342 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14343 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14344 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14345 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14346
14347 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14348 (nanosleep_not_cancel): New macro.
14349 (sigsuspend_not_cancel): new macro.
14350 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14351 (do_sigsuspend): Define as inline.
14352 (__sigsuspend): Always use do_sigsuspend.
14353 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14354 * include/signal.h: Declare __sigsuspend_nocancel.
14355 * sysdeps/posix/pause.c
14356 [! NO_CANCELLATION] (__pause_nocancel): New function.
14357
14358 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14359 * include/time.h (__nanosleep_nocancel): Likewise.
14360
14361 2006-07-30 Ulrich Drepper <drepper@redhat.com>
14362
14363 * locale/programs/localedef.c (add_to_readlist): Rename local
14364 variables to avoid confusion.
14365
14366 * locale/programs/charmap.c (charmap_read): Emit error message if
14367 charmap couldn't be found or read.
14368
14369 2006-07-28 Ulrich Drepper <drepper@redhat.com>
14370
14371 * sysdeps/unix/sysv/linux/kernel-features.h: Define
14372 __ASSUME_FUTEX_LOCK_PI.
14373 * include/time.h: Declare __nanosleep_nocancel.
14374 * include/unistd.h: Declare __pause_nocancel.
14375
14376 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14377 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
14378 get the __stack_chk_fail_local definition when it's needed.
14379
14380 2006-07-26 Ulrich Drepper <drepper@redhat.com>
14381
14382 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14383 * dlfcn/bug-atexit3.c: New file.
14384 * dlfcn/bug-atexit3-lib.cc: New file.
14385
14386 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14387 used when the namespace is not the base namespace.
14388
14389 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
14390
14391 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14392 (__new_exitfn): Bump it in every successful call.
14393 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14394 more exit handlers, call them right away.
14395 * stdlib/exit.h: Declare __new_exitfn_called.
14396
14397 2006-07-25 Ulrich Drepper <drepper@redhat.com>
14398
14399 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14400 calling registered handler.
14401
14402 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14403 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14404 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14405 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14406 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14407 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14408 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14409 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14410
14411 2006-07-10 Ulrich Drepper <drepper@redhat.com>
14412
14413 * elf/dl-lookup.c (dl_new_hash): New functions.
14414 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14415 value here. Compute new-style hash value. Pass new hash value
14416 and reference to variable with the old value to do_lookup_x.
14417 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14418 old-style hash table.
14419 (_dl_debug_bindings): Pass new hash value and reference to variable
14420 with the old value to do_lookup_x.
14421 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14422 new-style hash value and change old-style hash value parameter to
14423 be a reference. Reoganize functions to determine whether
14424 new-style hash table is available. Only fall back on old-style
14425 table. If old-style hash value is needed, compute it here.
14426 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14427 entry.
14428 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14429 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
14430 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14431 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14432 * Makeconfig: If linker supports --hash-style option add it to all
14433 linker command lines to build DSOs.
14434 * config.make.in: Define have-hash-style.
14435 * configure.in: Test whether linker supports --hash-style option.
14436
14437 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14438 * sysdeps/generic/ldsodefs.h: Adjust prototype.
14439
14440 2006-06-27 Ulrich Drepper <drepper@redhat.com>
14441
14442 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14443 auditing.
14444
14445 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14446 RPATH of main map twice.
14447
14448 2006-06-22 Ulrich Drepper <drepper@redhat.com>
14449
14450 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14451 look further, return original strings.
14452 (_nl_find_msg): Do not return found translation if the conversion
14453 failed. Either signal the string is unusable or that something went
14454 wrong and the original should be used.
14455
14456 2006-06-21 Ulrich Drepper <drepper@redhat.com>
14457
14458 * string/_strerror.c (__strerror_r): Add __builtin_expect.
14459
14460 2006-06-14 Jakub Jelinek <jakub@redhat.com>
14461
14462 [BZ #2766]
14463 * misc/insremque.c (insque): Handle prev == NULL.
14464 * misc/Makefile (tests): Add tst-insremque.
14465 * misc/tst-insremque.c: New test.
14466
14467 2006-06-17 Ulrich Drepper <drepper@redhat.com>
14468
14469 [BZ #2792]
14470 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14471 conflict with DL_DST_REQUIRED.
14472
14473 2006-06-16 Ulrich Drepper <drepper@redhat.com>
14474
14475 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14476 match what Solaris does.
14477
14478 2006-06-04 Ulrich Drepper <drepper@redhat.com>
14479
14480 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14481 local_setegid instead of seteuid and setegid.
14482 * sysdeps/generic/local-setxid.h: New file.
14483 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14484
14485 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14486
14487 * string/Makefile (tests): Add bug-envz1.
14488 * string/bug-envz1.c: New file.
14489
14490 2006-06-02 Jakub Jelinek <jakub@redhat.com>
14491
14492 * posix/regex_internal.c (re_string_skip_chars): If no character has
14493 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
14494 to the byte which couldn't be converted.
14495 (re_string_reconstruct): Don't clear valid_raw_len before calling
14496 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
14497 tip_context using re_string_context_at.
14498 * posix/Makefile: Add rules to build and run bug-regex25 test.
14499 * posix/bug-regex25.c: New test.
14500
14501 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
14502
14503 [BZ #2703]
14504 * string/envz.c (envz_strip): Correct erroneously reversed src
14505 and dest parameters to memmove() invocation.
14506
14507 2006-05-30 Jakub Jelinek <jakub@redhat.com>
14508
14509 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14510 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14511 to make sure the database has been already invalidated.
14512 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
14513 after the cache has been invalidated. Use pthread_mutex_lock rather
14514 than pthread_mutex_trylock if fd != -1.
14515 * nscd/connections.c (invalidate_cache): Add fd argument, write
14516 response to fd if not calling prune_cache, pass fd to prune_cache.
14517 (handle_request): Adjust invalidate_cache caller.
14518 (nscd_run): Pass -1 as fd to prune_cache.
14519
14520 2006-05-30 Ulrich Drepper <drepper@redhat.com>
14521
14522 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14523 the correct place.
14524
14525 2006-05-29 Ulrich Drepper <drepper@redhat.com>
14526
14527 * nscd/nscd.h (struct database_dyn): Add prunelock field.
14528 * nscd/cache.c (prune_cache): Take prunelock before starting the
14529 work. Just return in case it is already taken.
14530 * nscd/connections.c (dbs): Initialize .prunelock.
14531
14532 2006-05-25 Ulrich Drepper <drepper@redhat.com>
14533
14534 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14535 copying. No need to allocate new array for group members. Just
14536 move the pointers and update the size.
14537
14538 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14539 Avoid memory leak in case realloc fails. Simplification for
14540 better code generation.
14541
14542 Avoid deprecation warning because of libc_hidden_proto for
14543 inet6_option_alloc.
14544 * inet/inet6_option.c (option_alloc): Renamed from
14545 inet6_option_alloc. Made static.
14546 (inet6_option_alloc): Now a simple wrapper around option_alloc.
14547 (inet6_option_append): Call option_alloc.
14548 * include/netinet/in.h: Remove libc_hidden_proto for
14549 inet6_option_alloc.
14550
14551 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14552 for cleanup when cb!=NULL [Coverity CID 233].
14553
14554 2006-05-24 Ulrich Drepper <drepper@redhat.com>
14555
14556 [BZ #2693]
14557 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14558 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14559 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14560 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14561 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14562 and inet6_rth_getaddr.
14563 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14564 array.
14565 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14566 Mark inet6_option_* interfaces as deprecated.
14567 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14568 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14569 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14570 inet6_rth_segments, and inet6_rth_getaddr.
14571 * inet/inet6_opt.c: New file.
14572 * inet/inet6_rth.c: New file.
14573
14574 * inet/netinet/icmp6.h: Pretty printing.
14575
14576 [BZ #2683]
14577 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14578
14579 2006-05-23 Ulrich Drepper <drepper@redhat.com>
14580
14581 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14582 doing it all here. When server does not know the answer do not
14583 fail immediate, try parent first.
14584
14585 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14586 overflow test.
14587
14588 2006-05-20 Ulrich Drepper <drepper@redhat.com>
14589
14590 * nis/nis_call.c (__prepare_niscall): New function. Split out
14591 from __do_niscall.
14592 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14593 and exported.
14594 (__follow_path): New function. Split out from nis_list.
14595 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14596 _xdr_nis_result.
14597 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14598 _xdr_nis_result.
14599 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14600 and __follow_path.
14601 * nis/Versions: Export __prepare_niscall, __create_ib_request,
14602 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14603 from libnsl for version GLIBC_PRIVATE.
14604 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14605 Remove entry parameter from _nss_nisplus_parse_pwent and
14606 _nss_nisplus_parse_grent.
14607 * nis/nss_nisplus/nisplus-parser.c: Likewise.
14608 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14609 again. Rewrite getpwent handling to not use nis_first_entry and
14610 nis_next_entry. Roll out own niscall handling.
14611 * nis/nss_nisplus/nisplus-grp.c: Likewise.
14612
14613 * sunrpc/xdr_rec.c: Fix typo in comment.
14614
14615 2006-05-19 Ulrich Drepper <drepper@redhat.com>
14616
14617 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14618 handling.
14619
14620 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14621 to allocate memory for my_pollfd. Better initialization of
14622 cb_is_running. Use TEMP_FAILURE_RETRY.
14623
14624 * malloc/memusage.sh (memusageso): Add quotes.
14625 (memusagestat): Likewise.
14626 * debug/xtrace.sh (pcprofileso): Likewise.
14627 (pcprofiledump): Likewise.
14628 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14629 replacement.
14630 * malloc/Makefile ($(objpfx)memusage): Likewise.
14631
14632 * nis/nis_callback.c (__nis_create_callback): Calls to
14633 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14634 asprintf call fails.
14635
14636 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14637 no uninitialized memory is passed to sendto.
14638
14639 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14640
14641 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14642 of snprintf+strdup. Handle OOM.
14643 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14644 cb->serv together. Remove now obsolete free calls.
14645 (__nis_destroy_callback): Remove now obsolete free call.
14646
14647 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14648
14649 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14650 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14651 and ULA respectively). Set precedence for IPv4 address to 10 as
14652 defined in RFC3484 for preferring IPv6.
14653 * posix/gai.conf: Update to match the new default tables.
14654
14655 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14656
14657 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14658 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14659 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14660 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14661
14662 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14663 Removed.
14664 (init_nss_interface): Remove initialization of these variables.
14665
14666 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14667
14668 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14669 nis_free_directory forward to avoid duplication.
14670
14671 2006-05-17 Ulrich Drepper <drepper@redhat.com>
14672
14673 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14674 rec_dirsearch returning NULL.
14675 (first_shoot): Handle __nis_finddirectory returning NULL.
14676 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14677
14678 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14679 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14680
14681 2006-05-17 Jakub Jelinek <jakub@redhat.com>
14682
14683 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14684 pid changed.
14685
14686 2006-05-15 Ulrich Drepper <drepper@redhat.com>
14687
14688 * include/rpc/pmap_prot.h: Mark all functions as hidden.
14689
14690 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14691 * nscd/nscd_getgr_r.c: Likewise.
14692
14693 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14694
14695 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14696 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14697
14698 * stdlib/longlong.h (__clz_tab): Mark as hidden.
14699
14700 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14701
14702 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14703
14704 * include/rpc/auth.h: Mark xdr_des_block_internal and
14705 xdr_opaque_auth_internal as hidden.
14706
14707 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14708 hidden.
14709
14710 * include/rpc/xdr.h: Mark all _internal functions as hidden.
14711
14712 * misc/getusershell.c (okshells): Don't use static initializers,
14713 do it dynamically.
14714
14715 * stdlib/fmtmsg.c (keywords): Change type of len element to
14716 uint32_t to not waste space on 64bit machines.
14717
14718 * locale/setlocale.c: Change _nl_category_names into a string.
14719 Add new _nl_category_name_idxs. Change all users.
14720 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14721 Declare _nl_category_name_idxs.
14722 * locale/findlocale.c: Adjust for _nl_category_names change.
14723 * locale/loadlocale.c: Likewise.
14724 * locale/newlocale.c: Likewise.
14725 * intl/dcigettext.c: Likewise.
14726
14727 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14728 (add_alias2): ...here. New function.
14729 (__gconv_read_conf): Simplify builtin alias handling.
14730 (builtin_aliases): Convert to string to avoid relocations.
14731 * iconv/gconv_builtin.h: Add comment about correct formatting.
14732
14733 2006-05-15 Jakub Jelinek <jakub@redhat.com>
14734
14735 * resolv/res_debug.c (loc_ntoa): Make error const.
14736
14737 2006-05-14 Andreas Schwab <schwab@suse.de>
14738
14739 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14740
14741 2006-05-12 Jakub Jelinek <jakub@redhat.com>
14742
14743 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14744 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14745 sizeof (cpu_set_t).
14746
14747 2006-05-11 Ulrich Drepper <drepper@redhat.com>
14748
14749 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14750
14751 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14752
14753 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14754 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14755
14756 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14757 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14758
14759 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14760 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14761 xdr_cback_data.
14762
14763 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14764 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14765 xdr_ypupdate_args.
14766
14767 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14768 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14769
14770 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14771 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14772
14773 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14774 * include/rpcsvc/nis_callback.h: New file.
14775
14776 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14777 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14778
14779 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14780 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14781
14782 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14783 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14784
14785 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14786 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14787
14788 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14789 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14790 xdr_ypdelete_args.
14791
14792 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14793 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14794
14795 * nis/nis_error.c: Remove table of strings. Use position
14796 independent mechanism.
14797 * nis/nis_error.h: New file.
14798
14799 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14800
14801 * locale/programs/ld-time.c (time_finish): If wide era name or
14802 format aren't provided, set both wname and wformat to L"".
14803
14804 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14805
14806 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14807 results if the call was succesful.
14808
14809 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14810
14811 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14812 as hidden.
14813
14814 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14815
14816 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14817
14818 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14819
14820 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14821 caller makes sure this is not the case.
14822 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14823
14824 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14825
14826 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14827 calls.
14828
14829 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14830 [Coverity CID 229, 230]
14831
14832 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14833 DGETTEXT calls.
14834 (hol_help): Likewise. [Coverity CID 226, 227]
14835
14836 * string/argz-replace.c (__argz_replace): Unconditionally call
14837 free on SRC. [Coverity CID 225]
14838
14839 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14840 the return value of __nis_default_owner and __nis_default_group,
14841 it has been especially allocated. [Coverity CID 224]
14842
14843 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14844 searchgroup and searchowner. Significantly simplified.
14845 (__nis_default_owner): Remove duplication. Do not locally copy the
14846 string before duplicating it.
14847 (__nis_default_group): Likewise.
14848
14849 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14850 we must clear the variable before calling __nisfind_server.
14851
14852 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14853 nis_getnames. [Coverity CID 223]
14854
14855 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14856 xmalloc to allocate local repertoire name. [Coverity CID 222]
14857
14858 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14859 allocate memory for the input to add_bytes. [Coverity CID 221]
14860
14861 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14862 was allocated here. [Coverity CID 219, 220]
14863
14864 * posix/getconf.c (print_all): Free confstr data after printing.
14865 [Coverity CID 218]
14866
14867 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14868 list allocation fails. [Coverity CID 215]
14869
14870 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14871 [Coverity CID 213]
14872
14873 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14874 string is NULL. [Coverity CID 212]
14875 * argp/Makefile: Add rules to build and run bug-argp1.
14876 * argp/bug-argp1.c: New file.
14877
14878 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14879 end of string.
14880 * stdlib/canonicalize.c (__realpath): Likewise.
14881
14882 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14883 pointer. [Coverity CID 206]
14884
14885 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14886 in statically linked code.
14887 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14888 statically built code, be prepared to have no link map.
14889 [Coverity CID 205]
14890
14891 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14892 dgettext calls. [Coverity CID 204]
14893
14894 * argp/argp-help.c (struct uparams): Remove valid member. Change
14895 the one user.
14896 (uparam_names): Reduce size. Avoid relative relocations.
14897 Moved to read-only segment.
14898 (fill_in_uparams): Update for new layout.
14899
14900 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14901 assumed to always be != NULL. [Coverity CID 202]
14902
14903 * argp/argp-help.c (hol_entry_help): Remove some dead code
14904 [Coverity CID 200].
14905
14906 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14907 away a few more unconditional yperr2nss calls.
14908 (_nss_nis_getservbyname_r): Likewise.
14909
14910 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14911
14912 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14913 architectures.
14914
14915 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14916 that unused memory passed to sendto is nevertheless initialized.
14917
14918 [BZ #2499]
14919 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14920 possibly unaligned memory accesses.
14921
14922 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14923 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14924 and __putlong respectively. Correct buffer overflow check for
14925 NS_NOTIFY_OP.
14926
14927 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14928
14929 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14930 (send_dg): Rewrite error handling to be more compact and avoid
14931 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14932
14933 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14934
14935 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14936 instead of ns_get16.
14937 (res_queriesmatch): Likewise. Minor optimization.
14938
14939 [BZ #2499]
14940 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14941 __libc_res_nsend might reallocate the buffer for the answer. In
14942 this case we have to reload the HP pointer.
14943
14944 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14945
14946 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14947 some branch prediction hints.
14948
14949 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14950 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14951 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14952 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14953 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14954 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14955 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14956 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14957
14958 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14959
14960 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14961 by a GOT relocation to make Scrt1.o position independent.
14962 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14963
14964 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14965 six system call parameters.
14966 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14967
14968 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14969
14970 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14971 malloc&bzero.
14972
14973 * sunrpc/svc_udp.c (BZERO): Remove definition.
14974 (CALLOC): Define.
14975 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14976
14977 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14978 (des_SPtrans): Use uint32_t type.
14979 (des_skb): Likewise.
14980
14981 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14982
14983 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14984
14985 [BZ #2509]
14986 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14987 on 32-bit arches.
14988
14989 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14990
14991 * locale/programs/ld-address.c (address_finish): Fix one more
14992 place where the iso639 array might be accessed beyond the limits.
14993
14994 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14995
14996 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14997 filling it for the first time.
14998
14999 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
15000 Adjust all callers.
15001 Free res object content before returning.
15002
15003 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
15004
15005 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
15006 client->cl_auth.
15007
15008 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
15009 cleanup for initial thread, just the free call on TVP.
15010
15011 * nscd/gai.c (__getline): Define.
15012
15013
15014 See ChangeLog.16 for earlier changes.