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