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