* init.c (__nptl_initial_report_events): New variable.
[glibc.git] / ChangeLog
blobfb25d0c15e8e6e22cbd64966ce12cd2f99ba4d94
1 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
3         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
4         ISO C compliant.
6 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
12         * include/link.h: Don't include rtld-lowlevel.h.
13         (struct link_map): Remove l_scope_lock.
14         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
15         (_dl_scope_free_list): New field (variable) in _rtld_global.
16         (DL_LOOKUP_SCOPE_LOCK): Remove.
17         (_dl_scope_free): New prototype.
18         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
19         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
20         (_dl_profile_fixup): Likewise.
21         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
22         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
23         THREAD_GSCOPE_RESET_FLAG around it.
24         * elf/dl-close.c (_dl_close_worker): Don't use
25         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
26         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
27         scopes were queued or if l_scope_mem has been abandoned.
28         * elf/dl-open.c (_dl_scope_free): New function.
29         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
30         * elf/dl-support.c (_dl_scope_free_list): New variable.
31         * elf/dl-lookup.c (add_dependency): Remove flags argument.
32         Remove DL_LOOKUP_SCOPE_LOCK handling.
33         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
34         handling.
35         * elf/dl-object.c (_dl_new_object): Don't use
36         __rtld_mrlock_initialize.
38 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
40         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
41         to fill in holes
42         (rtld_global_ro): Likewise.
44 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
46         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
47         Move PT_LOAD checking to...
48         (_dl_addr_inside_object): ... here, new function.
49         * elf/dl-sym.c (do_sym): If not l_contiguous,
50         call _dl_addr_inside_object.
51         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
52         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
53         * elf/dl-open.c (dl_open_worker): Likewise.
54         (_dl_addr_inside_object): New function if IS_IN_rtld.
55         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
56         holes are present or are PROT_NONE protected.
57         * include/link.h (struct link_map): Add l_contiguous field.
58         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
60 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
61             Tomas Janousek  <tjanouse@redhat.com>
62             Ulrich Drepper  <drepper@redhat.com>
64         [BZ #4647]
65         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
66         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
67         socket.
68         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
69         unused member a bitmap.
70         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
71         servers are configured.
73 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
75         * elf/rtld.c (dl_main): Don't call init_tls more than once.
77 2007-06-17  Andreas Schwab  <schwab@suse.de>
79         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
81 2007-06-16  Andreas Jaeger  <aj@suse.de>
83         [BZ #4125]
84         * sysdeps/unix/sysv/linux/sys/ptrace.h
85         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
86         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
87         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
88         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
89         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
90         Define.
91         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
92         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
93         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
94         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
96 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
98         [BZ #4599]
99         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
100         determining whether there are IPv4/IPv6 addresses, ignore loopback
101         addresses.
103 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
105         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
106         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
107         as the return type.  Change type of "r" variable to CMPtype.
108         * soft-fp/eqsf2.c (__eqsf2): Likewise.
109         * soft-fp/eqtf2.c (__eqtf2): Likewise.
110         * soft-fp/gedf2.c (__gedf2): Likewise.
111         * soft-fp/gesf2.c (__gesf2): Likewise.
112         * soft-fp/getf2.c (__getf2): Likewise.
113         * soft-fp/ledf2.c (__ledf2): Likewise.
114         * soft-fp/lesf2.c (__lesf2): Likewise.
115         * soft-fp/letf2.c (__letf2): Likewise.
116         * soft-fp/unorddf2 (__unorddf2): Likewise.
117         * soft-fp/unordsf2 (__unordsf2): Likewise.
118         * soft-fp/unordtf2 (__unordtf2): Likewise.
120 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
122         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
123         make sure gcc doesn't mess around with this.
125 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
127         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
129 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
131         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
132         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
133         at most once per _dl_close_worker.
135 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
137         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
138         __sched_cpucount as const.
139         * posix/sched_cpucount.c: Adjust.
141         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
142         instruction for counting bits.
143         * sysdeps/x86_64/sched_cpucount.c: New file.
145 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
147         * configure.in: Avoid variable named BASH.
148         * config.make.in: Likewise.
149         Patch in part by Mike Frysinger.
151 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
153         [BZ #4586]
154         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
155         pseudo-zeros as zero.
156         * sysdeps/x86_64/ldbl2mpn.c: New file.
157         * sysdeps/ia64/ldbl2mpn.c: New file.
159 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
161         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
162         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
163         Remove unreachable code at the end.
165 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
167         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
168         ldbl-128ibm in comment.
169         (fpclassifyl): Correct classification of denormals.
170         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
171         return value for MIN denormal. Rewrite using long double math too
172         correctly handle denormals and canonicalize the results.
174 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
176         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
177         (__mpn_construct_long_double): Fix conversion where result ought
178         to be smaller than __LDBL_MIN__, or the low double should be
179         denormal.  Fix decision where to negate low double - honor round
180         to even rules.
181         * stdio-common/tst-sprintf2.c: Include string.h.
182         (COMPARE_LDBL): Define.
183         (TEST): Also test whether a string hexadecimal float representation
184         can be parsed back to the number.
185         (main): Add a couple of further tests.
187 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
189         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
190         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
191         is non-zero, but smaller than 2 * __DBL_MIN__.
192         * stdio-common/tst-sprintf2.c: New test.
193         * stdio-common/Makefile (tests): Add tst-sprintf2.
195         * math/test-misc.c (main): Don't run last batch of tests with
196         IBM long double format.
198 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
200         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
201         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
202         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
203         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
204         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
205         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
206         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
207         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
208         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
209         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
212         New file.
213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
214         New file.
215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
216         New file.
217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
218         New file.
219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
220         New file.
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
223         New file.
224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
225         New file.
226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
227         New file.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
229         New file.
230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
231         New file.
233 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
235         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
236         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
237         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
238         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
239         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
240         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
241         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
242         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
244 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
246         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
247         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
248         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
249         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
250         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
251         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
252         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
253         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
255 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
257         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
258         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
259         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
260         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
262 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
264         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
265         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
267 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
269         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
270         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
271         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
272         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
274 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
276         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
277         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
279 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
281         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
282         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
284         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
285         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
286         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
287         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
289 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
291         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
292         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
293         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
294         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
296 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
298         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
299         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
300         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
301         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
302         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
303         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
305 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
307         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
308         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
309         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
310         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
312 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
314         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
315         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
316         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
317         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
318         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
319         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
320         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
321         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
322         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
323         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
324         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
325         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
326         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
327         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
328         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
329         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
331 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
333         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
334         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
336 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
338         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
339         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
341 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
343         * sysdeps/powerpc/powerpc32/970/Implies: New file.
344         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
345         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
346         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
347         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
348         * sysdeps/powerpc/powerpc64/970/Implies: New file.
349         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
350         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
351         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
352         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
354 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
356         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
358 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
360         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
361         branch miss-predicts. Ensure that cache line crossing does not impact
362         dispatch grouping.
364 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
366         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
367         "../../powerpc32/power4/memcopy.h".
368         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
369         "../../powerpc32/power4/wordcopy.c".
371 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
373         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
374         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
375         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
376         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
377         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
378         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
380 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
382         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
384 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
386         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
387         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
388         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
389         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
390         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
391         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
392         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
393         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
395 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
397         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
399 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
401         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
402         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
403         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
404         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
405         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
406         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
407         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
409 2007-05-29  Roland McGrath  <roland@redhat.com>
411         * po/Makefile (po-sed-cmd): New variable.
412         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
414 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
416         * crypt/md5-crypt.c: Fix comment.
418         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
419         of crashing.  When this is the case or if the reply is malformed,
420         don't try to close the new file descriptor since it does not
421         exist.
422         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
424 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
426         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
427         if __NR_utimensat is not defined.
429 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
431         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
433 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
435         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
436         (open): Fix comment typos.  Don't call __open_2 if flags
437         is a compile time constant without O_CREAT.
438         (__open64_2): Add nonnull attribute.
439         (open64): Fix comment typos.  Don't call __open64_2 if flags
440         is a compile time constant without O_CREAT.
441         (__openat_2): Add nonnull attribute, fix nonnull attribute
442         on redirect.
443         (openat): Fix comment typos.  Don't call __openat_2 if flags
444         is a compile time constant without O_CREAT.
445         (__openat64_2): Add nonnull attribute, fix nonnull attribute
446         on redirect.
447         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
448         is a compile time constant without O_CREAT.
450 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
452         * Makerules (sysd-rules): Define PTW for ptw-* files.
453         * Versions: Define GLIBC_2.7 for libc.
454         * include/stdio.h: Declare __fortify_fail.
455         * debug/fortify_fail.c: New file.
456         * debug/Makefile (routines): Add fortify_fail.
457         * debug/chk_fail.c: Use __fortify_fail.
458         * debug/stack_chk_fail.c: Likewise.
459         * io/Versions: Export __open_2, __open64_2, __openat_2, and
460         __openat64_2 for GLIBC_2.7.
461         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
462         * io/open.c: Define *_2 variant of function which checks for O_CREAT
463         and fails if necessary.
464         * io/open64.c: Likewise.
465         * io/openat.c: Likewise.
466         * io/openat64.c: Likewise.
467         * sysdeps/unix/sysv/linux/open64.c: Likewise.
468         * sysdeps/unix/sysv/linux/openat.c: Likewise.
469         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
470         * io/bits/fcntl2.h: New file.
471         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
472         __openat64_2.
473         * include/bits/fcntl2.h: New file.
474         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
475         Add open_2.
476         * sysdeps/unix/sysv/linux/open_2.c: New file.
478 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
480         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
481         as second parameter to handle_intel.
483         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
484         the entry.
486         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
487         handling to ...
488         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
489         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
490         cacheinfo.
491         * sysdeps/x86_64/memcpy.S: Complete rewrite.
492         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
493         Patch by Evandro Menezes <evandro.menezes@amd.com>.
495         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
497 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
499         [BZ #4525]
500         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
501         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
502         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
504         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
506         [BZ #4514]
507         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
508         reinitialize workend at the start of each do_positional format spec
509         loop, free workstart before do_positional loops.
510         (printf_unknown): Fix size of work_buffer.
511         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
513         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
514         (public_sET_STATe): If ms->version < 3, put all chunks into
515         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
516         chunks.
518         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
519         * malloc/hooks.c: Likewise.
520         * malloc/arena.c: Likewise.
521         * malloc/malloc.c (do_check_malloc_state): Don't assert
522         n_mmaps is not greater than n_mmaps_max.  This removes the need
523         for the previous change.
525         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
526         2007-05-07 commit.
528 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
530         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
531         Define for kernel >= 2.6.22.
533 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
535         * elf/dl-close.c (_dl_close_worker): When removing object from
536         global scope, wait for all lookups to finish afterwards.
537         * elf/dl-open.c (add_to_global): When global scope array must
538         grow, allocate a new one and free old array only after all
539         lookups finish.
540         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
541         (_dl_lookup_symbol_x): Likewise.
542         * elf/dl-support.c: Define _dl_wait_lookup_done.
543         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
544         _dl_wait_lookup_done.
546         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
547         not overlapping with arena.
549         * malloc/mcheck.c (reallochook): If size==0, free the block.
551         * rt/tst-shm.c: Use fstat64 instead of fstat.
553         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
554         __NR_sync_file_range is not defined.
556 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
558         Dummy files to prevent stub versions from being used.
559         * sysdeps/x86_64/fpu/k_cosl.c: New file.
560         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
561         * sysdeps/x86_64/fpu/k_sinl.c: New file.
562         * sysdeps/x86_64/fpu/k_tanl.c: New file.
564         * version.h (VERSION): Set to 2.6.90.
566 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
568         * version.h (VERSION): Define to 2.6.
569         * include/features.h (__GLIBC_MINOR__): Define to 6.
571         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
573         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
574         sizes.
576 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
578         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
579         number of mmaps.  n_mmaps_max is the target.
580         * malloc/hooks.c: Likewise.
581         * malloc/arena.c: Likewise.
583 2007-05-12  Andreas Jaeger  <aj@suse.de>
585         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
586         getpid.
588 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
590         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
591         adding new variables.
593         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
594         optimize.  Completely extend global scope array before making the
595         new entries visible.
597 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
599         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
600         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
601         tst-getcpu.
603         * include/link.h: Move l_version and l_nversion members around to
604         fill gaps.
606         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
608         * sysdeps/unix/sysv/linux/sched_setaffinity.c
609         (__sched_setaffinity_new): If syscall was successful and
610         RESET_VGETCPU_CACHE is defined, use it before returning.
611         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
613         * io/sys/stat.h: Make sure struct timespec is defined for
614         __USE_ATFILE.
616         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
617         UTIME_OMIT.
618         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
619         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
620         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
621         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
622         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
623         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
624         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
625         * io/sys/stat.h: Declare utimensat, futimens.
626         * io/utimensat.c: New file.
627         * io/futimens.c: New file.
628         * sysdeps/unix/sysv/linux/utimensat.c: New file.
629         * sysdeps/unix/sysv/linux/futimens.c: New file.
630         * io/Makefile (routines): Add utimensat, futimens.
631         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
632         * sysdeps/unix/sysv/linux/lutimes.c: New file.
633         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
634         available.
636         * include/sys/cdefs.h: Redefine __nonnull so that test for
637         incorrect parameters in the libc code itself are not omitted.
639 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
641         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
642         exception in addition to inexact when asked to raise only FE_INEXACT.
644         [BZ #3427]
645         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
646         in *envp.
648 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
650         [BZ #4403]
651         * string/strfry.c (strfry): Make result more random.
653 2007-05-07  Richard Henderson  <rth@redhat.com>
655         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
656         if __NO_LONG_DOUBLE_MATH.
657         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
658         available in the compiler, add .arch directive to the assembly.
660 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
662         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
663         compat_symbol to GLIBC_2_1.
664         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
665         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
666         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
667         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
668         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
669         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
670         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
671         libc, not libm.
672         (__isnanl): New compat_symbol.
674 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
675             Jakub Jelinek  <jakub@redhat.com>
677         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
678         (new_heap): Initialize mprotect_size.
679         (grow_heap): When growing, only mprotect from mprotect_size till
680         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
681         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
683 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
684             Peter Bergner  <bergner@us.ibm.com>
686         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
687         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
688         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
689         * sysdeps/powerpc/fpu/fe_mask.c: New file.
690         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
691         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
692         Call __fe_mask_env() if all FP exceptions disabled.
693         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
694         from old FPSCR to new fenv to propagate DFP rounding modes.
695         Call __fe_mask_env() if FP exceptions previously enabled.
696         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
697         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
698         transitioning from all exceptions disabled to any exception enabled
699         or visa versa.
700         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
701         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
702         when transitioning from all exceptions disabled to any exception
703         enabled or visa versa.
704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
711 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
713         [BZ #4465]
714         * posix/unistd.h: Remove __THROW from fdatasync.
716 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
718         [BZ #4465]
719         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
721 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
723         * stdio-common/vfprintf.c (process_string_arg): Optimize
724         ridiculous precision in wide char code printing multi-byte string.
725         Reported by Jim Meyering <jim@meyering.net>.
727         [BZ #4131]
728         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
729         boundaries to work around systems with overlapping binary loading.
730         Based on a patch by Suzuki <suzuki@in.ibm.com>.
732 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
734         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
735         __mbsnrtowcs after last change.
737         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
738         (get_ident): Likewise.
740 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
742         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
743         with setting the sticky bit.
744         * math/test-misc.c (main): Add more truncation tests.
746 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
748         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
749         double in the function declaration.
750         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
751         double in the function declaration.
752         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
753         float in the function declaration.
754         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
755         float in the function declaration.
757         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
758         denormal operands.  Do not generate FP_EX_DENORM exception.
759         (FP_UNPACK_RAW_EP): Ditto.
760         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
761         undefined _FP_UNPACK_RAW_E.
762         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
763         undefined _FP_UNPACK_RAW_EP.
764         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
765         undefined _FP_PACK_RAW_E.
766         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
767         undefined _FP_PACK_RAW_EP.
769         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
770         _FP_FRAC_COPY_2.
771         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
772         _FP_FRAC_COPY_4.
774 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
775             Jakub Jelinek  <jakub@redhat.com>
777         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
778         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
779         this case.
780         * soft-fp/op-common.h (FP_TRUNC): Ditto.
782 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
784         * math/test-misc.c (main): Add tests for rounding long double
785         values close to smallest double denormalized value to double.
787 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
789         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
790         condition for truncating to 0.  Set sticky bit for such
791         truncation.
793 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
795         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
796         fixed length array for ignore.
798 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
800         [BZ #4438]
801         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
802         stack for large precisions.
803         * stdio-common/test-vfprintf.c (main): Add test for large
804         precision.
806 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
808         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
809         for exponent 0.
810         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
812         [BZ #4439]
813         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
814         account in the size check.
815         * resolv/tst-inet_ntop.c: New test.
816         * resolv/Makefile (tests): Add tst-inet_ntop.
818 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
819             Jakub Jelinek  <jakub@redhat.com>
821         [BZ #4349]
822         * malloc/malloc.c: Keep separate list for first blocks on the bin
823         lists with a given size.  This helps skipping over list elements
824         we know won't fit in two places.
825         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
827 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
829         [BZ #4102]
830         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
831         label to Teredo tunnel addresses 2001://32.
833 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
835         * locale/programs/ld-collate.c (collate_read): Allow order_start
836         after copy.
838         * locale/programs/ld-collate.c (collate_read): Fix printing of
839         error message.
841         [BZ #3213]
842         * locale/C-translit.h.in: Add entry for U2044.
844         [BZ #4342]
845         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
846         hexa-decimal floats without exponent.
847         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
849 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
851         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
852         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
853         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
854         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
855         GLIBC_2.6.
856         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
857         Add sched_getcpu.
859 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
861         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
862         of 0 after the out_fail label.
864 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
866         [BZ #4406]
867         * iconv/gconv_charset.h (strip): Allow ':'.
868         * iconv/iconv_open.c (iconv_open): Adjust comment.
870 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
872         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
873         version.
875 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
877         [BZ #4381]
878         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
879         alignment of buffer and tmp_buffer.
880         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
881         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
882         alignment of buffer.
883         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
884         bigger than INT_MAX.
885         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
886         h_errnop arguments.  Fail if buflen is too small.
887         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
889 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
891         [BZ #4405]
892         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
893         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
895 2007-04-22  Roland McGrath  <roland@redhat.com>
897         * elf/elf.h (NT_PRXFPREG): New macro.
899 2007-04-19  Andreas Jaeger  <aj@suse.de>
901         [BZ #3905]
902         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
903         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
904         Added.
906 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
908         * include/sys/mman.h: Mark madvise hidden.
909         * misc/madvise.c: Add libc_hidden_def.
911 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
913         * nis/nis_domain_of.c (__nis_domain_of): New function.
914         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
915         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
916         * nis/nis_call.c (rec_dirsearch): Likewise.
917         (first_shoot): Likewise.  Remove search_parent_first argument.
918         (struct nis_server_cache): Rename search_parent_first field
919         to search_parent.
920         (nis_server_cache_search, nis_server_cache_add): Rename
921         search_parent_first argument to search_parent.
922         (__nisfind_server): Likewise.  If search_parent, call
923         __nis_domain_of.
925 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
927         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
929 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
931         [BZ #4368]
932         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
934 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
936         [BZ #4364]
937         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
939 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
941         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
942         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
943         current number of locales in SUPPORTED.
944         (create_archive): Initialize serial.
945         (enlarge_archive): Preserve aliases rather than duplicating
946         their locrecs.
948 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
950         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
951         after _IO_un_link, not before it.
953         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
954         special case handling when wcp == wstartp + 1.  Fix a comment typo.
955         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
957 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
959         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
960         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
961         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
962         Remove __THROW.
963         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
964         _IO_file_xsgetn_maybe_mmap): Likewise.
965         * libio/oldfileops.c (old_do_write): Likewise.
966         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
967         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
968         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
969         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
970         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
971         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
972         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
973         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
974         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
975         _IO_file_underflow, _IO_file_underflow_mmap,
976         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
977         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
978         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
979         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
980         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
981         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
982         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
983         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
984         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
985         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
986         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
987         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
988         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
989         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
990         _IO_adjust_column_internal, _IO_default_uflow_internal,
991         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
992         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
993         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
994         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
995         _IO_file_close_it_internal, _IO_file_underflow_internal,
996         _IO_file_overflow_internal, _IO_file_attach_internal,
997         _IO_file_fopen_internal, _IO_file_sync_internal,
998         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
999         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
1000         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
1001         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
1002         _IO_seekpos_unlocked): Likewise.
1003         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
1004         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
1006 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
1008         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
1009         argument in xmalloc size computation.
1011 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
1013         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
1014         math_opt_barrier and math_force_eval macros.
1016 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
1018         [BZ #3306]
1019         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
1020         * sysdeps/i386/fpu/math_private.h: New file.
1021         * sysdeps/x86_64/fpu/math_private.h: New file.
1022         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
1023         math_force_eval macros.  Use "+m" constraint on asm rather than
1024         "=m" and "m".
1025         * math/s_nextafter.c (__nextafter): Likewise.
1026         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
1027         Likewise.
1028         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
1029         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
1030         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1031         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
1032         math_opt_barrier and math_force_eval macros.
1033         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
1034         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
1035         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
1036         (__nexttoward): Use math_opt_barrier and
1037         math_force_eval macros.  Use "+m" constraint on asm rather than
1038         "=m" and "m".  Only use asm to force double result if
1039         FLT_EVAL_METHOD is 2.
1040         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
1041         (__nexttowardf): Use math_opt_barrier and
1042         math_force_eval macros.  Use "+m" constraint on asm rather than
1043         "=m" and "m".  Only use asm to force double result if
1044         FLT_EVAL_METHOD is not 0.
1045         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
1046         (__nexttowardf): Use math_opt_barrier and
1047         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
1048         x to float using asm.
1049         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
1050         (__nldbl_nexttowardf): Use math_opt_barrier and
1051         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
1052         x to float using asm.
1053         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
1054         (__nexttowardf): Use math_opt_barrier and math_force_eval
1055         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
1056         * math/bug-nextafter.c (zero, inf): New variables.
1057         (main): Add new tests.
1058         * math/bug-nexttoward.c (zero, inf): New variables.
1059         (main): Add new tests.
1061 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
1063         [BZ #3427]
1064         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
1065         exceptions both in SW and MXCSR.
1066         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
1067         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
1068         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1069         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1070         in MXCSR if SSE is available.
1071         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
1072         and ldsodefs.h.
1073         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
1074         Fix comment typo.
1075         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
1076         Return 0 rather than 1.
1077         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
1078         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
1079         * math/test-fenv.c (feholdexcept_tests): New function.
1080         (main): Call it.
1082 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
1084         [BZ #3427]
1085         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1086         in SW.
1088 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
1090         [BZ #4344]
1091         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
1092         Reported by David Anderson <davea42@earthlink.net>.
1094 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
1096         * posix/sys/wait.h: Remove unnecessary forward declaration.
1098 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
1100         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
1101         with obj->do_servers after first_shoot.
1103 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
1105         * posix/Makefile (routines): Add sched_cpucount.
1106         (tests): Add tst-cpucount.
1107         * posix/sched_cpucount.c: New file.
1108         * posix/tst-cpucount.c: New file.
1109         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
1110         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
1111         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1112         * posix/sched.h: Define CPU_COUNT.
1114 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
1116         * posix/fnmatch.c (STRUCT): Define.
1117         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
1118         * posix/fnmatch_loop.c (struct STRUCT): New type.
1119         (FCT): Add ends argument.  If ends != NULL and normal * is
1120         seen in the pattern, store current pattern and string pointers
1121         and return.  Adjust recursive calls.
1122         (EXT): Adjust FCT callers.
1123         (STRUCT): Undef at the end of the file.
1124         * posix/Makefile (tests): Add tst-fnmatch2.
1125         * posix/tst-fnmatch2.c: New test.
1127 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
1129         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
1130         and 1 on failure.
1132         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1133         Change last argument to unsigned int.
1135 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
1137         * scripts/check-local-headers.sh: Filter out sys/capability.h.
1139 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
1141         * config.h.in (HAVE_LIBCAP): Add.
1142         * nscd/selinux.h: Include sys/capability.h rather than non-existent
1143         sys/capabilities.h.
1144         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
1145         free_caps.  Cast away const from 4th cap_set_flag argument.
1147 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
1149         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
1150         GLIBC_2.6.
1151         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1152         Add sync_file_range.
1153         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1155 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
1157         * sysdeps/powerpc/bits/atomic.h
1158         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
1159         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
1160         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1161         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
1162         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1163         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
1164         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
1165         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1166         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1167         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1168         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
1169         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1170         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1171         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1172         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1173         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
1174         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1175         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
1176         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1177         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
1179 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1181         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1182         (__cache_line_size): Define the variable here.  Add
1183         attribute_hidden, remove weak_extern.
1184         (__libc_start_main): Set __cache_line_size
1185         unconditionally.
1186         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1187         (__cache_line_size): Define the variable here.  Add
1188         attribute_hidden, remove weak_extern.
1189         (DL_PLATFORM_AUXV): Set __cache_line_size
1190         unconditionally.
1191         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
1192         weak_extern, add attribute_hidden.
1193         (__elf_machine_runtime_setup): Assume __cache_line_size is always
1194         defined in ld.so.
1195         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
1196         definition.
1197         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
1199 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
1201         [BZ #4276]
1202         * timezone/africa: Update from tzdata2007d.
1203         * timezone/asia: Likewise.
1204         * timezone/australasia: Likewise.
1205         * timezone/backward: Likewise.
1206         * timezone/europe: Likewise.
1207         * timezone/iso3166.tab: Likewise.
1208         * timezone/leapseconds: Likewise.
1209         * timezone/northamerica: Likewise.
1210         * timezone/southamerica: Likewise.
1211         * timezone/zone.tab: Likewise.
1213         * timezone/private.h: Update from tzcode2007d.
1214         * timezone/zdump.c: Likewise.
1215         * timezone/zic.c: Likewise.
1217 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1219         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
1220         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
1221         variables.
1222         (nis_server_cache_search, nis_server_cache_add): New functions.
1223         (__nisfind_server): Use them.  Add dbp and flags argument, if
1224         call __nisbind_create.
1225         (__nisbind_create): Add server_used and current_ep arguments,
1226         only call __nis_findfastest if server_used is ~0.
1227         (__do_niscall2, __prepare_niscall): Adjust callers.
1228         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
1229         ckey_cache_euid, ckey_cache_lock): New variables.
1230         (get_ckey): New function.
1231         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
1232         __pmap_getnisport.  Save __pmap_getnisport result in
1233         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
1234         key.
1235         * nis/nis_lookup.c (nis_lookup): Likewise.
1236         * nis/nis_table.c (nis_list): Likewise.
1237         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
1238         prototypes.
1240         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
1241         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
1242         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
1243         _nss_nisplus_getservbyport_r): Likewise.
1244         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
1245         _nss_nisplus_getnetbyaddr_r): Likewise.
1246         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
1247         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
1248         _nss_nisplus_getntohost_r): Likewise.
1249         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
1250         _nss_nisplus_getrpcbynumber_r): Likewise.
1252 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1254         * configure.in (libc_cv_gnu89_inline): Only do compile test.
1255         * configure: Rebuilt.
1257         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
1258         bit-fields.
1259         * soft-fp/extended.h (_FP_UNION_E): Likewise.
1261 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
1263         [BZ #2831]
1264         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
1265         bit-fields.
1267 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
1269         * nscd/gai.c: Include alloca.h.
1270         (__libc_use_alloca): Define.
1272 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
1274         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
1275         smaller scopes.
1276         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
1277         (DL_DST_REQUIRED): Adjust user.
1279         * include/dlfcn.h (struct link_map): New forward decl.
1281         * inet/getnameinfo.c: Include stddef.h.
1282         (getnameinfo): Use offsetof.
1284         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
1286         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
1288         * string/strerror_l.c: Include stdlib.h.
1290         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
1291         * config.make.in (gnu89-inline-CFLAGS): New variable.
1292         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
1293         -std=gnu99.
1294         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
1295         * argp/argp.h: Use it.
1296         * bits/mathinline.h: Likewise.
1297         * bits/sigset.h: Likewise.
1298         * bits/string.h: Likewise.
1299         * ctype/ctype.h: Likewise.
1300         * hurd/hurd.h: Likewise.
1301         * hurd/hurd/fd.h: Likewise.
1302         * hurd/hurd/port.h: Likewise.
1303         * hurd/hurd/signal.h: Likewise.
1304         * hurd/hurd/threadvar.h: Likewise.
1305         * hurd/hurd/userlink.h: Likewise.
1306         * io/sys/stat.h: Likewise.
1307         * libio/bits/stdio.h: Likewise.
1308         * libio/bits/stdio2.h: Likewise.
1309         * mach/lock-intern.h: Likewise.
1310         * mach/mach/mig_support.h: Likewise.
1311         * math/bits/cmathcalls.h: Likewise.
1312         * posix/bits/unistd.h: Likewise.
1313         * socket/bits/socket2.h: Likewise.
1314         * stdlib/bits/stdlib.h: Likewise.
1315         * stdlib/stdlib.h: Likewise.
1316         * string/argz.h: Likewise.
1317         * string/bits/string2.h: Likewise.
1318         * string/bits/string3.h: Likewise.
1319         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
1320         * sysdeps/generic/inttypes.h: Likewise.
1321         * sysdeps/generic/machine-lock.h: Likewise.
1322         * sysdeps/generic/machine-sp.h: Likewise.
1323         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1324         * sysdeps/i386/i486/bits/string.h: Likewise.
1325         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
1326         * sysdeps/mach/alpha/machine-lock.h: Likewise.
1327         * sysdeps/mach/alpha/machine-sp.h: Likewise.
1328         * sysdeps/mach/i386/machine-lock.h: Likewise.
1329         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1330         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1331         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1332         * sysdeps/s390/bits/string.h: Likewise.
1333         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1334         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1335         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1336         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1337         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1338         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
1339         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1340         * wcsmbs/bits/wchar2.h: Likewise.
1341         * wcsmbs/wchar.h: Likewise.
1342         * stdlib/gmp.h: Likewise.  Include <features.h> to get
1343         __extern_inline definition.
1345 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
1347         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
1348         NULL.
1350         [BZ #3919]
1351         * math/libm-test.inc (log_test): Test -Inf and NaN.
1352         (log10_test, log1p_test, log2_test): Test -Inf.
1353         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
1354         FE_INVALID when argument is qNaN.
1355         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
1356         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
1357         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1358         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
1359         andb $1, %ah with testb $1, %ah, don't test for parity, instead
1360         testb $4, %ah and jump if non-zero.
1361         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1362         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1364         [BZ #4101]
1365         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
1366         ancestors with the same depths.
1367         Patch by Niels Moeller <nisse@lysator.liu.se>.
1368         (filter_doc): Don't crash if argp is NULL.
1369         * argp/Makefile (tests): Add tst-argp2.
1370         * argp/tst-argp2.c: New test.
1372         [BZ #4130]
1373         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
1374         open_not_cancel_2.
1375         (updwtmp_file): Likewise.
1377         [BZ #4181]
1378         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
1379         (inet6_opt_append): Don't check extlen is big enough if extbuf
1380         is NULL.
1381         (inet6_opt_finish): Likewise.
1382         * inet/Makefile (tests): Add test-inet6_opt.
1383         * inet/test-inet6_opt.c: New test.
1385         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
1386         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
1387         NLMSG_ERR.  Instead use a page sized buffer.
1388         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
1389         buffer.
1391 2007-03-14  Richard Henderson  <rth@redhat.com>
1393         * sysdeps/alpha/fpu/s_llround.c: New file.
1394         * sysdeps/alpha/fpu/s_llroundf.c: New file.
1395         * sysdeps/alpha/fpu/s_lround.c: New file.
1396         * sysdeps/alpha/fpu/s_lroundf.c: New file.
1397         * sysdeps/alpha/fpu/s_round.c: New file.
1398         * sysdeps/alpha/fpu/s_roundf.c: New file.
1399         * sysdeps/alpha/fpu/s_trunc.c: New file.
1400         * sysdeps/alpha/fpu/s_truncf.c: New file.
1402         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
1403         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
1404         * sysdeps/alpha/fpu/s_floor.c: Likewise.
1405         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
1406         * sysdeps/alpha/fpu/s_rint.c: Likewise.
1407         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
1409         * sysdeps/alpha/fpu/s_fmax.S: New file.
1410         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
1411         * sysdeps/alpha/fpu/s_fmin.S: New file.
1412         * sysdeps/alpha/fpu/s_fminf.S: New file.
1413         * sysdeps/alpha/fpu/s_isnan.c: New file.
1414         * sysdeps/alpha/fpu/s_isnanf.c: New file.
1415         * sysdeps/alpha/fpu/s_llrint.c: New file.
1416         * sysdeps/alpha/fpu/s_llrintf.c: New file.
1417         * sysdeps/alpha/fpu/s_lrint.c: New file.
1418         * sysdeps/alpha/fpu/s_lrintf.c: New file.
1419         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
1420         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
1422         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
1423         (__fdimf, fdimf, __fdim, fdim): Remove.
1424         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
1425         (__isnanf, __isnan, __isnanl): New.
1427 2007-03-13  Richard Henderson  <rth@redhat.com>
1429         * sysdeps/ieee754/ldbl-128/Makefile: New file.
1431 2007-03-13  Richard Henderson  <rth@redhat.com>
1433         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
1434         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
1435         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1436         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
1437         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
1438         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
1440 2007-03-13  Richard Henderson  <rth@redhat.com>
1442         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
1443         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
1444         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
1445         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
1446         Move to dl-auxv.h; initialize instead of extern weak.
1447         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
1448         weak symbol.
1449         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
1450         Extern instead of initialized.
1452 2007-03-13  Richard Henderson  <rth@redhat.com>
1454         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
1455         __sigsuspend_nocancel.
1457 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
1459         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
1460         172.16/12 address range.
1462 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
1464         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
1465         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
1466         message.
1468 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
1470         [BZ #4069]
1471         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
1472         earlier.
1473         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
1475         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
1476         for x qNaN and y either +-inf or non-integer value.
1477         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
1478         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1479         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1481 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
1483         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
1484         from sysdep_headers.
1486 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
1488         * time/tzfile.c (find_transition): Instead of a linear search try to
1489         guess the transition index, use a linear search if the result is at
1490         most 10 transitions away from the guess or binary search otherwise.
1492 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
1494         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
1495         memory reallocation.
1497 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
1499         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
1500         and fix some typos.
1501         Optimize use of TOLOWER.
1503         [BZ #3325]
1504         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
1505         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1506         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1508         [BZ #3458]
1509         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
1510         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
1512         [BZ #4076]
1513         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
1514         (open_dir_stream): Likewise.
1515         * io/Makefile (tests): Add bug-ftw5.
1516         * io/bug-ftw5.c: New file.
1518         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
1519         * nscd/servicescache.c (cache_addserv): Likewise.
1521         * nscd/grpcache.c (cache_addgr): In case a record changed on
1522         refresh, adjust key_copy.
1524         [BZ #4074]
1525         * nscd/pwdcache.c (cache_addpw): In case a record changed on
1526         refresh, adjust key_copy.
1528         [BZ #4070]
1529         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
1530         special cases.
1531         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
1533 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
1535         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
1536         optimization.
1538         * stdio-common/vfscanf.c: Small cleanups throughout.
1540 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
1542         [BZ #3325]
1543         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
1544         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1545         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1546         Patch by Jared Casper <jaredcasper@gmail.com>.
1548         * sysdeps/unix/closedir.c: Outside libc don't use locking.
1549         * sysdeps/unix/opendir.c: Likewise.
1550         * sysdeps/unix/readdir.c: Likewise.
1552         [BZ #2211]
1553         * stdio-common/vfscanf.c: Handle localized digits etc for floating
1554         point numbers.
1555         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
1557         * stdio-common/vfscanf.c: Fix problems in width accounting.
1558         * stdio-common/tst-sscanf.c (double_tests): New tests.
1559         (main): Hook them up.
1561         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
1562         More simplifications of floating-point reader.
1564         * stdio-common/Makefile (tests): Add tst-swscanf.
1565         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
1566         testing.
1567         * stdio-common/tst-swscanf.c: New file.
1569 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
1571         [BZ #2633]
1572         * libio/stdio.h: Define struct _IO_FILE in global namespace.
1573         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
1574         Remove using for __jmp_buf_tag.
1575         * locale/locale.h (struct lconv): Also define in std namespace.
1576         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
1578         [BZ #3842]
1579         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
1580         using __libc_enable_secure.
1582         [BZ #3818]
1583         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
1585         [BZ #3745]
1586         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
1587         of names for ellipsises.
1589         [BZ #3348]
1590         * malloc/memusage.sh: Cleanups.
1591         * debug/xtrace.sh: Quoting and trap changes.
1593 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
1595         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
1597         * locale/iso-3166.def: Update entry for Serbia.
1598         * locale/iso-4217.def: Define RSD, remove CSD.
1600         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
1601         and 64-bit operations.
1603         [BZ #4040]
1604         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
1605         16-bit operations.
1607         * nscd/nscd.c (parse_opt): One more conversion to use send instead
1608         of writev.
1610 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
1612         [BZ #3991]
1613         * assert/assert.h (assert): Simplify.
1614         (assert_perror): Likewise.
1615         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
1617         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
1618         reqdata.
1620         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
1621         change: don't pass NULL in place of an integer.
1623 2007-02-02  Bruno Haible  <bruno@clisp.org>
1625         [BZ #3954]
1626         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
1627         Add mapping for U+327E.
1628         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
1629         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1630         mapping of 0xD9 0xE8.
1631         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
1632         mapping of U+327E.
1633         Reported by Jungshik Shin <jungshik@google.com>.
1635         [BZ #3955]
1636         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1637         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
1638         Reported by Jungshik Shin <jungshik@google.com>.
1640 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
1642         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
1643         byte variants.
1645         [BZ #4040]
1646         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
1647         byte variants.  Patch mostly be tom@tommay.net.
1649 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
1651         [BZ #3996]
1652         * posix/glob.c (attribute_hidden): Define if not defined.
1653         (glob): Unescape dirname, filename or username when needed and not
1654         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
1655         is NULL.  Handle unescaped [ in pattern without closing ].
1656         Don't pass GLOB_CHECK down to recursive glob for directories.
1657         (__glob_pattern_type): New function.
1658         (__glob_pattern_p): Implement using __glob_pattern_type.
1659         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
1660         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
1661         Remove unreachable code.
1662         * posix/globtest.sh: Add a couple of new tests.
1664 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
1666         * po/ru.po: Update from translation team.
1668 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
1670         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
1671         to the list of i486+ CPUs.
1672         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1674 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
1676         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
1677         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
1678         references.
1680 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
1682         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
1684         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
1685         * resolv/res_mkquery.c: Define __res_nopt.
1686         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
1687         try adding EDNS0 record.
1688         * resolv/res_send.c (send_dg): If request failed with FORMERR and
1689         EDNS0 record was send make sure we don't try it again.
1690         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
1691         * include/resolv.h: Declare __res_nopt.
1693 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
1695         [BZ #3944]
1696         * time/strptime_l.c (__strptime_internal): Set have_mon for
1697         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
1698         have been computed from tm_yday and tm_year.  Don't crash
1699         in day_of_the_week or day_of_the_year if not have_mon
1700         and tm_mon contains bogus value.
1701         * time/Makefile (tests): Add tst-strptime3.
1702         * time/tst-strptime3.c: New test.
1704 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
1706         [BZ #3957]
1707         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1708         bit for RE_HAT_LISTS_NOT_NEWLINE.
1709         (build_charclass_op): Remove bogus comment.
1710         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
1711         * posix/bug-regex27.c: New test.
1712         * posix/bug-regex28.c: New test.
1714 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
1716         * po/sv.po: Update from translation team.
1718 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
1720         * nscd/nscd_helper.c (open_socket): Minor size optimization.
1722 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1724         * include/locale.h (__uselocale): Add libc_hidden_proto.
1725         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
1727         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
1728         gettimeofday.
1730 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
1732         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
1733         returning.
1734         (PTR_DEMANGLE): Real definition now that it's not the same as
1735         PRT_MANGLE anymore.
1736         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1738         * string/strerror_l.c: New file.
1739         * string/Makefile (routines): Add strerror_l.
1740         * string/string.h: Declare strerror_l.
1741         * string/Versions: Export strerror_l for GLIBC_2.6.
1743 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
1745         * nscd/nscd_helper.c (open_socket): Now takes request type and key
1746         as parameter.  Construct request record.  Try sending request
1747         before the first poll use, it usually succeeds.  Adjust all
1748         callers.
1749         * nscd/nscd-client.h: Define MAXKEYLEN.
1750         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
1752 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
1754         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
1755         from return value.
1756         * nscd/nscd_helper.c: Include string.h.
1757         (__nscd_cache_search): Remove const qualifier from return value.
1758         On strict alignment architectures check hash entry and data head
1759         alignment.
1760         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
1761         mmapped data during GC cycle contains garbage.  If
1762         __nscd_drop_map_ref fails, decrement mapped->counter when returning
1763         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
1764         dropped to 0.
1765         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1766         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1767         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1768         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1769         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1771 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
1773         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
1775 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
1777         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
1778         names not numbers in cfi_*.
1780 2007-01-26  Andreas Jaeger  <aj@suse.de>
1782         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
1783         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
1784         Correct values of PER_HPUX and PER_OSF4.
1786 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
1788         * elf/dl-minimal.c: Undefine _itoa first.
1789         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
1790         * malloc/mtrace.c: Revert last change.
1791         * posix/wordexp.c: Likewise.
1793 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1795         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
1796         and __geode__ to the list of i486+ CPUs.
1797         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1799 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
1801         * stdio-common/_itoa.c: Include <limits.h>.
1802         * stdio-common/_itowa.c: Likewise.
1804 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
1806         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
1807         platforms.
1808         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
1809         64-bit platforms.
1810         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
1811         possible.
1812         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
1813         if possible.
1815         [BZ #3902]
1816         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
1817         * stdio-common/Makefile (tests): Add bug17.
1818         * stdio-common/bug17.c: New file.
1820 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
1822         * iconvdata/brf.c: New file.
1823         * iconvdata/testdata/BRF: New file.
1824         * iconvdata/testdata/BRF..UTF8: New file.
1825         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1826         * iconvdata/Makefile: Add rules to build BRF.
1827         * iconvdata/TESTS: Add BRF entry.
1828         * iconvdata/gconv-modules: Likewise.
1829         * iconvdata/tst-tables.sh: Likewise.
1831 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
1833         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
1834         type `long long int', not `long int'.
1835         (wcstoq): Likewise.
1837 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
1839         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
1840         of values on 64-bit platforms which are too large.
1842 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
1843             Joe Kerian  <jkerian@us.us.ibm.com>
1845         [BZ #2749]
1846         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
1847         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
1848         (__copysignl): Use signbit() for comparison.
1849         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
1850         SET_LDOUBLE_WORDS64.
1852         [BZ #2423, #2749]
1853         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
1854         (__ceill): Remove calls to fegetround(), fesetround().
1855         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1856         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
1857         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
1859 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
1861         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
1863         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
1865 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
1867         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
1868         demangle pointer.
1869         * csu/libc-start.c: Likewise.
1871 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
1873         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
1874         really work anyway.
1876 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
1878         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
1879         users.
1880         (handle_request): Remove unnecessary tests.
1882         * nscd/cache.c (cache_add): Record the failure to add to the cache.
1884 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
1886         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
1887         workbits in semi-raw fraction.
1889         * math/test-misc.c: Add new tests.
1891 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
1893         * math/basic-test.c: Include test-skeleton.c.
1894         (TEST_TRUNC): Define.
1895         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
1896         (main): Rename to ...
1897         (do_test): ...this.  Run new tests.
1898         (TEST_FUNCTION): Define.
1900 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
1901             Joe Kerian  <jkerian@us.us.ibm.com>
1903         [BZ #2749]
1904         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
1905         handling for high words.
1906         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
1907         and overflow for infinity.
1909 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
1911         * nscd/connections.c (handle_request): Add a __builtin_expect.
1913         * nscd/connections.c (serv2db): Change type into structure which
1914         also says whether this is a request for data.  Renamed to
1915         servinfo.  All users changed.
1916         (handle_request): Much simpler test whether we should search the cache.
1918         * nscd/connections.c (handle_request): Fix thinko in selinux test
1919         invocation.
1921         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
1922         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
1923         it before getting dl_load_lock and then relock.
1924         (_dl_lookup_symbol_x): Pass flags to add_dependency.
1925         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
1926         case we unlocked the scope.
1927         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
1928         _dl_lookup_symbol_x in case we locked the scope.
1929         (_dl_profile_fixup): Likewise.
1930         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
1931         set DL_LOOKUP_SCOPE_LOCK.
1933 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
1935         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
1936         CFLAGS-getsrvbynpt_r.c.
1937         * nscd/getsrvbynm_r.c: New file.
1938         * nscd/getsrvbypt_r.c: New file.
1939         * nscd/nscd_getserv_r.c: New file.
1940         * nscd/servicescache.c: New file.
1941         * nscd/Makefile (routines): Add nscd_getserv_r.
1942         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
1943         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
1944         CFLAGS-getsrvbypt_r.c.
1945         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
1946         table.  Add entries for services database.
1947         * nscd/connections.c (serv2str): Mark as const.  Add entries for
1948         services database.
1949         (dbs): Add .reset_res and servdb initialization.
1950         (serv2db): Add entries for services database.
1951         (verify_persistent_db): Accept dbnr == servdb.
1952         (invalidate_cache): Rewrite database name recognition to use a table.
1953         Call res_init() if .reset_res is set for database.
1954         (handle_request): Add code to handle services database.
1955         * nscd/gai.c: Don't define __getservbyname_r.
1956         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
1957         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
1958         (serv_response_header): Define.
1959         (struct datahead): Add serv_response_header member.
1960         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
1961         using table.
1962         * nscd/nscd.conf: Add entries for services database.
1963         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
1964         Declare serv_iov_disabled.
1965         Declare addservbyname, readdservbyname, addservbyport, and
1966         readdservbyport.
1967         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
1968         (find_db): Fix error message.
1969         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
1970         __nscd_getservbyname_r, and __nscd_getservbyport_r.
1971         * nscd/selinux.c (perms): Add entries for services database.
1972         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
1973         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
1975         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
1976         * nscd/hstcache.c: Likewise.
1977         * nscd/pwdcache.c: Likewise.
1979         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
1980         computation of keylen.
1982         * include/string.h: Only redefine strndupa if this is really for
1983         libc code.
1985 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
1987         * nscd/nscd_gethst_r.c: Minor cleanups.
1989         * nscd/connections.c (handle_request): Check selinux permissions
1990         for all non-admin commands.
1992         * sysdeps/i386/i486/bits/atomic.h: Define
1993         atomic_compare_and_exchange_val_acq,
1994         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
1995         using __sync_* built-ins for gcc >= 4.1.
1996         * sysdeps/x86_64/bits/atomic.h: Likewise.
1998         [BZ #3840]
1999         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
2000         and .oS.d files.
2002 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
2004         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
2005         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
2006         (do_test): Check errno and exit(0) if ENOSYS.
2008 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2010         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
2011         thousands separators.
2012         * stdlib/Makefile: Add rules to build and run tst-strtod4.
2013         * stdlib/tst-strtod4.c: New test.
2015         [BZ #3855]
2016         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
2017         hexadecimal digit should accept just the initial 0.
2018         * stdlib/tst-strtod2.c (tests): New variable.
2019         (do_test): Run several tests rather than just one.
2021 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2023         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
2024         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2026 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
2028         * io/fts.c: Make sure fts_cur is always valid after return from
2029         fts_read.
2030         Patch by Miloslav Trmac <mitr@redhat.com>.
2032 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
2034         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
2035         (R_MIPS_NUM): Bump by 1.
2037 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
2039         * posix/execvp.c: Include alloca.h.
2040         (allocate_scripts_argv): Renamed to...
2041         (scripts_argv): ... this.  Don't allocate buffer here nor count
2042         arguments.
2043         (execvp): Use alloca if possible.
2044         * posix/Makefile: Add rules to build and run tst-vfork3 test.
2045         * posix/tst-vfork3.c: New test.
2047 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
2049         * string/Makefile (tst-strxfrm2-ENV): Define.
2050         * stdlib/Makefile (tst-strtod3-ENV): Define.
2052 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
2054         * posix/getconf.c: Update copyright year.
2055         * nss/getent.c: Likewise.
2056         * iconv/iconvconfig.c: Likewise.
2057         * iconv/iconv_prog.c: Likewise.
2058         * elf/ldconfig.c: Likewise.
2059         * catgets/gencat.c: Likewise.
2060         * csu/version.c: Likewise.
2061         * elf/ldd.bash.in: Likewise.
2062         * elf/sprof.c (print_version): Likewise.
2063         * locale/programs/locale.c: Likewise.
2064         * locale/programs/localedef.c: Likewise.
2065         * nscd/nscd.c (print_version): Likewise.
2066         * debug/xtrace.sh: Likewise.
2067         * malloc/memusage.sh: Likewise.
2068         * malloc/mtrace.pl: Likewise.
2069         * debug/catchsegv.sh: Likewise.
2071 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
2073         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
2074         attempts.
2076 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
2078         * posix/wordexp.c: Remove some unnecessary tests.
2080 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
2082         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
2083         blacklist the group till after we look it up.
2085 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
2087         * include/atomic.h (atomic_forced_read): New macro.
2089 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2091         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
2093 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
2095         * nss/getXXbyYY_r.c: Include atomic.h.
2096         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
2097         add atomic_write_barrier () in between.
2099         * stdlib/Makefile (tests): Add tst-makecontext.
2100         * stdlib/tst-makecontext.c: New test.
2102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
2103         (__makecontext): Don't realign uc_mcontext.uc_regs.
2105 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
2107         * elf/dl-support.c: Include dl-procinfo.h.
2108         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
2109         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
2110         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
2111         Define.
2112         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
2113         hardcoded constants.
2114         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
2115         PPC_PLATFORM_* macros for array designators.
2117 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
2119         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
2120         names to the beginning.
2121         (_dl_powerpc_platforms): Add "power6x".
2122         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2123         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
2124         (_DL_PLATFORMS_COUNT): Increase.
2125         (_dl_string_platform): Handle power6x case.
2126         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
2127         PPC_FEATURE_POWER6_EXT): Define.
2128         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
2130 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
2132         [BZ #3747]
2133         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
2134         [-2^31 .. 2^31) range.
2135         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
2136         targets.
2137         * stdlib/tst-rand48-2.c: New test.
2138         * stdlib/Makefile (tests): Add tst-rand48-2.
2140 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
2142         * misc/tst-pselect.c (do_test): Fix sigblock argument.
2144 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
2146         * misc/tst-pselect.c (do_test): Make sure the helper process is
2147         terminating when the test is aborted.
2149 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
2151         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
2152         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2153         Handle relatime mount option.
2155         [BZ #2337]
2156         * libio/Makefile (tests): Add tst-setvbuf1.
2157         * libio/tst-setvbuf1.c: New file.
2159 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
2161         [BZ #2337]
2162         * libio/genops.c (__uflow): Fix a typo.
2163         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
2164         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
2165         the narrow buffer size.
2167 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
2169         [BZ #2337]
2170         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
2171         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
2172         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
2173         in _flags.
2174         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
2175         _IO_wstr_finish): Likewise.
2176         * libio/wmemstream.c (open_wmemstream): Likewise.
2177         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
2178         even for wide streams.
2180 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
2182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
2183         kernel-features.h.
2185 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
2187         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
2188         separators also if no non-zero digits found.
2189         * stdlib/Makefile (tests): Add tst-strtod3.
2191 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
2193         [BZ #3632]
2194         * include/features.h: Fix comment about default value for
2195         _POSIX_C_SOURCE.
2197         [BZ #3664]
2198         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
2199         empty parsed strings.
2200         * stdlib/Makefile (tests): Add tst-strtod2.
2201         * stdlib/tst-strtod2.c: New file.
2203         [BZ #3673]
2204         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
2205         computation.
2206         * stdlib/Makefile (tests): Add tst-atof2.
2207         * stdlib/tst-atof2.c: New file.
2209         [BZ #3674]
2210         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
2211         correctly if removing trailing zero of hex-float.
2212         * stdlib/Makefile (tests): Add tst-atof1.
2213         * stdlib/tst-atof1.c: New file.
2215 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
2217         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
2218         Start searching for next comma at p rather than rest.
2219         * misc/Makefile (tests): Add tst-mntent2.
2220         * misc/tst-mntent2.c: New test.
2222         * misc/getusershell.c (initshells): Check for integer overflows.
2223         Make strings buffer one bigger as fgets always succeeds when second
2224         argument is 1.  Don't use calloc for shells array.  Disallow
2225         / as shell.
2227 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
2229         * malloc/memusage.c: Handle realloc with new size of zero and
2230         non-NULL pointer correctly.
2231         (me): Really write first record twice.
2232         (struct entry): Make format bi-arch safe.
2233         (dest): Write out more realloc statistics.
2234         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
2236 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
2238         * nis/nis_subr.c (nis_getnames): Revert last change.
2240 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2242         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
2243         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
2244         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
2245         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
2246         ENOTTY.
2247         * io/Makefile: Add rules to build and run tst-ttyname_r test.
2248         * io/tst-ttyname_r.c: New test.
2250 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2252         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
2254 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
2256         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
2257         jump table entries.
2259 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2261         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
2262         `clone' function to ensure proper unwinding stop of gdb.
2263         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2265 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
2267         * nscd/nscd.init: Remove obsolete and commented-out -S option
2268         handling.
2270 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
2272         [BZ #3514]
2273         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
2275         [BZ #3515]
2276         * manual/string.texi (strtok): Remove duplicate paragraph.
2278 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2280         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
2281         libgcc not supporting `rflags' unwinding (register # >= 17).
2283 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
2285         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
2286         succeeded.
2288 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
2289             Jakub Jelinek  <jakub@redhat.com>
2290             Jan Kratochvil  <jan.kratochvil@redhat.com>
2292         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
2293         unwind information.
2294         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
2295         'restore_rt' even in the 'signal' directory.
2296         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
2298 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
2300         [BZ #3559]
2301         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
2302         malloc crashed.  Don't allocate memory unnecessarily in each
2303         loop.
2305 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
2307         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
2309 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
2311         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
2313 2006-11-18  Bruno Haible  <bruno@clisp.org>
2315         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
2316         __sysconf only after having tried to call getgroups32.
2318 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
2320         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
2321         addresses for IPv4 queries if they can be mapped.
2323 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
2325         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
2326         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
2327         (signmask): Add .size directive.
2328         (othermask): Add .type directive.
2330 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
2332         * po/nl.po: Update from translation team.
2334         * timezone/zdump.c: Redo fix for BZ #3137.
2336 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
2338         * nss/nss_files/files-alias.c (get_next_alias): Set line back
2339         to first_unused after parsing :include: file.
2341 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
2343         * timezone/africa: Update from tzdata2006o.
2344         * timezone/antarctica: Likewise.
2345         * timezone/asia: Likewise.
2346         * timezone/australasia: Likewise.
2347         * timezone/backward: Likewise.
2348         * timezone/europe: Likewise.
2349         * timezone/iso3166.tab: Likewise.
2350         * timezone/northamerica: Likewise.
2351         * timezone/southamerica: Likewise.
2352         * timezone/zone.tab: Likewise.
2354         * time/tzfile.c (__tzfile_read): Extend to handle new file format
2355         on machines with 64-bit time_t.
2357         * timezone/checktab.awk: Update from tzcode2006o.
2358         * timezone/ialloc.c: Likewise.
2359         * timezone/private.h: Likewise.
2360         * timezone/scheck.c: Likewise.
2361         * timezone/tzfile.h: Likewise.
2362         * timezone/tzselect.ksh: Likewise.
2363         * timezone/zdump.c: Likewise.
2364         * timezone/zic.c: Likewise.
2366         [BZ #3483]
2367         * elf/ldconfig.c (main): Call setlocale and textdomain.
2368         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2370         [BZ #3480]
2371         * manual/argp.texi: Fix typos.
2372         * manual/charset.texi: Likewise.
2373         * manual/errno.texi: Likewise.
2374         * manual/filesys.texi: Likewise.
2375         * manual/lang.texi: Likewise.
2376         * manual/maint.texi: Likewise.
2377         * manual/memory.texi: Likewise.
2378         * manual/message.texi: Likewise.
2379         * manual/resource.texi: Likewise.
2380         * manual/search.texi: Likewise.
2381         * manual/signal.texi: Likewise.
2382         * manual/startup.texi: Likewise.
2383         * manual/stdio.texi: Likewise.
2384         * manual/sysinfo.texi: Likewise.
2385         * manual/syslog.texi: Likewise.
2386         * manual/time.texi: Likewise.
2387         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2389         [BZ #3465]
2390         * sunrpc/clnt_raw.c: Minimal message improvements.
2391         * sunrpc/pm_getmaps.c: Likewise.
2392         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2393         * nis/nis_print_group_entry.c: Likewise.
2394         * locale/programs/repertoire.c: Likewise.
2395         * locale/programs/charmap.c: Likewise.
2396         * malloc/memusage.sh: Likewise.
2397         * elf/dl-deps.c: Likewise.
2398         * locale/programs/ld-collate.c: Likewise.
2399         * libio/vswprintf.c: Likewise.
2400         * malloc/memusagestat.c: Likewise.
2401         * sunrpc/auth_unix.c: Likewise.
2402         * sunrpc/rpc_main.c: Likewise.
2403         * nscd/cache.c: Likewise.
2404         * locale/programs/repertoire.c: Unify output messages.
2405         * locale/programs/charmap.c: Likewise.
2406         * locale/programs/ld-ctype.c: Likewise.
2407         * locale/programs/ld-monetary.c: Likewise.
2408         * locale/programs/ld-numeric.c: Likewise.
2409         * locale/programs/ld-time.c: Likewise.
2410         * elf/ldconfig.c: Likewise.
2411         * nscd/selinux.c: Likewise.
2412         * elf/cache.c: Likewise.
2413         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2415         [BZ #3451]
2416         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
2417         change atomic.
2418         (ceil): Likewise.
2420 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
2422         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
2423         if N is one bigger than return value.
2424         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
2425         and l1 last arguments, if buf is defined, verify the return value
2426         equals to strlen (buf) and verify no byte beyond passed length
2427         is modified.
2429 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
2431         * po/sv.po: Update from translation team.
2433 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
2435         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
2436         noinline attribute.
2438 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
2440         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
2441         noinline attribute.
2443         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
2444         Use __new_sys_siglist instead of _sys_siglist_internal as
2445         second macro argument.
2446         (_old_sys_siglist): Use declare_symbol_alias macro instead of
2447         strong_alias.
2449 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
2451         [BZ #3493]
2452         * posix/unistd.h (sysconf): Remove const attribute.
2454         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
2455         temporary or deprecated addresses.
2456         Patch by Sridhar Samudrala <sri@us.ibm.com>.
2458         * string/Makefile (tests): Add tst-strxfrm2.
2459         * string/tst-strxfrm2.c: New file.
2461 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
2463         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
2464         rather than r->r_brk.
2466 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
2468         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
2469         optimization even if needed > n.
2471         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
2472         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
2473         return false, otherwise return true.
2474         (cache_rpath): Return decompose_rpath return value.
2476 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
2478         * include/libc-symbols.h (declare_symbol): Rename to...
2479         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
2480         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
2481         .size directive.
2482         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
2483         changes.
2484         * sysdeps/gnu/siglist.c: Likewise.
2486 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
2488         * sysdeps/powerpc/fpu/bits/mathinline.h
2489         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
2490         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
2492 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
2494         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2495         Update handling of cache descriptor 0x49 for new models.
2496         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
2497         Likewise.
2499 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
2501         * malloc/memusage.c (dest): Reset not_me back to false after
2502         printing statistics.
2504 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
2506         * configure.in: Work around ld --help change and avoid -z relro
2507         test completely if the architecture doesn't care about security.
2509 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
2511         * po/sv.po: Update from translation team.
2513 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
2515         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
2516         generate compatibility version.
2518 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
2520         * configure.in: Relax -z relro requirement a bit.
2522         * po/sv.po: Update from translation team.
2524 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2526         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
2527         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
2528         * elf/dl-close.c (_dl_close_worker): Likewise.
2529         * elf/dl-open.c (_dl_open_worker): Likewise.
2530         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
2532 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
2534         * configure.in: Require assembler support for visibility, compiler
2535         support for visibility and aliases, linker support for various -z
2536         options.
2537         * Makeconfig: Remove conditional code which now is unnecessary.
2538         * config.h.in: Likewise.
2539         * config.make.in: Likewise.
2540         * dlfcn/Makefile: Likewise.
2541         * elf/Makefile: Likewise.
2542         * elf/dl-load.c: Likewise.
2543         * elf/rtld.c: Likewise.
2544         * include/libc-symbols.h: Likewise.
2545         * include/stdio.h: Likewise.
2546         * io/Makefile: Likewise.
2547         * io/fstat.c: Likewise.
2548         * io/fstat64.c: Likewise.
2549         * io/fstatat.c: Likewise.
2550         * io/fstatat64.c: Likewise.
2551         * io/lstat.c: Likewise.
2552         * io/lstat64.c: Likewise.
2553         * io/mknod.c: Likewise.
2554         * io/mknodat.c: Likewise.
2555         * io/stat.c: Likewise.
2556         * io/stat64.c: Likewise.
2557         * libio/stdio.c: Likewise.
2558         * nscd/Makefile: Likewise.
2559         * stdlib/Makefile: Likewise.
2560         * stdlib/atexit.c: Likewise.
2561         * sysdeps/generic/ldsodefs.h: Likewise.
2562         * sysdeps/i386/dl-machine.h: Likewise.
2563         * sysdeps/i386/sysdep.h: Likewise.
2564         * sysdeps/i386/i686/memcmp.S: Likewise.
2565         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2566         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2567         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2569         * Makerules: USE_TLS support is now default.
2570         * tls.make.c: Likewise.
2571         * csu/Versions: Likewise.
2572         * csu/libc-start.c: Likewise.
2573         * csu/libc-tls.c: Likewise.
2574         * csu/version.c: Likewise.
2575         * dlfcn/dlinfo.c: Likewise.
2576         * elf/dl-addr.c: Likewise.
2577         * elf/dl-cache.c: Likewise.
2578         * elf/dl-close.c: Likewise.
2579         * elf/dl-iteratephdr.c: Likewise.
2580         * elf/dl-load.c: Likewise.
2581         * elf/dl-lookup.c: Likewise.
2582         * elf/dl-object.c: Likewise.
2583         * elf/dl-open.c: Likewise.
2584         * elf/dl-reloc.c: Likewise.
2585         * elf/dl-support.c: Likewise.
2586         * elf/dl-sym.c: Likewise.
2587         * elf/dl-sysdep.c: Likewise.
2588         * elf/dl-tls.c: Likewise.
2589         * elf/ldconfig.c: Likewise.
2590         * elf/rtld.c: Likewise.
2591         * elf/tst-tls-dlinfo.c: Likewise.
2592         * elf/tst-tls1.c: Likewise.
2593         * elf/tst-tls10.h: Likewise.
2594         * elf/tst-tls14.c: Likewise.
2595         * elf/tst-tls2.c: Likewise.
2596         * elf/tst-tls3.c: Likewise.
2597         * elf/tst-tls4.c: Likewise.
2598         * elf/tst-tls5.c: Likewise.
2599         * elf/tst-tls6.c: Likewise.
2600         * elf/tst-tls7.c: Likewise.
2601         * elf/tst-tls8.c: Likewise.
2602         * elf/tst-tls9.c: Likewise.
2603         * elf/tst-tlsmod1.c: Likewise.
2604         * elf/tst-tlsmod13.c: Likewise.
2605         * elf/tst-tlsmod13a.c: Likewise.
2606         * elf/tst-tlsmod14a.c: Likewise.
2607         * elf/tst-tlsmod2.c: Likewise.
2608         * elf/tst-tlsmod3.c: Likewise.
2609         * elf/tst-tlsmod4.c: Likewise.
2610         * elf/tst-tlsmod5.c: Likewise.
2611         * elf/tst-tlsmod6.c: Likewise.
2612         * include/errno.h: Likewise.
2613         * include/link.h: Likewise.
2614         * include/tls.h: Likewise.
2615         * locale/global-locale.c: Likewise.
2616         * locale/localeinfo.h: Likewise.
2617         * malloc/arena.c: Likewise.
2618         * malloc/hooks.c: Likewise.
2619         * malloc/malloc.c: Likewise.
2620         * resolv/Versions: Likewise.
2621         * sysdeps/alpha/dl-machine.h: Likewise.
2622         * sysdeps/alpha/libc-tls.c: Likewise.
2623         * sysdeps/generic/ldsodefs.h: Likewise.
2624         * sysdeps/generic/tls.h: Likewise.
2625         * sysdeps/i386/dl-machine.h: Likewise.
2626         * sysdeps/ia64/dl-machine.h: Likewise.
2627         * sysdeps/ia64/libc-tls.c: Likewise.
2628         * sysdeps/mach/hurd/fork.c: Likewise.
2629         * sysdeps/mach/hurd/i386/tls.h: Likewise.
2630         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
2631         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2632         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2633         * sysdeps/s390/libc-tls.c: Likewise.
2634         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2635         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2636         * sysdeps/sh/dl-machine.h: Likewise.
2637         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2638         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2639         * sysdeps/x86_64/dl-machine.h: Likewise.
2641         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
2642         split out locking and parameter checking.
2643         (_dl_close): Call _dl_close_worker after locking and checking.
2644         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
2645         _dl_close.
2646         * elf/Makefile: Add rules to build and run tst-thrlock.
2647         * elf/tst-thrlock.c:  New file.
2649         [BZ #3426]
2650         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
2651         reality.
2653         [BZ #3429]
2654         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
2655         we are sure we do not need it anymore for _dl_close.  Also move
2656         the asserts inside the lock region.
2657         Patch mostly by Suzuki <suzuki@in.ibm.com>.
2659 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
2661         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
2662         argument.
2663         (_dl_lookup_symbol_x): Adjust caller.
2665         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
2666         _ns_global_scope.
2667         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
2669         * elf/dl-libc.c: Revert l_scope name changes.
2670         * elf/dl-load.c: Likewise.
2671         * elf/dl-object.c: Likewise.
2672         * elf/rtld.c: Likewise.
2673         * elf/dl-close.c (_dl_close): Likewise.
2674         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
2675         always use __rtld_mrlock_{change,done}.  Always free old scope list
2676         here if not l_scope_mem.
2677         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
2678         change.  Never free scope list here.  Just __rtld_mrlock_lock before
2679         the lookup and __rtld_mrlock_unlock it after the lookup.
2680         * elf/dl-sym.c: Likewise.
2681         * include/link.h (struct r_scoperec): Remove.
2682         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
2683         with l_scope_mem and l_scoperec_lock with l_scope_lock.
2685 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
2687         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
2689 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2691         * configure.in: Disable building profile libraries by default.
2693 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2695         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
2696         as signed longs, check for x_base + pos overflow.
2697         * sunrpc/Makefile (tests): Add tst-xdrmem2.
2698         * sunrpc/tst-xdrmem2.c: New test.
2700 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2702         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
2703         _dl_lookup_symbol_x code.
2705 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2707         * elf/dl-runtime.c: Include sysdep-cancel.h.
2708         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
2709         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
2710         instead of catomic_* macros.
2711         * elf/dl-sym.c: Include sysdep-cancel.h.
2712         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
2713         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2714         * elf/dl-close.c: Include sysdep-cancel.h.
2715         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
2716         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2717         * elf/dl-open.c: Include sysdep-cancel.h.
2718         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
2719         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2721 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2723         [BZ #3313]
2724         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
2725         fastbin rather than end of fastbin array.
2727 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2729         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
2730         body macro.
2731         * sysdeps/x86_64/bits/atomic.h
2732         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
2733         (catomic_decrement): Use correct body macro.
2735 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2737         * include/atomic.h: Add a unique prefix to all local variables
2738         in macros.
2739         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
2741 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
2743         [BZ #3369]
2744         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
2745         and 7.
2747 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
2749         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
2751 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
2753         [BZ #3313]
2754         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
2755         determine highest fast bin to consolidate, always look into all of
2756         them.
2757         (do_check_malloc_state): Only require for empty bins for large
2758         sizes in main arena.
2760         * libio/stdio.h: Add more __wur attributes.
2762         * elf/dl-minimal.c (realloc): Optimize last patch.
2764 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
2766         [BZ #3352]
2767         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
2768         and use memcpy() if it does.
2770 2006-11-12  Andreas Jaeger  <aj@suse.de>
2772         [BZ #2510]
2773         * manual/search.texi (Hash Search Function): Clarify.
2774         (Array Search Function): Clarify.
2776 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
2778         [BZ #2830]
2779         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
2780         shifting.
2781         * math/atest-exp2.c (read_mpn_hex): Likewise.
2782         * math/atest-sincos.c (main): Likewise.
2784 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
2786         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
2787         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
2788         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
2789         version GLIBC_2.6.
2790         * Versions.def: Add GLIBC_2.6 for libc.
2792         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
2794         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
2796 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
2798         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
2800         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
2802         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
2803         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
2805 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
2807         * include/atomic.c: Define catomic_* operations.
2808         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
2809         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
2810         * malloc/memusage.c: Likewise.
2811         * gmon/mcount.c: Likewise.
2812         * elf/dl-close.c: Likewise.
2813         * elf/dl-open.c: Likewise.
2814         * elf/dl-profile.c: Likewise.
2815         * elf/dl-sym.c: Likewise.
2816         * elf/dl-runtime.c: Likewise.
2817         * elf/dl-fptr.c: Likewise.
2818         * resolv/res_libc.c: Likewise.
2820 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
2822         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
2823         components which lack them.
2825         * nis/nis_subr.c (nis_getnames): Make sure that we always return
2826         at least one entry consisting of the parameter concatenated with
2827         the domain.
2829 2006-10-10  Roland McGrath  <roland@frob.com>
2831         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
2832         * sysdeps/mach/hurd/futimes.c: Likewise.
2833         * sysdeps/mach/hurd/lutimes.c: Likewise.
2835 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
2836             Jakub Jelinek  <jakub@redhat.com>
2838         Implement reference counting of scope records.
2839         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
2840         from the list in objects which remain.  Always allocate new scope
2841         record.
2842         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
2843         don't resize, allocate a new one.
2844         * elf/dl-runtime.c: Update reference counters before using a scope
2845         array.
2846         * elf/dl-sym.c: Likewise.
2847         * elf/dl-libc.c: Adjust for l_scope name change.
2848         * elf/dl-load.c: Likewise.
2849         * elf/dl-object.c: Likewise.
2850         * elf/rtld.c: Likewise.
2851         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
2852         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
2853         Add l_scoperec_lock.
2854         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
2855         * sysdeps/generic/rtld-lowlevel.h: New file.
2857         * include/atomic.h: Rename atomic_and to atomic_and_val and
2858         atomic_or to atomic_or_val.  Define new macros atomic_and and
2859         atomic_or which do not return values.
2860         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
2861         Various cleanups.
2862         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2864         * po/sv.po: Update from translation team.
2866 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
2868         * Versions.def: Add GLIBC_2.6 to libpthread.
2870         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
2871         (versioned_symbol): Likewise.
2872         (compat_symbol): Likewise.
2874         * po/tr.po: Update from translation team.
2876 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
2878         * nis/Banner: Removed.  It's been integral part forever and the
2879         author info is incomplete anyway.
2880         * libio/Banner: Likewise.
2882         * nis/nis_table.c (nis_list): If __follow_path fails in the new
2883         code, make sure the nis_freeresult call doesn't crash and that the
2884         result is reported correctly.
2886 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
2888         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
2889         when callback is NULL.
2891         * nis/Versions (libnss_nisplus): Add
2892         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
2893         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
2894         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
2895         _nss_create_tablename): Rename to...
2896         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
2897         ... these.  No longer static.
2898         (internal_setgrent): Adjust users.
2899         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
2900         Don't use locking around _nss_grp_create_tablename call.
2901         * nis/nss_nisplus/nisplus-initgroups.c: New file.
2903 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
2905         * version.h (VERSION): Bump to 2.5.90 for new development tree.
2907 2006-10-06  Andreas Jaeger  <aj@suse.de>
2909         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
2911 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
2913         * po/pl.po: Update from translation team.
2915         * nscd/nscd.c (main): Fix typo in message.
2916         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
2918 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
2920         [BZ #3291]
2921         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2922         errno.h, signal.h, unistd.h and sysdep-cancel.h.
2923         (__sigprocmask): Define.
2925 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
2927         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
2928         used.
2930 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
2932         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
2933         in oldtotal and newtotal calculation.
2934         * nscd/nscd-client.h (struct mapped_database): Add datasize
2935         field.
2936         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
2937         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
2938         increased.
2939         (__nscd_cache_search): Add checks to make sure we never reference
2940         data beyond the current mapping.
2942 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2944         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
2945         variables const to avoid compiler warnings.
2947         * io/fts.c (fts_close): Remove redundant checks.
2948         (fts_build): Likewise.
2949         (fts_palloc): Likewise.
2951         * manual/message.texi (Advanced gettext functions,
2952         Using gettextized software): Fix typos.
2954 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
2956         * posix/glob.c (glob_in_dir): Add some comments and asserts to
2957         explain why there are no leaks.
2959 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
2961         * libio/wmemstream.c: Include <wchar.h>.
2962         * libio/bug-wmemstream1.c: Likewise.
2963         * libio/tst-wmemstream1.c: Likewise.
2964         * libio/tst-wmemstream2.c: Likewise.
2966         * version.h (RELEASE): Bump to 2.5.
2967         * README: Regenerated.
2969         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
2971         [BZ #3273]
2972         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
2973         found no group members.
2974         Patch by Petr Baudis.
2976 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
2978         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
2979         assert bootstrap_map.l_tls_modid is zero.
2980         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
2981         if USE___THREAD.
2983 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
2985         * libio/stdio.h: Move open_wmemstream prototype to ...
2986         * wcsmbs/wchar.h: ... here.
2988 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
2990         [BZ #3252]
2991         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
2992         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
2993         __{,l}chown to handle the rest.
2994         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
2995         fchownat syscall and __ASSUME_32BITUIDS case inline, call
2996         __{,l}chown to handle the rest.
2997         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
2998         i386/fchownat.c.
2999         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
3000         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
3002         [BZ #3253]
3003         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3004         time, rather allocate increasingly bigger arrays of pointers, if
3005         possible with alloca, if too large with malloc.
3007 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
3009         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
3011         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
3013 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
3015         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
3016         home addresses.
3017         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
3018         IFA_F_HOMEADDRESS flag for interfaces.
3019         * include/ifaddrs.h (struct in6addrinfo): Define
3020         in6ai_homeaddress.
3022 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
3024         [BZ #3225]
3025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
3026         PTR_DEMANGLE3): Define.
3027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
3028         PTR_DEMANGLE3): Likewise.
3029         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
3030         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3031         Likewise.
3032         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
3034 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
3036         * po/libc.pot: Regenerated.
3037         * po/be.po: Updated.
3038         * po/ca.po: Likewise.
3039         * po/cs.po: Likewise.
3040         * po/da.po: Likewise.
3041         * po/de.po: Likewise.
3042         * po/el.po: Likewise.
3043         * po/en_GB.po: Likewise.
3044         * po/es.po: Likewise.
3045         * po/fi.po: Likewise.
3046         * po/fr.po: Likewise.
3047         * po/gl.po: Likewise.
3048         * po/hr.po: Likewise.
3049         * po/hu.po: Likewise.
3050         * po/ja.po: Likewise.
3051         * po/ko.po: Likewise.
3052         * po/nb.po: Likewise.
3053         * po/nl.po: Likewise.
3054         * po/pl.po: Likewise.
3055         * po/pt_BR.po: Likewise.
3056         * po/ru.po: Likewise.
3057         * po/rw.po: Likewise.
3058         * po/sk.po: Likewise.
3059         * po/sv.po: Likewise.
3060         * po/tr.po: Likewise.
3061         * po/zh_CN.po: Likewise.
3062         * po/zh_TW.po: Likewise.
3064         [BZ #3137]
3065         * iconv/iconv_prog.c (main): Fix spelling in error message.
3066         * iconv/iconvconfig.c (main): Likewise.
3067         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
3068         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
3069         * locale/programs/localedef.c (main): Likewise.
3070         * locale/programs/repertoire.c (repertoire_read): Likewise.
3071         * timezone/zdump.c (main): Likewise.
3072         * nscd/connections.c (handle_request): Fix spelling in log message.
3073         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
3075 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
3077         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
3078         interfaces.
3080 2006-09-20  Andreas Jaeger  <aj@suse.de>
3082         * math/libm-test.inc (lrint_test_upward): Fix typo.
3084 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
3086         [BZ #2592]
3087         * math/libm-test.inc (lrint_test_tonearest): New function.
3088         (lrint_test_towardzero): New function.
3089         (lrint_test_downward): New function.
3090         (lrint_test_upward): New function.
3091         (main): Run these new tests.
3092         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
3093         of values near to 0.
3094         (two52): Use double not long double.
3095         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
3096         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
3097         (two23): Use float not double.
3098         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
3099         (two23): Use float not double.
3100         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3101         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3102         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3103         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3105 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3107         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
3108         Cast sp to unsigned long to avoid compiler warning.
3109         Use __makecontext_ret function instead of a trampoline on the stack.
3110         (__makecontext_ret): New function.
3111         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
3113 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
3115         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
3116         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
3117         bits.
3119 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
3121         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
3122         sure no reference to the unloaded map's search list remains in the
3123         dependency's scope.
3125 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
3127         * elf/Makefile: Add rules to build and run unload7 test.
3128         * elf/unload7.c: New test.
3129         * elf/unload7mod1.c: New file.
3130         * elf/unload7mod2.c: New file.
3132 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
3134         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
3135         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
3136         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3137         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
3138         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3139         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
3140         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3141         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
3142         PTRACE_GETEVENTMSG): Likewise.
3143         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
3144         values.
3146 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
3148         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
3149         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3150         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
3151         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
3153 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
3155         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
3156         write '\0' to the fd.
3157         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
3158         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
3159         Change regs to unsigned long pointer from unsigned int, fix fscr
3160         offset.
3162 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
3164         * io/Makefile (CFLAGS-fstatat.c): Set.
3165         (CFLAGS-fstatat64.c): Likewise.
3166         (CFLAGS-mknodat.c): Likewise.
3168         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
3169         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3170         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
3171         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
3173 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
3174             Steven Munroe  <sjmunroe@us.ibm.com>
3176         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
3177         names to the beginning.  Rename "cell" to "cellbe".
3178         (_dl_powerpc_platforms): New.
3179         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
3180         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
3181         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
3182         (_DL_HWCAP_PLATFORM): Define to new mask.
3183         (_dl_platform_string, _dl_string_platform): New functions.
3184         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
3185         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
3187 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
3189         [BZ #2526]
3190         * README.libm: Fix a thinko in sqrt algorithm description.
3192         [BZ #3143]
3193         * manual/string.texi (argz_delete): Fix prototype.
3194         Patch by <alpt@freaknet.org>.
3196 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
3198         [BZ #3138]
3199         * io/test-lfs.c (do_prepare): Give name_len type size_t.
3200         * io/tst-fcntl.c (do_prepare): Likewise.
3201         * posix/tst-exec.c (do_prepare): Likewise.
3202         * posix/tst-preadwrite.c (do_prepare): Likewise.
3203         * posix/tst-spawn.c (do_prepare): Likewise.
3204         * posix/tst-truncate.c (do_prepare): Likewise.
3205         * rt/tst-aio.c (do_prepare): Likewise.
3206         * rt/tst-aio64.c (do_prepare): Likewise.
3207         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
3208         size_t.
3210 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
3212         [BZ #2821]
3213         * time/mktime.c (guess_time_tm): Fix overflow detection.
3214         * time/Makefile (tests): Add bug-mktime1.
3215         * time/bug-mktime1.c: New file.
3217         [BZ #3189, #3188]
3218         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
3219         (mremap): Likewise.
3221 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
3223         [BZ #1006]
3224         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3225         Ensure relocation doesn't clobber any bits outside of the
3226         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
3227         R_SPARC_HI22 and R_SPARC_H44.
3229         [BZ #2775]
3230         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
3231         (long) (MINSIZE + nb - old_size) is positive.
3233         * malloc/arena.c (grow_heap): When growing bail even if new_size
3234         is negative.
3236         [BZ #3155]
3237         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
3238         stack below r1.
3240 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
3242         * posix/regex_internal.c (re_string_reconstruct): Handle
3243         offset < pstr->valid_raw_len && pstr->offsets_needed case.
3244         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
3245         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
3246         re_string_context_at.
3247         * posix/Makefile: Add rules to build and run bug-regex26 test.
3248         * posix/bug-regex26.c: New test.
3250         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
3251         rather than col_sym_free.  Move seqp declaration earlier.
3253         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
3255 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
3257         * nscd/initgrcache.c (addinitgroupsX): Move any_success
3258         decl before first goto out.
3260 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
3262         * Makerules (shlib.lds): If have-hash-style, put .hash section
3263         at the end of the RO segment.
3265 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
3267         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
3268         style hash table format is used.
3270 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
3272         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
3273         randomization rather than before.
3274         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
3276 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
3278         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
3280         * malloc/malloc.c (_int_malloc): Use full list insert and not
3281         shortcut which assumes the list is empty for large requests
3282         too.
3284         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
3286 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
3288         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
3289         and offout arguments to the prototype.
3290         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
3291         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
3292         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
3293         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
3294         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
3295         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
3296         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
3297         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
3299 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
3301         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
3303         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
3304         dlopen parameters.
3306 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
3308         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
3309         only if herrno is NETDB_INTERNAL.  Handle errors other than
3310         ERANGE outside of the loops, handle TRY_AGAIN.
3312         * locale/programs/ld-ctype.c (translit_flatten): Issue error
3313         if other's ctype category was missing.
3314         * locale/programs/ld-collate.c (collate_read): Return if
3315         copy_locale's collate category is missing.
3317 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
3319         [BZ #2684]
3320         * malloc/malloc.c (public_rEALLOc): Try harder by using other
3321         arenas if allocation failed.
3322         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
3324 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
3326         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
3327         waste bins[0..1].
3328         (malloc_state): Reduce bins size by 2.
3329         (_int_malloc): Fix test for large enough buffer for early termination.
3330         When no unsorted block matches perfectly and an exiting block has
3331         to be split, use full list insert and not shortcut which assumes
3332         the list is empty.
3334         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
3335         failure.
3337 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
3339         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
3340         do anything.
3342         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
3343         symbol require exact match (these are PLTs).
3344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
3345         (_dl_ppc64_addr_sym_match): Likewise.
3347         [BZ #2683]
3348         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
3349         If symbol has a value use it.
3350         * elf/tst-dladdr1.c: New file.
3351         * elf/Makefile: Add rules to build and run tst-addr1.
3353 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
3355         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
3356         keeps failing and heap growth or new heap creation isn't
3357         successful either.
3358         * malloc/tst-malloc.c (main): Add new tests.
3360 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
3362         [BZ #2734]
3363         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
3364         as in the x86-64 code to use bswap.
3366 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
3368         [BZ #2680]
3369         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
3370         __USE_UNIX98.
3371         * posix/bits/unistd.h: Likewise.
3373 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
3375         [BZ #2751]
3376         * string/strchr.c: Add cast to avoid warning.
3378 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
3380         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
3381         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
3382         limit is needed to avoid the exploding of the address space
3383         requirement for secondary heaps.
3384         * malloc/arena.c (HEAP_MAX_SIZE): Define using
3385         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
3387 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
3389         [BZ #3018]
3390         * Makerules (depfiles): Handle extra-test-objs the same as
3391         extra-objs.
3392         (common-mostlyclean): Likewise.
3393         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
3394         instead.
3395         * elf/Makefile (extra-objs): Likewise.
3396         * stdlib/Makefile (extra-objs): Likewise.
3398 2006-08-14  Eric Blake  <ebb9@byu.net>
3400         [BZ #3044]
3401         * misc/error.h: Assume C89 or better.
3402         * misc/error.c: Likewise.
3404 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
3406         [BZ #3040]
3407         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
3408         __ASSUME_ATFCTS is defined.
3410 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
3412         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
3413         to sort in each call.
3415         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
3416         is empty simply return and use next service.
3417         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
3419         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
3420         tells us when not finding a charmap file is an error.
3421         * locale/programs/charmap.h: Adjust charmap_read prototype.
3422         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
3423         cannot find a charmap.
3424         * locale/programs/localedef.c (main): Adjust charmap_read call.
3426 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
3428         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
3429         sysdeps/posix/pause.c implementation instead.
3431 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
3433         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
3434         to EPERM.
3436 2006-08-13  Andreas Schwab  <schwab@suse.de>
3438         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
3439         Don't clobber caller's LRSAVE.
3440         (_dl_prof_resolve): Likewise.
3442 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
3444         [BZ #1996]
3445         * libio/memstream.c (open_memstream): Allocate initial buffer with
3446         calloc.
3447         * libio/wmemstream.c (open_wmemstream): Likewise.
3448         * libio/strops.c: Pretty printing.
3449         (_IO_str_overflow): Clear uninitialized part of the new buffer.
3450         (enlarge_userbuf): New function.
3451         (_IO_str_seekoff): Call it if seek position is larger than current
3452         buffer.
3453         * libio/wstrops.c: Likewise.
3454         * libio/vasprintf.c: Add comment as to why we do not have to use
3455         calloc instead of malloc to allocate initial buffer.
3456         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
3457         * libio/bug-memstream1.c: New file.
3458         * libio/bug-wmemstream1.c: New file.
3460 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
3462         * libio/wstrops.c: Remove dead macro definitions and comments.
3463         * libio/strops.c: Likewise.
3465         [BZ #2764]
3466         * login/utmpname.c (__utmpname): Remove unnecessary test.
3468 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
3470         [BZ #2832]
3471         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
3472         0s from integers.
3474 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
3476         [BZ #2987]
3477         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
3478         for CPU clocks.
3479         * sysdeps/unix/clock_settime.c: Add support for platform-specific
3480         setting of CPU clocks.
3482 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3484         [BZ #2841]
3485         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
3486         since C99 requires the result to promote to 'int' when uint_least8_t
3487         and uint_least16_t promote to 'int'.
3489 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
3491         [BZ #3013]
3492         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
3493         lenght of one output field, correct bitmask creation.
3494         * locale/programs/ld-time.c: Add alignment.
3496         [BZ #2997]
3497         * misc/error.c: Add space between program name and message if file
3498         name is missing.
3500 2006-08-03  Eric Blake  <ebb9@byu.net>
3502         [BZ #2998]
3503         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
3505 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
3507         * malloc/memusagestat.c: Silence warnings.
3509         * malloc/malloc.c: Dynamically size mmap treshold if the program
3510         frees mmaped blocks.
3511         Patch by Valerie Henson and Arjan van de Ven.
3513 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
3515         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
3516         __USE_GNU.
3518         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
3519         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
3520         (DEF): Don't put the var into .gnu.linkonce.r.* section.
3521         Only provide var definitions in strtol_l (or for *ull*
3522         in strtoll_l).
3524         * stdio-common/bug16.c (tests): New array.
3525         (do_tests): Allow the first hexadecimal digit
3526         to be 1, 2, 4 or 8.  Do 3 additional tests.
3528         * sysdeps/s390/fpu/libm-test-ulps: Update.
3530         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
3531         fchownat syscall if available.
3532         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
3533         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
3534         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
3536 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
3538         * nis/nis_xdr.c: Avoid some function calls.
3540 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
3541             Ulrich Drepper  <drepper@redhat.com>
3543         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
3544         short cut if only one name component is stripped away.
3546 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
3548         * nis/nis_call.c: Minor cleanups throughout.
3549         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
3550         (first_shoot): Add search_parent_first parameter.  Only if it is set
3551         search parent server first.
3552         If directory for table found through cold start cache is not the same
3553         as referenced in the cache, don't use it.
3554         (__nisfind_server): Take additional parameter.  Pass it on to
3555         first_shoot.
3556         (__prepare_niscall): Adjust __nisfind_server call.
3557         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
3558         * nis/nis_table.c: Adjust __nisfind_server call.
3559         * nis/nis_lookup.c: Likewise.
3560         (nis_lookup): Don't loop endlessly if name is reduced to ".".
3562 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
3564         [BZ #2182]
3565         * math/s_cacosh.c: Return values from positive branch.
3566         * math/s_cacoshf.c: Likewise.
3567         * math/s_cacoshl.c: Likewise.
3569         [BZ #2883]
3570         * sysvipc/sys/msg.h: Change return value to ssize_t.
3571         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3572         * sysvipc/msgrcv.c: Likewise.
3573         * include/sys/msg.h: Likewise.
3575         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
3576         test introduced in patch for bz #661.
3577         (getgrouplist): Simplify code a bit.  Don't allocate one additional
3578         element for NEWGROUPS.
3580         [BZ #2908]
3581         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
3582         'f', use '1' as leading digit not '\1'.
3583         * stdio-common/Makefile (tests): Add bug16.
3584         * stdio-common/bug16.c: New file.
3586         [BZ #2914]
3587         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
3588         and don't try to open it.  The patch introducing the macro
3589         contained a bug and used the same file name as the new file
3590         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
3591         this out completely.
3593         [BZ #2926]
3594         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
3595         Patch by Jerry James <Jerry.James@usu.edu>.
3597         * rt/Makefile (tests): Add tst-clock2.
3598         * rt/tst-clock2.c: New file.
3600         [BZ #2978]
3601         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
3602         function and its parameters and pass it to new thread.
3603         (__gai_notify): Add support for alternative waiting for completion.
3604         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
3605         waiting for completion.
3606         * resolv/getaddrinfo_a.c: Likewise.
3607         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
3608         waiting for completion is used.
3609         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
3610         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
3611         * resolv/gai_error.c: Likewise.
3612         * resolv/gai_sigqueue.c: Likewise.
3614 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
3616         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
3617         errno to EBADF and return MACH_PORT_NULL.
3619 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
3621         [BZ #2980]
3622         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
3624 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
3626         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
3627         walk them instead of the symbol table.
3629 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
3631         [BZ #2098]
3632         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
3633         status of NSS calls, not the number of returned entries.
3635         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
3636         request_key, keyctl.
3638 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3640         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
3642 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
3644         * elf/tst-auditmod1.c: Fix typo in #error.
3646 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3648         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
3650         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
3652 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
3654         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
3655         that the directory is empty even on non-POSIX filesystems.
3657 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3659         * elf/dl-open.c (dl_open_worker): Add branch prediction.
3661         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
3662         the backend NSS module.  If backend setgrent call failed, don't have
3663         internal_setgrent fail.  Just remember this until it is needed.
3664         * nis/nss_compat/compat-pwd.c: Likewise.
3665         * nis/nss_compat/compat-spwd.c: Likewise.
3667 2006-07-30  Roland McGrath  <roland@redhat.com>
3669         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
3670         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
3671         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
3672         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
3674         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
3675         (nanosleep_not_cancel): New macro.
3676         (sigsuspend_not_cancel): new macro.
3677         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
3678         (do_sigsuspend): Define as inline.
3679         (__sigsuspend): Always use do_sigsuspend.
3680         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
3681         * include/signal.h: Declare __sigsuspend_nocancel.
3682         * sysdeps/posix/pause.c
3683         [! NO_CANCELLATION] (__pause_nocancel): New function.
3685         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
3686         * include/time.h (__nanosleep_nocancel): Likewise.
3688 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
3690         * locale/programs/localedef.c (add_to_readlist): Rename local
3691         variables to avoid confusion.
3693         * locale/programs/charmap.c (charmap_read): Emit error message if
3694         charmap couldn't be found or read.
3696 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
3698         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3699         __ASSUME_FUTEX_LOCK_PI.
3700         * include/time.h: Declare __nanosleep_nocancel.
3701         * include/unistd.h: Declare __pause_nocancel.
3703         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
3704         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
3705         get the __stack_chk_fail_local definition when it's needed.
3707 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
3709         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
3710         * dlfcn/bug-atexit3.c: New file.
3711         * dlfcn/bug-atexit3-lib.cc: New file.
3713         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
3714         used when the namespace is not the base namespace.
3716 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
3718         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
3719         (__new_exitfn): Bump it in every successful call.
3720         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
3721         more exit handlers, call them right away.
3722         * stdlib/exit.h: Declare __new_exitfn_called.
3724 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
3726         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
3727         calling registered handler.
3729         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
3730         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3731         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3732         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3733         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3734         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3735         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3736         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3738 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
3740         * elf/dl-lookup.c (dl_new_hash): New functions.
3741         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
3742         value here.  Compute new-style hash value.  Pass new hash value
3743         and reference to variable with the old value to do_lookup_x.
3744         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
3745         old-style hash table.
3746         (_dl_debug_bindings): Pass new hash value and reference to variable
3747         with the old value to do_lookup_x.
3748         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
3749         new-style hash value and change old-style hash value parameter to
3750         be a reference.  Reoganize functions to determine whether
3751         new-style hash table is available.  Only fall back on old-style
3752         table.  If old-style hash value is needed, compute it here.
3753         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
3754         entry.
3755         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
3756         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
3757         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
3758         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
3759         * Makeconfig: If linker supports --hash-style option add it to all
3760         linker command lines to build DSOs.
3761         * config.make.in: Define have-hash-style.
3762         * configure.in: Test whether linker supports --hash-style option.
3764         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
3765         * sysdeps/generic/ldsodefs.h: Adjust prototype.
3767 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
3769         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
3770         auditing.
3772         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
3773         RPATH of main map twice.
3775 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
3777         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
3778         look further, return original strings.
3779         (_nl_find_msg): Do not return found translation if the conversion
3780         failed.  Either signal the string is unusable or that something went
3781         wrong and the original should be used.
3783 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
3785         * string/_strerror.c (__strerror_r): Add __builtin_expect.
3787 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
3789         [BZ #2766]
3790         * misc/insremque.c (insque): Handle prev == NULL.
3791         * misc/Makefile (tests): Add tst-insremque.
3792         * misc/tst-insremque.c: New test.
3794 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
3796         [BZ #2792]
3797         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
3798         conflict with DL_DST_REQUIRED.
3800 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
3802         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
3803         match what Solaris does.
3805 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
3807         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
3808         local_setegid instead of seteuid and setegid.
3809         * sysdeps/generic/local-setxid.h: New file.
3810         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
3812         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
3814         * string/Makefile (tests): Add bug-envz1.
3815         * string/bug-envz1.c: New file.
3817 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
3819         * posix/regex_internal.c (re_string_skip_chars): If no character has
3820         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
3821         to the byte which couldn't be converted.
3822         (re_string_reconstruct): Don't clear valid_raw_len before calling
3823         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
3824         tip_context using re_string_context_at.
3825         * posix/Makefile: Add rules to build and run bug-regex25 test.
3826         * posix/bug-regex25.c: New test.
3828 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
3830         [BZ #2703]
3831         * string/envz.c (envz_strip): Correct erroneously reversed src
3832         and dest parameters to memmove() invocation.
3834 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
3836         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
3837         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
3838         to make sure the database has been already invalidated.
3839         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
3840         after the cache has been invalidated.  Use pthread_mutex_lock rather
3841         than pthread_mutex_trylock if fd != -1.
3842         * nscd/connections.c (invalidate_cache): Add fd argument, write
3843         response to fd if not calling prune_cache, pass fd to prune_cache.
3844         (handle_request): Adjust invalidate_cache caller.
3845         (nscd_run): Pass -1 as fd to prune_cache.
3847 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
3849         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
3850         the correct place.
3852 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
3854         * nscd/nscd.h (struct database_dyn): Add prunelock field.
3855         * nscd/cache.c (prune_cache): Take prunelock before starting the
3856         work.  Just return in case it is already taken.
3857         * nscd/connections.c (dbs): Initialize .prunelock.
3859 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
3861         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
3862         copying.  No need to allocate new array for group members.  Just
3863         move the pointers and update the size.
3865         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
3866         Avoid memory leak in case realloc fails.  Simplification for
3867         better code generation.
3869         Avoid deprecation warning because of libc_hidden_proto for
3870         inet6_option_alloc.
3871         * inet/inet6_option.c (option_alloc): Renamed from
3872         inet6_option_alloc.  Made static.
3873         (inet6_option_alloc): Now a simple wrapper around option_alloc.
3874         (inet6_option_append): Call option_alloc.
3875         * include/netinet/in.h: Remove libc_hidden_proto for
3876         inet6_option_alloc.
3878         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
3879         for cleanup when cb!=NULL [Coverity CID 233].
3881 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
3883         [BZ #2693]
3884         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
3885         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
3886         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
3887         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
3888         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
3889         and inet6_rth_getaddr.
3890         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
3891         array.
3892         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
3893         Mark inet6_option_* interfaces as deprecated.
3894         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
3895         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
3896         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
3897         inet6_rth_segments, and inet6_rth_getaddr.
3898         * inet/inet6_opt.c: New file.
3899         * inet/inet6_rth.c: New file.
3901         * inet/netinet/icmp6.h: Pretty printing.
3903         [BZ #2683]
3904         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
3906 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
3908         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
3909         doing it all here.  When server does not know the answer do not
3910         fail immediate, try parent first.
3912         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
3913         overflow test.
3915 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
3917         * nis/nis_call.c (__prepare_niscall): New function.  Split out
3918         from __do_niscall.
3919         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
3920         and exported.
3921         (__follow_path): New function.  Split out from nis_list.
3922         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
3923         _xdr_nis_result.
3924         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
3925         _xdr_nis_result.
3926         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
3927         and __follow_path.
3928         * nis/Versions: Export __prepare_niscall, __create_ib_request,
3929         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
3930         from libnsl for version GLIBC_PRIVATE.
3931         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
3932         Remove entry parameter from _nss_nisplus_parse_pwent and
3933         _nss_nisplus_parse_grent.
3934         * nis/nss_nisplus/nisplus-parser.c: Likewise.
3935         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
3936         again.  Rewrite getpwent handling to not use nis_first_entry and
3937         nis_next_entry.  Roll out own niscall handling.
3938         * nis/nss_nisplus/nisplus-grp.c: Likewise.
3940         * sunrpc/xdr_rec.c: Fix typo in comment.
3942 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
3944         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
3945         handling.
3947         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
3948         to allocate memory for my_pollfd.  Better initialization of
3949         cb_is_running.  Use TEMP_FAILURE_RETRY.
3951         * malloc/memusage.sh (memusageso): Add quotes.
3952         (memusagestat): Likewise.
3953         * debug/xtrace.sh (pcprofileso): Likewise.
3954         (pcprofiledump): Likewise.
3955         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
3956         replacement.
3957         * malloc/Makefile ($(objpfx)memusage): Likewise.
3959         * nis/nis_callback.c (__nis_create_callback): Calls to
3960         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
3961         asprintf call fails.
3963         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
3964         no uninitialized memory is passed to sendto.
3966 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
3968         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
3969         of snprintf+strdup.  Handle OOM.
3970         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
3971         cb->serv together.  Remove now obsolete free calls.
3972         (__nis_destroy_callback): Remove now obsolete free call.
3974 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
3976         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
3977         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
3978         and ULA respectively). Set precedence for IPv4 address to 10 as
3979         defined in RFC3484 for preferring IPv6.
3980         * posix/gai.conf: Update to match the new default tables.
3982 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
3984         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
3985         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
3986         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
3987         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
3989         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
3990         Removed.
3991         (init_nss_interface): Remove initialization of these variables.
3993 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
3995         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
3996         nis_free_directory forward to avoid duplication.
3998 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
4000         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
4001         rec_dirsearch returning NULL.
4002         (first_shoot): Handle __nis_finddirectory returning NULL.
4003         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
4005         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
4006         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
4008 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
4010         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
4011         pid changed.
4013 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
4015         * include/rpc/pmap_prot.h: Mark all functions as hidden.
4017         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
4018         * nscd/nscd_getgr_r.c: Likewise.
4020         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
4022         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
4023         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
4025         * stdlib/longlong.h (__clz_tab): Mark as hidden.
4027         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
4029         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
4031         * include/rpc/auth.h: Mark xdr_des_block_internal and
4032         xdr_opaque_auth_internal as hidden.
4034         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
4035         hidden.
4037         * include/rpc/xdr.h: Mark all _internal functions as hidden.
4039         * misc/getusershell.c (okshells): Don't use static initializers,
4040         do it dynamically.
4042         * stdlib/fmtmsg.c (keywords): Change type of len element to
4043         uint32_t to not waste space on 64bit machines.
4045         * locale/setlocale.c: Change _nl_category_names into a string.
4046         Add new _nl_category_name_idxs.  Change all users.
4047         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
4048         Declare _nl_category_name_idxs.
4049         * locale/findlocale.c: Adjust for _nl_category_names change.
4050         * locale/loadlocale.c: Likewise.
4051         * locale/newlocale.c: Likewise.
4052         * intl/dcigettext.c: Likewise.
4054         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
4055         (add_alias2): ...here.  New function.
4056         (__gconv_read_conf): Simplify builtin alias handling.
4057         (builtin_aliases): Convert to string to avoid relocations.
4058         * iconv/gconv_builtin.h: Add comment about correct formatting.
4060 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
4062         * resolv/res_debug.c (loc_ntoa): Make error const.
4064 2006-05-14  Andreas Schwab  <schwab@suse.de>
4066         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
4068 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
4070         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
4071         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
4072         sizeof (cpu_set_t).
4074 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
4076         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
4078         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
4080         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
4081         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
4083         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
4084         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
4086         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
4087         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
4088         xdr_cback_data.
4090         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
4091         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
4092         xdr_ypupdate_args.
4094         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
4095         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
4097         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
4098         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
4100         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
4101         * include/rpcsvc/nis_callback.h: New file.
4103         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
4104         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
4106         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
4107         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
4109         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
4110         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
4112         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
4113         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
4115         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
4116         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
4117         xdr_ypdelete_args.
4119         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
4120         __BEGIN_DECLS and __END_DECLS, the header is not installed.
4122         * nis/nis_error.c: Remove table of strings.  Use position
4123         independent mechanism.
4124         * nis/nis_error.h: New file.
4126 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
4128         * locale/programs/ld-time.c (time_finish): If wide era name or
4129         format aren't provided, set both wname and wformat to L"".
4131 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
4133         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
4134         results if the call was succesful.
4136         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
4138         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
4139         as hidden.
4141 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
4143         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
4145 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
4147         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
4148         caller makes sure this is not the case.
4149         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
4151 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
4153         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
4154         calls.
4156         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
4157         [Coverity CID 229, 230]
4159         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
4160         DGETTEXT calls.
4161         (hol_help): Likewise.  [Coverity CID 226, 227]
4163         * string/argz-replace.c (__argz_replace): Unconditionally call
4164         free on SRC.  [Coverity CID 225]
4166         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
4167         the return value of __nis_default_owner and __nis_default_group,
4168         it has been especially allocated.  [Coverity CID 224]
4170         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
4171         searchgroup and searchowner.  Significantly simplified.
4172         (__nis_default_owner): Remove duplication.  Do not locally copy the
4173         string before duplicating it.
4174         (__nis_default_group): Likewise.
4176         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
4177         we must clear the variable before calling __nisfind_server.
4179         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
4180         nis_getnames.  [Coverity CID 223]
4182         * locale/programs/locfile.c (locfile_read): Use alloca instead of
4183         xmalloc to allocate local repertoire name.  [Coverity CID 222]
4185         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
4186         allocate memory for the input to add_bytes.  [Coverity CID 221]
4188         * posix/wordexp.c (w_addword): Free word if realloc fails and it
4189         was allocated here.  [Coverity CID 219, 220]
4191         * posix/getconf.c (print_all): Free confstr data after printing.
4192         [Coverity CID 218]
4194         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
4195         list allocation fails.  [Coverity CID 215]
4197         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
4198         [Coverity CID 213]
4200         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
4201         string is NULL.  [Coverity CID 212]
4202         * argp/Makefile: Add rules to build and run bug-argp1.
4203         * argp/bug-argp1.c: New file.
4205         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
4206         end of string.
4207         * stdlib/canonicalize.c (__realpath): Likewise.
4209         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
4210         pointer.  [Coverity CID 206]
4212         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
4213         in statically linked code.
4214         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
4215         statically built code, be prepared to have no link map.
4216         [Coverity CID 205]
4218         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
4219         dgettext calls. [Coverity CID 204]
4221         * argp/argp-help.c (struct uparams): Remove valid member.  Change
4222         the one user.
4223         (uparam_names): Reduce size.  Avoid relative relocations.
4224         Moved to read-only segment.
4225         (fill_in_uparams): Update for new layout.
4227         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
4228         assumed to always be != NULL. [Coverity CID 202]
4230         * argp/argp-help.c (hol_entry_help): Remove some dead code
4231         [Coverity CID 200].
4233         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
4234         away a few more unconditional yperr2nss calls.
4235         (_nss_nis_getservbyname_r): Likewise.
4237 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
4239         * sysdeps/generic/ldsodefs.h: Remove support for non-core
4240         architectures.
4242         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
4243         that unused memory passed to sendto is nevertheless initialized.
4245         [BZ #2499]
4246         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
4247         possibly unaligned memory accesses.
4249         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
4250         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
4251         and __putlong respectively.  Correct buffer overflow check for
4252         NS_NOTIFY_OP.
4254         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
4256         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
4257         (send_dg): Rewrite error handling to be more compact and avoid
4258         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
4260         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
4262         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
4263         instead of ns_get16.
4264         (res_queriesmatch): Likewise.  Minor optimization.
4266         [BZ #2499]
4267         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
4268         __libc_res_nsend might reallocate the buffer for the answer.  In
4269         this case we have to reload the HP pointer.
4271 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
4273         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
4274         some branch prediction hints.
4276         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
4277         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4278         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4279         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4280         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4281         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4282         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4283         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4285 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4287         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
4288         by a GOT relocation to make Scrt1.o position independent.
4289         * sysdeps/s390/s390-64/elf/start.S: Likewise.
4291         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
4292         six system call parameters.
4293         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4295 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
4297         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
4298         malloc&bzero.
4300         * sunrpc/svc_udp.c (BZERO): Remove definition.
4301         (CALLOC): Define.
4302         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
4304         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
4305         (des_SPtrans): Use uint32_t type.
4306         (des_skb): Likewise.
4308         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
4310 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
4312         [BZ #2509]
4313         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
4314         on 32-bit arches.
4316 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
4318         * locale/programs/ld-address.c (address_finish): Fix one more
4319         place where the iso639 array might be accessed beyond the limits.
4321 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
4323         * nis/nis_table.c (nis_list): Avoid clearing res twice before
4324         filling it for the first time.
4326         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
4327         Adjust all callers.
4328         Free res object content before returning.
4330         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
4332         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
4333         client->cl_auth.
4335         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
4336         cleanup for initial thread, just the free call on TVP.
4338         * nscd/gai.c (__getline): Define.
4341 See ChangeLog.16 for earlier changes.