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