]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
* elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
[thirdparty/glibc.git] / ChangeLog
CommitLineData
68631c8e
UD
12007-12-16 Ulrich Drepper <drepper@redhat.com>
2
d9961b6a
UD
3 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4 executable stacks.
5
68631c8e
UD
6 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7 mTRIm for all of them.
8 (mTRIm): Additionally iterate over all free blocks and use madvise
9 to free memory for all those blocks which contain at least one
10 memory page.
be8c1500
UD
11 * malloc/tst-trim1.c: New file.
12 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
13
14 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
15
78b767a0
UD
162007-12-14 Ulrich Drepper <drepper@redhat.com>
17
18 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19 First cast argument to long
52386be7
UD
20 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
21 Return long.
22 (__vdso_clock_gettime): Likewise.
78b767a0
UD
23 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
24 return long.
25
bc3e1c12
UD
262007-12-13 Ulrich Drepper <drepper@redhat.com>
27
28 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
29 * locale/nl_langinfo_l.c: Real implementation, copied from
30 nl_langinfo.c.
31 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
32
77751669
UD
332007-12-01 Jim Meyering <meyering@redhat.com>
34
35 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36 that would inhibit utf8-optimization of a regexp containing line-
37 or buffer-anchors, e.g., `^', `$'.
38
f63e5063
UD
392007-12-12 Ulrich Drepper <drepper@redhat.com>
40
41 * time/bug-getdate1.c (do_test): Don't use century values which
42 aren't valid on 32-bit systems.
43
a78814a9
UD
442007-12-12 Jakub Jelinek <jakub@redhat.com>
45
46 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
47 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
48 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
49 __strcat_g, __strncat_g): Add __asm__.
50
512007-12-12 Ulrich Drepper <drepper@redhat.com>
52
53 [BZ #5477]
54 * io/fchmodat.c: Fix typo in stub_warning use.
55 Patch by Petr Salinger.
56
17edb30c
UD
572007-12-11 Ulrich Drepper <drepper@redhat.com>
58
58d11795
UD
59 * iconvdata/hp-thai8.c: New file.
60 * iconvdata/Makefile: Add rules for hp-thai8.c.
61 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
62 * iconvdata/gconv-modules: Likewise.
63
64 [BZ #5464]
65 * iconvdata/hp-greek8.c: New file.
66 * iconvdata/Makefile: Add rules for hp-greek8.c.
67 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
68 * iconvdata/gconv-modules: Likewise.
69
70 [BZ #5463]
71 * iconvdata/hp-turkish8.c: New file.
72 * iconvdata/Makefile: Add rules for hp-turkish8.c.
73 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
74 * iconvdata/gconv-modules: Likewise.
75
cbf5760e
UD
76 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
77 (shrink_heap): ... this new function.
78 (heap_trim): Call shrink_heap instead of grow_heap.
79
17edb30c
UD
80 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
81 case don't call alloc_perturb.
82
ae18718f
UD
832007-12-10 Ulrich Drepper <drepper@redhat.com>
84
85 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
86 possible.
87 * sysdeps/unix/sysv/linux/kernel-features.h
88 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
89 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
90
b4354cf4
UD
912007-12-08 Ulrich Drepper <drepper@redhat.com>
92
93 [BZ #5424]
94 * stdio-common/vfprintf.c: Do not overflow when adding to done.
95 * stdio-common/Makefile (tests): Add bug22.
96 * stdio-common/bug22.c: New file.
97
98 [BZ #5451]
99 * time/getdate.c: Fix filling in default values.
100 * time/bug-getdate1.c: New file.
101 * time/Makefile: Add rules to build and run bug-getdate1.
102
103 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
104 * iconvdata/ebcdic-es.c: Likewise.
105 * iconvdata/ebcdic-es-a.c: Likewise.
106 * iconvdata/ebcdic-uk.c: Likewise.
107 * iconvdata/iso8859-16.c: Likewise.
108 * iconvdata/viscii.c: Likewise.
109 * iconvdata/iso8859-9e.c: Likewise.
110 * iconvdata/Makefile: Adjust appropriately.
111
112 [BZ #5428]
113 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
114 __need_wint_t.
115
26e21e75
UD
1162007-12-07 Ulrich Drepper <drepper@redhat.com>
117
87520ccc
UD
118 [BZ #5427]
119 * iconvdata/hp-roman9.c: New file.
120 * iconvdata/Makefile: Add rules for hp-roman9.c.
121 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 122 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
123
124 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
125 * iconvdata/Makefile: Adjust appropriately.
126
26e21e75
UD
127 [BZ #5441]
128 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
129 structure, it's allocated with alloca.
130 * stdio-common/Makefile (tests): Add bug21.
131 * stdio-common/bug21.c: New file.
132
1332007-12-06 Aurelien Jarno <aurelien@aurel32.net>
134
135 [BZ #5452]
136 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 137 keyword for gcc's braced-groups.
26e21e75
UD
138
1392007-12-07 Ulrich Drepper <drepper@redhat.com>
140
141 [BZ #5454]
142 * inet/ether_line.c: Strip hostname of whitespaces.
143 * inet/Makefile (tests): Add tst-ether_line.
144 * inet/tst-ether_line.c: New file.
145
9e80c123
UD
1462007-12-03 Ulrich Drepper <drepper@redhat.com>
147
da0ff4ae
UD
148 [BZ #5439]
149 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
150
51bd20d9
UD
151 [BZ #5435]
152 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
153
d90d0256
UD
154 * stdlib/tst-setcontext.c: Catch the case where the links gets
155 messed up and we do not reach main again.
156
9e80c123
UD
157 * po/ca.po: Update from translation team.
158
ae4287f8
UD
1592007-11-26 Ulrich Drepper <drepper@redhat.com>
160
6701afc7 161 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 162 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 163 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 164
30294ea4
UD
1652007-11-25 Ulrich Drepper <drepper@redhat.com>
166
167 * nscd/nscd.h (MAX_STACK_USE): Define.
168 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
169 (gc): Initialize stack_used based on allocation in prune_cache.
170 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 171 Clear array before use.
30294ea4
UD
172
173 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 174 memory allocation failed.
e8667ddc
UD
175 * nscd/hstcache.c (cache_addhst): Likewise.
176 * nscd/grpcache.c (cache_addgr): Likewise.
177 * nscd/servicescache.c (cache_addserv): Likewise.
178 * nscd/pwdcache.c (cache_addpw): Likewise.
179 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 180
715db78b
UD
1812007-11-23 Ulrich Drepper <drepper@redhat.com>
182
609bb071
UD
183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
184 and creat system calls.
185
715db78b
UD
186 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
187
ea2c47b6
UD
1882007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
189
190 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
191 Add netiucv/iucv.h.
192 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
193 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
194 protocol.
195 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
196 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
197 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
198
dcdcf4b9
UD
1992007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
200
37143323
UD
201 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
202 strncat): Define as macros to avoid compile errors.
203
dcdcf4b9
UD
204 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
205 creat entries.
206
3a632674
UD
2072007-11-22 Ulrich Drepper <drepper@redhat.com>
208
7ea8eb02
UD
209 [BZ #5382]
210 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
211 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 212 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 213 overflow it.
70d5b6ef 214 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
215
216 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 217 Return zero in case the thread library is not NPTL.
7ea8eb02 218
5c3a3dba
UD
219 [BZ #5375]
220 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
221 initializing interface list.
222
85883123
UD
223 [BZ #5378]
224 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
225 use result of nss_getgrgid_r if nothing was found. For other
226 error return with a failure.
227 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
228
3a632674
UD
229 * locale/programs/ld-collate.c (collate_read): Fix loop to match
230 macro name.
231
b73f9135
UD
2322007-11-19 Ulrich Drepper <drepper@redhat.com>
233
ee72b971
UD
234 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
235 (get_scope): For IPv4 scope, use scopes table.
236 (fini): Free scopes table if necessary.
237 (free_scopelist): New function.
238 (scopecmp): New function.
239 (gaiconf_init): Also handle scopev4 entries.
240 * posix/tst-rfc3484.c (do_test): Initialize scopes.
241 * posix/tst-rfc3484-2.c (do_test): Likewise.
242 * posix/gai.conf: Document scopev4 defaults.
243 * posix/Makefile (tests): Add tst-rfc3484-3.
244 * posix/tst-rfc3484-3.c: New file.
245
f4a79765
UD
246 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
247 Teredo tunnels.
b73f9135
UD
248 * posix/gai.conf: Update for current default tables.
249
429bd64d
UD
2502007-11-19 Ulrich Drepper <drepper@redhat.com>
251
252 * po/tr.po: Update from translation team.
253
3c9af259
RM
2542007-11-18 Roland McGrath <roland@frob.com>
255
76cf9889
RM
256 * manual/arith.texi (Remainder Functions): Spelling fix.
257 From Shaun Silk <genix@mysoul.com.au>.
258
3c9af259
RM
259 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
260
238346ab
UD
2612007-11-17 Ulrich Drepper <drepper@redhat.com>
262
5879ad50
UD
263 * po/zh_CN.po: Update from translation team.
264
238346ab
UD
265 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
266 Add sys/signalfd.h and sys/eventfd.h.
267
b80b9c77
UD
2682007-11-15 Bruno Haible <bruno@clisp.org>
269
270 [BZ #5346]
271 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
272 union.
273 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
274 (DCIGETTEXT): Change the allocation of the 'search' variable so that
275 it needs only fixed stack space. Delay the initialization of
276 msgid_len until it is needed.
277
2da2501c
AJ
2782007-11-15 Andreas Jaeger <aj@suse.de>
279
280 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
281 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
282
68a6dcf5
UD
2832007-11-15 Ulrich Drepper <drepper@redhat.com>
284
285 * po/ko.po: Update from translation team.
286
43850227
UD
2872007-11-14 Ulrich Drepper <drepper@redhat.com>
288
1e2692c9
UD
289 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
290 significantly. The device type is also part of the ifinfomsg data.
291
84e6cc7c 292 * po/sv.po: Update from translation team.
cbd52634 293 * po/nl.po: Likewise.
84e6cc7c 294
f9e2261b
UD
295 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
296 to wake up in 24 hours.
297
43850227
UD
298 * nscd/gai.c (__ioctl): Define. Include check_native.c.
299
5742e960
UD
3002007-11-13 Ulrich Drepper <drepper@redhat.com>
301
1a821d82
UD
302 * po/cs.po: Update from translation team.
303 * po/pl.po: Likewise.
304
773e79b3
UD
305 * include/ifaddrs.h: Remove in6ai_temporary.
306 (struct in6addrinfo): Add index element.
307 Declare __check_native.
308 * inet/Makefile (aux): Add check_native.
309 * sysdeps/unix/sysv/linux/check_native.c: New file.
310 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
311 IFA_F_TEMPORARY. Pass back ifa_index.
312 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
313 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
314 call __check_native if necessary.
315 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
316 to sort addresses. Pass information about the results.
317 * posix/tst-rfc3484.c: Adjust for addition of index field and change
318 of rfc3484_sort interface.
319 * posix/tst-rfc3484-2.c: Likewise.
320
e458144c
UD
321 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
322 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
323 for _quicksort.
324 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
325 (qsort_r): Renamed from qsort. Take additional parameter and pass it
326 on as third parameter to compare function and _quicksort.
327 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
328 to the compare function.
329 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
330 * Versions.def: Add GLIBC_2.8 for libc.
331
bd63f380
UD
332 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
333 * posix/tst-rfc3484-2.c: Likewise.
334
5742e960
UD
335 * include/kernel-features.h: Moved to...
336 * sysdeps/mach/hurd/kernel-features.h: ...here.
337
a6ac7fdb
RM
3382007-09-13 H.J. Lu <hongjiu.lu@intel.com>
339
340 * sysdeps/i386/i586/memcpy_chk.S: New file.
341 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
342 * sysdeps/i386/i586/memset_chk.S: Likewise.
343
6f3914d5
UD
3442007-11-12 Ulrich Drepper <drepper@redhat.com>
345
346 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
347 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
348 list of interfaces. Also store prefix length.
349 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
350 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
351 prefix if source and destination address are in the same subnet.
352 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
353 Always look for matching record in in6ai list.
354 Correct source_addr_len value for IPv6->IPv4 converted records.
355
78cf5f6a
RM
3562007-11-11 Roland McGrath <roland@frob.com>
357
358 * include/kernel-features.h: New file.
359
7f745396
UD
3602007-11-10 Ulrich Drepper <drepper@redhat.com>
361
01e7fdbb
UD
362 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
363 complications for 64-bit platforms.
364
7f745396
UD
365 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
366 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
367 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
368 open64_2.
369 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
370 entries.
371 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
372 * sysdeps/wordsize-64/alphasort.c: New file.
373 * sysdeps/wordsize-64/alphasort64.c: New file.
374 * sysdeps/wordsize-64/fseeko.c: New file.
375 * sysdeps/wordsize-64/fseeko64.c: New file.
376 * sysdeps/wordsize-64/ftello.c: New file.
377 * sysdeps/wordsize-64/ftello64.c: New file.
378 * sysdeps/wordsize-64/ftw.c: New file.
379 * sysdeps/wordsize-64/ftw64.c: New file.
380 * sysdeps/wordsize-64/iofgetpos.c: New file.
381 * sysdeps/wordsize-64/iofgetpos64.c: New file.
382 * sysdeps/wordsize-64/iofopen.c: New file.
383 * sysdeps/wordsize-64/iofopen64.c: New file.
384 * sysdeps/wordsize-64/iofsetpos.c: New file.
385 * sysdeps/wordsize-64/iofsetpos64.c: New file.
386 * sysdeps/wordsize-64/lockf.c: New file.
387 * sysdeps/wordsize-64/lockf64.c: New file.
388 * sysdeps/wordsize-64/mkostemp.c: New file.
389 * sysdeps/wordsize-64/mkostemp64.c: New file.
390 * sysdeps/wordsize-64/mkstemp.c: New file.
391 * sysdeps/wordsize-64/mkstemp64.c: New file.
392 * sysdeps/wordsize-64/scandir.c: New file.
393 * sysdeps/wordsize-64/scandir64.c: New file.
394 * sysdeps/wordsize-64/tmpfile.c: New file.
395 * sysdeps/wordsize-64/tmpfile64.c: New file.
396 * sysdeps/wordsize-64/versionsort.c: New file.
397 * sysdeps/wordsize-64/versionsort64.c: New file.
398 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
399 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
400 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
401 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
402 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
403 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
404 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
405 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
406 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
407 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
408 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
409 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
410
411 * crypt/sha256-crypt.c: Fix a comment.
412 * crypt/sha512-crypt.c: Likewise.
413
f6ed654c
UD
4142007-11-07 H.J. Lu <hongjiu.lu@intel.com>
415
416 * sysdeps/x86_64/memset.S: Add sfence after movnti.
417
f2a8406a
UD
4182007-11-07 Ulrich Drepper <drepper@redhat.com>
419
420 [BZ #5277]
421 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
422 because output buffer is too small break, don't loop.
423 * iconvdata/Makefile (tests): Add bug-iconv6.
424 * iconvdata/bug-iconv6.c: New file.
425
7fe4e0e8
UD
4262007-11-06 Ulrich Drepper <drepper@redhat.com>
427
9ca230d6
UD
428 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
429 with size_t type.
430 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
431 size_t. Add casts where needed.
432
7fe4e0e8
UD
433 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
434 old headers, don't call avc_has_perm if we don't have the
435 permission information.
436
b92e3780
UD
4372007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
438
439 * elf/rtld.c (dl_main): Use the page size to find the map start.
440
ffb1b882
UD
4412007-11-05 Ulrich Drepper <drepper@redhat.com>
442
94a749f6
UD
443 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
444 Patch by Szymon Siwek <sls@poczta.wp.pl>.
445
ffb1b882
UD
446 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
447 when the lookup call failed.
448
449 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
450 Add prune_cond and wakeup_time.
451 (CACHE_PRUNE_INTERNAL): Define.
452 Update declarations of prune_cache and setup_thread.
453 * nscd/connections.c (dbs): Update initializers.
454 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
455 (nscd_init): Default number of threads is now 4.
456 (invalidate_cache): Take lock before calling prune_cache.
457 (handle_request): If SELinux forbids the request, say so.
458 (readylist_cond): Use static initializer.
459 (nscd_run_prune): New function. Used only by pruning threads.
460 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
461 here.
462 (fd_ready): Update nscd_run reference.
463 (start_threads): No need to initialize readylist_cond.
464 Start pruning threads separately.
465 * nscd/nscd_setup_thread.c: Change return value type to int and always
466 return 0.
467 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
468 to int and return nonzero value if we can use the TID address hack.
469 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
470 the database is later than the new entry's timeout, update the
471 wakeup time and wake the cleanup thread.
472 (prune_cache): Return seconds the next entry in the database is still
473 valid. Remove locking for pruning here.
474 * nscd/nscd.conf: Document default number of threads.
475
4c48ef06
UD
4762007-10-31 Ulrich Drepper <drepper@redhat.com>
477
41ff2a49
UD
478 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
479 stack is properly aligned for the target function.
480 Correct unwind info.
ffb1b882 481
4c48ef06
UD
482 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
483 when using auditing libraries.
484
384ca551
UD
4852007-10-29 Ulrich Drepper <drepper@redhat.com>
486
31e2791c
UD
487 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
488 _nss_dns_getnetbyaddr2_r.
489 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
490 extra parameter to getanswer_r.
491 (_nss_dns_getnetbyaddr_r): Now a wrapper around
492 _nss_dns_getnetbyaddr2_r.
493
384ca551
UD
494 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
495 gethstbynm3_r.
496 * nscd/gethstbynm2_r.c: Remove.
497 * nscd/gethstbynm3_r.c: New file.
498 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
499 __gethostbyaddr_r.
500 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
501 __gethostbyaddr_r compatibility wrapper.
502 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
503 determining timeout of entry.
504 (lookup): Take new parameter and pass it to __gethostbyname3_r and
505 __gethostbyaddr2_r.
506 (addhstbyX): Pass reference to variable for TTL to lookup and
507 cache_addhst.
508 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
509 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
510 and __nss_next2. Remove __nss_services_lookup.
511 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
512 Add compat wrapper.
513 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
514 __nss_next2.
515 * nss/getXXent_r.c: Likewise.
516 * nss/getnssent_r.c: Likewise.
517 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
518 does not exist in module, try the optional second name.
519 (__nss_next2): New function.
520 (__nss_next): Now wrapper around __nss_next2.
521 * nss/nsswitch.h: Adjust __nss_lookup prototype.
522 Declare __nss_next2.
523 Adjust definition of db_lookup_function type.
524 * nss/service-lookup.c: Define NO_COMPAT.
525 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
526 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
527 * inet/ether_ntoh.c: Likewise.
528 * sunrpc/netname.c: Likewise.
529 * sunrpc/publickey.c: Likewise.
530 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
531 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
532 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
533 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
534 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
535
536 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
537
538 * inet/getnetgrent.c (setup): Encrypt static pointer.
539
88197030
UD
5402007-10-28 Ulrich Drepper <drepper@redhat.com>
541
f160a450
UD
542 [BZ #5204]
543 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
544 * crypt/sha512c-test.c: Likewise.
545
4c6b2202
UD
546 [BZ #5225]
547 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
548 to keep track of end of %[ format string element.
22c915ac
UD
549 * stdio-common/Makefile (tests): Add bug20.
550 * stdio-common/bug20.c: New file.
4c6b2202 551
88197030
UD
552 [BZ #5222]
553 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
554 path elements in counting mode.
555
05d69147
UD
5562007-10-27 Andreas Jaeger <aj@suse.de>
557
94833f11
UD
558 [BZ #5040]
559 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
560
05d69147
UD
561 [BZ #3112]
562 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
563 (__cleanup): Free shared library when exiting.
564 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
565 (__cleanup): Free shared library when exiting.
566
e6b29af8
UD
5672006-04-14 H.J. Lu <hongjiu.lu@intel.com>
568
569 [BZ #2549]
570 * math/libm-test.inc (check_float_internal): Support
571 denormalized return.
572
ad3371fb
UD
5732007-10-23 Andreas Jaeger <aj@suse.de>
574
575 [BZ #5208]
576 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
577 __LONG_LONG_PAIR to handle little endian byte order.
578 Suggested by abhishekrai@google.com
579
666aa020
UD
5802007-10-27 Ulrich Drepper <drepper@redhat.com>
581
582 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
583
8ad343b3
UD
5842007-10-26 Ulrich Drepper <drepper@redhat.com>
585
586 * nscd/cache.c (prune_cache): Move test for modified file outside
587 of locking.
588
9251c568
AJ
5892007-10-21 Andreas Jaeger <aj@suse.de>
590
591 * manual/texinfo.tex: Update to latest version.
592
593 * manual/sysinfo.texi (System Parameters): Fix Formatting.
594
595 * manual/arith.texi (Status bit operations): Fix formatting.
596
597 * manual/errno.texi (Error Messages): Fix formatting.
598
599 * manual/sysinfo.texi (System Parameters): Fix formatting.
600
601 * manual/libc.texinfo: Update VERSION and UPDATED.
602
260b2e06
RM
6032007-10-19 Roland McGrath <roland@redhat.com>
604
605 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
606
46ae8850
JJ
6072007-10-06 David S. Miller <davem@davemloft.net>
608
609 * configure.in: Add sparcv9v2 and sparc64v2.
610 * scripts/config.sub: Likewise.
611 * configure: Regenerate.
612 * elf/elf.h (HWCAP_SPARC_N2): New.
613 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
614 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
615 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
616 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
617 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
618 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
619 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
620
6fbfbd80
UD
6212007-10-18 Ulrich Drepper <drepper@redhat.com>
622
623 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
624 even if the poll result indicates there is data to read.
625 Patch by Jeff Moyer <jmoyer@redhat.com>.
626
39cfc9fa
RM
6272007-10-18 Roland McGrath <roland@redhat.com>
628
629 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 630
39cfc9fa 6312007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
632
633 * version.h (VERSION): Set to 2.7.90.
634
ed13ccf1
JJ
6352007-10-17 Jakub Jelinek <jakub@redhat.com>
636
637 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
638 weak_alias.
639
ee9fd869
RM
6402007-10-17 Roland McGrath <roland@frob.com>
641
642 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
643 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
644
1aa5e4d7
UD
6452007-10-17 Ulrich Drepper <drepper@redhat.com>
646
50c9fbbf 647 * version.h (VERSION): Bump to 2.7.
777bc4bf 648 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 649
58423c7d
UD
650 [BZ #5186]
651 * time/tzset.c (__tz_convert): Don't force testing for a change of
652 TZ if not called from localtime. But then also see whether the
653 file changed, in case __use_tzfile is set.
654
1aa5e4d7
UD
655 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
656 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
657 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
658 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
659 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
660 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
661 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
662 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
663
fc4837e5
UD
6642007-10-17 Jakub Jelinek <jakub@redhat.com>
665
666 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
667 and admin selects to be able to replace the gai.conf file, lock
668 data structures around the qsort call.
669
62eaf7c8
UD
6702007-10-17 Ulrich Drepper <drepper@redhat.com>
671
406f28db
UD
672 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
673 new memset.
ac1cb5da 674 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
675 too high for the improvements. Implement bzero unconditionally for
676 use in libc.
ac1cb5da
UD
677
6782007-10-17 Ulrich Drepper <drepper@redhat.com>
679 Jakub Jelinek <jakub@redhat.com>
680
62eaf7c8
UD
681 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
682 even when time_t is 32-bit.
683 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
684 timezone data read by __tzfile_default. Ensure __tzname[0] is
685 always set after the search.
686
6a649d25
UD
6872007-10-16 Ulrich Drepper <drepper@redhat.com>
688
689 * time/tzfile.c (__tzfile_read): Help the compiler recognize
690 unreachable code on 32-bit machines.
691
800d6f9e
UD
6922007-10-16 Jakub Jelinek <jakub@redhat.com>
693
694 [BZ #5184]
695 * time/strftime_l.c: Include stdbool.h.
696 (my_strftime): New wrapper, old function renamed to...
697 (__strftime_internal): ... new function. Add tzset_called
698 argument, pass it down to recursive calls, don't call tzset ()
699 if already true, set to true after call to tzset ().
62eaf7c8 700
69819d92
UD
7012007-10-16 Ulrich Drepper <drepper@redhat.com>
702
703 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
704 into account when copying TZ string.
705
62eaf7c8
UD
7062007-10-16 Jakub Jelinek <jakub@redhat.com>
707
708 * time/tzfile.c (__tzfile_compute): For use_last case set i to
709 num_transition rather than num_transitions - 1.
710
0308ad66
JJ
7112007-10-16 Jakub Jelinek <jakub@redhat.com>
712
8d137b60
JJ
713 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
714 PIC indirect jump.
715
0308ad66
JJ
716 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
717 a local label rather than HIDDEN_JUMPTARGET.
718
e2b393bc
UD
7192007-10-15 Ulrich Drepper <drepper@redhat.com>
720
721 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
722 (init_cacheinfo): Initialize it.
723 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
724 Always define bzero.
725 Remove non-glibc code.
726 * sysdeps/x86_64/bzero.S: Make an empty file.
727
7282007-10-15 H.J. Lu <hongjiu.lu@intel.com>
729
730 * sysdeps/x86_64/cacheinfo.c
731 (__x86_64_preferred_memory_instruction): New.
732 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
733
734 * sysdeps/x86_64/memset.S: Rewrite.
735
0fbfcb7b
RM
7362007-10-15 Roland McGrath <roland@redhat.com>
737
738 * po/libc.pot: Regenerated.
739
2884dad4
UD
7402007-10-15 Ulrich Drepper <drepper@redhat.com>
741
e2b393bc 742 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
743 pointers.
744
2884dad4
UD
745 [BZ #3425]
746 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
747 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
748 address record to T_A/T_AAAA requests.
749
89dc9d4c
UD
7502007-10-14 Ulrich Drepper <drepper@redhat.com>
751
8d97ac13
UD
752 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
753
1b6aa63f
UD
754 * posix/glob.c: Add some branch prediction throughout.
755
895a08c0
UD
756 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
757 read from nscd.
758
6f55ed88
UD
759 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
760 service_order.
8d62c8ab
UD
761 (rfc3484_sort): Make sure that even if qsort doesn't support
762 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 763 (getaddrinfo): Initialize service_order.
a94673e6
UD
764 * posix/tst-rfc3484.c (do_test): Adjust for addition of
765 service_order field to sorting structure.
dfcf64ce 766 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 767
fa76dde2
UD
768 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
769 * time/tzset.c (tzset_internal): Break TZ string parsing out into
770 __tzset_parse_tz and updating of daylight, timezone, tzname into
771 update_vars.
772 (__tz_compute): Renamed from tz_compute. Take additional parameters.
773 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
774 happens in __tz_compute.
775 * time/tzfile.c (__tzfile_read): Also read TZ string.
776 (find_transition): Fold into __tzfile_compute.
777 (__tzfile_compute): For times beyond the last transition try to
778 use the TZ string.
779 * timezone/tst-timezone.c: Information in daylight and tzname does
780 change for Asia/Tokyo timezone with more concrete information.
781 Remove the test.
782
783 * include/stdio.h: Add libc_hidden_proto for ftello.
784 * libio/ftello.c: Add libc_hidden_def.
785
89dc9d4c
UD
786 [BZ #1140]
787 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
788 on the specified time and not the last entries in the file. Move
789 code to determine tzname[] to...
790 (find_transition): ...here. Add ugly guess for times before the
791 first transition.
792
f7140274
UD
7932007-10-13 Ulrich Drepper <drepper@redhat.com>
794
cfca0aa3
UD
795 [BZ #3195]
796 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
797 no entry.
798 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
799 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
800 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
801 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
802
43d3e6bd
UD
803 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
804 read mechanism when there are no group members and avoid no-op
805 read syscall in this case.
806
f7140274
UD
807 [BZ #3242]
808 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
809 (__readall): If reading failed due to EAGAIN error wait a bit
810 and possibly try again.
811 (__readvall): Likewise.
812
656f02ce
UD
8132007-10-13 Bruno Haible <bruno@clisp.org>
814
815 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
816 when we cannot recode the message.
817
0ea49677
UD
8182007-10-13 Ulrich Drepper <drepper@redhat.com>
819
820 [BZ #4359]
821 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
822 write-only streams. For read/write streams, check whether we
823 performed a read operation already.
7e39d802
UD
824 * libio/Makefile (tests): Add tst-ext2.
825 * libio/tst-ext2.c: New file.
0ea49677 826
78a9b2dc
UD
8272007-10-12 Ulrich Drepper <drepper@redhat.com>
828
fab1a490
UD
829 * locale/programs/repertoire.c (repertoire_read): Always free
830 memory for repertoire file name [Coverity CID 270].
831
78a9b2dc
UD
832 * elf/cache.c (save_aux_cache): Free memory allocated for
833 temporary file name [Coverity CID 267].
834
29d49a1a
JJ
8352007-10-12 Jakub Jelinek <jakub@redhat.com>
836
837 * misc/Makefile (headers): Add bits/error.h.
838
d074d36d
UD
8392007-10-12 Ulrich Drepper <drepper@redhat.com>
840
b7d1c5fa
UD
841 * posix/fnmatch_loop.c: Take rule index returned as part of
842 findidx return value into account when accessing weights.
843 * posix/regcomp.c: Likewise.
844 * posix/regexec.c: Likewise.
845
d074d36d
UD
846 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
847 (skip_to): Fix problems with parameter of elifdef/elifndef.
848
26a51060
UD
8492007-10-11 Ulrich Drepper <drepper@redhat.com>
850
851 * iconv/gconv_simple.c: Add some branch prediction.
852
6dd3748b
UD
8532007-10-12 Jakub Jelinek <jakub@redhat.com>
854
855 * locale/programs/ld-collate.c (collate_read): If ignore_content
856 and nowtok is tok_define, eat any tok_eol tokens.
857
d0b5557d
JJ
8582007-10-11 Jakub Jelinek <jakub@redhat.com>
859
860 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
861 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
862
863 * inet/netinet/in.h: Don't include bits/socket.h.
864 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
865 macro.
866 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
867
3a054d7a
UD
8682007-10-10 Ulrich Drepper <drepper@redhat.com>
869
870 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
871 and tok_elifndef.
872 * locale/programs/locfile-kw.gperf: Likewise.
873 * locale/programs/ld-collate.c: Implement primitive preprocessor.
874
c06b7169
UD
8752007-10-10 Jakub Jelinek <jakub@redhat.com>
876
877 * stdio-common/printf-parse.h: Include string.h and wchar.h.
878 (__find_specwc): Change into __extern_always_inline function.
879 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
880 (__parse_one_specmb): Remove ps argument.
881 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
882 Adjust __find_specmb and __parse_one_specmb callers.
883 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
884 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
885 Removed.
886 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
887 caller.
888
5a01ab7b
UD
8892007-10-09 Ulrich Drepper <drepper@redhat.com>
890
891 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
892 with some Pentium Ds.
893
e3f8e049
UD
8942007-10-08 Ulrich Drepper <drepper@redhat.com>
895
896 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
897 __read not read.
898 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
899 __write not write.
900
a1a363d2
UD
9012007-10-07 Ulrich Drepper <drepper@redhat.com>
902
a1160714
UD
903 [BZ #181]
904 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
905 * locale/programs/ld-time.c (time_finish): Default for
906 first_workday is Monday.
a1160714 907
bb27a6eb
UD
908 [BZ #2633]
909 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
910
c8d48fae
UD
911 [BZ #5103]
912 * posix/glob.c (glob): Recognize patterns starting \/.
913 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
914 (main): Add test for pattern starting \/.
915
a1a363d2
UD
916 * misc/error.h: Use __const instead of const.
917 * misc/bits/error.h: Likewise.
918
9192007-10-07 Andreas Jaeger <aj@suse.de>
920
921 * include/bits/error.h: New file.
922
923 * misc/bits/error.h (error_at_line): Fix prototype.
924
71894681
UD
9252007-10-06 Ulrich Drepper <drepper@redhat.com>
926
a6fa5328
UD
927 [BZ #3924]
928 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
929 more little bugs in creating the stack frame when pltexit has to
930 be called.
931
8c7661bc 932 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 933 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 934
c039eedd
UD
935 [BZ #4407]
936 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
937 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
938 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
939 * math/libm-test.inc: Add test for this case.
940
71894681
UD
941 [BZ #5010]
942 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
943 (svc_register): Initialize sc_mapped. Set to TRUE if call to
944 map service succeeded.
945 (svc_is_mapped): New function.
946 (svc_unregister): Use it before trying to unmap service.
947
34c2c092
UD
9482007-10-05 Ulrich Drepper <drepper@redhat.com>
949
d10737e4
UD
950 * timezone/zic.c: Update from tzcode2007h.
951
952 [BZ #5063]
953 * timezone/africa: Update from tzdata2007h.
954 * timezone/antarctica: Likewise.
955 * timezone/asia: Likewise.
956 * timezone/australasia: Likewise.
957 * timezone/europe: Likewise.
958 * timezone/leapseconds: Likewise.
959 * timezone/northamerica: Likewise.
960 * timezone/southamerica: Likewise.
961 * timzeone/zone.tab: Likewise.
962
0304f168
UD
963 [BZ #5104]
964 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
965
a83b5649
UD
966 [BZ #5113]
967 * string/bits/string2.h (__strdup): Cast parameters to calloc to
968 avoid warning with -Wconversion.
969 (__strndup): Likewise.
c039eedd 970 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 971
3e6ce4d7
UD
972 [BZ #5112]
973 * nscd/connections.c (restart): Don't resync if database is
974 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
975
8e351378
UD
976 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
977 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
978
979 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
980 evetnfd_read, eventfd_write.
981 * sysdeps/unix/sysv/linux/eventfd.c: New file.
982 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
983 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
984 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 985 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
986 eventfd_write for GLIBC_2.7.
987
34c2c092
UD
988 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
989 * sysdeps/unix/sysv/linux/signalfd.c: New file.
990 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
991 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
992
6789aaaa 9932007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
994
995 * stdlib/msort.c: Include stdint.h.
996 (struct msort_param): New type.
997 (msort_with_tmp): Use struct msort_param pointer for unchanging
998 parameters. Add optimized handling for several common sizes
999 and indirect sorting mode.
1000 (qsort): Adjust msort_with_tmp callers. For big S use indirect
1001 sorting.
1002 Suggested by Belazougui Djamel .
1003
1004 * stdlib/Makefile (tests): Add tst-qsort2.
1005 * stdlib/tst-qsort2.c: New test.
1006
b80bfc8b
UD
10072007-10-04 Ulrich Drepper <drepper@redhat.com>
1008
174420d2
UD
1009 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
1010 for dup2 in case another thread races with the current one. Retry
1011 in this case.
1012
b80bfc8b
UD
1013 * misc/error.h: Remove support for use outside of libc. We have to
1014 include <features.h> now. Include <bits/error.h> if possible.
1015 * misc/bits/error.h: New file.
1016
6789aaaa 10172007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 1018
e5dd2178
UD
1019 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
1020 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
1021 __extern_always_inline functions unconditionally, drop macros.
1022
ac97dec1
UD
1023 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
1024 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
1025 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
1026
ee868c89
UD
1027 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
1028 add __artificial__ attribute.
1029
80e069e0
UD
10302007-10-02 Ulrich Drepper <drepper@redhat.com>
1031
6e682cf5
UD
1032 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
1033 backward to forward direction.
1034
90241a20
UD
1035 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
1036
80e069e0
UD
1037 [BZ #645]
1038 * locale/programs/ld-collate.c (collate_finish): Compare against last
1039 used section which is known to have rules defined.
1040 (collate_read): After order_start, correctly record order of sections
1041 and queue sections up.
1042
035ef8d7
UD
10432007-10-01 Ulrich Drepper <drepper@redhat.com>
1044
95bddc0c
UD
1045 [BZ #5071]
1046 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
1047 the same number of pages.
1048 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
1049
c8caf089
UD
1050 * locale/programs/ld-collate.c (collate_read): After initial copy
1051 statement, continue in state 0.
1052
035ef8d7
UD
1053 * include/stdio_ext.h (__fsetlocking): Define as macro.
1054
592a95ee
UD
10552007-09-30 Ulrich Drepper <drepper@redhat.com>
1056
56ebeb41
UD
1057 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
1058 of section order.
1059
592a95ee
UD
1060 * po/pt_BR.po: Fix typo.
1061
6c522e21
UD
10622007-09-29 Ulrich Drepper <drepper@redhat.com>
1063
8ad5c3cd
UD
1064 * iconvdata/Makefile (modules): Add ISO8859-9E.
1065 (distribute): Add iso8859-9e.c.
1066 (gen-8bit-gap-modules): Add iso8859-9e.
1067 * iconvdata/iso8859-9e.c: New file.
1068 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
1069 * iconvdata/TESTS: Likewise.
1070 * iconvdata/tst-tables.sh: Likewise.
1071
1072 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1073
6c522e21
UD
1074 * locale/iso-639.def: Add several new entries.
1075
385b4cf4
UD
10762007-09-24 Jakub Jelinek <jakub@redhat.com>
1077
1078 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
1079 void * pointers instead of struct link_map **.
1080 (_dl_scope_free): Change argument type to void *.
1081 * include/link.h (struct link_map): Change type of l_reldeps
1082 to struct link_map_reldeps, move l_reldepsact into that
1083 struct too.
1084 * elf/dl-deps.c: Include atomic.h.
1085 (_dl_map_object_deps): Only change l->l_initfini when it is
1086 fully populated, use _dl_scope_free for freeing it. Optimize
1087 removal of libs from reldeps by using l_reserved flag, when
1088 some removal is needed, allocate a new list instead of
1089 reallocating and free the old with _dl_scope_free. Adjust
1090 for l_reldeps and l_reldepsact changes.
1091 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
1092 searching in l_initfini and l_reldeps without holding dl_load_lock.
1093 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
1094 l_reldepsact changes.
1095 * elf/dl-close.c (_dl_close_worker): Likewise.
1096 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
1097
90bf831b
UD
10982007-09-28 Ulrich Drepper <drepper@redhat.com>
1099
1100 * iconvdata/Makefile (modules): Add KOI8-RU.
1101 (distribute): Add koi8-ru.c.
1102 (gen-8bit-gap-modules): Add koi8-ru.
1103 * iconvdata/koi8-ru.c: New file.
1104 * iconvdata/gconv-modules: Add entries for KOI8-RU.
1105 * iconvdata/TESTS: Likewise.
1106 * iconvdata/tst-tables.sh: Likewise.
1107
1108 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1109
d6cd6bf4
UD
11102007-09-26 Jakub Jelinek <jakub@redhat.com>
1111
1112 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
1113 with __warning__/__error__ attributes.
1114 (__warnattr): Define.
1115 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
1116 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
1117 __warnattr.
1118 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
1119 of __*_chk if compile time detectable overflow is found.
1120 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
1121 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
1122 with __warnattr.
1123 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
1124 instead of __*_chk if compile time detectable overflow is found.
1125 (__gets_alias): Rename to...
1126 (__gets_warn): ... this. Add __warnattr.
1127 (gets): Call __gets_warn instead of __gets_alias.
1128 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
1129 aliases with __warnattr.
1130 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
1131 time detectable overflow is found.
1132 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
1133 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
1134 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
1135 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
1136 __getdomainname_chk_warn): New aliases with __warnattr.
1137 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
1138 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
1139 __*_chk_warn instead of __*_chk if compile time detectable overflow
1140 is found.
1141 (__getgroups_chk): Rename argument to __listlen from listlen.
1142 (__getwd_alias): Rename to...
1143 (__getwd_warn): ... this. Add __warnattr.
1144 (getwd): Call __getwd_warn instead of __getwd_alias.
1145 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
1146 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
1147 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
1148 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
1149 __wcsnrtombs_chk_warn): New aliases with __warnattr.
1150 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
1151 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
1152 compile time detectable overflow is found.
1153 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
1154 to use __*_chk or not.
1155 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
1156 in comparisons which function should be called and in __*_chk*
1157 arguments. Call __*_chk_warn instead of __*_chk if compile time
1158 detectable overflow is found.
1159 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
1160 __*_chk argument.
1161 * debug/tst-chk1.c (do_test): Add a few more tests.
1162
408cfca0
UD
11632007-09-24 Ulrich Drepper <drepper@redhat.com>
1164
1165 [BZ #5058]
1166 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
1167 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
1168 (_nl_unload_domain): Finalize conversions_lock.
1169 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
1170 handling table of known conversions.
1171
e6eec9ce
JJ
11722007-09-24 Jakub Jelinek <jakub@redhat.com>
1173
1174 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
1175 close_not_cancel_no_status instead of close.
1176
a532a41d
UD
11772007-09-13 Aurelien Jarno <aurelien@aurel32.net>
1178
682268ef 1179 [BZ #5028]
408cfca0 1180 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
1181 nrules != 0 for multibyte chars.
1182
dec9ed9e
UD
11832007-09-23 Ulrich Drepper <drepper@redhat.com>
1184
91633816
UD
1185 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
1186 Provide better error message in case the type is unknown.
1187
9cc198f6
UD
1188 [BZ #4963]
1189 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
1190 * string/stratcliff.c: Make usable to test wide char functions.
1191 * wcsmbs/wcsatcliff.c: New file.
1192 * wcsmbs/Makefiel (tests): Add wcsatcliff.
1193
27f3d446
UD
1194 [BZ #4972]
1195 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
1196 (distribute): Add mac-centraleurope.c.
1197 (gen-8bit-gap-modules): Add mac-centraleurope.
1198 * iconvdata/mac-centraleurope.c: New file.
1199 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
1200 * iconvdata/TESTS: Likewise.
1201 * iconvdata/tst-tables.sh: Likewise.
1202
dec9ed9e
UD
1203 [BZ #5043]
1204 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
1205
0435403c
UD
12062007-09-21 Ulrich Drepper <drepper@redhat.com>
1207
1208 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
1209 from __x86_64_core_cache_size_half.
1210 (init_cacheinfo): Compute shared cache size for AMD processors with
1211 shared L3 correctly.
1212 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
1213 name change.
1214 Patch in large parts by Evandro Menezes.
1215
c3266dc0
UD
12162007-09-19 Ulrich Drepper <drepper@redhat.com>
1217
715899d1
UD
1218 * elf/dl-lookup.c (add_dependency): Handle failing memory
1219 allocation for dependency list. Remove unnecessary check.
1220
e1db0493
UD
1221 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
1222 open/close when determining source addresses.
1223
c3266dc0
UD
1224 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
1225 sha512-crypt, and sha512.
1226 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
1227 (distribute): Add sha256.h and sha512.h.
1228 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
1229 and call the appropriate code.
1230 * crypt/sha256-crypt.c: New file.
1231 * crypt/sha256.c: New file.
1232 * crypt/sha256.h: New file.
1233 * crypt/sha256c-test.c: New file.
1234 * crypt/sha256test.c: New file.
1235 * crypt/sha512-crypt.c: New file.
1236 * crypt/sha512.c: New file.
1237 * crypt/sha512.h: New file.
1238 * crypt/sha512c-test.c: New file.
1239 * crypt/sha512test.c: New file.
1240
ddf51ecb
JJ
12412007-09-19 Jakub Jelinek <jakub@redhat.com>
1242
1243 * misc/bits/syslog.h (syslog): Remove extraneous argument from
1244 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
1245 __syslog_chk.
1246
b90395e6
UD
12472007-09-18 Jakub Jelinek <jakub@redhat.com>
1248
76c0bea7
JJ
1249 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
1250 %as in fscanf format strings.
1251
00680568
JJ
1252 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
1253 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
1254 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1255 Likewise.
1256 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1257 Likewise.
00680568 1258
b90395e6
UD
1259 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
1260 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
1261 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
1262 * elf/dl-sym.c (do_sym): Likewise.
1263 * include/link.h (struct link_map): Add l_serial field.
1264 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
1265 * elf/dl-lookup.c (add_dependency): Add flags argument.
1266 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
1267 flags, use THREAD_GSCOPE_RESET_FLAG before and
1268 THREAD_GSCOPE_SET_FLAG after
1269 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
1270 Don't dereference map until it has been found on some list.
1271 If map->l_serial changed, return -1.
1272
874aa523
UD
12732007-09-17 Jakub Jelinek <jakub@redhat.com>
1274
1275 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
1276 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
1277 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
1278 libc_hidden_proto.
1279 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
1280 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
1281 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
1282 add libc_hidden_proto.
1283 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
1284 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
1285 conformance requested.
1286 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
1287 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
1288 conformance requested.
1289 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
1290 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
1291 conformance requested.
1292 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
1293 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
1294 ISO C99 or POSIX conformance requested.
1295 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
1296 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
1297 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
1298 and __isoc99_vsscanf@@GLIBC_2.7.
1299 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
1300 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
1301 (tests): Add scanf14.
1302 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
1303 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
1304 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
1305 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
1306 CFLAGS-isoc99_scanf.c): Add $(exceptions).
1307 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
1308 from using internal headers.
1309 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
1310 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
1311 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
1312 and __isoc99_vswscanf@@GLIBC_2.7.
1313 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
1314 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
1315 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
1316 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
1317 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
1318 * stdio-common/isoc99_scanf.c: New file.
1319 * stdio-common/isoc99_vsscanf.c: New file.
1320 * stdio-common/isoc99_vscanf.c: New file.
1321 * stdio-common/isoc99_vfscanf.c: New file.
1322 * stdio-common/isoc99_fscanf.c: New file.
1323 * stdio-common/isoc99_sscanf.c: New file.
1324 * wcsmbs/isoc99_fwscanf.c: New file.
1325 * wcsmbs/isoc99_vswscanf.c: New file.
1326 * wcsmbs/isoc99_swscanf.c: New file.
1327 * wcsmbs/isoc99_wscanf.c: New file.
1328 * wcsmbs/isoc99_vwscanf.c: New file.
1329 * wcsmbs/isoc99_vfwscanf.c: New file.
1330 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
1331 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
1332 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
1333 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
1334 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
1335 * stdio-common/scanf14.c: New test.
1336 * stdio-common/scanf15.c: New test.
1337 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1338 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
1339 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
1340 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
1341 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
1342 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
1343 __nldbl___isoc99_scanf@@GLIBC_2.7,
1344 __nldbl___isoc99_fscanf@@GLIBC_2.7,
1345 __nldbl___isoc99_sscanf@@GLIBC_2.7,
1346 __nldbl___isoc99_vscanf@@GLIBC_2.7,
1347 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
1348 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
1349 __nldbl___isoc99_wscanf@@GLIBC_2.7,
1350 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
1351 __nldbl___isoc99_swscanf@@GLIBC_2.7,
1352 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
1353 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
1354 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
1355 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
1356 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
1357 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
1358 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
1359 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
1360 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1361 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
1362 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
1363 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
1364 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
1365 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
1366 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
1367 functions.
1368 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
1369 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
1370 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
1371 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
1372 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
1373 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
1374 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
1375 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
1376 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
1377 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
1378 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
1379 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
1380
1381 * stdio-common/Makefile (tests): Add scanf13.
1382 (scanf13-ENV): New.
1383 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
1384 m modifier followed by l.
1385 (STRING_ARG): Add width argument.
1386 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
1387 <case L_('C')>: Handle %mlc and %mC.
1388 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
1389 arguments.
1390 * stdio-common/scanf13.c: New test.
1391
1392 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
1393 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
1394
883f7943
UD
13952007-09-18 Ulrich Drepper <drepper@redhat.com>
1396
1397 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 1398 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
1399 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1400 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1401 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1402 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1403 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1404 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1405 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1406 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
1407 as cancellation points.
1408
3524efe0
UD
14092003-11-01 Daniel Jacobowitz <dan@debian.org>
1410
1411 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
1412 parse more than three parts of the version number.
1413
267c54dc
UD
14142007-09-15 Ulrich Drepper <drepper@redhat.com>
1415
1416 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
1417 modifier. Patch by Jakub Jelinek.
1418
5e17d6b7
UD
14192007-08-26 Jakub Jelinek <jakub@redhat.com>
1420
1421 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
1422 call_fallocate in misc subdir.
1423 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
1424 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
1425 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
1426 instead of __fallocate64.
1427 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
1428
3a50811c
UD
14292007-09-15 Jakub Jelinek <jakub@redhat.com>
1430
1431 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
1432 * rt/Makefile (headers): Add bits/mqueue2.h.
1433 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
1434 optimizing with GCC and __va_arg_pack_len is defined.
1435 * rt/bits/mqueue2.h: New file.
1436 * rt/mq_open.c (__mq_open): Renamed from mq_open.
1437 (mq_open): New strong_alias.
1438 (__mq_open_2): New function.
1439 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
1440 (mq_open): New strong_alias.
1441 (__mq_open_2): New function.
1442 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
1443 * Versions.def (librt): Add GLIBC_2.7 version.
1444 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
1445 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
1446
1447 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
1448 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
1449 is defined rather than when not C++.
1450 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
1451 __openat64_alias): New redirects.
1452 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
1453 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
1454 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
1455 (open, open64, openat, openat64): Rewrite as __extern_always_inline
1456 functions instead of function-like macros.
1457
9bdfff60
UD
14582007-09-14 H.J. Lu <hongjiu.lu@intel.com>
1459
1460 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
1461 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
1462 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
1463
ab905672
UD
14642007-09-15 Mike Frysinger <vapier@gentoo.org>
1465
1466 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
1467 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
1468
9bd68902
RM
14692007-09-14 Mike Frysinger <vapier@gentoo.org>
1470
1471 * inet/tst-network.c: Increment ERRORS for failing tests.
1472
de1c3ebb
UD
14732007-09-07 Jakub Jelinek <jakub@redhat.com>
1474
1475 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
1476 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
1477 implement as __extern_always_inline function.
1478 (vsyslog): Define as __extern_always_inline function unconditionally.
1479 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
1480 When __va_arg_pack is defined, implement as __extern_always_inline
1481 functions.
1482 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1483 __extern_always_inline functions unconditionally.
1484 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
1485 bits/stdio2.h will be included.
1486 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
1487 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
1488 implement as __extern_always_inline functions.
1489 (vswprintf, vwprintf, vfwprintf): Define as
1490 __extern_always_inline functions unconditionally.
1491 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
1492
14932007-09-03 Jakub Jelinek <jakub@redhat.com>
1494
1495 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
1496 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
1497 attribute.
1498 * include/features.h (__USE_EXTERN_INLINES): Define only when
1499 __extern_inline is defined.
1500 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
1501 is defined instead of when not __cplusplus.
1502 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
1503 is defined instead of when not __cplusplus.
1504 * socket/sys/socket.h: Include bits/socket2.h when
1505 __extern_always_inline is defined instead of when not __cplusplus.
1506 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
1507 is defined instead of when not __cplusplus.
1508 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
1509 is defined instead of when not __cplusplus.
1510 * string/string.h: Include bits/string3.h when __extern_always_inline
1511 is defined instead of when not __cplusplus.
1512 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
1513 is defined instead of when not __cplusplus.
1514 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
1515 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
1516 is not defined.
1517 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
1518 defined __extern_always_inline instead of !defined __cplusplus.
1519 * libio/bits/stdio-ldbl.h: Likewise.
1520 * wcsmbs/bits/wchar-ldbl.h: Likewise.
1521 * misc/bits/syslog.h (syslog): Don't define for C++.
1522 (vsyslog): Use __extern_always_inline function for C++ instead of
1523 a macro.
1524 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
1525 whenever that macro is defined.
1526 (vprintf): Don't provide the inline for C++.
1527 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
1528 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
1529 define the macros for C++.
1530 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1531 __extern_always_inline functions for C++.
1532 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
1533 stat64, lstat64, fstat64, fstatat64): Don't define if not
1534 __USE_EXTERN_INLINES.
1535 * wcsmbs/bits/wchar2.h: Fix #error message.
1536 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
1537 (vswprintf, vwprintf, vfwprintf): Define using
1538 __extern_always_inline functions for C++.
1539 * string/bits/string3.h: Don't #undef macros if __cplusplus.
1540 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
1541 strncpy, strcat, strncat): Define as __extern_always_inline
1542 functions instead of macros for C++.
1543 * math/bits/cmathcalls.h: Guard __extern_inline routines with
1544 defined __extern_inline.
1545 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
1546 to __extern_inline whenever that macro is defined.
1547 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1548 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1549 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
1550 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
1551 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1552 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1553 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1554 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1555 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
1556 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
1557 prototypes. Only provide __extern_inline routines if
1558 __USE_EXTERN_INLINES.
1559 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
1560 tests.
1561 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
1562 For now avoid some *printf tests in C++. Skip all testing
1563 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
1564 is not.
1565 * debug/tst-chk4.cc: New file.
1566 * debug/tst-chk5.cc: New file.
1567 * debug/tst-chk6.cc: New file.
1568 * debug/tst-lfschk4.cc: New file.
1569 * debug/tst-lfschk5.cc: New file.
1570 * debug/tst-lfschk6.cc: New file.
1571 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
1572 prototypes in C++.
1573 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
1574 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
1575 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
1576
b53eef9c
UD
15772007-09-13 Ulrich Drepper <drepper@redhat.com>
1578
1579 * po/cs.po: Update from translation team.
1580
af385590
RM
15812007-09-11 Roland McGrath <roland@redhat.com>
1582
1583 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
1584 compiling.
1585
af2f25a1
RM
15862007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1587
1588 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
1589
94733ae0
RM
15902007-09-05 Roland McGrath <roland@redhat.com>
1591
1592 * manual/signal.texi (Signaling Another Process): Typo fix.
1593 From Karl Berry <karl@freefriends.org>.
1594
de4d8563
UD
15952007-08-29 Ulrich Drepper <drepper@redhat.com>
1596
1597 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
1598 zero if not defined.
1599 (make_request): Recognize optimistic addresses and treat them like
1600 deprecated addresses.
1601 Reported by Neil Horman <nhorman@redhat.com>.
1602
0adfcc05
UD
16032007-08-28 Ulrich Drepper <drepper@redhat.com>
1604
f3c54060
UD
1605 * nscd/connections.c (send_ro_fd): Also transfer file size.
1606 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
1607 file size don't call fstat.
1608
0adfcc05
UD
1609 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
1610 ahead and map the file. This should always be correct and we can
1611 catch problems later.
1612
3586b2b6
UD
16132007-08-28 Jakub Jelinek <jakub@redhat.com>
1614
1615 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
1616 prototypes.
1617 (__fread_alias, __fread_unlocked_alias): New aliases.
1618 (fread): New extern inline.
1619 (fread_unlocked): Likewise. Undef macro before definition of
1620 the inline function.
1621 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
1622 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
1623 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
1624 and __fread_unlocked_chk@@GLIBC_2.7.
1625 * debug/fread_chk.c: New file.
1626 * debug/fread_u_chk.c: New file.
1627 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
1628
3704aa0b
RM
16292007-08-27 Jakub Jelinek <jakub@redhat.com>
1630
1631 * sysdeps/unix/sysv/linux/syscalls.list
1632 (personality): Change caller to EXTRA.
1633
80e7d6a6
UD
16342007-08-25 Ulrich Drepper <drepper@redhat.com>
1635
278bfa00
UD
1636 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
1637 to keep gcc quiet.
1638 * iconvdata/iso-2022-cn.c (BODY): Likewise.
1639
a45d733c
UD
1640 * locale/programs/ld-collate.c (collate_output): Avoid warning if
1641 NDEBUG is defined.
1642
5dfeae0e
UD
1643 * Makerules: Use -p option with mkdir.
1644
8f1fe057
UD
1645 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
1646 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
1647 (_xdr_directory_obj): Likewise.
1648 (xdr_entry_obj): Likewise.
1649 (xdr_group_obj): Likewise.
1650 (xdr_link_obj): Likewise.
1651 (xdr_table_obj): Likewise.
1652 (_xdr_nis_result): Likewise.
1653 (_xdr_ns_request): Likewise.
1654 (_xdr_ib_request): Likewise.
1655 (_xdr_nis_taglist): Likewise.
1656 (xdr_cback_data): Likewise.
8f1fe057 1657 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
1658 (xdr_ypresp_maplist): Likewise.
1659
01339a67
UD
1660 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
1661
3fa10468
UD
1662 * posix/regex_internal.h: Prevent some declarations and definitions
1663 to be seen when used in tests.
1664
ec1e04de
UD
1665 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
1666 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
1667
7a344d1d
UD
1668 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
1669
f8f6ff5d
UD
1670 * config.make.in (datarootdir): Add to shut up configure.
1671
76fca9f1
UD
1672 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
1673 associativity for fully-associative caches.
1674
80e7d6a6
UD
1675 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
1676 requests. Fill on more associativity values for L2.
1677 Patch mostly by Evandro Menezes.
1678
cb5ba304
UD
16792007-08-24 Ulrich Drepper <drepper@redhat.com>
1680
d250df8c
UD
1681 * sysdeps/unix/sysv/linux/x86_64/init-first.c
1682 (_libc_vdso_platform_setup): Avoid using exported variable by using
1683 alias.
1684
88f61aaf
UD
1685 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
1686
cb5ba304 1687 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 1688 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
1689 defined.
1690
62e1b1f5
UD
16912007-08-23 Ulrich Drepper <drepper@redhat.com>
1692
44b2e581
UD
1693 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
1694 align stack for call if pltexit is to be used.
1695
73e3ff07
UD
1696 [BZ #3924]
1697 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
1698 align for function call in case pltexit has to be called later.
1699
62e1b1f5
UD
1700 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
1701 implicit atomic operation when storing function pointer.
1702 (_dl_runtime_profile): Likewise.
1703
0008163a
UD
17042007-08-17 Jakub Jelinek <jakub@redhat.com>
1705
1706 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
1707 NIS_NOTFOUND.
1708
55ea8790
UD
17092007-08-21 Ulrich Drepper <drepper@redhat.com>
1710
2e0e1a05
UD
1711 [BZ #4566]
1712 * string/strtok.c: Fix typo in comment.
1713
682e4437
UD
1714 [BZ #4582]
1715 * debug/segfault.c: Fix typos in comments.
1716
7d55c9eb
UD
1717 [BZ #4588]
1718 * stdio-common/tempnam.c: Fix comment, it is not checked that
1719 TMPDIR points to a writable directory.
1720
0f8f993c
UD
1721 [BZ #4726]
1722 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
1723 memory allocated for the name server address.
1724
1465dd0f
UD
1725 [BZ #4946]
1726 * nscd/connections.c (handle_request): Using sendfile always
1727 requires that mmap is used for the database.
1728 Patch by Petr Baudis <pasky@suse.cz>.
1729
c44d3bdf
UD
1730 [BZ #4905]
1731 * nscd/hstcache.c (cache_addhst): When reloading an entry which
1732 suddenly has two or more addresses, ignore it and remove the old
1733 entry.
1734
1ce7d80d
UD
1735 [BZ #4814]
1736 * resolv/res_hconf.c: Prepare for compiling outside libc.
1737 * nscd/res_hconf.c: New file.
1738 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
1739 the new file.
1740 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
1741 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
1742
a30d41c1
UD
1743 * nscd/hstcache.c (cache_addhst): Minimal optimization.
1744
45dc3ad7
UD
1745 [BZ #4925]
1746 * debug/pcprofiledump.c: Turn on internationalization by calling
1747 setlocale. Patch mostly by Benno Schulenberg.
1748
55ea8790
UD
1749 [BZ #4936]
1750 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
1751 the state.
1752 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
1753 * iconvdata/bug-iconv5.c: New file.
1754
0b82ff74
UD
17552007-08-04 Carlos O'Donell <carlos@systemhalted.org>
1756
55ea8790 1757 [BZ #4896]
0b82ff74
UD
1758 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
1759 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
1760 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
1761 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
1762 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
1763 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
1764 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
1765 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
1766
ee16a55a
UD
17672007-08-21 Ulrich Drepper <drepper@redhat.com>
1768
1769 [BZ #4937]
1770 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
1771 lookup loop. Suggested by John Reiser.
1772
b211fe0f
JJ
17732007-08-21 Jakub Jelinek <jakub@redhat.com>
1774
1775 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
1776
fb84593c
UD
17772007-08-20 Ulrich Drepper <drepper@redhat.com>
1778
1779 * csu/libc-start.c: Don't handle VDSO_SETUP here.
1780 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
1781 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
1782 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
1783 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
1784 to...
1785 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
1786
b83fb35c
UD
17872007-08-18 Ulrich Drepper <drepper@redhat.com>
1788
1789 * po/nl.po: Update from translation team.
1790
20806a70
AJ
17912007-08-16 Andreas Jaeger <aj@suse.de>
1792
1793 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
1794 Reported by Peter Festner <peter.festner@ewetel.net>.
1795
42282d57
JJ
17962007-08-17 Jakub Jelinek <jakub@redhat.com>
1797
1798 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
1799
8a501135
JJ
18002007-08-16 Jakub Jelinek <jakub@redhat.com>
1801
cb84d1e4
JJ
1802 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
1803 to check for undefined symbols.
1804
91ddd9c4
JJ
1805 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
1806 If the syscall fails, set errno to the actual returned error number
1807 rather than EINVAL.
1808 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
1809 arguments are incorrect, set errno to EINVAL, if the syscall
1810 fails, set errno to the actual returned error number.
1811
18915760
JJ
1812 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
1813 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
1814
8a501135
JJ
1815 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
1816 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
1817 file.
1818 (ASI_PNF, ASI_BLK_P): Don't define.
1819 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
1820 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
1821 file.
1822 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
1823 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
1824 file.
1825
e4720b0e
JJ
18262007-08-15 Jakub Jelinek <jakub@redhat.com>
1827
1828 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
1829 FE_UNDERFLOW on Niagara CPUs.
1830
1831 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
1832 exceptions.
1833
702a9414
JJ
18342007-08-14 Jakub Jelinek <jakub@redhat.com>
1835
467d1345
JJ
1836 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
1837 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
1838 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
1839 flush should be used or not inside of the function.
1840 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
1841
1842 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
1843 __thread_start): Use HIDDEN_JUMPTARGET.
1844 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
1845 __thread_start): Likewise.
1846 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
1847
702a9414
JJ
1848 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1849 Add libc_hidden_proto.
1850 (STRTOF): Add libc_hidden_proto.
1851 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1852 (strtold_l, wcstold_l): Use them as second argument for
1853 long_double_symbol.
1854
c6c8f0ec
UD
18552007-08-14 Ulrich Drepper <drepper@redhat.com>
1856
1857 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
1858
5e88abf9
UD
18592007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1860
1861 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
1862
fc4819b0
UD
18632007-08-14 Ulrich Drepper <drepper@redhat.com>
1864
1865 * po/bg.po: New file. From the translation team.
1866
22502ea2
UD
18672007-08-13 Jakub Jelinek <jakub@redhat.com>
1868
1869 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1870 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1871 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1872 when each feature was introduced.
1873
1874 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1875 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1876 (CHECK_HASH): New macro.
1877 (PREPARE_VERSION): Use it.
1878
1879 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1880 prototype if not __ASSUME_PSELECT.
1881 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1882 prototype if not __ASSUME_PPOLL.
1883
1884 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1885
1886 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1887 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1888 is defined.
1889
9c6f6953
UD
18902007-08-13 Ulrich Drepper <drepper@redhat.com>
1891
1892 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1893 (_libc_vdso_platform_setup): If vDSO is not available point
1894 __vdso_gettimeofday to the vsyscall.
1895 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1896 __vdso_gettimeofday instead of vsyscall.
1897
f8de5057
UD
18982007-08-13 Jakub Jelinek <jakub@redhat.com>
1899
1900 * nscd/servicescache.c: Include kernel-features.h.
1901 * nscd/gai.c: Likewise.
1902 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1903 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1904 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1905 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1906 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1907 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1908 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1909 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1910 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1911
3c87d79d
UD
19122007-08-12 Ulrich Drepper <drepper@redhat.com>
1913
ea37207a
UD
1914 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1915 and _dl_get_origin defines anymore.
1916
4eb375fe
UD
1917 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1918 Build fix for systems which might lack POSIX timer support.
1919
3c87d79d
UD
1920 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1921 (_libc_vdso_platform_setup): Mangle function pointers before storing
1922 them.
1923 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1924 Demangle vdso pointer before use.
1925 (INTERNAL_VSYSCALL): Likewise.
1926
1927 * elf/cache.c (primes): Mark as const.
1928 Noted by Roland McGrath.
1929
27d9ffda
UD
19302007-08-01 Andreas Jaeger <aj@suse.de>
1931 Jakub Jelinek <jakub@redhat.com>
1932
1933 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1934 (options): Add option.
1935 (parse_opt): Handle option.
1936 (manual_link): Adjust process_file caller. Call implicit_soname.
1937 (search_dir): Formatting. Use and populate auxiliary cache.
1938 (main): Load and save auxiliary cache.
1939 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
1940 stat64 from fstat64 to caller.
1941 (implicit_soname): New function.
1942 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1943 leave *soname as NULL.
1944 * elf/cache.c: Include libgen.h.
1945 (print_entry, print_cache, compare, save_cache, add_to_cache):
1946 Formatting and cleanups.
1947 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1948 aux_cache_file): New structures.
1949 (AUX_CACHEMAGIC): Define.
1950 (primes): New array.
1951 (aux_hash_size, aux_hash): New variables.
1952 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1953 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1954 load_aux_cache, save_aux_cache): New functions.
1955 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1956 (init_aux_cache, search_aux_cache, add_to_aux_cache,
1957 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1958 (process_file): Adjust prototype.
1959
8d944b0f
UD
19602007-08-12 Jakub Jelinek <jakub@redhat.com>
1961
1962 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1963 with __need_size_t.
1964
75fb247e
UD
19652007-08-12 Ulrich Drepper <drepper@redhat.com>
1966
fb86328a
UD
1967 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1968 r_found_version structure as second parameter.
1969 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1970 (_dl_vdso_vsym): Change type of second parameter accordingly.
1971 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1972 (_libc_vdso_platform_setup): Adjust.
974a1f0f 1973 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
1974 (_libc_vdso_platform_setup): Likewise.
1975
75fb247e
UD
1976 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1977 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1978 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1979 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1980 * csu/libc-start.c: Pretty printing.
1981 Use VDSO_SETUP if defined.
1982 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1983 and let generic code call into _libc_vdso_platform_setup.
1984 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1985 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1986 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1987 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1988 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1989 for GLIBC_PRIVATE.
1990 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1991 (sysdep_rountines): Add dl-vdso.
1992
1993 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1994 of routines.
1995
1996 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1997 attribute_hidden to __vdso_gettimeofday prototype.
1998
9229b83e
RM
19992007-08-12 Roland McGrath <roland@redhat.com>
2000
2001 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
2002 From: Karl Berry <karl@freefriends.org>.
2003
4503061f
UD
20042007-08-11 Ulrich Drepper <drepper@redhat.com>
2005
2006 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
2007 an atime update for the files we read.
2008
d7e23b02
UD
20092007-08-10 Ulrich Drepper <drepper@redhat.com>
2010
7cf89e95
UD
2011 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
2012
9d169bb3 2013 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
2014 instead of mkstemp.
2015
2016 * misc/Makefile (routines): Add mkostemp and mkostemp64.
2017 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
2018 * misc/mkostemp.c: New file.
2019 * misc/mkostemp64.c: New file.
2020 * stdlib/stdlib.h: Declare the new functions.
2021 * sysdeps/posix/tempname.c: Add new parameter which is added to
2022 the flags for open. Remove __GT_BIGFILE handling.
2023 * stdio-common/tempname.c: Likewise.
2024 * include/stdio.h: Adjust __gen_tempname prototype.
2025 Renumber __GT_* constants.
2026 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
2027 * misc/mkdtemp.c: Likewise.
2028 * misc/mkstemp.c: Likewise.
2029 * misc/mkstemp64.c: Likewise.
2030 * misc/mktemp.c: Likewise.
2031 * stdio-common/tempnam.c: Likewise.
2032 * stdio-common/tmpfile.c: Likewise.
2033 * stdio-common/tmpfile64.c: Likewise.
2034 * stdio-common/tmpnam.c: Likewise.
2035 * stdio-common/tmpnam_r.c: Likewise.
2036
22532966
RM
20372007-08-10 Roland McGrath <roland@frob.com>
2038
2039 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
2040 New macros.
2041 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
2042 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2043
673876e6
UD
20442007-08-10 Ulrich Drepper <drepper@redhat.com>
2045
aa132749
UD
2046 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
2047 possible.
2048 * nss/nss_files/files-alias.c (internal_setent): Likewise.
2049 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
2050 * nss/nss_files/files-have_o_cloexec.c: New file.
2051
22532966 2052 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
2053 available.
2054
1e286653
JJ
20552007-08-10 Jakub Jelinek <jakub@redhat.com>
2056
2057 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
2058 ___new_wcstold_l): New weak aliases.
2059 (strtold_l, wcstold_l): Use them as second argument for
2060 long_double_symbol.
2061
f07f72f3
UD
20622007-08-09 Ulrich Drepper <drepper@redhat.com>
2063
6479496a
UD
2064 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
2065 register in test for error.
2066
c4adefbd
UD
2067 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
2068 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
2069
f07f72f3
UD
2070 * po/sv.po: Update from translation team.
2071
eef38c28
RM
20722007-08-06 Roland McGrath <roland@redhat.com>
2073
773e305e
RM
2074 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
2075 Remove __strto*_l inlines.
2076 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
2077 * stdlib/strtod.c: Add libc_hidden_def.
2078 * stdlib/strtod_l.c: Likewise.
2079 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
2080 for __new_strtold and __new_wcstold.
2081 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
2082 __STRTOF, STRTOF.
2083 * stdlib/strtol.c: Add libc_hidden_def.
2084 * stdlib/strtol_l.c: Likewise.
2085 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
2086 strtoq.
2087
2088 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
2089
2090 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
2091 * scripts/data/localplt-generic.data: ... here.
2092 * elf/Makefile (check-data): Get generic file if no other.
2093 ($(objpfx)check-localplt.out): Make target unconditional.
2094
eef38c28
RM
2095 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
2096 Use ElfW(Nhdr).
2097
742df3a4
UD
20982007-08-05 Ulrich Drepper <drepper@redhat.com>
2099
2100 * po/zh_CN.po: Updated translation from translation team.
2101
0470fa46
JJ
21022007-08-05 Jakub Jelinek <jakub@redhat.com>
2103
2104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
2105 Don't use CGOTSETUP and CGOTRESTORE macros.
2106
b5075bdc
RM
21072007-08-04 Roland McGrath <roland@redhat.com>
2108
2109 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
2110
9accc268
JJ
21112007-08-04 Jakub Jelinek <jakub@redhat.com>
2112
2113 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
2114 __extension__ around the whole statement expression.
2115
220ae3ef
UD
21162007-08-04 Ulrich Drepper <drepper@redhat.com>
2117
c8ccd8e3
UD
2118 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
2119 elements during initialization.
2120
220ae3ef
UD
2121 * po/pl.po: Updated translation from translation team.
2122 * po/tr.po: Likewise.
11960f7f 2123 * po/nl.po: Likewise.
220ae3ef 2124
2fb20667
UD
21252007-08-03 Ulrich Drepper <drepper@redhat.com>
2126
2127 * rt/aio.h: Add __nonnull attributes.
2128
ce31a3b1
UD
21292007-08-03 Jakub Jelinek <jakub@redhat.com>
2130
64f6281c
UD
2131 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
2132 * stdlib/Makefile (tests): Add tst-strtod5.
2133 (tst-strtod5-ENV): New.
2134 * stdlib/tst-strtod5.c: New file.
2135
ce31a3b1
UD
2136 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
2137 failed.
2138 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
2139 on failure.
2140
2141 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
2142 allocated.
2143
754980e4
JJ
21442007-08-03 Jakub Jelinek <jakub@redhat.com>
2145
2146 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
2147 numbers.
2148
497af0cb
UD
21492007-08-02 Ulrich Drepper <drepper@redhat.com>
2150
cbf0489b
UD
2151 * io/Makefile (aux): Add have_o_cloexec.
2152 * include/fcntl.h: Declare __have_o_cloexec.
2153 * io/have_o_cloexec.c: New file.
2154 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
2155 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
2156 fcntl call if not necessary.
2157 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
2158 of local variable.
2159
fa39685d
UD
2160 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
2161 Avoid memset, add explicit initialization.
2162 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
2163 to the end and change into zero-sized array.
2164 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
2165
2166 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
2167 inline functions.
2168 * include/stdlib.h: Add __strto*_internal prototypes here.
2169 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
2170 inline functions.
2171 * include/wchar.h: Add __wcsto*_internal prototypes.
2172 * sysdeps/generic/inttypes.h: No need to protect the declaration
2173 of the __strto*_internal and __wcsto*_internal members here.
2174
497af0cb
UD
2175 * rt/mqueue.h: Change const to __const and add nonnull attributes.
2176
d17a8cf0
RM
21772007-08-02 Roland McGrath <roland@redhat.com>
2178
2179 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
2180 $(inst_bindir)/getconf if possible.
2181
2182 * posix/Makefile ($(objpfx)getconf.speclist): New target.
2183 (generated): Add it.
2184 ($(inst_libexecdir)/getconf): Use it.
2185
0abf17de
UD
21862007-08-01 Ulrich Drepper <drepper@redhat.com>
2187
2188 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
2189 /proc is faster and sufficient. /sys is still needed for
2190 __get_nprocs_conf.
2191
5e0923ab
UD
21922007-08-01 Jakub Jelinek <jakub@redhat.com>
2193
2194 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
2195 syscall as __fallocate64.
2196 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
2197 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
2198
1475e201
UD
21992007-07-30 Jakub Jelinek <jakub@redhat.com>
2200
2201 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
2202 value.
2203
2204 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
2205 if off_t is different rank from size_t.
2206
2207 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
2208 uw_frame_state_for): Avoid type punning warnings.
2209 * sysdeps/generic/unwind-dw2-fde-glibc.c
2210 (_Unwind_IteratePhdrCallback): Likewise.
2211 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
2212 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
2213 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
2214 pointers.
2215
e076bece
UD
22162007-07-31 Ulrich Drepper <drepper@redhat.com>
2217
9506149a
UD
2218 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
2219 total processors using sysfs.
2220 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 2221
bbeaaa84
JJ
22222007-07-31 Jakub Jelinek <jakub@redhat.com>
2223
09881398
JJ
2224 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
2225 syscall arguments count.
2226
bbeaaa84
JJ
2227 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
2228
087ef75f
RM
22292007-07-30 Roland McGrath <roland@redhat.com>
2230
2231 * manual/libc.texinfo: Update copyrights, formatting magic, and
2232 @dircategory. From Karl Berry <karl@freefriends.org>.
2233
44f08a6e
UD
22342007-07-29 Ulrich Drepper <drepper@redhat.com>
2235
eafaae72
UD
2236 [BZ #4860]
2237 * io/Makefile (headers): Add bits/fcntl2.h.
2238
c5705565
UD
2239 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
2240 using gcc builtin.
2241 (__CPU_EQUAL_S): Likewise.
2242
44f08a6e
UD
2243 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
2244 (tests): Add tst-cpuset.
2245 * posix/sched_cpualloc.c: New file.
2246 * posix/sched_cpufree.c: New file.
2247 * posix/tst-cpuset.c: New file.
2248 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
2249 GLIBC_2.7.
2250 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
2251 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
2252 macros. Define CPU_*_S macros.
2253
8f5e1400
UD
22542007-07-28 Ulrich Drepper <drepper@redhat.com>
2255
5b74caf6
UD
2256 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
2257 entry.
2258
a26d01bb 2259 [BZ #4858]
8f5e1400
UD
2260 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
2261 #.0g and value rounded to 1.0.
2262 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
2263
085a4412
UD
22642007-07-26 Jakub Jelinek <jakub@redhat.com>
2265
cedb4109
UD
2266 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
2267 for int_frac_digits and frac_digits.
2268
2269 * login/logout.c (logout): Avoid aliasing violation.
2270 * login/logwtmp.c (logwtmp): Likewise.
2271
2272 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
2273
9d9febc7
UD
2274 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
2275 to avoid warning.
2276 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
2277 warning.
2278 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
2279 warning.
2280 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
2281 to avoid warnings.
2282
701666b7
UD
2283 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
2284 void **.
2285 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
2286
2287 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
2288 char * to avoid warning.
2289 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
2290
2291 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
2292
2293 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
2294 allocate_arrays): Cast second argument to charmap_find_symbol
2295 to char * to avoid warnings.
2296
2297 * locale/programs/repertoire.c (repertoire_new_char): Change
2298 from_nr, to_nr and cnt to unsigned long, adjust printf format
2299 string.
2300
2301 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
2302 Cast second argument to new_element to char * to avoid warnings.
2303
2304 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
2305
2306 * intl/gettextP.h (struct loaded_domain): Change plural to const
2307 struct expression *.
2308 * intl/plural-eval.c (plural_eval): Change first argument to
2309 const struct expression *.
2310 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
2311 argument to const struct expression **.
2312 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
2313 prototypes.
2314 * intl/loadmsgcat (_nl_unload_domain): Cast away const
2315 in call to __gettext_free_exp.
2316
2317 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
2318 unitialized wstring/wpattern var warnings.
2319
2320 * posix/runtests.c (struct a_test): Make data field const char *.
2321
2322 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
2323 vars if not LDBL_MANT_DIG >= 106.
2324
2325 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
2326
2327 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
2328 __find_specmb to avoid warning.
2329
2330 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
2331
2332 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
2333 to avoid warnings.
2334
2335 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
2336 initializer.
2337
2338 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
2339 tv var when it will be actually used.
2340
2341 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
2342 to avoid warnings.
2343
085a4412
UD
2344 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
2345 char array resp. pointer.
2346 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
2347 char array.
2348 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
2349 to const unsigned char **.
2350 (ucs4_to_cns11643): Change second argument to unsigned char *.
2351 * iconvdata/euc-tw.c (BODY): Change endp type to
2352 const unsigned char *.
2353 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
2354 to unsigned char *.
2355 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
2356 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
2357 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
2358 types to unsigned char pointers/arrays instead of char.
2359 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
2360 to unsigned char *.
2361 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
2362 * iconvdata/jis0212.h: Include assert.h.
2363 (ucs4_to_jisx0212): Change second argument to unsigned char *.
2364 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
2365 of trying to handle that.
2366 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
2367 shut up a warning.
2368 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
2369 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
2370 two dimensional const unsigned char arrays.
2371 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
2372 Initialize endp to inptr to shut up a warning.
2373
fa69dc9c
UD
23742007-07-20 Jakub Jelinek <jakub@redhat.com>
2375
ae1ad762
UD
2376 [BZ #4772]
2377 * time/strptime_l.c (__strptime_internal): Silently ignore
2378 strftime modifiers and field width in recursive calls.
2379
fa69dc9c
UD
2380 * include/time.h (enum ptime_locale_status): Remove.
2381 (__strptime_internal): Remove decided and era_cnt arguments,
2382 add statep argument.
2383 * time/strptime_l.c (__strptime_internal): Remove decided
2384 and era_cnt arguments, add statep argument. Don't recompute
2385 any fields in recursive calls, only update caller's tm
2386 and state, if recursive call fails, don't change tm nor
2387 any state.
2388 (get_alt_number): Adjust.
2389 (recursive): Adjust caller.
2390 (strptime): Likewise.
2391 * time/strptime.c (strptime): Likewise.
2392
7b503bcc
UD
23932007-07-19 Jakub Jelinek <jakub@redhat.com>
2394
2395 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
2396 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
2397 if from and to charsets are the same.
2398 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
2399 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
2400 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
2401
24022007-07-17 Jakub Jelinek <jakub@redhat.com>
2403
2404 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
2405 Don't define wint_t when __need_mbstate_t unless it
2406 is necessary.
2407 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
2408 in the typedef if possible.
2409 * wctype/wctype.h (wint_t): Define by including
2410 wchar.h with __need_wint_t instead of including stddef.h
2411 with __need_wint_t and as fallback definining it ourselves.
2412 * iconv/gconv.h (__need_wint_t): Define before including
2413 wchar.h.
2414 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
2415 or _GLIBCPP_USE_WCHAR_T.
2416 (__need_wchar_t): Don't define
2417 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2418 (__need_wint_t): Don't define before including stddef.h,
2419 define before including wchar.h only if _LIBC or
2420 _GLIBCPP_USE_WCHAR_T.
2421 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2422 * sysdeps/mach/hurd/_G_config.h: Likewise.
2423 * sysdeps/generic/_G_config.h: Likewise.
2424 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
2425 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
2426 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
2427 if _LIBC or _GLIBCPP_USE_WCHAR_T.
2428
a95a608f
UD
24292007-07-28 Ulrich Drepper <drepper@redhat.com>
2430
2431 * sysdeps/posix/posix_fallocate64.c: Undefine
2432 __posix_fallocate64_l64 before alias handling.
2433 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
2434 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
2435 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
2436 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
2437
2438 * io/tst-posix_fallocate.c: Include <fcntl.h>.
2439
24402007-07-23 Jakub Jelinek <jakub@redhat.com>
2441
2442 * locale/programs/ld-collate.c (atwc): New variable.
2443 (add_to_tablewc): New toplevel function, moved from collate_output.
2444 (collate_output): Remove add_to_tablewc nested function.
2445
2446 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
2447 (name_insert): New function.
2448 (write_output): Remove hash_table and hash_size vars and name_insert
2449 nested function.
2450
80d4c3b0
RM
24512007-07-24 Roland McGrath <roland@redhat.com>
2452
2453 * Makerules (install-others-programs-nosubdir): New target.
2454 (install-no-libc.a-nosubdir): Depend on it.
2455
2456 * iconv/Makefile (install-others-programs): Set this instead of
2457 install-others.
2458 * login/Makefile (install-others-programs): Likewise.
2459 * posix/Makefile (install-others-programs): Likewise.
2460
2461 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
2462 dependencies.
2463
c1bf9f14
UD
24642007-07-23 Ulrich Drepper <drepper@redhat.com>
2465
2466 * io/Makefile (tests): Add tst-posix_fallocate.
2467 * io/tst-posix_fallocate.c: New file.
2468
2469 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2470 __ASSUME_FALLOCATE.
2471
2320270c
RM
24722007-07-22 Roland McGrath <roland@frob.com>
2473
3dadfa7e
RM
2474 * hurd/getdport.c: Add missing copyright year update.
2475
2320270c
RM
2476 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
2477 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
2478
cc783763
UD
24792007-07-22 Ulrich Drepper <drepper@redhat.com>
2480
c942388d
UD
2481 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
2482
cc783763
UD
2483 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
2484 O_CLOEXEC is needed.
2485 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
2486 Avoid additional fcntl to set O_CLOEXEC if not needed.
2487 * nis/nss_compat/compat-initgroups.c: Likewise.
2488 * nis/nss_compat/compat-pwd.c: Likewise.
2489 * nis/nss_compat/compat-spwd.c: Likewise.
2490
610903b0
RM
24912007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2492
3dadfa7e 2493 [BZ #3665]
5c3d7832
RM
2494 * manual/errno.texi: Change ECANCELED value to 119.
2495
3dadfa7e 2496 [BZ #4610]
610903b0
RM
2497 * mach/lock-intern.h: Include <sys/cdefs.h>.
2498
3dadfa7e 2499 [BZ #4178]
610903b0
RM
2500 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
2501 reading A.
2502
3dadfa7e
RM
2503 [BZ #4126]
2504 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
2505 to __sigsuspend.
610903b0
RM
2506
2507 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
2508
25092006-06-13 Thomas Schwinge <tschwinge@gnu.org>
2510
2511 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
2512 `__ASSEMBLER__'.
2513 * sysdeps/mach/hurd/i386/tls.h: Likewise.
2514
acf79996
UD
25152007-07-21 Ulrich Drepper <drepper@redhat.com>
2516
dde0763a
UD
2517 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
2518 descriptor received from nscd.
2519
acf79996
UD
2520 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
2521
2522 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
2523 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2524 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2525 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2526 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2527 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2528
00d26929
JJ
25292007-07-20 Jakub Jelinek <jakub@redhat.com>
2530
403445d7
JJ
2531 [BZ #4816]
2532 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
2533
00d26929
JJ
2534 [BZ #4813]
2535 * login/forkpty.c (forkpty): Close master and slave fds on
2536 fork failure. Patch by
2537 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
2538
087722b8
UD
25392007-07-18 Jakub Jelinek <jakub@redhat.com>
2540
2541 * include/features.h (__USE_ISOC95): New define.
2542 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
2543 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
2544 for -std=iso9899:199409.
2545 * CONFORMANCE: Remove comments about unsupported AMD1.
2546
b042b023
UD
25472007-07-17 Jakub Jelinek <jakub@redhat.com>
2548
2549 * sysdeps/ia64/sched_cpucount.c: New file.
2550 * sysdeps/powerpc/sched_cpucount.c: New file.
2551
8381e467
UD
2552 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
2553 __BEGIN_DECLS/__END_DECLS around the prototype.
2554 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
2555 pointer to const cpu_set_t.
2556
50e16f85
UD
2557 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
2558 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
2559 __need_size_t and include stddef.h.
2560 * sysvipc/sys/msg.h: Likewise.
2561 * posix/sched.h: Likewise.
2562 * hurd/hurd/signal.h (__need_size_t): Define.
2563
2564 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
2565 neither does signal.h in pedantic ISO C namespaces. stdio.h
2566 no longer defines wint_t or wchar_t.
2567
b257c726
UD
2568 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
2569 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
2570 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
2571 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
2572 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
2573 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
2574 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
2575 * debug/printf_chk.c (__printf_chk): Likewise.
2576 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
2577 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
2578
2579 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
2580 Define.
2581
d5078b9f
UD
2582 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
2583 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
2584
1c3e748e
UD
25852007-07-16 Jakub Jelinek <jakub@redhat.com>
2586
2587 [BZ #4792]
2588 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
2589 * malloc/malloc.h (realloc): Likewise.
2590
4e425301
UD
2591 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
2592 if one of proc_file_chain streams has that fileno.
2593 * stdio-common/Makefile (tests): Add tst-popen2.
2594 * stdio-common/tst-popen2.c: New test.
2595
2e2efe65
RM
25962007-07-14 Jakub Jelinek <jakub@redhat.com>
2597
2598 * elf/ldconfig.c: Allow GPLv2 or any later version.
2599 * elf/readlib.c: Likewise.
2600 * elf/chroot_canon.c: Likewise.
2601 * elf/cache.c: Likewise.
2602 * nscd/mem.c: Likewise.
2603 * nscd/getpwuid_r.c: Likewise.
2604 * nscd/grpcache.c: Likewise.
2605 * nscd/aicache.c: Likewise.
2606 * nscd/getsrvbynm_r.c: Likewise.
2607 * nscd/nscd.c: Likewise.
2608 * nscd/servicescache.c: Likewise.
2609 * nscd/getsrvbypt_r.c: Likewise.
2610 * nscd/initgrcache.c: Likewise.
2611 * nscd/gethstbyad_r.c: Likewise.
2612 * nscd/gethstbynm2_r.c: Likewise.
2613 * nscd/getgrnam_r.c: Likewise.
2614 * nscd/nscd_setup_thread.c: Likewise.
2615 * nscd/getpwnam_r.c: Likewise.
2616 * nscd/gai.c: Likewise.
2617 * nscd/connections.c: Likewise.
2618 * nscd/dbg_log.c: Likewise.
2619 * nscd/cache.c: Likewise.
2620 * nscd/hstcache.c: Likewise.
2621 * nscd/nscd_conf.c: Likewise.
2622 * nscd/getgrgid_r.c: Likewise.
2623 * nscd/pwdcache.c: Likewise.
2624 * catgets/gencat.c: Likewise.
2625 * locale/programs/linereader.h: Likewise.
2626 * locale/programs/locarchive.c: Likewise.
2627 * locale/programs/ld-paper.c: Likewise.
2628 * locale/programs/locfile-kw.h: Likewise.
2629 * locale/programs/ld-address.c: Likewise.
2630 * locale/programs/xmalloc.c: Likewise.
2631 * locale/programs/ld-time.c: Likewise.
2632 * locale/programs/localedef.c: Likewise.
2633 * locale/programs/simple-hash.c: Likewise.
2634 * locale/programs/xstrdup.c: Likewise.
2635 * locale/programs/ld-numeric.c: Likewise.
2636 * locale/programs/locfile-kw.gperf: Likewise.
2637 * locale/programs/ld-collate.c: Likewise.
2638 * locale/programs/charmap-kw.gperf: Likewise.
2639 * locale/programs/charmap.h: Likewise.
2640 * locale/programs/charmap-kw.h: Likewise.
2641 * locale/programs/config.h: Likewise.
2642 * locale/programs/locfile.c: Likewise.
2643 * locale/programs/ld-ctype.c: Likewise.
2644 * locale/programs/charmap.c: Likewise.
2645 * locale/programs/ld-messages.c: Likewise.
2646 * locale/programs/repertoire.h: Likewise.
2647 * locale/programs/locale.c: Likewise.
2648 * locale/programs/ld-name.c: Likewise.
2649 * locale/programs/linereader.c: Likewise.
2650 * locale/programs/locfile.h: Likewise.
2651 * locale/programs/3level.h: Likewise.
2652 * locale/programs/ld-monetary.c: Likewise.
2653 * locale/programs/ld-measurement.c: Likewise.
2654 * locale/programs/charmap-dir.c: Likewise.
2655 * locale/programs/ld-identification.c: Likewise.
2656 * locale/programs/localedef.h: Likewise.
2657 * locale/programs/charmap-dir.h: Likewise.
2658 * locale/programs/repertoire.c: Likewise.
2659 * locale/programs/simple-hash.h: Likewise.
2660 * locale/programs/ld-telephone.c: Likewise.
2661 * locale/programs/locale-spec.c: Likewise.
2662 * locale/programs/locfile-token.h: Likewise.
2663 * posix/getconf.c: Likewise.
2664 * iconv/dummy-repertoire.c: Likewise.
2665 * iconv/iconv_charmap.c: Likewise.
2666 * iconv/iconvconfig.c: Likewise.
2667 * iconv/iconv_prog.c: Likewise.
2668 * malloc/memusagestat.c: Likewise.
2669 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2670
84c23a3d
RM
26712007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2672
2673 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
2674 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
2675 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
2676 check for the first argument.
2677
1c298d08
UD
26782007-07-12 Jakub Jelinek <jakub@redhat.com>
2679
2680 [BZ #4775]
2681 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
2682 (__tgmath_real_type): Fix if expr is const int or other const
2683 qualified integral type.
2684 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
2685 expressions and handle const qualified arguments.
2686 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
2687 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
2688 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
2689 statement expressions.
2690 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2691 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
2692 (__TGMATH_UNARY_IMAG): Define.
2693 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
2694 * math/Makefile (tests): Add test-tgmath2.
2695 (CFLAGS-test-tgmath2.c): Add.
2696 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
2697 count_cfloat, count_cldouble): New variables.
2698 (NCCALLS): Define.
2699 (main): Check number of complex calls as well.
2700 (F(compile_test)): Add complex tests and tests with const qualified
2701 arguments.
2702 (y, z, ccount): Define.
2703 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
2704 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
2705 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
2706 F(cproj)): New functions.
2707 * math/test-tgmath2.c: New test.
2708
27092007-07-11 Jakub Jelinek <jakub@redhat.com>
2710
2711 [BZ #4776]
2712 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
2713 RPATH etc. as "/" rather than "", don't segfault on empty paths,
2714 instead output ".".
2715 * dlfcn/Makefile (distribute): Add glreflib3.c.
2716 (module-names): Add glreflib3.
2717 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
2718 glreflib1.so.
2719 (LDFLAGS_glreflib3.so): New.
2720 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
2721 glreflib1.so.
2722 * dlfcn/glreflib3.c: New file.
2723
2724 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
2725 returned -1, return NULL.
2726 * intl/explodename.c (_nl_explode_name): Return -1 if
2727 _nl_normalize_codeset failed.
2728
a88f47a7
UD
27292007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
2730
2731 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
2732 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
2733 and avoid branch misspredicts for > 31 bytes memset case.
2734 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2735 Remove toc ref to __cache_line_size.
2736
2737 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
2738 to get ISA-V2.0 branch hints.
2739 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
2740 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
2741 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2742 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2743 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2744 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
2745 Remove toc ref to __cache_line_size.
2746
2747 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
2748 Include math_ldbl_opt.h.
2749
f98c2d06
UD
27502007-07-10 Ulrich Drepper <drepper@redhat.com>
2751
2752 [BZ #4773]
2753 * time/strptime_l.c (__strptime_internal): Implement greedy
2754 matching of weekday and month names.
2755
cec5991f
RM
27562007-07-09 Roland McGrath <roland@redhat.com>
2757
2758 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
2759 (ELF_NOTE_ABI): Use it.
2760 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2761
8c1dcd26
UD
27622007-07-09 Ulrich Drepper <drepper@redhat.com>
2763
2764 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
2765 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2766
c2c7bd3f
UD
27672007-07-07 Ulrich Drepper <drepper@redhat.com>
2768
2769 [BZ #4745]
0923a2c8
UD
2770 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
2771 in loop to look for conversion specifier to avoid testing of
2772 wrong errno value.
2773 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 2774 * stdio-common/bug18.c: New file.
0923a2c8
UD
2775 * stdio-common/bug18a.c: New file.
2776 * stdio-common/bug19.c: New file.
2777 * stdio-common/bug19a.c: New file.
c2c7bd3f 2778
4facf4af
RM
27792007-07-05 Mike Frysinger <vapier@gentoo.org>
2780
2781 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
2782 running awk script.
2783
1311e86e
UD
27842007-07-01 Jakub Jelinek <jakub@redhat.com>
2785
2786 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
2787 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
2788 Return NULL if mmap failed instead of asserting it does not.
2789 (calloc): Check for integer overflow.
2790
2791 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
2792 than LONG_MAX / 10.
2793
57c9179c
UD
27942007-07-03 Jakub Jelinek <jakub@redhat.com>
2795
2796 [BZ #4702]
2797 * nis/nss-default.c: Include errno.h.
2798 (init): Preserve errno.
2799
d0b283a8
UD
28002007-07-02 Ulrich Drepper <drepper@redhat.com>
2801
2802 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2803
34e0bbaf
UD
28042007-06-30 Ulrich Drepper <drepper@redhat.com>
2805
2806 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
2807
28082007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2809
2810 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2811
34e0bbaf 28122007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
2813
2814 * sysdeps/s390/dl-procinfo.c: New file.
2815 * sysdeps/s390/dl-procinfo.h: New file.
2816 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2817
0e508a6e
UD
28182007-06-29 Jakub Jelinek <jakub@redhat.com>
2819
2820 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
2821 in PT_NOTE segments with multiple notes.
2822 * elf/readelflib.c (process_elf_file): Likewise.
2823
e22c61fb
UD
28242007-06-22 Ulrich Drepper <drepper@redhat.com>
2825
2826 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
2827 ISO C compliant.
2828
e4eb675d
UD
28292007-06-19 Ulrich Drepper <drepper@redhat.com>
2830
2831 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
2832
28332007-06-13 Jakub Jelinek <jakub@redhat.com>
2834
2835 * include/link.h: Don't include rtld-lowlevel.h.
2836 (struct link_map): Remove l_scope_lock.
2837 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
2838 (_dl_scope_free_list): New field (variable) in _rtld_global.
2839 (DL_LOOKUP_SCOPE_LOCK): Remove.
2840 (_dl_scope_free): New prototype.
2841 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
2842 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
2843 (_dl_profile_fixup): Likewise.
2844 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
2845 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
2846 THREAD_GSCOPE_RESET_FLAG around it.
2847 * elf/dl-close.c (_dl_close_worker): Don't use
2848 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
2849 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
2850 scopes were queued or if l_scope_mem has been abandoned.
2851 * elf/dl-open.c (_dl_scope_free): New function.
2852 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
2853 * elf/dl-support.c (_dl_scope_free_list): New variable.
2854 * elf/dl-lookup.c (add_dependency): Remove flags argument.
2855 Remove DL_LOOKUP_SCOPE_LOCK handling.
2856 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
2857 handling.
2858 * elf/dl-object.c (_dl_new_object): Don't use
2859 __rtld_mrlock_initialize.
2860
9be09e06
UD
28612007-06-19 Ulrich Drepper <drepper@redhat.com>
2862
2863 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2864 to fill in holes
2865 (rtld_global_ro): Likewise.
2866
28672007-06-18 Jakub Jelinek <jakub@redhat.com>
2868
2869 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2870 Move PT_LOAD checking to...
2871 (_dl_addr_inside_object): ... here, new function.
2872 * elf/dl-sym.c (do_sym): If not l_contiguous,
2873 call _dl_addr_inside_object.
2874 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2875 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2876 * elf/dl-open.c (dl_open_worker): Likewise.
2877 (_dl_addr_inside_object): New function if IS_IN_rtld.
2878 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2879 holes are present or are PROT_NONE protected.
2880 * include/link.h (struct link_map): Add l_contiguous field.
2881 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2882
ae1ad3ae
UD
28832007-06-18 Jakub Jelinek <jakub@redhat.com>
2884 Tomas Janousek <tjanouse@redhat.com>
2885 Ulrich Drepper <drepper@redhat.com>
2886
2887 [BZ #4647]
2888 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
2889 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2890 socket.
2891 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
2892 unused member a bitmap.
2893 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2894 servers are configured.
2895
3abee0b7
UD
28962007-06-18 Jakub Jelinek <jakub@redhat.com>
2897
2898 * elf/rtld.c (dl_main): Don't call init_tls more than once.
2899
89074592
UD
29002007-06-17 Andreas Schwab <schwab@suse.de>
2901
2902 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2903
b26e274d
AJ
29042007-06-16 Andreas Jaeger <aj@suse.de>
2905
2906 [BZ #4125]
2907 * sysdeps/unix/sysv/linux/sys/ptrace.h
2908 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2909 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 2910 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
2911 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2912 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2913 Define.
2914 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2915 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2916 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2917 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2918
e0d4a4e5
UD
29192007-06-16 Ulrich Drepper <drepper@redhat.com>
2920
2921 [BZ #4599]
2922 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2923 determining whether there are IPv4/IPv6 addresses, ignore loopback
2924 addresses.
2925
ae8e81f5
JJ
29262007-06-14 Uros Bizjak <ubizjak@gmail.com>
2927
2928 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2929 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2930 as the return type. Change type of "r" variable to CMPtype.
2931 * soft-fp/eqsf2.c (__eqsf2): Likewise.
2932 * soft-fp/eqtf2.c (__eqtf2): Likewise.
2933 * soft-fp/gedf2.c (__gedf2): Likewise.
2934 * soft-fp/gesf2.c (__gesf2): Likewise.
2935 * soft-fp/getf2.c (__getf2): Likewise.
2936 * soft-fp/ledf2.c (__ledf2): Likewise.
2937 * soft-fp/lesf2.c (__lesf2): Likewise.
2938 * soft-fp/letf2.c (__letf2): Likewise.
2939 * soft-fp/unorddf2 (__unorddf2): Likewise.
2940 * soft-fp/unordsf2 (__unordsf2): Likewise.
2941 * soft-fp/unordtf2 (__unordtf2): Likewise.
2942
90cd2413
UD
29432007-06-09 Ulrich Drepper <drepper@redhat.com>
2944
2945 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2946 make sure gcc doesn't mess around with this.
2947
3c457089
UD
29482007-06-08 Ulrich Drepper <drepper@redhat.com>
2949
2950 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2951
e8b6b64d
UD
29522007-06-08 Jakub Jelinek <jakub@redhat.com>
2953
2954 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2955 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2956 at most once per _dl_close_worker.
2957
36dffb22
UD
29582007-06-08 Ulrich Drepper <drepper@redhat.com>
2959
755db8c5
UD
2960 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2961 __sched_cpucount as const.
2962 * posix/sched_cpucount.c: Adjust.
2963
36dffb22
UD
2964 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2965 instruction for counting bits.
2966 * sysdeps/x86_64/sched_cpucount.c: New file.
2967
26f56c1c
UD
29682007-06-07 Ulrich Drepper <drepper@redhat.com>
2969
2970 * configure.in: Avoid variable named BASH.
e967d385 2971 * config.make.in: Likewise.
26f56c1c 2972 Patch in part by Mike Frysinger.
835abc5c 2973
26f56c1c 29742007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
2975
2976 [BZ #4586]
835abc5c
UD
2977 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2978 pseudo-zeros as zero.
2979 * sysdeps/x86_64/ldbl2mpn.c: New file.
2980 * sysdeps/ia64/ldbl2mpn.c: New file.
2981
7e3706ea
UD
29822007-06-04 Jakub Jelinek <jakub@redhat.com>
2983
2984 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2985 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2986 Remove unreachable code at the end.
2987
29882007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
2989
2990 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2991 ldbl-128ibm in comment.
2992 (fpclassifyl): Correct classification of denormals.
2993 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2994 return value for MIN denormal. Rewrite using long double math too
2995 correctly handle denormals and canonicalize the results.
2996
29972007-06-05 Jakub Jelinek <jakub@redhat.com>
2998
2999 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
3000 (__mpn_construct_long_double): Fix conversion where result ought
3001 to be smaller than __LDBL_MIN__, or the low double should be
3002 denormal. Fix decision where to negate low double - honor round
3003 to even rules.
3004 * stdio-common/tst-sprintf2.c: Include string.h.
3005 (COMPARE_LDBL): Define.
3006 (TEST): Also test whether a string hexadecimal float representation
3007 can be parsed back to the number.
3008 (main): Add a couple of further tests.
3009
43b76828
UD
30102007-06-04 Jakub Jelinek <jakub@redhat.com>
3011
3012 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
3013 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
3014 is non-zero, but smaller than 2 * __DBL_MIN__.
3015 * stdio-common/tst-sprintf2.c: New test.
3016 * stdio-common/Makefile (tests): Add tst-sprintf2.
3017
3018 * math/test-misc.c (main): Don't run last batch of tests with
3019 IBM long double format.
3020
04067002
UD
30212007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3022
3023 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
3024 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
3025 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
3026 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
3027 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3028 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
3029 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
3030 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
3031 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
3032 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
3034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
3035 New file.
3036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
3037 New file.
3038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
3039 New file.
3040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
3041 New file.
3042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
3043 New file.
3044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
3045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
3046 New file.
3047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
3048 New file.
3049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
3050 New file.
3051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
3052 New file.
3053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
3054 New file.
3055
30562007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3057
3058 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
3059 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
3060 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
3061 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
3062 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
3063 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
3064 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
3065 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
3066
30672007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
3068
3069 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
3070 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3071 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
3072 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3073 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
3074 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3075 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
3076 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3077
30782007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3079
3080 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
3081 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
3082 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
3083 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
3084
30852007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
3086
3087 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
3088 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
3089
30902006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
3091
3092 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
3093 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
3094 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
3095 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
3096
30972006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
3098
3099 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
3100 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
3101
31022006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3103
3104 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
3105 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
3106
3107 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
3108 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
3109 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
3110 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3111
31122006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
3113
3114 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
3115 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
3116 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
3117 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
3118
31192006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
3120
3121 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
3122 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
3123 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
3124 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3125 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
3126 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3127
31282006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3129
3130 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
3131 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
3132 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
3133 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
3134
31352006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3136
3137 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
3138 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
3139 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
3140 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
3141 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
3142 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
3143 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
3144 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
3145 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
3146 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
3147 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
3148 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
3149 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
3150 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
3151 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
3152 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
3153
31542006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3155
3156 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
3157 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
3158
31592007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
3160
3161 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
3162 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
3163
31642007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3165
3166 * sysdeps/powerpc/powerpc32/970/Implies: New file.
3167 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
3168 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
3169 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
3170 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
3171 * sysdeps/powerpc/powerpc64/970/Implies: New file.
3172 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
3173 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
3174 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
3175 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
3176
31772007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3178
3179 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
3180
31812007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
3182
3183 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
3184 branch miss-predicts. Ensure that cache line crossing does not impact
3185 dispatch grouping.
3186
31872006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
3188
3189 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
3190 "../../powerpc32/power4/memcopy.h".
3191 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
3192 "../../powerpc32/power4/wordcopy.c".
3193
31942006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3195
3196 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
3197 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
3198 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
3199 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
3200 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
3201 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3202
32032006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
3204
3205 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
3206
32072006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3208
3209 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
3210 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
3211 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
3212 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
3213 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
3214 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
3215 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
3216 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
3217
32182006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
3219
3220 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
3221
32222006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3223
3224 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
3225 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
3226 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
3227 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
3228 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
3229 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
3230 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
3231
5b55e1d3
RM
32322007-05-29 Roland McGrath <roland@redhat.com>
3233
3234 * po/Makefile (po-sed-cmd): New variable.
3235 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
3236
5da4373c
UD
32372007-05-29 Ulrich Drepper <drepper@redhat.com>
3238
4b5e7304
UD
3239 * crypt/md5-crypt.c: Fix comment.
3240
5da4373c
UD
3241 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
3242 of crashing. When this is the case or if the reply is malformed,
3243 don't try to close the new file descriptor since it does not
3244 exist.
3245 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
3246
40f57573
UD
32472007-05-28 Jakub Jelinek <jakub@redhat.com>
3248
3249 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
3250 if __NR_utimensat is not defined.
3251
6df7ffad
UD
32522007-05-26 Ulrich Drepper <drepper@redhat.com>
3253
3254 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
3255
47ad95ab
UD
32562007-05-25 Jakub Jelinek <jakub@redhat.com>
3257
3258 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
3259 (open): Fix comment typos. Don't call __open_2 if flags
3260 is a compile time constant without O_CREAT.
3261 (__open64_2): Add nonnull attribute.
3262 (open64): Fix comment typos. Don't call __open64_2 if flags
3263 is a compile time constant without O_CREAT.
3264 (__openat_2): Add nonnull attribute, fix nonnull attribute
3265 on redirect.
3266 (openat): Fix comment typos. Don't call __openat_2 if flags
3267 is a compile time constant without O_CREAT.
3268 (__openat64_2): Add nonnull attribute, fix nonnull attribute
3269 on redirect.
3270 (openat64): Fix comment typos. Don't call __openat64_2 if flags
3271 is a compile time constant without O_CREAT.
3272
ddfd0535
UD
32732007-05-24 Ulrich Drepper <drepper@redhat.com>
3274
3275 * Makerules (sysd-rules): Define PTW for ptw-* files.
3276 * Versions: Define GLIBC_2.7 for libc.
3277 * include/stdio.h: Declare __fortify_fail.
3278 * debug/fortify_fail.c: New file.
3279 * debug/Makefile (routines): Add fortify_fail.
3280 * debug/chk_fail.c: Use __fortify_fail.
3281 * debug/stack_chk_fail.c: Likewise.
3282 * io/Versions: Export __open_2, __open64_2, __openat_2, and
3283 __openat64_2 for GLIBC_2.7.
3284 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
3285 * io/open.c: Define *_2 variant of function which checks for O_CREAT
3286 and fails if necessary.
3287 * io/open64.c: Likewise.
3288 * io/openat.c: Likewise.
3289 * io/openat64.c: Likewise.
3290 * sysdeps/unix/sysv/linux/open64.c: Likewise.
3291 * sysdeps/unix/sysv/linux/openat.c: Likewise.
3292 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
3293 * io/bits/fcntl2.h: New file.
3294 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
3295 __openat64_2.
3296 * include/bits/fcntl2.h: New file.
3297 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3298 Add open_2.
3299 * sysdeps/unix/sysv/linux/open_2.c: New file.
3300
bfe6f5fa
UD
33012007-05-21 Ulrich Drepper <drepper@redhat.com>
3302
6d59823c
UD
3303 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
3304 as second parameter to handle_intel.
3305
e2b1e343
UD
3306 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
3307 the entry.
3308
bfe6f5fa
UD
3309 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
3310 handling to ...
3311 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
3312 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
3313 cacheinfo.
3314 * sysdeps/x86_64/memcpy.S: Complete rewrite.
3315 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
3316 Patch by Evandro Menezes <evandro.menezes@amd.com>.
3317
3318 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
3319
1f4843fb
UD
33202007-05-21 Jakub Jelinek <jakub@redhat.com>
3321
2c2c003a
UD
3322 [BZ #4525]
3323 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
3324 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
3325 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
3326
3327 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
3328
af269dd9
UD
3329 [BZ #4514]
3330 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
3331 reinitialize workend at the start of each do_positional format spec
3332 loop, free workstart before do_positional loops.
3333 (printf_unknown): Fix size of work_buffer.
3334 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
3335
1f4843fb
UD
3336 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
3337 (public_sET_STATe): If ms->version < 3, put all chunks into
3338 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
3339 chunks.
3340
3341 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
3342 * malloc/hooks.c: Likewise.
3343 * malloc/arena.c: Likewise.
3344 * malloc/malloc.c (do_check_malloc_state): Don't assert
3345 n_mmaps is not greater than n_mmaps_max. This removes the need
3346 for the previous change.
3347
3348 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
3349 2007-05-07 commit.
3350
12e8bbff
UD
33512007-05-19 Ulrich Drepper <drepper@redhat.com>
3352
3353 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
3354 Define for kernel >= 2.6.22.
69e5cbf5 3355
12e8bbff 33562007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 3357
df94b641
UD
3358 * elf/dl-close.c (_dl_close_worker): When removing object from
3359 global scope, wait for all lookups to finish afterwards.
3360 * elf/dl-open.c (add_to_global): When global scope array must
3361 grow, allocate a new one and free old array only after all
3362 lookups finish.
3363 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
3364 (_dl_lookup_symbol_x): Likewise.
3365 * elf/dl-support.c: Define _dl_wait_lookup_done.
3366 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3367 _dl_wait_lookup_done.
3368
2acd01ac
UD
3369 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
3370 not overlapping with arena.
3371
129abdd3
UD
3372 * malloc/mcheck.c (reallochook): If size==0, free the block.
3373
eb4b098a
UD
3374 * rt/tst-shm.c: Use fstat64 instead of fstat.
3375
69e5cbf5
UD
3376 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
3377 __NR_sync_file_range is not defined.
3378
a2ccc760
UD
33792007-05-17 Ulrich Drepper <drepper@redhat.com>
3380
bec51a30
UD
3381 Dummy files to prevent stub versions from being used.
3382 * sysdeps/x86_64/fpu/k_cosl.c: New file.
3383 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
3384 * sysdeps/x86_64/fpu/k_sinl.c: New file.
3385 * sysdeps/x86_64/fpu/k_tanl.c: New file.
3386
a2ccc760
UD
3387 * version.h (VERSION): Set to 2.6.90.
3388
1a31b586
UD
33892007-05-14 Ulrich Drepper <drepper@redhat.com>
3390
a2ccc760
UD
3391 * version.h (VERSION): Define to 2.6.
3392 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 3393
1d47e92f
UD
3394 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
3395
3396 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
3397 sizes.
366ad8fd 3398
1a31b586 33992007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 3400
366ad8fd
UD
3401 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
3402 number of mmaps. n_mmaps_max is the target.
3403 * malloc/hooks.c: Likewise.
3404 * malloc/arena.c: Likewise.
3405
11ed6713
AJ
34062007-05-12 Andreas Jaeger <aj@suse.de>
3407
3408 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
3409 getpid.
3410
d65ef3dd
UD
34112007-05-11 Ulrich Drepper <drepper@redhat.com>
3412
2e81d449
UD
3413 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
3414 adding new variables.
3415
d65ef3dd 3416 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 3417 optimize. Completely extend global scope array before making the
d65ef3dd
UD
3418 new entries visible.
3419
c27d2078
UD
34202007-05-10 Ulrich Drepper <drepper@redhat.com>
3421
341c566f
UD
3422 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
3423 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
3424 tst-getcpu.
3425
3426 * include/link.h: Move l_version and l_nversion members around to
3427 fill gaps.
3428
a53fa282
UD
3429 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
3430
3771196d
UD
3431 * sysdeps/unix/sysv/linux/sched_setaffinity.c
3432 (__sched_setaffinity_new): If syscall was successful and
3433 RESET_VGETCPU_CACHE is defined, use it before returning.
3434 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
3435
f9bf102d
UD
3436 * io/sys/stat.h: Make sure struct timespec is defined for
3437 __USE_ATFILE.
3438
c27d2078
UD
3439 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
3440 UTIME_OMIT.
3441 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3442 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3443 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
3444 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3445 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3446 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3447 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
3448 * io/sys/stat.h: Declare utimensat, futimens.
3449 * io/utimensat.c: New file.
3450 * io/futimens.c: New file.
3451 * sysdeps/unix/sysv/linux/utimensat.c: New file.
3452 * sysdeps/unix/sysv/linux/futimens.c: New file.
3453 * io/Makefile (routines): Add utimensat, futimens.
3454 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
3455 * sysdeps/unix/sysv/linux/lutimes.c: New file.
3456 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
3457 available.
3458
3459 * include/sys/cdefs.h: Redefine __nonnull so that test for
3460 incorrect parameters in the libc code itself are not omitted.
3461
cf6b0980
JJ
34622007-05-09 Jakub Jelinek <jakub@redhat.com>
3463
c1dfd7e6
JJ
3464 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
3465 exception in addition to inexact when asked to raise only FE_INEXACT.
3466
cf6b0980
JJ
3467 [BZ #3427]
3468 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
3469 in *envp.
3470
df7b6fea
UD
34712007-05-07 Ulrich Drepper <drepper@redhat.com>
3472
3473 [BZ #4403]
3474 * string/strfry.c (strfry): Make result more random.
3475
37f40235
RH
34762007-05-07 Richard Henderson <rth@redhat.com>
3477
3478 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
3479 if __NO_LONG_DOUBLE_MATH.
3480 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 3481 available in the compiler, add .arch directive to the assembly.
37f40235
RH
3482
34832007-05-07 Jakub Jelinek <jakub@redhat.com>
3484
3485 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
3486 compat_symbol to GLIBC_2_1.
3487 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
3488 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
3489 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
3490 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
3491 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
3492 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
3493 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
3494 libc, not libm.
3495 (__isnanl): New compat_symbol.
3496
c7fd3362
JJ
34972007-05-07 Ulrich Drepper <drepper@redhat.com>
3498 Jakub Jelinek <jakub@redhat.com>
3499
3500 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
3501 (new_heap): Initialize mprotect_size.
3502 (grow_heap): When growing, only mprotect from mprotect_size till
3503 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
3504 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
3505
4a59e9ad 35062007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 3507 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
3508
3509 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
3510 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
3511 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
3512 * sysdeps/powerpc/fpu/fe_mask.c: New file.
3513 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
3514 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
3515 Call __fe_mask_env() if all FP exceptions disabled.
3516 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
3517 from old FPSCR to new fenv to propagate DFP rounding modes.
3518 Call __fe_mask_env() if FP exceptions previously enabled.
3519 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
3520 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
3521 transitioning from all exceptions disabled to any exception enabled
3522 or visa versa.
3523 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
3524 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
3525 when transitioning from all exceptions disabled to any exception
3526 enabled or visa versa.
3527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
3528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
3529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
3530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
3531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
3532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
3533
aa75f64c
UD
35342007-05-06 Ulrich Drepper <drepper@redhat.com>
3535
15eca720 3536 [BZ #4465]
aa75f64c
UD
3537 * posix/unistd.h: Remove __THROW from fdatasync.
3538
711deb05
UD
35392007-05-06 Mike Frysinger <vapier@gentoo.org>
3540
15eca720 3541 [BZ #4465]
711deb05
UD
3542 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
3543
ffecd39b
UD
35442007-05-06 Ulrich Drepper <drepper@redhat.com>
3545
49a8eb75
UD
3546 * stdio-common/vfprintf.c (process_string_arg): Optimize
3547 ridiculous precision in wide char code printing multi-byte string.
3548 Reported by Jim Meyering <jim@meyering.net>.
3549
ffecd39b
UD
3550 [BZ #4131]
3551 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
3552 boundaries to work around systems with overlapping binary loading.
3553 Based on a patch by Suzuki <suzuki@in.ibm.com>.
3554
b16dba4c
UD
35552007-05-04 Ulrich Drepper <drepper@redhat.com>
3556
30b323ab
UD
3557 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
3558 __mbsnrtowcs after last change.
3559
b16dba4c
UD
3560 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
3561 (get_ident): Likewise.
3562
37002cbc
JJ
35632007-05-03 Jakub Jelinek <jakub@redhat.com>
3564
3565 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
3566 with setting the sticky bit.
3567 * math/test-misc.c (main): Add more truncation tests.
3568
35692007-04-14 Uros Bizjak <ubizjak@gmail.com>
3570
3571 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
3572 double in the function declaration.
3573 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
3574 double in the function declaration.
3575 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3576 float in the function declaration.
3577 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3578 float in the function declaration.
3579
3580 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
3581 denormal operands. Do not generate FP_EX_DENORM exception.
3582 (FP_UNPACK_RAW_EP): Ditto.
3583 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
3584 undefined _FP_UNPACK_RAW_E.
3585 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
3586 undefined _FP_UNPACK_RAW_EP.
3587 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
3588 undefined _FP_PACK_RAW_E.
3589 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
3590 undefined _FP_PACK_RAW_EP.
3591
d9ac82d0
UD
3592 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
3593 _FP_FRAC_COPY_2.
3594 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
3595 _FP_FRAC_COPY_4.
37002cbc
JJ
3596
35972007-04-16 Uros Bizjak <ubizjak@gmail.com>
3598 Jakub Jelinek <jakub@redhat.com>
3599
3600 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
3601 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
3602 this case.
3603 * soft-fp/op-common.h (FP_TRUNC): Ditto.
3604
002f0b0b
JJ
36052007-05-03 Jakub Jelinek <jakub@redhat.com>
3606
3607 * math/test-misc.c (main): Add tests for rounding long double
3608 values close to smallest double denormalized value to double.
3609
36102007-04-30 Joseph Myers <joseph@codesourcery.com>
3611
3612 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
3613 condition for truncating to 0. Set sticky bit for such
3614 truncation.
3615
57433ede
UD
36162007-05-02 Jakub Jelinek <jakub@redhat.com>
3617
3618 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
3619 fixed length array for ignore.
3620
c01c2455
UD
36212007-04-30 Ulrich Drepper <drepper@redhat.com>
3622
3623 [BZ #4438]
3624 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
3625 stack for large precisions.
1cb04337
UD
3626 * stdio-common/test-vfprintf.c (main): Add test for large
3627 precision.
c01c2455 3628
37f02b1d
UD
36292007-04-30 Jakub Jelinek <jakub@redhat.com>
3630
b866373d
UD
3631 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
3632 for exponent 0.
3633 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
3634
37f02b1d
UD
3635 [BZ #4439]
3636 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
3637 account in the size check.
3638 * resolv/tst-inet_ntop.c: New test.
3639 * resolv/Makefile (tests): Add tst-inet_ntop.
3640
7ecfbd38
UD
36412007-04-30 Ulrich Drepper <drepper@redhat.com>
3642 Jakub Jelinek <jakub@redhat.com>
3643
3644 [BZ #4349]
3645 * malloc/malloc.c: Keep separate list for first blocks on the bin
3646 lists with a given size. This helps skipping over list elements
3647 we know won't fit in two places.
3648 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
3649
e53f0f51
UD
36502007-04-28 Ulrich Drepper <drepper@redhat.com>
3651
3652 [BZ #4102]
3653 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
3654 label to Teredo tunnel addresses 2001://32.
3655
109f51f2
UD
36562007-04-27 Ulrich Drepper <drepper@redhat.com>
3657
762422d1
UD
3658 * locale/programs/ld-collate.c (collate_read): Allow order_start
3659 after copy.
3660
61d5a67f
UD
3661 * locale/programs/ld-collate.c (collate_read): Fix printing of
3662 error message.
3663
3664 [BZ #3213]
3665 * locale/C-translit.h.in: Add entry for U2044.
3666
109f51f2
UD
3667 [BZ #4342]
3668 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
3669 hexa-decimal floats without exponent.
3670 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
3671
ec08f13d
UD
36722007-04-25 Ulrich Drepper <drepper@redhat.com>
3673
3674 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
3675 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
3676 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
3677 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
3678 GLIBC_2.6.
bce20b9a
UD
3679 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
3680 Add sched_getcpu.
ec08f13d 3681
41967e1c
JJ
36822007-04-25 Jakub Jelinek <jakub@redhat.com>
3683
3684 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
3685 of 0 after the out_fail label.
3686
ba508da3
UD
36872007-04-25 Ulrich Drepper <drepper@redhat.com>
3688
3689 [BZ #4406]
109f51f2 3690 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
3691 * iconv/iconv_open.c (iconv_open): Adjust comment.
3692
9c8d03d9
JJ
36932007-04-25 Jakub Jelinek <jakub@redhat.com>
3694
3695 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
3696 version.
3697
2f1687b9
UD
36982007-04-23 Jakub Jelinek <jakub@redhat.com>
3699
3700 [BZ #4381]
3701 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
3702 alignment of buffer and tmp_buffer.
3703 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
3704 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
3705 alignment of buffer.
3706 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
3707 bigger than INT_MAX.
3708 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
3709 h_errnop arguments. Fail if buflen is too small.
3710 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
3711
b64a9db8
JJ
37122007-04-23 Jakub Jelinek <jakub@redhat.com>
3713
3714 [BZ #4405]
3715 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
3716 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
3717
4d3144c9
RM
37182007-04-22 Roland McGrath <roland@redhat.com>
3719
3720 * elf/elf.h (NT_PRXFPREG): New macro.
3721
767b40bf
AJ
37222007-04-19 Andreas Jaeger <aj@suse.de>
3723
3724 [BZ #3905]
3725 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
3726 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
3727 Added.
3728
2592d1ec
UD
37292007-04-19 Ulrich Drepper <drepper@redhat.com>
3730
3731 * include/sys/mman.h: Mark madvise hidden.
d07d044e 3732 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 3733
7ab174ed
UD
37342007-04-06 Jakub Jelinek <jakub@redhat.com>
3735
3736 * nis/nis_domain_of.c (__nis_domain_of): New function.
3737 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
3738 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
3739 * nis/nis_call.c (rec_dirsearch): Likewise.
3740 (first_shoot): Likewise. Remove search_parent_first argument.
3741 (struct nis_server_cache): Rename search_parent_first field
3742 to search_parent.
3743 (nis_server_cache_search, nis_server_cache_add): Rename
3744 search_parent_first argument to search_parent.
3745 (__nisfind_server): Likewise. If search_parent, call
3746 __nis_domain_of.
3747
b17c265f
UD
37482007-04-18 Ulrich Drepper <drepper@redhat.com>
3749
3750 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
3751
b7674b11
UD
37522007-04-17 Ulrich Drepper <drepper@redhat.com>
3753
3754 [BZ #4368]
3755 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
3756
faf3ad69
UD
37572007-04-16 Ulrich Drepper <drepper@redhat.com>
3758
3759 [BZ #4364]
3760 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
3761
c14f245c
UD
37622007-04-15 Jakub Jelinek <jakub@redhat.com>
3763
3764 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
3765 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
3766 current number of locales in SUPPORTED.
3767 (create_archive): Initialize serial.
3768 (enlarge_archive): Preserve aliases rather than duplicating
3769 their locrecs.
3770
d40e67f5
UD
37712007-04-13 Jakub Jelinek <jakub@redhat.com>
3772
993a5d66
UD
3773 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
3774 after _IO_un_link, not before it.
3775
d40e67f5
UD
3776 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
3777 special case handling when wcp == wstartp + 1. Fix a comment typo.
3778 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
3779
0fca3153
UD
37802007-03-30 Jakub Jelinek <jakub@redhat.com>
3781
3782 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
3783 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
3784 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
3785 Remove __THROW.
3786 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
3787 _IO_file_xsgetn_maybe_mmap): Likewise.
3788 * libio/oldfileops.c (old_do_write): Likewise.
3789 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
3790 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
3791 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
3792 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
3793 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
3794 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
3795 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
3796 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
3797 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
3798 _IO_file_underflow, _IO_file_underflow_mmap,
3799 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
3800 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
3801 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
3802 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
3803 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
3804 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
3805 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
3806 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
3807 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
3808 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
3809 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
3810 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
3811 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
3812 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
3813 _IO_adjust_column_internal, _IO_default_uflow_internal,
3814 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
3815 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
3816 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
3817 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
3818 _IO_file_close_it_internal, _IO_file_underflow_internal,
3819 _IO_file_overflow_internal, _IO_file_attach_internal,
3820 _IO_file_fopen_internal, _IO_file_sync_internal,
3821 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
3822 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
3823 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
3824 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
3825 _IO_seekpos_unlocked): Likewise.
3826 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
3827 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
3828
07358add
JJ
38292007-04-16 Jakub Jelinek <jakub@redhat.com>
3830
3831 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
3832 argument in xmalloc size computation.
3833
7a82b74f
UD
38342007-04-01 Jakub Jelinek <jakub@redhat.com>
3835
3836 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
3837 math_opt_barrier and math_force_eval macros.
3838
3e336a87
UD
38392007-03-27 Jakub Jelinek <jakub@redhat.com>
3840
3841 [BZ #3306]
3842 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
3843 * sysdeps/i386/fpu/math_private.h: New file.
3844 * sysdeps/x86_64/fpu/math_private.h: New file.
3845 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
3846 math_force_eval macros. Use "+m" constraint on asm rather than
3847 "=m" and "m".
3848 * math/s_nextafter.c (__nextafter): Likewise.
3849 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3850 Likewise.
3851 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3852 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3853 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3854 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3855 math_opt_barrier and math_force_eval macros.
3856 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3857 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3858 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3859 (__nexttoward): Use math_opt_barrier and
3860 math_force_eval macros. Use "+m" constraint on asm rather than
3861 "=m" and "m". Only use asm to force double result if
3862 FLT_EVAL_METHOD is 2.
3863 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3864 (__nexttowardf): Use math_opt_barrier and
3865 math_force_eval macros. Use "+m" constraint on asm rather than
3866 "=m" and "m". Only use asm to force double result if
3867 FLT_EVAL_METHOD is not 0.
3868 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3869 (__nexttowardf): Use math_opt_barrier and
3870 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3871 x to float using asm.
3872 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3873 (__nldbl_nexttowardf): Use math_opt_barrier and
3874 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3875 x to float using asm.
3876 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3877 (__nexttowardf): Use math_opt_barrier and math_force_eval
3878 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
3879 * math/bug-nextafter.c (zero, inf): New variables.
3880 (main): Add new tests.
3881 * math/bug-nexttoward.c (zero, inf): New variables.
3882 (main): Add new tests.
3883
a8c79c40
UD
38842007-03-22 Jakub Jelinek <jakub@redhat.com>
3885
3886 [BZ #3427]
3887 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3888 exceptions both in SW and MXCSR.
3889 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3890 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3891 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3892 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3893 in MXCSR if SSE is available.
3894 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3895 and ldsodefs.h.
3896 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3897 Fix comment typo.
3898 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3899 Return 0 rather than 1.
3900 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3901 Remove incorrect part of a comment. Fix argument to feraiseexcept.
3902 * math/test-fenv.c (feholdexcept_tests): New function.
3903 (main): Call it.
3904
39052007-01-05 Richard B. Kreckel <kreckel@ginac.de>
3906
3907 [BZ #3427]
3908 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3909 in SW.
3910
30a3aa75
JJ
39112007-04-13 Jakub Jelinek <jakub@redhat.com>
3912
3913 [BZ #4344]
3914 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3915 Reported by David Anderson <davea42@earthlink.net>.
3916
75587bfe
UD
39172007-04-07 Ulrich Drepper <drepper@redhat.com>
3918
3919 * posix/sys/wait.h: Remove unnecessary forward declaration.
3920
88fa1769
JJ
39212007-04-05 Jakub Jelinek <jakub@redhat.com>
3922
3923 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3924 with obj->do_servers after first_shoot.
3925
eab1bdfb
UD
39262007-04-03 Ulrich Drepper <drepper@redhat.com>
3927
3928 * posix/Makefile (routines): Add sched_cpucount.
3929 (tests): Add tst-cpucount.
3930 * posix/sched_cpucount.c: New file.
3931 * posix/tst-cpucount.c: New file.
3932 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
3933 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
3934 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3935 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 3936
9700b039
UD
39372007-03-27 Jakub Jelinek <jakub@redhat.com>
3938
3939 * posix/fnmatch.c (STRUCT): Define.
3940 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3941 * posix/fnmatch_loop.c (struct STRUCT): New type.
3942 (FCT): Add ends argument. If ends != NULL and normal * is
3943 seen in the pattern, store current pattern and string pointers
3944 and return. Adjust recursive calls.
3945 (EXT): Adjust FCT callers.
3946 (STRUCT): Undef at the end of the file.
3947 * posix/Makefile (tests): Add tst-fnmatch2.
3948 * posix/tst-fnmatch2.c: New test.
3949
d64e9790
JJ
39502007-04-01 Jakub Jelinek <jakub@redhat.com>
3951
933dfe7b
JJ
3952 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3953 and 1 on failure.
3954
d64e9790
JJ
3955 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3956 Change last argument to unsigned int.
3957
e1f0c5bc
UD
39582007-03-23 Jakub Jelinek <jakub@redhat.com>
3959
3960 * scripts/check-local-headers.sh: Filter out sys/capability.h.
3961
39622007-03-22 Jakub Jelinek <jakub@redhat.com>
3963
3964 * config.h.in (HAVE_LIBCAP): Add.
3965 * nscd/selinux.h: Include sys/capability.h rather than non-existent
3966 sys/capabilities.h.
3967 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3968 free_caps. Cast away const from 4th cap_set_flag argument.
3969
4e87573f
UD
39702007-03-26 Ulrich Drepper <drepper@redhat.com>
3971
3972 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3973 GLIBC_2.6.
3974 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3975 Add sync_file_range.
3976 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3977
fa6e3bc3
UD
39782007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
3979
3980 * sysdeps/powerpc/bits/atomic.h
3981 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3982 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3983 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3984 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3985 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3986 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3987 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3988 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3989 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3990 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3991 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3992 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3993 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3994 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3995 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3996 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3997 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3998 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3999 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4000 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
4001
40022007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
4003
4004 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4005 (__cache_line_size): Define the variable here. Add
4006 attribute_hidden, remove weak_extern.
4007 (__libc_start_main): Set __cache_line_size
4008 unconditionally.
4009 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4010 (__cache_line_size): Define the variable here. Add
4011 attribute_hidden, remove weak_extern.
4012 (DL_PLATFORM_AUXV): Set __cache_line_size
4013 unconditionally.
4014 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
4015 weak_extern, add attribute_hidden.
4016 (__elf_machine_runtime_setup): Assume __cache_line_size is always
4017 defined in ld.so.
4018 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
4019 definition.
4020 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
4021
0479e581
JJ
40222007-03-26 Jakub Jelinek <jakub@redhat.com>
4023
4024 [BZ #4276]
4025 * timezone/africa: Update from tzdata2007d.
4026 * timezone/asia: Likewise.
4027 * timezone/australasia: Likewise.
4028 * timezone/backward: Likewise.
4029 * timezone/europe: Likewise.
4030 * timezone/iso3166.tab: Likewise.
4031 * timezone/leapseconds: Likewise.
4032 * timezone/northamerica: Likewise.
4033 * timezone/southamerica: Likewise.
4034 * timezone/zone.tab: Likewise.
4035
4036 * timezone/private.h: Update from tzcode2007d.
4037 * timezone/zdump.c: Likewise.
4038 * timezone/zic.c: Likewise.
4039
697d37b1
JJ
40402007-03-21 Jakub Jelinek <jakub@redhat.com>
4041
4042 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
4043 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
4044 variables.
4045 (nis_server_cache_search, nis_server_cache_add): New functions.
4046 (__nisfind_server): Use them. Add dbp and flags argument, if
4047 call __nisbind_create.
4048 (__nisbind_create): Add server_used and current_ep arguments,
4049 only call __nis_findfastest if server_used is ~0.
4050 (__do_niscall2, __prepare_niscall): Adjust callers.
4051 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
4052 ckey_cache_euid, ckey_cache_lock): New variables.
4053 (get_ckey): New function.
4054 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
4055 __pmap_getnisport. Save __pmap_getnisport result in
4056 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
4057 key.
4058 * nis/nis_lookup.c (nis_lookup): Likewise.
4059 * nis/nis_table.c (nis_list): Likewise.
4060 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
4061 prototypes.
4062
4063 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
4064 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
4065 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
4066 _nss_nisplus_getservbyport_r): Likewise.
4067 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
4068 _nss_nisplus_getnetbyaddr_r): Likewise.
4069 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
4070 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
4071 _nss_nisplus_getntohost_r): Likewise.
4072 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
4073 _nss_nisplus_getrpcbynumber_r): Likewise.
4074
06029c20
JJ
40752007-03-20 Jakub Jelinek <jakub@redhat.com>
4076
371f84a4
JJ
4077 * configure.in (libc_cv_gnu89_inline): Only do compile test.
4078 * configure: Rebuilt.
4079
06029c20
JJ
4080 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
4081 bit-fields.
4082 * soft-fp/extended.h (_FP_UNION_E): Likewise.
4083
40842006-06-07 Joseph Myers <joseph@codesourcery.com>
4085
4086 [BZ #2831]
4087 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
4088 bit-fields.
4089
addc8335
UD
40902007-03-18 Jakub Jelinek <jakub@redhat.com>
4091
4092 * nscd/gai.c: Include alloca.h.
4093 (__libc_use_alloca): Define.
4094
b037a293
UD
40952007-03-16 Jakub Jelinek <jakub@redhat.com>
4096
965cba04
UD
4097 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
4098 smaller scopes.
4099 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
4100 (DL_DST_REQUIRED): Adjust user.
4101
4102 * include/dlfcn.h (struct link_map): New forward decl.
4103
4104 * inet/getnameinfo.c: Include stddef.h.
4105 (getnameinfo): Use offsetof.
4106
4107 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
4108
4109 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
4110
4111 * string/strerror_l.c: Include stdlib.h.
4112
b037a293
UD
4113 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
4114 * config.make.in (gnu89-inline-CFLAGS): New variable.
4115 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
4116 -std=gnu99.
4117 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
4118 * argp/argp.h: Use it.
4119 * bits/mathinline.h: Likewise.
4120 * bits/sigset.h: Likewise.
4121 * bits/string.h: Likewise.
4122 * ctype/ctype.h: Likewise.
4123 * hurd/hurd.h: Likewise.
4124 * hurd/hurd/fd.h: Likewise.
4125 * hurd/hurd/port.h: Likewise.
4126 * hurd/hurd/signal.h: Likewise.
4127 * hurd/hurd/threadvar.h: Likewise.
4128 * hurd/hurd/userlink.h: Likewise.
4129 * io/sys/stat.h: Likewise.
4130 * libio/bits/stdio.h: Likewise.
4131 * libio/bits/stdio2.h: Likewise.
4132 * mach/lock-intern.h: Likewise.
4133 * mach/mach/mig_support.h: Likewise.
4134 * math/bits/cmathcalls.h: Likewise.
4135 * posix/bits/unistd.h: Likewise.
4136 * socket/bits/socket2.h: Likewise.
4137 * stdlib/bits/stdlib.h: Likewise.
4138 * stdlib/stdlib.h: Likewise.
4139 * string/argz.h: Likewise.
4140 * string/bits/string2.h: Likewise.
4141 * string/bits/string3.h: Likewise.
4142 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
4143 * sysdeps/generic/inttypes.h: Likewise.
4144 * sysdeps/generic/machine-lock.h: Likewise.
4145 * sysdeps/generic/machine-sp.h: Likewise.
4146 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4147 * sysdeps/i386/i486/bits/string.h: Likewise.
4148 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
4149 * sysdeps/mach/alpha/machine-lock.h: Likewise.
4150 * sysdeps/mach/alpha/machine-sp.h: Likewise.
4151 * sysdeps/mach/i386/machine-lock.h: Likewise.
4152 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
4153 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
4154 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4155 * sysdeps/s390/bits/string.h: Likewise.
4156 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
4157 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4158 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4159 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4160 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4161 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
4162 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
4163 * wcsmbs/bits/wchar2.h: Likewise.
4164 * wcsmbs/wchar.h: Likewise.
4165 * stdlib/gmp.h: Likewise. Include <features.h> to get
4166 __extern_inline definition.
4167
6b2665f5
UD
41682007-03-15 Jakub Jelinek <jakub@redhat.com>
4169
b037a293
UD
4170 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
4171 NULL.
4172
6b2665f5
UD
4173 [BZ #3919]
4174 * math/libm-test.inc (log_test): Test -Inf and NaN.
4175 (log10_test, log1p_test, log2_test): Test -Inf.
4176 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
4177 FE_INVALID when argument is qNaN.
4178 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4179 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4180 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
4181 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
4182 andb $1, %ah with testb $1, %ah, don't test for parity, instead
4183 testb $4, %ah and jump if non-zero.
4184 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
4185 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
4186
44969f17
UD
4187 [BZ #4101]
4188 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
4189 ancestors with the same depths.
4190 Patch by Niels Moeller <nisse@lysator.liu.se>.
4191 (filter_doc): Don't crash if argp is NULL.
4192 * argp/Makefile (tests): Add tst-argp2.
4193 * argp/tst-argp2.c: New test.
4194
05eb8975
UD
4195 [BZ #4130]
4196 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
4197 open_not_cancel_2.
4198 (updwtmp_file): Likewise.
4199
6cb988fa
UD
4200 [BZ #4181]
4201 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
4202 (inet6_opt_append): Don't check extlen is big enough if extbuf
4203 is NULL.
4204 (inet6_opt_finish): Likewise.
4205 * inet/Makefile (tests): Add test-inet6_opt.
4206 * inet/test-inet6_opt.c: New test.
4207
4208 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
4209 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
4210 NLMSG_ERR. Instead use a page sized buffer.
4211 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
4212 buffer.
4213
aea1d19e
RH
42142007-03-14 Richard Henderson <rth@redhat.com>
4215
b6df547c
RH
4216 * sysdeps/alpha/fpu/s_llround.c: New file.
4217 * sysdeps/alpha/fpu/s_llroundf.c: New file.
4218 * sysdeps/alpha/fpu/s_lround.c: New file.
4219 * sysdeps/alpha/fpu/s_lroundf.c: New file.
4220 * sysdeps/alpha/fpu/s_round.c: New file.
4221 * sysdeps/alpha/fpu/s_roundf.c: New file.
4222 * sysdeps/alpha/fpu/s_trunc.c: New file.
4223 * sysdeps/alpha/fpu/s_truncf.c: New file.
4224
aea1d19e
RH
4225 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
4226 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4227 * sysdeps/alpha/fpu/s_floor.c: Likewise.
4228 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4229 * sysdeps/alpha/fpu/s_rint.c: Likewise.
4230 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
4231
4232 * sysdeps/alpha/fpu/s_fmax.S: New file.
4233 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
4234 * sysdeps/alpha/fpu/s_fmin.S: New file.
4235 * sysdeps/alpha/fpu/s_fminf.S: New file.
4236 * sysdeps/alpha/fpu/s_isnan.c: New file.
4237 * sysdeps/alpha/fpu/s_isnanf.c: New file.
4238 * sysdeps/alpha/fpu/s_llrint.c: New file.
4239 * sysdeps/alpha/fpu/s_llrintf.c: New file.
4240 * sysdeps/alpha/fpu/s_lrint.c: New file.
4241 * sysdeps/alpha/fpu/s_lrintf.c: New file.
4242 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
4243 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
4244
4245 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
4246 (__fdimf, fdimf, __fdim, fdim): Remove.
4247 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
4248 (__isnanf, __isnan, __isnanl): New.
4249
9e43b50d
RH
42502007-03-13 Richard Henderson <rth@redhat.com>
4251
4252 * sysdeps/ieee754/ldbl-128/Makefile: New file.
4253
62789da3
RH
42542007-03-13 Richard Henderson <rth@redhat.com>
4255
4256 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
4257 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
4258 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
4259 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
4260 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
4261 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
4262
47dbe62b
RH
42632007-03-13 Richard Henderson <rth@redhat.com>
4264
37f40235 4265 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
4266 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
4267 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
4268 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
4269 Move to dl-auxv.h; initialize instead of extern weak.
4270 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
4271 weak symbol.
4272 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
4273 Extern instead of initialized.
4274
b8097bed
RH
42752007-03-13 Richard Henderson <rth@redhat.com>
4276
4277 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
4278 __sigsuspend_nocancel.
4279
6bf4a686
UD
42802007-03-06 Ulrich Drepper <drepper@redhat.com>
4281
4282 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
4283 172.16/12 address range.
4284
0b3b1a0c
UD
42852007-03-02 Jakub Jelinek <jakub@redhat.com>
4286
4287 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
4288 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
4289 message.
4290
8f3edfee
UD
42912007-03-01 Jakub Jelinek <jakub@redhat.com>
4292
c1c5e654 4293 [BZ #4069]
8f3edfee
UD
4294 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
4295 earlier.
4296 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
4297
4298 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
4299 for x qNaN and y either +-inf or non-integer value.
4300 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
4301 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
4302 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4303
245a1481
UD
43042007-02-10 Mike Frysinger <vapier@gentoo.org>
4305
4306 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
4307 from sysdep_headers.
4308
c217692b
UD
43092007-02-28 Jakub Jelinek <jakub@redhat.com>
4310
4311 * time/tzfile.c (find_transition): Instead of a linear search try to
4312 guess the transition index, use a linear search if the result is at
4313 most 10 transitions away from the guess or binary search otherwise.
4314
fe64626c
JJ
43152007-02-27 Jakub Jelinek <jakub@redhat.com>
4316
4317 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
4318 memory reallocation.
4319
0f7769f7
UD
43202007-02-21 Ulrich Drepper <drepper@redhat.com>
4321
621c133d
UD
4322 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
4323 and fix some typos.
4324 Optimize use of TOLOWER.
9cf147d8 4325
cdfd61e1
UD
4326 [BZ #3325]
4327 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
4328 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4329 * sysdeps/i386/fpu/e_fmod.S: Likewise.
4330
8889e7aa
UD
4331 [BZ #3458]
4332 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
4333 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
4334
63a2f305
UD
4335 [BZ #4076]
4336 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
4337 (open_dir_stream): Likewise.
4338 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 4339 * io/bug-ftw5.c: New file.
63a2f305 4340
c8703f88
UD
4341 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
4342 * nscd/servicescache.c (cache_addserv): Likewise.
4343
4344 * nscd/grpcache.c (cache_addgr): In case a record changed on
4345 refresh, adjust key_copy.
4346
61705e06
UD
4347 [BZ #4074]
4348 * nscd/pwdcache.c (cache_addpw): In case a record changed on
4349 refresh, adjust key_copy.
4350
0f7769f7
UD
4351 [BZ #4070]
4352 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 4353 special cases.
8889e7aa 4354 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 4355
3979024a
UD
43562007-02-19 Ulrich Drepper <drepper@redhat.com>
4357
4c02bf1a
UD
4358 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
4359 optimization.
4360
3979024a
UD
4361 * stdio-common/vfscanf.c: Small cleanups throughout.
4362
821d3e70
UD
43632007-02-18 Ulrich Drepper <drepper@redhat.com>
4364
2484468b
UD
4365 [BZ #3325]
4366 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
4367 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4368 * sysdeps/i386/fpu/e_fmod.S: Likewise.
4369 Patch by Jared Casper <jaredcasper@gmail.com>.
4370
858ee15d
UD
4371 * sysdeps/unix/closedir.c: Outside libc don't use locking.
4372 * sysdeps/unix/opendir.c: Likewise.
4373 * sysdeps/unix/readdir.c: Likewise.
4374
ecb72bd5
UD
4375 [BZ #2211]
4376 * stdio-common/vfscanf.c: Handle localized digits etc for floating
4377 point numbers.
4378 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
4379
ac2ca022
UD
4380 * stdio-common/vfscanf.c: Fix problems in width accounting.
4381 * stdio-common/tst-sscanf.c (double_tests): New tests.
4382 (main): Hook them up.
4383
e9bb5246 4384 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 4385 More simplifications of floating-point reader.
e9bb5246 4386
821d3e70
UD
4387 * stdio-common/Makefile (tests): Add tst-swscanf.
4388 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
4389 testing.
4390 * stdio-common/tst-swscanf.c: New file.
4391
07fb5185
UD
43922007-02-17 Ulrich Drepper <drepper@redhat.com>
4393
9138cc0b
UD
4394 [BZ #2633]
4395 * libio/stdio.h: Define struct _IO_FILE in global namespace.
4396 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
4397 Remove using for __jmp_buf_tag.
4398 * locale/locale.h (struct lconv): Also define in std namespace.
4399 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
4400
6818d837
UD
4401 [BZ #3842]
4402 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
4403 using __libc_enable_secure.
4404
15c4b5a4
UD
4405 [BZ #3818]
4406 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
4407
5e9e9c14
UD
4408 [BZ #3745]
4409 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
4410 of names for ellipsises.
4411
07fb5185
UD
4412 [BZ #3348]
4413 * malloc/memusage.sh: Cleanups.
4414 * debug/xtrace.sh: Quoting and trap changes.
4415
8c6d1043
UD
44162007-02-16 Ulrich Drepper <drepper@redhat.com>
4417
07fb5185
UD
4418 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
4419
93e66914 4420 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
4421 * locale/iso-4217.def: Define RSD, remove CSD.
4422
ad0b348c
UD
4423 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
4424 and 64-bit operations.
4425
4426 [BZ #4040]
4427 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
4428 16-bit operations.
4429
8c6d1043
UD
4430 * nscd/nscd.c (parse_opt): One more conversion to use send instead
4431 of writev.
4432
987f54c6
UD
44332007-02-15 Ulrich Drepper <drepper@redhat.com>
4434
b3715c05
UD
4435 [BZ #3991]
4436 * assert/assert.h (assert): Simplify.
4437 (assert_perror): Likewise.
4438 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
4439
6eea8e0d
UD
4440 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
4441 reqdata.
4442
987f54c6
UD
4443 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
4444 change: don't pass NULL in place of an integer.
4445
3dc08a7e
UD
44462007-02-02 Bruno Haible <bruno@clisp.org>
4447
06c17c78
UD
4448 [BZ #3954]
4449 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
4450 Add mapping for U+327E.
4451 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
4452 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4453 mapping of 0xD9 0xE8.
4454 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
4455 mapping of U+327E.
4456 Reported by Jungshik Shin <jungshik@google.com>.
4457
4458 [BZ #3955]
3dc08a7e
UD
4459 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4460 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
4461 Reported by Jungshik Shin <jungshik@google.com>.
4462
a810e68c
UD
44632007-02-14 Ulrich Drepper <drepper@redhat.com>
4464
4465 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
4466 byte variants.
4467
4468 [BZ #4040]
4469 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
4470 byte variants. Patch mostly be tom@tommay.net.
4471
05f135ba
UD
44722007-02-14 Jakub Jelinek <jakub@redhat.com>
4473
4474 [BZ #3996]
4475 * posix/glob.c (attribute_hidden): Define if not defined.
4476 (glob): Unescape dirname, filename or username when needed and not
4477 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
4478 is NULL. Handle unescaped [ in pattern without closing ].
4479 Don't pass GLOB_CHECK down to recursive glob for directories.
4480 (__glob_pattern_type): New function.
4481 (__glob_pattern_p): Implement using __glob_pattern_type.
4482 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4483 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4484 Remove unreachable code.
4485 * posix/globtest.sh: Add a couple of new tests.
4486
2f699967
UD
44872007-02-13 Ulrich Drepper <drepper@redhat.com>
4488
4489 * po/ru.po: Update from translation team.
4490
3a7cd5b4
JJ
44912007-02-12 Jakub Jelinek <jakub@redhat.com>
4492
4493 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
4494 to the list of i486+ CPUs.
4495 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4496
2f978feb
UD
44972007-02-12 Ulrich Drepper <drepper@redhat.com>
4498
4499 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
4500 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
4501 references.
4502
2bbb7d5b
UD
45032007-02-09 Ulrich Drepper <drepper@redhat.com>
4504
5ed61e0f
UD
4505 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
4506
2bbb7d5b
UD
4507 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
4508 * resolv/res_mkquery.c: Define __res_nopt.
4509 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
4510 try adding EDNS0 record.
4511 * resolv/res_send.c (send_dg): If request failed with FORMERR and
4512 EDNS0 record was send make sure we don't try it again.
4513 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
4514 * include/resolv.h: Declare __res_nopt.
4515
00458b5b
UD
45162007-02-08 Jakub Jelinek <jakub@redhat.com>
4517
4518 [BZ #3944]
4519 * time/strptime_l.c (__strptime_internal): Set have_mon for
4520 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
4521 have been computed from tm_yday and tm_year. Don't crash
4522 in day_of_the_week or day_of_the_year if not have_mon
4523 and tm_mon contains bogus value.
4524 * time/Makefile (tests): Add tst-strptime3.
4525 * time/tst-strptime3.c: New test.
4526
784aacea
UD
45272007-02-05 Jakub Jelinek <jakub@redhat.com>
4528
4529 [BZ #3957]
4530 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
4531 bit for RE_HAT_LISTS_NOT_NEWLINE.
4532 (build_charclass_op): Remove bogus comment.
4533 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
4534 * posix/bug-regex27.c: New test.
4535 * posix/bug-regex28.c: New test.
4536
bf7a2463
UD
45372007-02-03 Ulrich Drepper <drepper@redhat.com>
4538
4539 * po/sv.po: Update from translation team.
4540
f2ccf983
UD
45412007-02-02 Ulrich Drepper <drepper@redhat.com>
4542
4543 * nscd/nscd_helper.c (open_socket): Minor size optimization.
4544
73f50d5a
UD
45452007-02-02 Jakub Jelinek <jakub@redhat.com>
4546
4547 * include/locale.h (__uselocale): Add libc_hidden_proto.
4548 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
4549
f6bf9e59
JJ
4550 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
4551 gettimeofday.
4552
4a44ce79
UD
45532007-02-01 Ulrich Drepper <drepper@redhat.com>
4554
4555 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
4556 returning.
4557 (PTR_DEMANGLE): Real definition now that it's not the same as
4558 PRT_MANGLE anymore.
4559 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4560
4561 * string/strerror_l.c: New file.
4562 * string/Makefile (routines): Add strerror_l.
4563 * string/string.h: Declare strerror_l.
4564 * string/Versions: Export strerror_l for GLIBC_2.6.
4565
58a2d52e
UD
45662007-01-31 Ulrich Drepper <drepper@redhat.com>
4567
4568 * nscd/nscd_helper.c (open_socket): Now takes request type and key
4569 as parameter. Construct request record. Try sending request
4570 before the first poll use, it usually succeeds. Adjust all
4571 callers.
4572 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 4573 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 4574
1a77d37f
JJ
45752007-01-31 Jakub Jelinek <jakub@redhat.com>
4576
4577 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
4578 from return value.
4579 * nscd/nscd_helper.c: Include string.h.
4580 (__nscd_cache_search): Remove const qualifier from return value.
4581 On strict alignment architectures check hash entry and data head
4582 alignment.
4583 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
4584 mmapped data during GC cycle contains garbage. If
4585 __nscd_drop_map_ref fails, decrement mapped->counter when returning
4586 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
4587 dropped to 0.
4588 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4589 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4590 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4591 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4592 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4593
ee314200
UD
45942007-01-30 Ulrich Drepper <drepper@redhat.com>
4595
4596 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
4597
14c8bf3b
UD
45982007-01-26 Ulrich Drepper <drepper@redhat.com>
4599
4600 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
4601 names not numbers in cfi_*.
4602
d2708e67
AJ
46032007-01-26 Andreas Jaeger <aj@suse.de>
4604
4605 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 4606 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
4607 Correct values of PER_HPUX and PER_OSF4.
4608
7fbc8784
UD
46092007-01-24 Ulrich Drepper <drepper@redhat.com>
4610
8aaf53ee 4611 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
4612 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
4613 * malloc/mtrace.c: Revert last change.
4614 * posix/wordexp.c: Likewise.
4615
9d6cde3d
UD
46162007-01-24 Jakub Jelinek <jakub@redhat.com>
4617
4618 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
4619 and __geode__ to the list of i486+ CPUs.
4620 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4621
c1f0486a
UD
46222007-01-23 Ulrich Drepper <drepper@redhat.com>
4623
4624 * stdio-common/_itoa.c: Include <limits.h>.
4625 * stdio-common/_itowa.c: Likewise.
4626
6cae3957
UD
46272007-01-22 Ulrich Drepper <drepper@redhat.com>
4628
765bbb24
UD
4629 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
4630 platforms.
4631 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
4632 64-bit platforms.
4633 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
4634 possible.
4635 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
4636 if possible.
4637
6cae3957
UD
4638 [BZ #3902]
4639 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
4640 * stdio-common/Makefile (tests): Add bug17.
4641 * stdio-common/bug17.c: New file.
4642
ddaafd04
UD
46432007-01-19 Ulrich Drepper <drepper@redhat.com>
4644
4645 * iconvdata/brf.c: New file.
439201de
UD
4646 * iconvdata/testdata/BRF: New file.
4647 * iconvdata/testdata/BRF..UTF8: New file.
4648 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
4649 * iconvdata/Makefile: Add rules to build BRF.
4650 * iconvdata/TESTS: Add BRF entry.
4651 * iconvdata/gconv-modules: Likewise.
4652 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 4653
9e6e344e
UD
46542007-01-18 Anton Nikishaev <anton.nik@gmail.com>
4655
4656 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
4657 type `long long int', not `long int'.
4658 (wcstoq): Likewise.
4659
299f7b0f
UD
46602007-01-18 Ulrich Drepper <drepper@redhat.com>
4661
4662 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
4663 of values on 64-bit platforms which are too large.
4664
cd8127cc
JJ
46652007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
4666 Joe Kerian <jkerian@us.us.ibm.com>
4667
4668 [BZ #2749]
4669 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
4670 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
4671 (__copysignl): Use signbit() for comparison.
4672 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
4673 SET_LDOUBLE_WORDS64.
4674
4675 [BZ #2423, #2749]
4676 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
4677 (__ceill): Remove calls to fegetround(), fesetround().
4678 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4679 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4680 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4681
b3acfdf7
JJ
46822007-01-17 Jakub Jelinek <jakub@redhat.com>
4683
4a2e03c6
JJ
4684 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
4685
b3acfdf7
JJ
4686 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
4687
1476bce6
UD
46882007-01-17 Ulrich Drepper <drepper@redhat.com>
4689
4690 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
4691 demangle pointer.
4692 * csu/libc-start.c: Likewise.
4693
d78bce1c
UD
46942007-01-16 Ulrich Drepper <drepper@redhat.com>
4695
4696 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
4697 really work anyway.
4698
1bd79025
UD
46992007-01-15 Ulrich Drepper <drepper@redhat.com>
4700
000b027e
UD
4701 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
4702 users.
4703 (handle_request): Remove unnecessary tests.
4704
1bd79025
UD
4705 * nscd/cache.c (cache_add): Record the failure to add to the cache.
4706
d68f5d2c
JJ
47072007-01-15 Jakub Jelinek <jakub@redhat.com>
4708
4709 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
4710 workbits in semi-raw fraction.
4711
4712 * math/test-misc.c: Add new tests.
4713
47142007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
4715
4716 * math/basic-test.c: Include test-skeleton.c.
4717 (TEST_TRUNC): Define.
4718 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
4719 (main): Rename to ...
4720 (do_test): ...this. Run new tests.
4721 (TEST_FUNCTION): Define.
4722
47232006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
4724 Joe Kerian <jkerian@us.us.ibm.com>
4725
4726 [BZ #2749]
4727 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
4728 handling for high words.
4729 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
4730 and overflow for infinity.
4731
4e35ef2c
UD
47322007-01-15 Ulrich Drepper <drepper@redhat.com>
4733
2a1dea97
UD
4734 * nscd/connections.c (handle_request): Add a __builtin_expect.
4735
9691d83c
UD
4736 * nscd/connections.c (serv2db): Change type into structure which
4737 also says whether this is a request for data. Renamed to
4738 servinfo. All users changed.
4739 (handle_request): Much simpler test whether we should search the cache.
4740
49ee6d79
UD
4741 * nscd/connections.c (handle_request): Fix thinko in selinux test
4742 invocation.
4743
4e35ef2c
UD
4744 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
4745 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
4746 it before getting dl_load_lock and then relock.
4747 (_dl_lookup_symbol_x): Pass flags to add_dependency.
4748 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
4749 case we unlocked the scope.
4750 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
4751 _dl_lookup_symbol_x in case we locked the scope.
4752 (_dl_profile_fixup): Likewise.
4753 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
4754 set DL_LOOKUP_SCOPE_LOCK.
4755
23691ab2
UD
47562007-01-13 Ulrich Drepper <drepper@redhat.com>
4757
fb453d08
UD
4758 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
4759 CFLAGS-getsrvbynpt_r.c.
4760 * nscd/getsrvbynm_r.c: New file.
4761 * nscd/getsrvbypt_r.c: New file.
4762 * nscd/nscd_getserv_r.c: New file.
4763 * nscd/servicescache.c: New file.
4764 * nscd/Makefile (routines): Add nscd_getserv_r.
4765 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
4766 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
4767 CFLAGS-getsrvbypt_r.c.
4768 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
4769 table. Add entries for services database.
4770 * nscd/connections.c (serv2str): Mark as const. Add entries for
4771 services database.
4772 (dbs): Add .reset_res and servdb initialization.
4773 (serv2db): Add entries for services database.
4774 (verify_persistent_db): Accept dbnr == servdb.
4775 (invalidate_cache): Rewrite database name recognition to use a table.
4776 Call res_init() if .reset_res is set for database.
4777 (handle_request): Add code to handle services database.
4778 * nscd/gai.c: Don't define __getservbyname_r.
4779 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
4780 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
4781 (serv_response_header): Define.
4782 (struct datahead): Add serv_response_header member.
4783 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
4784 using table.
4785 * nscd/nscd.conf: Add entries for services database.
4786 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
4787 Declare serv_iov_disabled.
4788 Declare addservbyname, readdservbyname, addservbyport, and
4789 readdservbyport.
4790 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
4791 (find_db): Fix error message.
4792 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
4793 __nscd_getservbyname_r, and __nscd_getservbyport_r.
4794 * nscd/selinux.c (perms): Add entries for services database.
4795 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
4796 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
4797
4798 * nscd/grpcache.c: Remove obsolete code. Cleanups.
4799 * nscd/hstcache.c: Likewise.
4800 * nscd/pwdcache.c: Likewise.
4801
b21fa963
UD
4802 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
4803 computation of keylen.
4804
23691ab2
UD
4805 * include/string.h: Only redefine strndupa if this is really for
4806 libc code.
4807
8980796b
UD
48082007-01-12 Ulrich Drepper <drepper@redhat.com>
4809
4a4a65f2
UD
4810 * nscd/nscd_gethst_r.c: Minor cleanups.
4811
43397eaf
UD
4812 * nscd/connections.c (handle_request): Check selinux permissions
4813 for all non-admin commands.
4814
038a1a9f
UD
4815 * sysdeps/i386/i486/bits/atomic.h: Define
4816 atomic_compare_and_exchange_val_acq,
4817 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
4818 using __sync_* built-ins for gcc >= 4.1.
4819 * sysdeps/x86_64/bits/atomic.h: Likewise.
4820
8980796b
UD
4821 [BZ #3840]
4822 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
4823 and .oS.d files.
4824
32c075e1
JJ
48252007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
4826
4827 * stdlib/tst-makecontext.c: Include errno.h. Change main()
4828 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
4829 (do_test): Check errno and exit(0) if ENOSYS.
4830
48312007-01-11 Jakub Jelinek <jakub@redhat.com>
4832
4833 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
4834 thousands separators.
4835 * stdlib/Makefile: Add rules to build and run tst-strtod4.
4836 * stdlib/tst-strtod4.c: New test.
4837
4838 [BZ #3855]
4839 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
4840 hexadecimal digit should accept just the initial 0.
4841 * stdlib/tst-strtod2.c (tests): New variable.
4842 (do_test): Run several tests rather than just one.
4843
11bf311e 48442007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 4845
11bf311e
UD
4846 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
4847 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 4848
11bf311e 48492007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 4850
11bf311e
UD
4851 * io/fts.c: Make sure fts_cur is always valid after return from
4852 fts_read.
4853 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 4854
11bf311e 48552006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 4856
11bf311e
UD
4857 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
4858 (R_MIPS_NUM): Bump by 1.
32c075e1 4859
11bf311e 48602007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 4861
11bf311e
UD
4862 * posix/execvp.c: Include alloca.h.
4863 (allocate_scripts_argv): Renamed to...
4864 (scripts_argv): ... this. Don't allocate buffer here nor count
4865 arguments.
4866 (execvp): Use alloca if possible.
4867 * posix/Makefile: Add rules to build and run tst-vfork3 test.
4868 * posix/tst-vfork3.c: New test.
32c075e1
JJ
4869
48702007-01-03 Ulrich Drepper <drepper@redhat.com>
4871
4872 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 4873 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 4874
11bf311e 48752007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 4876
11bf311e
UD
4877 * posix/getconf.c: Update copyright year.
4878 * nss/getent.c: Likewise.
4879 * iconv/iconvconfig.c: Likewise.
4880 * iconv/iconv_prog.c: Likewise.
4881 * elf/ldconfig.c: Likewise.
4882 * catgets/gencat.c: Likewise.
4883 * csu/version.c: Likewise.
4884 * elf/ldd.bash.in: Likewise.
4885 * elf/sprof.c (print_version): Likewise.
4886 * locale/programs/locale.c: Likewise.
4887 * locale/programs/localedef.c: Likewise.
4888 * nscd/nscd.c (print_version): Likewise.
4889 * debug/xtrace.sh: Likewise.
4890 * malloc/memusage.sh: Likewise.
4891 * malloc/mtrace.pl: Likewise.
4892 * debug/catchsegv.sh: Likewise.
64a0aa0f 4893
11bf311e 48942006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 4895
11bf311e
UD
4896 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
4897 attempts.
48576885 4898
11bf311e 48992006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 4900
11bf311e 4901 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 4902
33c6de58
UD
49032006-12-22 Gavin Romig-Koch <gavin@redhat.com>
4904
4905 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
4906 blacklist the group till after we look it up.
4907
fc242bef
UD
49082006-12-21 Ulrich Drepper <drepper@redhat.com>
4909
4910 * include/atomic.h (atomic_forced_read): New macro.
4911
11bf311e
UD
49122006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4913
4914 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
4915
a12dcecc
UD
49162006-12-19 Jakub Jelinek <jakub@redhat.com>
4917
11bf311e
UD
4918 * nss/getXXbyYY_r.c: Include atomic.h.
4919 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
4920 add atomic_write_barrier () in between.
4921
a12dcecc
UD
4922 * stdlib/Makefile (tests): Add tst-makecontext.
4923 * stdlib/tst-makecontext.c: New test.
4924
4925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
4926 (__makecontext): Don't realign uc_mcontext.uc_regs.
4927
11bf311e 49282006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 4929
11bf311e
UD
4930 * elf/dl-support.c: Include dl-procinfo.h.
4931 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
4932 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
4933 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
4934 Define.
4935 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
4936 hardcoded constants.
4937 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
4938 PPC_PLATFORM_* macros for array designators.
594d423a 4939
11bf311e 49402006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 4941
11bf311e
UD
4942 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
4943 names to the beginning.
4944 (_dl_powerpc_platforms): Add "power6x".
4945 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4946 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
4947 (_DL_PLATFORMS_COUNT): Increase.
4948 (_dl_string_platform): Handle power6x case.
4949 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
4950 PPC_FEATURE_POWER6_EXT): Define.
4951 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 4952
5bcba0ed
UD
49532006-12-18 Jakub Jelinek <jakub@redhat.com>
4954
4955 [BZ #3747]
4956 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 4957 [-2^31 .. 2^31) range.
5bcba0ed
UD
4958 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
4959 targets.
4960 * stdlib/tst-rand48-2.c: New test.
4961 * stdlib/Makefile (tests): Add tst-rand48-2.
4962
9e1444fc
UD
49632006-12-14 Jakub Jelinek <jakub@redhat.com>
4964
4965 * misc/tst-pselect.c (do_test): Fix sigblock argument.
4966
36775704
UD
49672006-12-14 Ulrich Drepper <drepper@redhat.com>
4968
4969 * misc/tst-pselect.c (do_test): Make sure the helper process is
4970 terminating when the test is aborted.
4971
1e88bd0f
UD
49722006-12-13 Ulrich Drepper <drepper@redhat.com>
4973
11bf311e
UD
4974 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
4975 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4976 Handle relatime mount option.
4977
1e88bd0f
UD
4978 [BZ #2337]
4979 * libio/Makefile (tests): Add tst-setvbuf1.
4980 * libio/tst-setvbuf1.c: New file.
4981
49822006-12-08 Jakub Jelinek <jakub@redhat.com>
4983
4984 [BZ #2337]
4985 * libio/genops.c (__uflow): Fix a typo.
4986 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
4987 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
4988 the narrow buffer size.
4989
49902006-11-24 Jakub Jelinek <jakub@redhat.com>
4991
4992 [BZ #2337]
4993 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
4994 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
4995 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
4996 in _flags.
4997 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
4998 _IO_wstr_finish): Likewise.
4999 * libio/wmemstream.c (open_wmemstream): Likewise.
5000 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
5001 even for wide streams.
5002
11bf311e 50032006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 5004
11bf311e
UD
5005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
5006 kernel-features.h.
5007
50082006-12-11 Ulrich Drepper <drepper@redhat.com>
5009
5010 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
5011 separators also if no non-zero digits found.
5012 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 5013
d117c1ce
UD
50142006-12-09 Ulrich Drepper <drepper@redhat.com>
5015
f85fb97b
UD
5016 [BZ #3632]
5017 * include/features.h: Fix comment about default value for
5018 _POSIX_C_SOURCE.
5019
11bf311e
UD
5020 [BZ #3664]
5021 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
5022 empty parsed strings.
5023 * stdlib/Makefile (tests): Add tst-strtod2.
5024 * stdlib/tst-strtod2.c: New file.
5025
5026 [BZ #3673]
5027 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
5028 computation.
5029 * stdlib/Makefile (tests): Add tst-atof2.
5030 * stdlib/tst-atof2.c: New file.
5031
5032 [BZ #3674]
5033 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
5034 correctly if removing trailing zero of hex-float.
5035 * stdlib/Makefile (tests): Add tst-atof1.
5036 * stdlib/tst-atof1.c: New file.
5037
a822d9f4
UD
50382006-12-09 Jakub Jelinek <jakub@redhat.com>
5039
11bf311e
UD
5040 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
5041 Start searching for next comma at p rather than rest.
5042 * misc/Makefile (tests): Add tst-mntent2.
5043 * misc/tst-mntent2.c: New test.
5044
a822d9f4
UD
5045 * misc/getusershell.c (initshells): Check for integer overflows.
5046 Make strings buffer one bigger as fgets always succeeds when second
5047 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 5048 / as shell.
f0d5e1f6 5049
11bf311e 50502006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 5051
11bf311e
UD
5052 * malloc/memusage.c: Handle realloc with new size of zero and
5053 non-NULL pointer correctly.
5054 (me): Really write first record twice.
5055 (struct entry): Make format bi-arch safe.
5056 (dest): Write out more realloc statistics.
5057 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 5058
11bf311e 50592006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 5060
11bf311e 5061 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 5062
f0d5e1f6
UD
50632006-12-04 Jakub Jelinek <jakub@redhat.com>
5064
5065 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
5066 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
5067 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
5068 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
5069 ENOTTY.
5070 * io/Makefile: Add rules to build and run tst-ttyname_r test.
5071 * io/tst-ttyname_r.c: New test.
5072
11bf311e 50732006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 5074
11bf311e 5075 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 5076
11bf311e 50772006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 5078
11bf311e
UD
5079 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
5080 jump table entries.
5081
50822006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
5085 `clone' function to ensure proper unwinding stop of gdb.
5086 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5087
50882006-12-01 Ulrich Drepper <drepper@redhat.com>
5089
5090 * nscd/nscd.init: Remove obsolete and commented-out -S option
5091 handling.
5092
50932006-11-23 Jakub Jelinek <jakub@redhat.com>
5094
5095 [BZ #3514]
5096 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
5097
5098 [BZ #3515]
5099 * manual/string.texi (strtok): Remove duplicate paragraph.
5100
51012006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5102
5103 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
5104 libgcc not supporting `rflags' unwinding (register # >= 17).
5105
51062006-11-30 Jakub Jelinek <jakub@redhat.com>
5107
5108 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
5109 succeeded.
5110
51112006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
5112 Jakub Jelinek <jakub@redhat.com>
5113 Jan Kratochvil <jan.kratochvil@redhat.com>
5114
5115 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
5116 unwind information.
5117 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
5118 'restore_rt' even in the 'signal' directory.
5119 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 5120
b1a758f3
UD
51212006-11-27 Jakub Jelinek <jakub@redhat.com>
5122
5123 [BZ #3559]
5124 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
5125 malloc crashed. Don't allocate memory unnecessarily in each
5126 loop.
b1a758f3 5127
11bf311e 51282006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 5129
11bf311e 5130 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 5131
11bf311e 51322006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 5133
11bf311e 5134 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 5135
11bf311e 51362006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 5137
11bf311e
UD
5138 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
5139 __sysconf only after having tried to call getgroups32.
36c0a636 5140
11bf311e 51412006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 5142
11bf311e
UD
5143 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
5144 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 5145
11bf311e 51462006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 5147
11bf311e
UD
5148 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
5149 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
5150 (signmask): Add .size directive.
5151 (othermask): Add .type directive.
bef8927a 5152
11bf311e 51532006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 5154
11bf311e 5155 * po/nl.po: Update from translation team.
854d1124 5156
11bf311e 5157 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 5158
11bf311e 51592006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 5160
11bf311e
UD
5161 * nss/nss_files/files-alias.c (get_next_alias): Set line back
5162 to first_unused after parsing :include: file.
5c2af134 5163
32c075e1 51642006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 5165
11bf311e
UD
5166 * timezone/africa: Update from tzdata2006o.
5167 * timezone/antarctica: Likewise.
5168 * timezone/asia: Likewise.
5169 * timezone/australasia: Likewise.
5170 * timezone/backward: Likewise.
5171 * timezone/europe: Likewise.
5172 * timezone/iso3166.tab: Likewise.
5173 * timezone/northamerica: Likewise.
5174 * timezone/southamerica: Likewise.
5175 * timezone/zone.tab: Likewise.
5176
5177 * time/tzfile.c (__tzfile_read): Extend to handle new file format
5178 on machines with 64-bit time_t.
5179
5180 * timezone/checktab.awk: Update from tzcode2006o.
5181 * timezone/ialloc.c: Likewise.
5182 * timezone/private.h: Likewise.
5183 * timezone/scheck.c: Likewise.
5184 * timezone/tzfile.h: Likewise.
5185 * timezone/tzselect.ksh: Likewise.
5186 * timezone/zdump.c: Likewise.
5187 * timezone/zic.c: Likewise.
5188
5189 [BZ #3483]
5190 * elf/ldconfig.c (main): Call setlocale and textdomain.
5191 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5192
5193 [BZ #3480]
5194 * manual/argp.texi: Fix typos.
5195 * manual/charset.texi: Likewise.
5196 * manual/errno.texi: Likewise.
5197 * manual/filesys.texi: Likewise.
5198 * manual/lang.texi: Likewise.
5199 * manual/maint.texi: Likewise.
5200 * manual/memory.texi: Likewise.
5201 * manual/message.texi: Likewise.
5202 * manual/resource.texi: Likewise.
5203 * manual/search.texi: Likewise.
5204 * manual/signal.texi: Likewise.
5205 * manual/startup.texi: Likewise.
5206 * manual/stdio.texi: Likewise.
5207 * manual/sysinfo.texi: Likewise.
5208 * manual/syslog.texi: Likewise.
5209 * manual/time.texi: Likewise.
5210 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5211
5212 [BZ #3465]
5213 * sunrpc/clnt_raw.c: Minimal message improvements.
5214 * sunrpc/pm_getmaps.c: Likewise.
5215 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5216 * nis/nis_print_group_entry.c: Likewise.
5217 * locale/programs/repertoire.c: Likewise.
5218 * locale/programs/charmap.c: Likewise.
5219 * malloc/memusage.sh: Likewise.
5220 * elf/dl-deps.c: Likewise.
5221 * locale/programs/ld-collate.c: Likewise.
5222 * libio/vswprintf.c: Likewise.
5223 * malloc/memusagestat.c: Likewise.
5224 * sunrpc/auth_unix.c: Likewise.
5225 * sunrpc/rpc_main.c: Likewise.
5226 * nscd/cache.c: Likewise.
5227 * locale/programs/repertoire.c: Unify output messages.
5228 * locale/programs/charmap.c: Likewise.
5229 * locale/programs/ld-ctype.c: Likewise.
5230 * locale/programs/ld-monetary.c: Likewise.
5231 * locale/programs/ld-numeric.c: Likewise.
5232 * locale/programs/ld-time.c: Likewise.
5233 * elf/ldconfig.c: Likewise.
5234 * nscd/selinux.c: Likewise.
5235 * elf/cache.c: Likewise.
5236 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5237
5c2af134
UD
5238 [BZ #3451]
5239 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
5240 change atomic.
5241 (ceil): Likewise.
5242
11bf311e
UD
52432006-11-10 Jakub Jelinek <jakub@redhat.com>
5244
5245 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
5246 if N is one bigger than return value.
5247 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
5248 and l1 last arguments, if buf is defined, verify the return value
5249 equals to strlen (buf) and verify no byte beyond passed length
5250 is modified.
5251
52522006-11-10 Ulrich Drepper <drepper@redhat.com>
5253
5254 * po/sv.po: Update from translation team.
5255
37afcf79
UD
52562006-11-09 Ulrich Drepper <drepper@redhat.com>
5257
5258 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
5259 noinline attribute.
5260
52612006-11-10 Jakub Jelinek <jakub@redhat.com>
5262
5263 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
5264 noinline attribute.
5265
11bf311e
UD
5266 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
5267 Use __new_sys_siglist instead of _sys_siglist_internal as
5268 second macro argument.
5269 (_old_sys_siglist): Use declare_symbol_alias macro instead of
5270 strong_alias.
2692deea 5271
11bf311e
UD
52722006-11-09 Ulrich Drepper <drepper@redhat.com>
5273
5274 [BZ #3493]
5275 * posix/unistd.h (sysconf): Remove const attribute.
5276
5277 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
5278 temporary or deprecated addresses.
5279 Patch by Sridhar Samudrala <sri@us.ibm.com>.
5280
5281 * string/Makefile (tests): Add tst-strxfrm2.
5282 * string/tst-strxfrm2.c: New file.
5283
52842006-10-09 Jakub Jelinek <jakub@redhat.com>
5285
5286 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
5287 rather than r->r_brk.
2692deea
UD
5288
52892006-11-08 Jakub Jelinek <jakub@redhat.com>
5290
11bf311e
UD
5291 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
5292 optimization even if needed > n.
5293
2692deea
UD
5294 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
5295 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
5296 return false, otherwise return true.
5297 (cache_rpath): Return decompose_rpath return value.
5298
11bf311e
UD
52992006-11-07 Jakub Jelinek <jakub@redhat.com>
5300
5301 * include/libc-symbols.h (declare_symbol): Rename to...
5302 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
5303 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
5304 .size directive.
5305 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
5306 changes.
5307 * sysdeps/gnu/siglist.c: Likewise.
5308
53092006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
5310
5311 * sysdeps/powerpc/fpu/bits/mathinline.h
5312 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
5313 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
5314
53152006-11-05 Ulrich Drepper <drepper@redhat.com>
5316
5317 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
5318 Update handling of cache descriptor 0x49 for new models.
5319 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
5320 Likewise.
5321
9666e36c
UD
53222006-11-02 Jakub Jelinek <jakub@redhat.com>
5323
5324 * malloc/memusage.c (dest): Reset not_me back to false after
5325 printing statistics.
5326
11bf311e
UD
53272006-11-02 Ulrich Drepper <drepper@redhat.com>
5328
5329 * configure.in: Work around ld --help change and avoid -z relro
5330 test completely if the architecture doesn't care about security.
5331
53322006-11-01 Ulrich Drepper <drepper@redhat.com>
5333
5334 * po/sv.po: Update from translation team.
5335
53362006-10-31 Ulrich Drepper <drepper@redhat.com>
5337
5338 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
5339 generate compatibility version.
5340
53412006-10-29 Ulrich Drepper <drepper@redhat.com>
5342
5343 * configure.in: Relax -z relro requirement a bit.
5344
5345 * po/sv.po: Update from translation team.
5346
53472006-10-29 Jakub Jelinek <jakub@redhat.com>
5348
5349 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
5350 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
5351 * elf/dl-close.c (_dl_close_worker): Likewise.
5352 * elf/dl-open.c (_dl_open_worker): Likewise.
5353 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
5354
b2369ca3
UD
53552006-10-27 Ulrich Drepper <drepper@redhat.com>
5356
11bf311e
UD
5357 * configure.in: Require assembler support for visibility, compiler
5358 support for visibility and aliases, linker support for various -z
5359 options.
5360 * Makeconfig: Remove conditional code which now is unnecessary.
5361 * config.h.in: Likewise.
5362 * config.make.in: Likewise.
5363 * dlfcn/Makefile: Likewise.
5364 * elf/Makefile: Likewise.
5365 * elf/dl-load.c: Likewise.
5366 * elf/rtld.c: Likewise.
5367 * include/libc-symbols.h: Likewise.
5368 * include/stdio.h: Likewise.
5369 * io/Makefile: Likewise.
5370 * io/fstat.c: Likewise.
5371 * io/fstat64.c: Likewise.
5372 * io/fstatat.c: Likewise.
5373 * io/fstatat64.c: Likewise.
5374 * io/lstat.c: Likewise.
5375 * io/lstat64.c: Likewise.
5376 * io/mknod.c: Likewise.
5377 * io/mknodat.c: Likewise.
5378 * io/stat.c: Likewise.
5379 * io/stat64.c: Likewise.
5380 * libio/stdio.c: Likewise.
5381 * nscd/Makefile: Likewise.
5382 * stdlib/Makefile: Likewise.
5383 * stdlib/atexit.c: Likewise.
5384 * sysdeps/generic/ldsodefs.h: Likewise.
5385 * sysdeps/i386/dl-machine.h: Likewise.
5386 * sysdeps/i386/sysdep.h: Likewise.
5387 * sysdeps/i386/i686/memcmp.S: Likewise.
5388 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5389 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5390 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5391
5392 * Makerules: USE_TLS support is now default.
5393 * tls.make.c: Likewise.
5394 * csu/Versions: Likewise.
5395 * csu/libc-start.c: Likewise.
5396 * csu/libc-tls.c: Likewise.
5397 * csu/version.c: Likewise.
5398 * dlfcn/dlinfo.c: Likewise.
5399 * elf/dl-addr.c: Likewise.
5400 * elf/dl-cache.c: Likewise.
5401 * elf/dl-close.c: Likewise.
5402 * elf/dl-iteratephdr.c: Likewise.
5403 * elf/dl-load.c: Likewise.
5404 * elf/dl-lookup.c: Likewise.
5405 * elf/dl-object.c: Likewise.
5406 * elf/dl-open.c: Likewise.
5407 * elf/dl-reloc.c: Likewise.
5408 * elf/dl-support.c: Likewise.
5409 * elf/dl-sym.c: Likewise.
5410 * elf/dl-sysdep.c: Likewise.
5411 * elf/dl-tls.c: Likewise.
5412 * elf/ldconfig.c: Likewise.
5413 * elf/rtld.c: Likewise.
5414 * elf/tst-tls-dlinfo.c: Likewise.
5415 * elf/tst-tls1.c: Likewise.
5416 * elf/tst-tls10.h: Likewise.
5417 * elf/tst-tls14.c: Likewise.
5418 * elf/tst-tls2.c: Likewise.
5419 * elf/tst-tls3.c: Likewise.
5420 * elf/tst-tls4.c: Likewise.
5421 * elf/tst-tls5.c: Likewise.
5422 * elf/tst-tls6.c: Likewise.
5423 * elf/tst-tls7.c: Likewise.
5424 * elf/tst-tls8.c: Likewise.
5425 * elf/tst-tls9.c: Likewise.
5426 * elf/tst-tlsmod1.c: Likewise.
5427 * elf/tst-tlsmod13.c: Likewise.
5428 * elf/tst-tlsmod13a.c: Likewise.
5429 * elf/tst-tlsmod14a.c: Likewise.
5430 * elf/tst-tlsmod2.c: Likewise.
5431 * elf/tst-tlsmod3.c: Likewise.
5432 * elf/tst-tlsmod4.c: Likewise.
5433 * elf/tst-tlsmod5.c: Likewise.
5434 * elf/tst-tlsmod6.c: Likewise.
5435 * include/errno.h: Likewise.
5436 * include/link.h: Likewise.
5437 * include/tls.h: Likewise.
5438 * locale/global-locale.c: Likewise.
5439 * locale/localeinfo.h: Likewise.
5440 * malloc/arena.c: Likewise.
5441 * malloc/hooks.c: Likewise.
5442 * malloc/malloc.c: Likewise.
5443 * resolv/Versions: Likewise.
5444 * sysdeps/alpha/dl-machine.h: Likewise.
5445 * sysdeps/alpha/libc-tls.c: Likewise.
5446 * sysdeps/generic/ldsodefs.h: Likewise.
5447 * sysdeps/generic/tls.h: Likewise.
5448 * sysdeps/i386/dl-machine.h: Likewise.
5449 * sysdeps/ia64/dl-machine.h: Likewise.
5450 * sysdeps/ia64/libc-tls.c: Likewise.
5451 * sysdeps/mach/hurd/fork.c: Likewise.
5452 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5453 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
5454 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
5455 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5456 * sysdeps/s390/libc-tls.c: Likewise.
5457 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5458 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5459 * sysdeps/sh/dl-machine.h: Likewise.
5460 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5461 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5462 * sysdeps/x86_64/dl-machine.h: Likewise.
5463
131c4428
UD
5464 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
5465 split out locking and parameter checking.
5466 (_dl_close): Call _dl_close_worker after locking and checking.
5467 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
5468 _dl_close.
ffd0e1b7
UD
5469 * elf/Makefile: Add rules to build and run tst-thrlock.
5470 * elf/tst-thrlock.c: New file.
131c4428 5471
11bf311e
UD
5472 [BZ #3426]
5473 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
5474 reality.
5475
b2369ca3
UD
5476 [BZ #3429]
5477 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 5478 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
5479 the asserts inside the lock region.
5480 Patch mostly by Suzuki <suzuki@in.ibm.com>.
5481
11bf311e
UD
54822006-10-27 Jakub Jelinek <jakub@redhat.com>
5483
5484 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
5485 argument.
5486 (_dl_lookup_symbol_x): Adjust caller.
5487
5488 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
5489 _ns_global_scope.
5490 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
5491
5492 * elf/dl-libc.c: Revert l_scope name changes.
5493 * elf/dl-load.c: Likewise.
5494 * elf/dl-object.c: Likewise.
5495 * elf/rtld.c: Likewise.
5496 * elf/dl-close.c (_dl_close): Likewise.
5497 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
5498 always use __rtld_mrlock_{change,done}. Always free old scope list
5499 here if not l_scope_mem.
5500 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
5501 change. Never free scope list here. Just __rtld_mrlock_lock before
5502 the lookup and __rtld_mrlock_unlock it after the lookup.
5503 * elf/dl-sym.c: Likewise.
5504 * include/link.h (struct r_scoperec): Remove.
5505 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
5506 with l_scope_mem and l_scoperec_lock with l_scope_lock.
5507
55082006-10-25 Ulrich Drepper <drepper@redhat.com>
5509
5510 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
5511
55122006-10-18 Ulrich Drepper <drepper@redhat.com>
5513
5514 * configure.in: Disable building profile libraries by default.
5515
609cf614
UD
55162006-10-17 Jakub Jelinek <jakub@redhat.com>
5517
5518 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
5519 as signed longs, check for x_base + pos overflow.
5520 * sunrpc/Makefile (tests): Add tst-xdrmem2.
5521 * sunrpc/tst-xdrmem2.c: New test.
5522
11bf311e
UD
55232006-10-18 Ulrich Drepper <drepper@redhat.com>
5524
5525 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
5526 _dl_lookup_symbol_x code.
5527
55282006-10-17 Jakub Jelinek <jakub@redhat.com>
5529
5530 * elf/dl-runtime.c: Include sysdep-cancel.h.
5531 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
5532 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
5533 instead of catomic_* macros.
5534 * elf/dl-sym.c: Include sysdep-cancel.h.
5535 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
5536 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
5537 * elf/dl-close.c: Include sysdep-cancel.h.
5538 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
5539 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
5540 * elf/dl-open.c: Include sysdep-cancel.h.
5541 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
5542 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
5543
55442006-10-17 Jakub Jelinek <jakub@redhat.com>
5545
5546 [BZ #3313]
5547 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
5548 fastbin rather than end of fastbin array.
5549
55502006-10-18 Ulrich Drepper <drepper@redhat.com>
5551
5552 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
5553 body macro.
5554 * sysdeps/x86_64/bits/atomic.h
5555 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
5556 (catomic_decrement): Use correct body macro.
5557
55582006-10-17 Jakub Jelinek <jakub@redhat.com>
5559
5560 * include/atomic.h: Add a unique prefix to all local variables
5561 in macros.
5562 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
5563
4a85a8ee
UD
55642006-10-16 Ulrich Drepper <drepper@redhat.com>
5565
5566 [BZ #3369]
5567 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
5568 and 7.
5569
11bf311e
UD
55702006-10-14 Ulrich Drepper <drepper@redhat.com>
5571
5572 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
5573
ff8d96be
UD
55742006-10-13 Ulrich Drepper <drepper@redhat.com>
5575
11bf311e
UD
5576 [BZ #3313]
5577 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
5578 determine highest fast bin to consolidate, always look into all of
5579 them.
5580 (do_check_malloc_state): Only require for empty bins for large
5581 sizes in main arena.
5582
5583 * libio/stdio.h: Add more __wur attributes.
5584
ff8d96be
UD
5585 * elf/dl-minimal.c (realloc): Optimize last patch.
5586
90a0991a
UD
55872006-10-12 Richard Sandiford <richard@codesourcery.com>
5588
5589 [BZ #3352]
5590 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
5591 and use memcpy() if it does.
ff8d96be 5592
11bf311e
UD
55932006-11-12 Andreas Jaeger <aj@suse.de>
5594
5595 [BZ #2510]
5596 * manual/search.texi (Hash Search Function): Clarify.
5597 (Array Search Function): Clarify.
5598
55992006-11-12 Joseph Myers <joseph@codesourcery.com>
5600
5601 [BZ #2830]
5602 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
5603 shifting.
5604 * math/atest-exp2.c (read_mpn_hex): Likewise.
5605 * math/atest-sincos.c (main): Likewise.
5606
37fb7595
UD
56072006-10-11 Ulrich Drepper <drepper@redhat.com>
5608
11bf311e
UD
5609 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
5610 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
5611 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
5612 version GLIBC_2.6.
5613 * Versions.def: Add GLIBC_2.6 for libc.
5614
46c38bd7
UD
5615 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
5616
11bf311e
UD
5617 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
5618
56192006-10-11 Jakub Jelinek <jakub@redhat.com>
5620
5621 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
5622
5623 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
5624
5625 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
5626 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
5627
56282006-10-11 Ulrich Drepper <drepper@redhat.com>
5629
5630 * include/atomic.c: Define catomic_* operations.
5631 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
5632 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
5633 * malloc/memusage.c: Likewise.
5634 * gmon/mcount.c: Likewise.
5635 * elf/dl-close.c: Likewise.
5636 * elf/dl-open.c: Likewise.
5637 * elf/dl-profile.c: Likewise.
5638 * elf/dl-sym.c: Likewise.
5639 * elf/dl-runtime.c: Likewise.
5640 * elf/dl-fptr.c: Likewise.
5641 * resolv/res_libc.c: Likewise.
5642
2a6ee549
UD
56432006-10-10 Ulrich Drepper <drepper@redhat.com>
5644
5645 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
5646 components which lack them.
5647
5648 * nis/nis_subr.c (nis_getnames): Make sure that we always return
5649 at least one entry consisting of the parameter concatenated with
5650 the domain.
5651
11bf311e 56522006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 5653
11bf311e
UD
5654 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
5655 * sysdeps/mach/hurd/futimes.c: Likewise.
5656 * sysdeps/mach/hurd/lutimes.c: Likewise.
5657
56582006-10-09 Ulrich Drepper <drepper@redhat.com>
5659 Jakub Jelinek <jakub@redhat.com>
5660
5661 Implement reference counting of scope records.
5662 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
5663 from the list in objects which remain. Always allocate new scope
5664 record.
5665 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
5666 don't resize, allocate a new one.
5667 * elf/dl-runtime.c: Update reference counters before using a scope
5668 array.
5669 * elf/dl-sym.c: Likewise.
5670 * elf/dl-libc.c: Adjust for l_scope name change.
5671 * elf/dl-load.c: Likewise.
5672 * elf/dl-object.c: Likewise.
5673 * elf/rtld.c: Likewise.
5674 * include/link.h: Include <rtld-lowlevel.h>. Define struct
5675 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
5676 Add l_scoperec_lock.
5677 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
5678 * sysdeps/generic/rtld-lowlevel.h: New file.
5679
5680 * include/atomic.h: Rename atomic_and to atomic_and_val and
5681 atomic_or to atomic_or_val. Define new macros atomic_and and
5682 atomic_or which do not return values.
5683 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
5684 Various cleanups.
5685 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5686
5687 * po/sv.po: Update from translation team.
5688
56892006-10-07 Ulrich Drepper <drepper@redhat.com>
5690
5691 * Versions.def: Add GLIBC_2.6 to libpthread.
5692
5693 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
5694 (versioned_symbol): Likewise.
5695 (compat_symbol): Likewise.
5696
5697 * po/tr.po: Update from translation team.
feb87ad1 5698
4df92d57
UD
56992006-10-06 Ulrich Drepper <drepper@redhat.com>
5700
11bf311e
UD
5701 * nis/Banner: Removed. It's been integral part forever and the
5702 author info is incomplete anyway.
5703 * libio/Banner: Likewise.
5704
4df92d57
UD
5705 * nis/nis_table.c (nis_list): If __follow_path fails in the new
5706 code, make sure the nis_freeresult call doesn't crash and that the
5707 result is reported correctly.
5708
68361572
UD
57092006-09-27 Jakub Jelinek <jakub@redhat.com>
5710
5711 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
5712 when callback is NULL.
5713
5714 * nis/Versions (libnss_nisplus): Add
5715 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
5716 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
5717 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
5718 _nss_create_tablename): Rename to...
5719 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
5720 ... these. No longer static.
5721 (internal_setgrent): Adjust users.
5722 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5723 Don't use locking around _nss_grp_create_tablename call.
5724 * nis/nss_nisplus/nisplus-initgroups.c: New file.
5725
11bf311e
UD
57262006-10-06 Ulrich Drepper <drepper@redhat.com>
5727
5728 * version.h (VERSION): Bump to 2.5.90 for new development tree.
5729
3a4e0609
UD
57302006-10-06 Andreas Jaeger <aj@suse.de>
5731
5732 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
5733
57342006-10-06 Ulrich Drepper <drepper@redhat.com>
5735
5736 * po/pl.po: Update from translation team.
5737
5738 * nscd/nscd.c (main): Fix typo in message.
5739 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
5740
97e57dee
UD
57412006-10-02 Jakub Jelinek <jakub@redhat.com>
5742
5743 [BZ #3291]
5744 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5745 errno.h, signal.h, unistd.h and sysdep-cancel.h.
5746 (__sigprocmask): Define.
5747
768027a4
UD
57482006-10-02 Ulrich Drepper <drepper@redhat.com>
5749
5750 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
5751 used.
5752
0b25a49a
UD
57532006-10-02 Jakub Jelinek <jakub@redhat.com>
5754
5755 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
5756 in oldtotal and newtotal calculation.
5757 * nscd/nscd-client.h (struct mapped_database): Add datasize
5758 field.
5759 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
5760 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
5761 increased.
5762 (__nscd_cache_search): Add checks to make sure we never reference
5763 data beyond the current mapping.
5764
a1286745
UD
57652006-10-02 Dmitry V. Levin <ldv@altlinux.org>
5766
d4ed7561
UD
5767 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
5768 variables const to avoid compiler warnings.
5769
a1286745
UD
5770 * io/fts.c (fts_close): Remove redundant checks.
5771 (fts_build): Likewise.
5772 (fts_palloc): Likewise.
5773
5774 * manual/message.texi (Advanced gettext functions,
5775 Using gettextized software): Fix typos.
5776
f01e4069
UD
57772006-09-30 Ulrich Drepper <drepper@redhat.com>
5778
5779 * posix/glob.c (glob_in_dir): Add some comments and asserts to
5780 explain why there are no leaks.
5781
154619b5
UD
57822006-09-29 Ulrich Drepper <drepper@redhat.com>
5783
690c3947
UD
5784 * libio/wmemstream.c: Include <wchar.h>.
5785 * libio/bug-wmemstream1.c: Likewise.
5786 * libio/tst-wmemstream1.c: Likewise.
5787 * libio/tst-wmemstream2.c: Likewise.
5788
88cc61e8
UD
5789 * version.h (RELEASE): Bump to 2.5.
5790 * README: Regenerated.
5791
a70c18b0
UD
5792 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
5793
154619b5
UD
5794 [BZ #3273]
5795 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
5796 found no group members.
5797 Patch by Petr Baudis.
5798
57992006-09-29 Jakub Jelinek <jakub@redhat.com>
5800
5801 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
5802 assert bootstrap_map.l_tls_modid is zero.
5803 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
5804 if USE___THREAD.
5805
1c31aa79
UD
58062006-09-27 Ulrich Drepper <drepper@redhat.com>
5807
5808 * libio/stdio.h: Move open_wmemstream prototype to ...
5809 * wcsmbs/wchar.h: ... here.
5810
f1122ec3
UD
58112006-09-25 Jakub Jelinek <jakub@redhat.com>
5812
5813 [BZ #3252]
5814 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
5815 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
5816 __{,l}chown to handle the rest.
5817 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
5818 fchownat syscall and __ASSUME_32BITUIDS case inline, call
5819 __{,l}chown to handle the rest.
5820 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
5821 i386/fchownat.c.
5822 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
5823 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
5824
5825 [BZ #3253]
5826 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5827 time, rather allocate increasingly bigger arrays of pointers, if
5828 possible with alloca, if too large with malloc.
5829
58302006-09-24 Jakub Jelinek <jakub@redhat.com>
5831
5832 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
5833
5834 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
5835
457b559e
UD
58362006-09-24 Ulrich Drepper <drepper@redhat.com>
5837
5838 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
5839 home addresses.
5840 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
5841 IFA_F_HOMEADDRESS flag for interfaces.
5842 * include/ifaddrs.h (struct in6addrinfo): Define
5843 in6ai_homeaddress.
5844
4a132246
UD
58452006-09-21 Jakub Jelinek <jakub@redhat.com>
5846
5847 [BZ #3225]
5848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
5849 PTR_DEMANGLE3): Define.
5850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
5851 PTR_DEMANGLE3): Likewise.
5852 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
5853 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5854 Likewise.
5855 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
5856
c69136ae
UD
58572006-09-20 Jakub Jelinek <jakub@redhat.com>
5858
5859 * po/libc.pot: Regenerated.
5860 * po/be.po: Updated.
5861 * po/ca.po: Likewise.
5862 * po/cs.po: Likewise.
5863 * po/da.po: Likewise.
5864 * po/de.po: Likewise.
5865 * po/el.po: Likewise.
5866 * po/en_GB.po: Likewise.
5867 * po/es.po: Likewise.
5868 * po/fi.po: Likewise.
5869 * po/fr.po: Likewise.
5870 * po/gl.po: Likewise.
5871 * po/hr.po: Likewise.
5872 * po/hu.po: Likewise.
5873 * po/ja.po: Likewise.
5874 * po/ko.po: Likewise.
5875 * po/nb.po: Likewise.
5876 * po/nl.po: Likewise.
5877 * po/pl.po: Likewise.
5878 * po/pt_BR.po: Likewise.
5879 * po/ru.po: Likewise.
5880 * po/rw.po: Likewise.
5881 * po/sk.po: Likewise.
5882 * po/sv.po: Likewise.
5883 * po/tr.po: Likewise.
5884 * po/zh_CN.po: Likewise.
5885 * po/zh_TW.po: Likewise.
5886
5887 [BZ #3137]
5888 * iconv/iconv_prog.c (main): Fix spelling in error message.
5889 * iconv/iconvconfig.c (main): Likewise.
5890 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
5891 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
5892 * locale/programs/localedef.c (main): Likewise.
5893 * locale/programs/repertoire.c (repertoire_read): Likewise.
5894 * timezone/zdump.c (main): Likewise.
5895 * nscd/connections.c (handle_request): Fix spelling in log message.
5896 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
5897
83b3108c
UD
58982006-09-20 Ulrich Drepper <drepper@redhat.com>
5899
5900 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
5901 interfaces.
5902
89210b4c
AJ
59032006-09-20 Andreas Jaeger <aj@suse.de>
5904
5905 * math/libm-test.inc (lrint_test_upward): Fix typo.
5906
6624dbc0
UD
59072006-06-17 Joseph S. Myers <joseph@codesourcery.com>
5908
5909 [BZ #2592]
5910 * math/libm-test.inc (lrint_test_tonearest): New function.
5911 (lrint_test_towardzero): New function.
5912 (lrint_test_downward): New function.
5913 (lrint_test_upward): New function.
5914 (main): Run these new tests.
5915 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
5916 of values near to 0.
5917 (two52): Use double not long double.
5918 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5919 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5920 (two23): Use float not double.
5921 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5922 (two23): Use float not double.
5923 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5924 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5925 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5926 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5927
60cb50c7
UD
59282006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5929
5930 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
5931 Cast sp to unsigned long to avoid compiler warning.
5932 Use __makecontext_ret function instead of a trampoline on the stack.
5933 (__makecontext_ret): New function.
5934 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
5935
33315ced
UD
59362006-09-19 Jakub Jelinek <jakub@redhat.com>
5937
5938 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
5939 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
5940 bits.
5941
1ee2ff20
UD
59422006-09-19 Ulrich Drepper <drepper@redhat.com>
5943
5944 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
5945 sure no reference to the unloaded map's search list remains in the
5946 dependency's scope.
5947
59482006-09-16 Jakub Jelinek <jakub@redhat.com>
5949
5950 * elf/Makefile: Add rules to build and run unload7 test.
5951 * elf/unload7.c: New test.
5952 * elf/unload7mod1.c: New file.
5953 * elf/unload7mod2.c: New file.
5954
0466106e
UD
59552006-09-18 Jakub Jelinek <jakub@redhat.com>
5956
5957 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
5958 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
5959 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5960 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
5961 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5962 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
5963 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5964 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
5965 PTRACE_GETEVENTMSG): Likewise.
5966 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
5967 values.
5968
9c316a45
UD
59692006-09-17 Mike Frysinger <vapier@gentoo.org>
5970
0466106e
UD
5971 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
5972 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5973 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
5974 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
5975
59762006-09-16 Jakub Jelinek <jakub@redhat.com>
5977
5978 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
5979 write '\0' to the fd.
5980 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
5981 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
5982 Change regs to unsigned long pointer from unsigned int, fix fscr
5983 offset.
5984
fb146a76
UD
59852006-09-14 Jakub Jelinek <jakub@redhat.com>
5986
5987 * io/Makefile (CFLAGS-fstatat.c): Set.
5988 (CFLAGS-fstatat64.c): Likewise.
5989 (CFLAGS-mknodat.c): Likewise.
5990
5991 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
5992 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5993 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
5994 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
5995
4cd3633d
UD
59962006-09-14 Jakub Jelinek <jakub@redhat.com>
5997 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 5998
4cd3633d
UD
5999 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
6000 names to the beginning. Rename "cell" to "cellbe".
6001 (_dl_powerpc_platforms): New.
6002 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
6003 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
6004 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
6005 (_DL_HWCAP_PLATFORM): Define to new mask.
6006 (_dl_platform_string, _dl_string_platform): New functions.
6007 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
6008 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
6009
30aa5785
UD
60102006-09-12 Jakub Jelinek <jakub@redhat.com>
6011
6012 [BZ #2526]
6013 * README.libm: Fix a thinko in sqrt algorithm description.
6014
6015 [BZ #3143]
6016 * manual/string.texi (argz_delete): Fix prototype.
6017 Patch by <alpt@freaknet.org>.
6018
60192006-08-26 Joseph Myers <joseph@codesourcery.com>
6020
6021 [BZ #3138]
6022 * io/test-lfs.c (do_prepare): Give name_len type size_t.
6023 * io/tst-fcntl.c (do_prepare): Likewise.
6024 * posix/tst-exec.c (do_prepare): Likewise.
6025 * posix/tst-preadwrite.c (do_prepare): Likewise.
6026 * posix/tst-spawn.c (do_prepare): Likewise.
6027 * posix/tst-truncate.c (do_prepare): Likewise.
6028 * rt/tst-aio.c (do_prepare): Likewise.
6029 * rt/tst-aio64.c (do_prepare): Likewise.
6030 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
6031 size_t.
6032
d26d01d1
UD
60332006-09-09 Ulrich Drepper <drepper@redhat.com>
6034
41aba3d7
UD
6035 [BZ #2821]
6036 * time/mktime.c (guess_time_tm): Fix overflow detection.
6037 * time/Makefile (tests): Add bug-mktime1.
6038 * time/bug-mktime1.c: New file.
6039
eaa51b47 6040 [BZ #3189, #3188]
d26d01d1 6041 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 6042 (mremap): Likewise.
d26d01d1 6043
ba40cc15
UD
60442006-09-07 Jakub Jelinek <jakub@redhat.com>
6045
2b6a801e
UD
6046 [BZ #1006]
6047 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6048 Ensure relocation doesn't clobber any bits outside of the
6049 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
6050 R_SPARC_HI22 and R_SPARC_H44.
6051
469615bd
UD
6052 [BZ #2775]
6053 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
6054 (long) (MINSIZE + nb - old_size) is positive.
6055
6056 * malloc/arena.c (grow_heap): When growing bail even if new_size
6057 is negative.
6058
ba40cc15
UD
6059 [BZ #3155]
6060 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
6061 stack below r1.
6062
243b9ac1
UD
60632006-09-06 Jakub Jelinek <jakub@redhat.com>
6064
ba40cc15
UD
6065 * posix/regex_internal.c (re_string_reconstruct): Handle
6066 offset < pstr->valid_raw_len && pstr->offsets_needed case.
6067 Ensure no bytes read before raw_mbs array. Pass a saved copy of
6068 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6069 re_string_context_at.
6070 * posix/Makefile: Add rules to build and run bug-regex26 test.
6071 * posix/bug-regex26.c: New test.
6072
243b9ac1
UD
6073 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
6074 rather than col_sym_free. Move seqp declaration earlier.
6075
6076 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
6077
d052233c
UD
60782006-09-05 Jakub Jelinek <jakub@redhat.com>
6079
6080 * nscd/initgrcache.c (addinitgroupsX): Move any_success
6081 decl before first goto out.
6082
71213dc2
UD
60832006-09-04 Jakub Jelinek <jakub@redhat.com>
6084
6085 * Makerules (shlib.lds): If have-hash-style, put .hash section
6086 at the end of the RO segment.
6087
60882006-09-04 Ulrich Drepper <drepper@redhat.com>
6089
6090 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
6091 style hash table format is used.
6092
03eeff83
UD
60932006-09-04 Jakub Jelinek <jakub@redhat.com>
6094
6095 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
6096 randomization rather than before.
6097 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
6098
b80770b2
UD
60992006-08-31 Jakub Jelinek <jakub@redhat.com>
6100
ba40cc15 6101 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
6102
6103 * malloc/malloc.c (_int_malloc): Use full list insert and not
6104 shortcut which assumes the list is empty for large requests
6105 too.
6106
6107 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
6108
99ea5991
UD
61092006-08-30 Jakub Jelinek <jakub@redhat.com>
6110
6111 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
6112 and offout arguments to the prototype.
6113 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
6114 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
6115 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
6116 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
6117 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
6118 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
6119 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
6120 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
6121
4004a0a5
UD
61222006-08-28 Ulrich Drepper <drepper@redhat.com>
6123
950398e1
UD
6124 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
6125
4004a0a5
UD
6126 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
6127 dlopen parameters.
6128
6e310111
UD
61292006-08-28 Jakub Jelinek <jakub@redhat.com>
6130
6131 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
6132 only if herrno is NETDB_INTERNAL. Handle errors other than
6133 ERANGE outside of the loops, handle TRY_AGAIN.
6134
6135 * locale/programs/ld-ctype.c (translit_flatten): Issue error
6136 if other's ctype category was missing.
6137 * locale/programs/ld-collate.c (collate_read): Return if
6138 copy_locale's collate category is missing.
6139
07014fca
UD
61402006-08-27 Ulrich Drepper <drepper@redhat.com>
6141
6142 [BZ #2684]
6143 * malloc/malloc.c (public_rEALLOc): Try harder by using other
6144 arenas if allocation failed.
6145 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
6146
71663747
UD
61472006-08-26 Ulrich Drepper <drepper@redhat.com>
6148
41999a1a
UD
6149 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
6150 waste bins[0..1].
6151 (malloc_state): Reduce bins size by 2.
6152 (_int_malloc): Fix test for large enough buffer for early termination.
6153 When no unsorted block matches perfectly and an exiting block has
6154 to be split, use full list insert and not shortcut which assumes
6155 the list is empty.
6156
71663747
UD
6157 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
6158 failure.
6159
93b53ca2
UD
61602006-08-24 Ulrich Drepper <drepper@redhat.com>
6161
f5a82772
UD
6162 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
6163 do anything.
6164
2ac9ca73
UD
6165 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
6166 symbol require exact match (these are PLTs).
6167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
6168 (_dl_ppc64_addr_sym_match): Likewise.
6169
93b53ca2
UD
6170 [BZ #2683]
6171 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
6172 If symbol has a value use it.
6173 * elf/tst-dladdr1.c: New file.
6174 * elf/Makefile: Add rules to build and run tst-addr1.
6175
7463d5cb
UD
61762006-08-24 Jakub Jelinek <jakub@redhat.com>
6177
6178 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
6179 keeps failing and heap growth or new heap creation isn't
6180 successful either.
6181 * malloc/tst-malloc.c (main): Add new tests.
6182
542a6f62
UD
61832006-08-24 Ulrich Drepper <drepper@redhat.com>
6184
6185 [BZ #2734]
6186 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
6187 as in the x86-64 code to use bswap.
6188
aa2c6b6d
UD
61892006-05-21 Joseph S. Myers <joseph@codesourcery.com>
6190
24982798 6191 [BZ #2680]
aa2c6b6d
UD
6192 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
6193 __USE_UNIX98.
6194 * posix/bits/unistd.h: Likewise.
6195
59776aef
UD
61962006-05-15 Mike Frysinger <vapier@gentoo.org>
6197
6198 [BZ #2751]
6199 * string/strchr.c: Add cast to avoid warning.
6200
e404fb16
UD
62012006-08-21 Ulrich Drepper <drepper@redhat.com>
6202
6203 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 6204 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
6205 limit is needed to avoid the exploding of the address space
6206 requirement for secondary heaps.
6207 * malloc/arena.c (HEAP_MAX_SIZE): Define using
6208 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
6209
376e973a
UD
62102006-07-30 Joseph S. Myers <joseph@codesourcery.com>
6211
6212 [BZ #3018]
6213 * Makerules (depfiles): Handle extra-test-objs the same as
6214 extra-objs.
6215 (common-mostlyclean): Likewise.
6216 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
6217 instead.
6218 * elf/Makefile (extra-objs): Likewise.
6219 * stdlib/Makefile (extra-objs): Likewise.
6220
240c62a7
UD
62212006-08-14 Eric Blake <ebb9@byu.net>
6222
6223 [BZ #3044]
6224 * misc/error.h: Assume C89 or better.
6225 * misc/error.c: Likewise.
6226
3997b7c4
UD
62272006-08-21 Ulrich Drepper <drepper@redhat.com>
6228
6229 [BZ #3040]
6230 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
6231 __ASSUME_ATFCTS is defined.
6232
8a6537b0
UD
62332006-08-19 Ulrich Drepper <drepper@redhat.com>
6234
72320021
UD
6235 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
6236 to sort in each call.
6237
ed3691ba
UD
6238 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
6239 is empty simply return and use next service.
6240 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
6241
8a6537b0
UD
6242 * locale/programs/charmap.c (charmap_read): Add new parameter. It
6243 tells us when not finding a charmap file is an error.
6244 * locale/programs/charmap.h: Adjust charmap_read prototype.
6245 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
6246 cannot find a charmap.
6247 * locale/programs/localedef.c (main): Adjust charmap_read call.
6248
ad2a3c07
UD
62492006-08-15 Jakub Jelinek <jakub@redhat.com>
6250
6251 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
6252 sysdeps/posix/pause.c implementation instead.
6253
62542006-08-09 Jakub Jelinek <jakub@redhat.com>
6255
6256 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
6257 to EPERM.
6258
f17efcb4
UD
62592006-08-13 Andreas Schwab <schwab@suse.de>
6260
6261 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
6262 Don't clobber caller's LRSAVE.
6263 (_dl_prof_resolve): Likewise.
6264
107b8a92
UD
62652006-08-14 Ulrich Drepper <drepper@redhat.com>
6266
6267 [BZ #1996]
6268 * libio/memstream.c (open_memstream): Allocate initial buffer with
6269 calloc.
6270 * libio/wmemstream.c (open_wmemstream): Likewise.
6271 * libio/strops.c: Pretty printing.
6272 (_IO_str_overflow): Clear uninitialized part of the new buffer.
6273 (enlarge_userbuf): New function.
6274 (_IO_str_seekoff): Call it if seek position is larger than current
6275 buffer.
6276 * libio/wstrops.c: Likewise.
6277 * libio/vasprintf.c: Add comment as to why we do not have to use
6278 calloc instead of malloc to allocate initial buffer.
6279 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
6280 * libio/bug-memstream1.c: New file.
6281 * libio/bug-wmemstream1.c: New file.
6282
fa3ac53f
UD
62832006-08-13 Ulrich Drepper <drepper@redhat.com>
6284
89993734
UD
6285 * libio/wstrops.c: Remove dead macro definitions and comments.
6286 * libio/strops.c: Likewise.
6287
fa3ac53f
UD
6288 [BZ #2764]
6289 * login/utmpname.c (__utmpname): Remove unnecessary test.
6290
f99ed760
UD
62912006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
6292
6293 [BZ #2832]
6294 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
6295 0s from integers.
6296
62972006-08-13 Ulrich Drepper <drepper@redhat.com>
6298
6299 [BZ #2987]
6300 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
6301 for CPU clocks.
6302 * sysdeps/unix/clock_settime.c: Add support for platform-specific
6303 setting of CPU clocks.
6304
4c3f81d0
UD
63052006-06-23 Paul Eggert <eggert@cs.ucla.edu>
6306
6307 [BZ #2841]
6308 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
6309 since C99 requires the result to promote to 'int' when uint_least8_t
6310 and uint_least16_t promote to 'int'.
6311
cd8e60ce
UD
63122006-08-12 Ulrich Drepper <drepper@redhat.com>
6313
9a5c46e8
UD
6314 [BZ #3013]
6315 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
6316 lenght of one output field, correct bitmask creation.
6317 * locale/programs/ld-time.c: Add alignment.
6318
cd8e60ce
UD
6319 [BZ #2997]
6320 * misc/error.c: Add space between program name and message if file
6321 name is missing.
6322
9a528884
UD
63232006-08-03 Eric Blake <ebb9@byu.net>
6324
6325 [BZ #2998]
6326 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
6327
1d05c2fb
UD
63282006-08-09 Ulrich Drepper <drepper@redhat.com>
6329
0c1c6c6c
UD
6330 * malloc/memusagestat.c: Silence warnings.
6331
1d05c2fb
UD
6332 * malloc/malloc.c: Dynamically size mmap treshold if the program
6333 frees mmaped blocks.
6334 Patch by Valerie Henson and Arjan van de Ven.
6335
2d1e6277
UD
63362006-08-08 Jakub Jelinek <jakub@redhat.com>
6337
be7ffd91
UD
6338 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
6339 __USE_GNU.
6340
2d1e6277
UD
6341 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
6342 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
6343 (DEF): Don't put the var into .gnu.linkonce.r.* section.
6344 Only provide var definitions in strtol_l (or for *ull*
6345 in strtoll_l).
6346
6347 * stdio-common/bug16.c (tests): New array.
6348 (do_tests): Allow the first hexadecimal digit
6349 to be 1, 2, 4 or 8. Do 3 additional tests.
6350
6351 * sysdeps/s390/fpu/libm-test-ulps: Update.
6352
6353 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
6354 fchownat syscall if available.
6355 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
6356 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
6357 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
6358
d0ccde25
UD
63592006-08-07 Ulrich Drepper <drepper@redhat.com>
6360
6361 * nis/nis_xdr.c: Avoid some function calls.
6362
13a0293d 63632006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 6364 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
6365
6366 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
6367 short cut if only one name component is stripped away.
6368
bd1ebae0
UD
63692006-08-07 Ulrich Drepper <drepper@redhat.com>
6370
6371 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 6372 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
6373 (first_shoot): Add search_parent_first parameter. Only if it is set
6374 search parent server first.
6375 If directory for table found through cold start cache is not the same
6376 as referenced in the cache, don't use it.
6377 (__nisfind_server): Take additional parameter. Pass it on to
6378 first_shoot.
6379 (__prepare_niscall): Adjust __nisfind_server call.
6380 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
6381 * nis/nis_table.c: Adjust __nisfind_server call.
6382 * nis/nis_lookup.c: Likewise.
6383 (nis_lookup): Don't loop endlessly if name is reduced to ".".
6384
f1762c0c
UD
63852006-08-03 Ulrich Drepper <drepper@redhat.com>
6386
fe710250
UD
6387 [BZ #2182]
6388 * math/s_cacosh.c: Return values from positive branch.
6389 * math/s_cacoshf.c: Likewise.
6390 * math/s_cacoshl.c: Likewise.
6391
a5852807
UD
6392 [BZ #2883]
6393 * sysvipc/sys/msg.h: Change return value to ssize_t.
6394 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
6395 * sysvipc/msgrcv.c: Likewise.
6396 * include/sys/msg.h: Likewise.
39571a13 6397
6c215a8d
UD
6398 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
6399 test introduced in patch for bz #661.
39571a13 6400 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 6401 element for NEWGROUPS.
6c215a8d 6402
9c06eb66
UD
6403 [BZ #2908]
6404 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
6405 'f', use '1' as leading digit not '\1'.
6406 * stdio-common/Makefile (tests): Add bug16.
6407 * stdio-common/bug16.c: New file.
6408
6409 [BZ #2914]
6410 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
6411 and don't try to open it. The patch introducing the macro
6412 contained a bug and used the same file name as the new file
6413 instead of using /var/adm/hostid. Nobody complaint so I'm taking
6414 this out completely.
6415
6416 [BZ #2926]
6417 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
6418 Patch by Jerry James <Jerry.James@usu.edu>.
6419
f1762c0c
UD
6420 * rt/Makefile (tests): Add tst-clock2.
6421 * rt/tst-clock2.c: New file.
6422
6423 [BZ #2978]
6424 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
6425 function and its parameters and pass it to new thread.
6426 (__gai_notify): Add support for alternative waiting for completion.
6427 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
6428 waiting for completion.
6429 * resolv/getaddrinfo_a.c: Likewise.
6430 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
6431 waiting for completion is used.
6432 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
6433 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
6434 * resolv/gai_error.c: Likewise.
6435 * resolv/gai_sigqueue.c: Likewise.
6436
83ae6b40
RM
64372006-08-02 Thomas Schwinge <tschwinge@gnu.org>
6438
0e4e62fe 6439 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 6440 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 6441
82ee37c5
UD
64422006-06-23 Joseph Myers <joseph@codesourcery.com>
6443
6444 [BZ #2980]
f1762c0c 6445 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
6446
64472006-08-02 Ulrich Drepper <drepper@redhat.com>
6448
6449 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
6450 walk them instead of the symbol table.
6451
7bb1b2c9
UD
64522006-08-01 Ulrich Drepper <drepper@redhat.com>
6453
f13bfdd0 6454 [BZ #2098]
fbbc73b3
UD
6455 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
6456 status of NSS calls, not the number of returned entries.
6457
a4518922
UD
6458 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
6459 request_key, keyctl.
7bb1b2c9 6460
b06e7e9a
UD
64612006-07-31 Ulrich Drepper <drepper@redhat.com>
6462
6463 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
6464
f1227969
UD
64652006-07-16 Jeff Bailey <jbailey@ubuntu.com>
6466
6467 * elf/tst-auditmod1.c: Fix typo in #error.
6468
82ae2712
UD
64692006-07-31 Ulrich Drepper <drepper@redhat.com>
6470
f1227969
UD
6471 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
6472
82ae2712
UD
6473 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
6474
a1260d92
UD
64752006-07-20 Adam Nemet <anemet@caviumnetworks.com>
6476
6477 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 6478 that the directory is empty even on non-POSIX filesystems.
a1260d92 6479
d2de41fe
UD
64802006-07-31 Ulrich Drepper <drepper@redhat.com>
6481
13669f2c
UD
6482 * elf/dl-open.c (dl_open_worker): Add branch prediction.
6483
d2de41fe
UD
6484 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
6485 the backend NSS module. If backend setgrent call failed, don't have
6486 internal_setgrent fail. Just remember this until it is needed.
6487 * nis/nss_compat/compat-pwd.c: Likewise.
6488 * nis/nss_compat/compat-spwd.c: Likewise.
6489
b894c2ea
RM
64902006-07-30 Roland McGrath <roland@redhat.com>
6491
6492 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
6493 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
6494 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
6495 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
6496
6497 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
6498 (nanosleep_not_cancel): New macro.
6499 (sigsuspend_not_cancel): new macro.
6500 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
6501 (do_sigsuspend): Define as inline.
6502 (__sigsuspend): Always use do_sigsuspend.
6503 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
6504 * include/signal.h: Declare __sigsuspend_nocancel.
6505 * sysdeps/posix/pause.c
6506 [! NO_CANCELLATION] (__pause_nocancel): New function.
6507
6508 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
6509 * include/time.h (__nanosleep_nocancel): Likewise.
6510
c10d32c8
UD
65112006-07-30 Ulrich Drepper <drepper@redhat.com>
6512
6513 * locale/programs/localedef.c (add_to_readlist): Rename local
6514 variables to avoid confusion.
6515
6516 * locale/programs/charmap.c (charmap_read): Emit error message if
6517 charmap couldn't be found or read.
6518
6822f056
UD
65192006-07-28 Ulrich Drepper <drepper@redhat.com>
6520
d5ba53f9
UD
6521 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6522 __ASSUME_FUTEX_LOCK_PI.
6523 * include/time.h: Declare __nanosleep_nocancel.
6524 * include/unistd.h: Declare __pause_nocancel.
6525
6822f056
UD
6526 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
6527 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
6528 get the __stack_chk_fail_local definition when it's needed.
6529
3a975ff5
UD
65302006-07-26 Ulrich Drepper <drepper@redhat.com>
6531
6de1f625
UD
6532 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
6533 * dlfcn/bug-atexit3.c: New file.
6534 * dlfcn/bug-atexit3-lib.cc: New file.
6535
3a975ff5
UD
6536 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
6537 used when the namespace is not the base namespace.
6538
a92b1166
UD
65392006-07-26 Gavin Romig-Koch <gavin@redhat.com>
6540
6541 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
6542 (__new_exitfn): Bump it in every successful call.
6543 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
6544 more exit handlers, call them right away.
6545 * stdlib/exit.h: Declare __new_exitfn_called.
6546
a08336fb
UD
65472006-07-25 Ulrich Drepper <drepper@redhat.com>
6548
bd3754dc
UD
6549 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
6550 calling registered handler.
6551
a08336fb
UD
6552 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
6553 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6554 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6555 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6556 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6557 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6558 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6559 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6560
871b9158
UD
65612006-07-10 Ulrich Drepper <drepper@redhat.com>
6562
6563 * elf/dl-lookup.c (dl_new_hash): New functions.
6564 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
6565 value here. Compute new-style hash value. Pass new hash value
6566 and reference to variable with the old value to do_lookup_x.
6567 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
6568 old-style hash table.
6569 (_dl_debug_bindings): Pass new hash value and reference to variable
6570 with the old value to do_lookup_x.
6571 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
6572 new-style hash value and change old-style hash value parameter to
6573 be a reference. Reoganize functions to determine whether
6574 new-style hash table is available. Only fall back on old-style
6575 table. If old-style hash value is needed, compute it here.
6576 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
6577 entry.
6578 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
6579 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
6580 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
6581 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
6582 * Makeconfig: If linker supports --hash-style option add it to all
6583 linker command lines to build DSOs.
6584 * config.make.in: Define have-hash-style.
6585 * configure.in: Test whether linker supports --hash-style option.
6586
6587 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
6588 * sysdeps/generic/ldsodefs.h: Adjust prototype.
6589
a1f0de82
UD
65902006-06-27 Ulrich Drepper <drepper@redhat.com>
6591
361a3706
UD
6592 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
6593 auditing.
6594
a1f0de82
UD
6595 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
6596 RPATH of main map twice.
6597
4259230f
UD
65982006-06-22 Ulrich Drepper <drepper@redhat.com>
6599
6600 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
6601 look further, return original strings.
6602 (_nl_find_msg): Do not return found translation if the conversion
6603 failed. Either signal the string is unusable or that something went
6604 wrong and the original should be used.
6605
66062006-06-21 Ulrich Drepper <drepper@redhat.com>
6607
6608 * string/_strerror.c (__strerror_r): Add __builtin_expect.
6609
f9b7a98b
UD
66102006-06-14 Jakub Jelinek <jakub@redhat.com>
6611
6612 [BZ #2766]
6613 * misc/insremque.c (insque): Handle prev == NULL.
6614 * misc/Makefile (tests): Add tst-insremque.
6615 * misc/tst-insremque.c: New test.
6616
ac55a25b
UD
66172006-06-17 Ulrich Drepper <drepper@redhat.com>
6618
6619 [BZ #2792]
6620 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
6621 conflict with DL_DST_REQUIRED.
6622
02f366b3
UD
66232006-06-16 Ulrich Drepper <drepper@redhat.com>
6624
6625 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
6626 match what Solaris does.
6627
9009e8f8
UD
66282006-06-04 Ulrich Drepper <drepper@redhat.com>
6629
1b8373f4
UD
6630 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
6631 local_setegid instead of seteuid and setegid.
6632 * sysdeps/generic/local-setxid.h: New file.
6633 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
6634
7231452e
UD
6635 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
6636
9009e8f8 6637 * string/Makefile (tests): Add bug-envz1.
02f366b3 6638 * string/bug-envz1.c: New file.
9009e8f8 6639
33e63e79
UD
66402006-06-02 Jakub Jelinek <jakub@redhat.com>
6641
6642 * posix/regex_internal.c (re_string_skip_chars): If no character has
6643 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
6644 to the byte which couldn't be converted.
6645 (re_string_reconstruct): Don't clear valid_raw_len before calling
6646 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
6647 tip_context using re_string_context_at.
6648 * posix/Makefile: Add rules to build and run bug-regex25 test.
6649 * posix/bug-regex25.c: New test.
6650
fdc02996
UD
66512006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
6652
6653 [BZ #2703]
6654 * string/envz.c (envz_strip): Correct erroneously reversed src
6655 and dest parameters to memmove() invocation.
6656
902c4291
UD
66572006-05-30 Jakub Jelinek <jakub@redhat.com>
6658
6659 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
6660 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
6661 to make sure the database has been already invalidated.
6662 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
6663 after the cache has been invalidated. Use pthread_mutex_lock rather
6664 than pthread_mutex_trylock if fd != -1.
6665 * nscd/connections.c (invalidate_cache): Add fd argument, write
6666 response to fd if not calling prune_cache, pass fd to prune_cache.
6667 (handle_request): Adjust invalidate_cache caller.
6668 (nscd_run): Pass -1 as fd to prune_cache.
6669
ecc68568
UD
66702006-05-30 Ulrich Drepper <drepper@redhat.com>
6671
6672 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
6673 the correct place.
6674
9636a217
UD
66752006-05-29 Ulrich Drepper <drepper@redhat.com>
6676
6677 * nscd/nscd.h (struct database_dyn): Add prunelock field.
6678 * nscd/cache.c (prune_cache): Take prunelock before starting the
6679 work. Just return in case it is already taken.
cabfcde1 6680 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 6681
6bcb494a
UD
66822006-05-25 Ulrich Drepper <drepper@redhat.com>
6683
672d5a63 6684 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 6685 copying. No need to allocate new array for group members. Just
672d5a63
UD
6686 move the pointers and update the size.
6687
1663b44f
UD
6688 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
6689 Avoid memory leak in case realloc fails. Simplification for
6690 better code generation.
6691
6692 Avoid deprecation warning because of libc_hidden_proto for
6693 inet6_option_alloc.
6694 * inet/inet6_option.c (option_alloc): Renamed from
6695 inet6_option_alloc. Made static.
9636a217 6696 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
6697 (inet6_option_append): Call option_alloc.
6698 * include/netinet/in.h: Remove libc_hidden_proto for
6699 inet6_option_alloc.
6700
6bcb494a
UD
6701 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
6702 for cleanup when cb!=NULL [Coverity CID 233].
6703
aec6b246
UD
67042006-05-24 Ulrich Drepper <drepper@redhat.com>
6705
07bfff20
UD
6706 [BZ #2693]
6707 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
6708 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
6709 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
6710 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
6711 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
6712 and inet6_rth_getaddr.
6713 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
6714 array.
6715 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
6716 Mark inet6_option_* interfaces as deprecated.
6717 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
6718 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
6719 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
6720 inet6_rth_segments, and inet6_rth_getaddr.
6721 * inet/inet6_opt.c: New file.
6722 * inet/inet6_rth.c: New file.
6723
6724 * inet/netinet/icmp6.h: Pretty printing.
6725
aec6b246
UD
6726 [BZ #2683]
6727 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
6728
2d571cd1
UD
67292006-05-23 Ulrich Drepper <drepper@redhat.com>
6730
062e719b
UD
6731 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
6732 doing it all here. When server does not know the answer do not
6733 fail immediate, try parent first.
6734
2d571cd1
UD
6735 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
6736 overflow test.
6737
a17fa610
UD
67382006-05-20 Ulrich Drepper <drepper@redhat.com>
6739
6740 * nis/nis_call.c (__prepare_niscall): New function. Split out
6741 from __do_niscall.
6742 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
6743 and exported.
6744 (__follow_path): New function. Split out from nis_list.
6745 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
6746 _xdr_nis_result.
6747 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
6748 _xdr_nis_result.
6749 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
6750 and __follow_path.
6751 * nis/Versions: Export __prepare_niscall, __create_ib_request,
6752 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
6753 from libnsl for version GLIBC_PRIVATE.
6754 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
6755 Remove entry parameter from _nss_nisplus_parse_pwent and
6756 _nss_nisplus_parse_grent.
6757 * nis/nss_nisplus/nisplus-parser.c: Likewise.
6758 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
6759 again. Rewrite getpwent handling to not use nis_first_entry and
6760 nis_next_entry. Roll out own niscall handling.
6761 * nis/nss_nisplus/nisplus-grp.c: Likewise.
6762
6763 * sunrpc/xdr_rec.c: Fix typo in comment.
6764
429bb183
UD
67652006-05-19 Ulrich Drepper <drepper@redhat.com>
6766
1d4f062a
UD
6767 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
6768 handling.
6769
101cc598
UD
6770 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
6771 to allocate memory for my_pollfd. Better initialization of
6772 cb_is_running. Use TEMP_FAILURE_RETRY.
6773
f50fa10c
UD
6774 * malloc/memusage.sh (memusageso): Add quotes.
6775 (memusagestat): Likewise.
6776 * debug/xtrace.sh (pcprofileso): Likewise.
6777 (pcprofiledump): Likewise.
6778 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
6779 replacement.
6780 * malloc/Makefile ($(objpfx)memusage): Likewise.
6781
882bfe73
UD
6782 * nis/nis_callback.c (__nis_create_callback): Calls to
6783 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
6784 asprintf call fails.
6785
429bb183
UD
6786 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
6787 no uninitialized memory is passed to sendto.
6788
f90de831
UD
67892006-05-18 Ulrich Drepper <drepper@redhat.com>
6790
6791 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
6792 of snprintf+strdup. Handle OOM.
6793 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
6794 cb->serv together. Remove now obsolete free calls.
6795 (__nis_destroy_callback): Remove now obsolete free call.
6796
a17fa610 67972006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
6798
6799 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
6800 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
6801 and ULA respectively). Set precedence for IPv4 address to 10 as
6802 defined in RFC3484 for preferring IPv6.
6803 * posix/gai.conf: Update to match the new default tables.
6804
758b9d7e
UD
68052006-05-18 Jakub Jelinek <jakub@redhat.com>
6806
6807 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
6808 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
6809 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
6810 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
6811
6812 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
6813 Removed.
6814 (init_nss_interface): Remove initialization of these variables.
6815
68162006-05-18 Ulrich Drepper <drepper@redhat.com>
6817
6818 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
6819 nis_free_directory forward to avoid duplication.
6820
388c779e
UD
68212006-05-17 Ulrich Drepper <drepper@redhat.com>
6822
5f1724bf
UD
6823 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
6824 rec_dirsearch returning NULL.
6825 (first_shoot): Handle __nis_finddirectory returning NULL.
6826 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
6827
388c779e
UD
6828 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
6829 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
6830
360d5cf4
UD
68312006-05-17 Jakub Jelinek <jakub@redhat.com>
6832
6833 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
6834 pid changed.
6835
88dbff8c
UD
68362006-05-15 Ulrich Drepper <drepper@redhat.com>
6837
6f8a7dff
UD
6838 * include/rpc/pmap_prot.h: Mark all functions as hidden.
6839
6840 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
6841 * nscd/nscd_getgr_r.c: Likewise.
6842
6843 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
6844
6845 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
6846 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
6847
6848 * stdlib/longlong.h (__clz_tab): Mark as hidden.
6849
6850 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
6851
360d5cf4 6852 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
6853
6854 * include/rpc/auth.h: Mark xdr_des_block_internal and
6855 xdr_opaque_auth_internal as hidden.
6856
6857 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
6858 hidden.
6859
360d5cf4 6860 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 6861
02264020
UD
6862 * misc/getusershell.c (okshells): Don't use static initializers,
6863 do it dynamically.
6864
fd5ea238
UD
6865 * stdlib/fmtmsg.c (keywords): Change type of len element to
6866 uint32_t to not waste space on 64bit machines.
6867
9446614c
UD
6868 * locale/setlocale.c: Change _nl_category_names into a string.
6869 Add new _nl_category_name_idxs. Change all users.
6870 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
6871 Declare _nl_category_name_idxs.
6872 * locale/findlocale.c: Adjust for _nl_category_names change.
6873 * locale/loadlocale.c: Likewise.
6874 * locale/newlocale.c: Likewise.
6875 * intl/dcigettext.c: Likewise.
6876
88dbff8c
UD
6877 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
6878 (add_alias2): ...here. New function.
6879 (__gconv_read_conf): Simplify builtin alias handling.
6880 (builtin_aliases): Convert to string to avoid relocations.
6881 * iconv/gconv_builtin.h: Add comment about correct formatting.
6882
4442d58f
UD
68832006-05-15 Jakub Jelinek <jakub@redhat.com>
6884
6885 * resolv/res_debug.c (loc_ntoa): Make error const.
6886
68872006-05-14 Andreas Schwab <schwab@suse.de>
6888
6889 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
6890
68912006-05-12 Jakub Jelinek <jakub@redhat.com>
6892
6893 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
6894 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
6895 sizeof (cpu_set_t).
6896
a51752b6
UD
68972006-05-11 Ulrich Drepper <drepper@redhat.com>
6898
5d3fd1f6
UD
6899 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
6900
08cfb839
UD
6901 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
6902
4b481a15
UD
6903 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
6904 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
6905
6906 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
6907 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
6908
6909 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
6910 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
6911 xdr_cback_data.
6912
6913 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
6914 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6915 xdr_ypupdate_args.
6916
6917 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
6918 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
6919
6920 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
6921 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
6922
6923 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
6924 * include/rpcsvc/nis_callback.h: New file.
6925
6926 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
6927 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
6928
6929 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6930 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6931
6932 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
6933 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
6934
6935 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6936 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6937
b1ad49c6
UD
6938 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
6939 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6940 xdr_ypdelete_args.
6941
cd5f7829
UD
6942 * nis/nis_xdr.h: Mark all functions as hidden. Remove
6943 __BEGIN_DECLS and __END_DECLS, the header is not installed.
6944
a51752b6
UD
6945 * nis/nis_error.c: Remove table of strings. Use position
6946 independent mechanism.
6947 * nis/nis_error.h: New file.
6948
3d237e42
UD
69492006-05-11 Jakub Jelinek <jakub@redhat.com>
6950
6951 * locale/programs/ld-time.c (time_finish): If wide era name or
6952 format aren't provided, set both wname and wformat to L"".
6953
d6c159fe
UD
69542006-05-10 Ulrich Drepper <drepper@redhat.com>
6955
0088b04e
UD
6956 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
6957 results if the call was succesful.
6958
d6c159fe
UD
6959 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
6960
6961 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6962 as hidden.
6963
5c5acdf0
UD
69642006-05-10 Jakub Jelinek <jakub@redhat.com>
6965
6966 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
6967
16d620db
UD
69682006-05-10 Ulrich Drepper <drepper@redhat.com>
6969
6970 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
6971 caller makes sure this is not the case.
6972 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
6973
e7c8359e
UD
69742006-05-09 Ulrich Drepper <drepper@redhat.com>
6975
ecf359c6
UD
6976 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
6977 calls.
6978
400cc70a
UD
6979 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
6980 [Coverity CID 229, 230]
6981
6982 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
6983 DGETTEXT calls.
6984 (hol_help): Likewise. [Coverity CID 226, 227]
6985
6986 * string/argz-replace.c (__argz_replace): Unconditionally call
6987 free on SRC. [Coverity CID 225]
6988
6989 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
6990 the return value of __nis_default_owner and __nis_default_group,
6991 it has been especially allocated. [Coverity CID 224]
6992
51e59260
UD
6993 * nis/nis_defaults.c (searchXYX): New functions. Used by both
6994 searchgroup and searchowner. Significantly simplified.
6995 (__nis_default_owner): Remove duplication. Do not locally copy the
6996 string before duplicating it.
6997 (__nis_default_group): Likewise.
6998
6999 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
7000 we must clear the variable before calling __nisfind_server.
7001
7002 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
7003 nis_getnames. [Coverity CID 223]
7004
7005 * locale/programs/locfile.c (locfile_read): Use alloca instead of
7006 xmalloc to allocate local repertoire name. [Coverity CID 222]
7007
7008 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
7009 allocate memory for the input to add_bytes. [Coverity CID 221]
7010
e7c8359e 7011 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 7012 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
7013
7014 * posix/getconf.c (print_all): Free confstr data after printing.
7015 [Coverity CID 218]
7016
7017 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
7018 list allocation fails. [Coverity CID 215]
7019
7020 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
7021 [Coverity CID 213]
7022
7023 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
7024 string is NULL. [Coverity CID 212]
7025 * argp/Makefile: Add rules to build and run bug-argp1.
7026 * argp/bug-argp1.c: New file.
7027
7028 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
7029 end of string.
7030 * stdlib/canonicalize.c (__realpath): Likewise.
7031
7032 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
7033 pointer. [Coverity CID 206]
7034
7035 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
7036 in statically linked code.
7037 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
7038 statically built code, be prepared to have no link map.
7039 [Coverity CID 205]
7040
7041 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
7042 dgettext calls. [Coverity CID 204]
7043
7044 * argp/argp-help.c (struct uparams): Remove valid member. Change
7045 the one user.
7046 (uparam_names): Reduce size. Avoid relative relocations.
7047 Moved to read-only segment.
7048 (fill_in_uparams): Update for new layout.
7049
7050 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
7051 assumed to always be != NULL. [Coverity CID 202]
7052
7053 * argp/argp-help.c (hol_entry_help): Remove some dead code
7054 [Coverity CID 200].
7055
7056 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
7057 away a few more unconditional yperr2nss calls.
7058 (_nss_nis_getservbyname_r): Likewise.
7059
acf82eaf
UD
70602006-05-06 Ulrich Drepper <drepper@redhat.com>
7061
4461cf48
UD
7062 * sysdeps/generic/ldsodefs.h: Remove support for non-core
7063 architectures.
7064
b74a8c7f
UD
7065 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
7066 that unused memory passed to sendto is nevertheless initialized.
7067
acb98cb5
UD
7068 [BZ #2499]
7069 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
7070 possibly unaligned memory accesses.
7071
bce16467
UD
7072 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
7073 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
7074 and __putlong respectively. Correct buffer overflow check for
7075 NS_NOTIFY_OP.
7076
7077 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
7078
8e45b1ac
UD
7079 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
7080 (send_dg): Rewrite error handling to be more compact and avoid
7081 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
7082
697e1628
UD
7083 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
7084
7085 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
7086 instead of ns_get16.
7087 (res_queriesmatch): Likewise. Minor optimization.
7088
acf82eaf
UD
7089 [BZ #2499]
7090 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
7091 __libc_res_nsend might reallocate the buffer for the answer. In
7092 this case we have to reload the HP pointer.
7093
7bfee654
UD
70942006-05-05 Ulrich Drepper <drepper@redhat.com>
7095
694b49ca
UD
7096 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
7097 some branch prediction hints.
7098
7bfee654
UD
7099 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
7100 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7101 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7102 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7103 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7104 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7105 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7106 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7107
308bb2d5
UD
71082006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
7109
7110 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
7111 by a GOT relocation to make Scrt1.o position independent.
7112 * sysdeps/s390/s390-64/elf/start.S: Likewise.
7113
7114 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
7115 six system call parameters.
7116 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7117
cdb9c321
UD
71182006-05-05 Ulrich Drepper <drepper@redhat.com>
7119
7120 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
7121 malloc&bzero.
7122
7123 * sunrpc/svc_udp.c (BZERO): Remove definition.
7124 (CALLOC): Define.
7125 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
7126
7127 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
7128 (des_SPtrans): Use uint32_t type.
7129 (des_skb): Likewise.
7130
7131 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
7132
fff04b32
UD
71332006-05-05 Jakub Jelinek <jakub@redhat.com>
7134
7135 [BZ #2509]
7136 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
7137 on 32-bit arches.
7138
71392006-05-05 Ulrich Drepper <drepper@redhat.com>
7140
7141 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 7142 place where the iso639 array might be accessed beyond the limits.
fff04b32 7143
077a30bc 71442006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 7145
f2d5cf50
UD
7146 * nis/nis_table.c (nis_list): Avoid clearing res twice before
7147 filling it for the first time.
7148
3e4370cf
UD
7149 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
7150 Adjust all callers.
7151 Free res object content before returning.
7152
5e65a53d
UD
7153 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
7154
48be3114
UD
7155 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
7156 client->cl_auth.
7157
ca4fce0e
UD
7158 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
7159 cleanup for initial thread, just the free call on TVP.
7160
077a30bc 7161 * nscd/gai.c (__getline): Define.
3b7a95fb 7162
5d37289a 7163
3f87d901 7164See ChangeLog.16 for earlier changes.