7f34fa1572b1f77c6dd6a0aa3d8d6f2d27f5819c
[platform/upstream/glibc.git] / ChangeLog
1 2004-07-07  Roland McGrath  <roland@frob.com>
2
3         * Makefile (dist-separate): New variable.
4         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
5         Depend on their configure files.
6         (dist-do-separate-dirs): New canned sequence to do that.
7         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
8         (dist): Depend on add-on tar files based on $(dist-separate).
9         (dist-version): New variable, default to $(version).
10         (tag-for-dist, dist): Use that in place of $(version) in deps.
11
12 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
13
14         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
15         before the loop running the destructors.
16
17 2004-05-18  Andreas Schwab  <schwab@suse.de>
18
19         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
20         the first segment for mprotect, not l_text_end.
21
22 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
23
24         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
25         Remove hashfraction variable.  Make kcount and kcountsize local
26         variables.
27
28         * elf/dl-init.c: Don't define and use _dl_starting_up if
29         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
30         * elf/dl-support.c: Likewise.
31         * elf/rtld.c: Likewise.
32         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
33         if HAVE_INLINED_SYSCALLS is defined.
34         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
35         here.
36         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
37         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
38         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
39
40         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
41         is needed to stop profiling.
42         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
43         profile make sure it cannot be unloaded.
44
45         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
46
47         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
48         support, make sure the helper function is inlined.
49         * sysdeps/unix/sysv/linux/pread.c: Likewise.
50         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
51         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
52         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
53
54 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
55
56         * include/string.h (ffs): Add libc_hidden_builtin_proto.
57         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
58         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
59         * sysdeps/alpha/ffs.S (ffs): Likewise.
60         * sysdeps/s390/ffs.c (ffs): Likewise.
61         * sysdeps/powerpc/ffs.c (ffs): Likewise.
62         * sysdeps/i386/ffs.c (ffs): Likewise.
63         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
64         * sysdeps/m68k/ffs.c (ffs): Likewise.
65         * sysdeps/generic/ffs.c (ffs): Likewise.
66         * sysdeps/m88k/ffs.c (ffs): Likewise.
67         * sysdeps/am29k/ffs.c (ffs): Likewise.
68         * sysdeps/i960/ffs.c (ffs): Likewise.
69         * sysdeps/x86_64/ffs.c (ffs): Likewise.
70
71         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
72
73         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
74         __libc_siglongjmp): Remove symbol_version.
75         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
76         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
77         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
78         unconditionally.
79         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
80         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
81         strong_alias instead of default_symbol_version, remove
82         symbol_version.
83         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
84         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
85         into strong_alias to __novmxsetjmp.
86         (__vmx__setjmp): Similarly with __vmxsetjmp.
87         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
88         default_symbol_version and symbol_version.
89         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
90         into strong_alias to __novmxsetjmp.
91         (__vmx__setjmp): Similarly with __vmxsetjmp.
92         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
93         default_symbol_version and symbol_version.
94
95         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
96
97 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
98
99         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
100
101 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
102
103         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
104         instead of libc_hidden_def.
105
106 2004-07-01  Roland McGrath  <roland@redhat.com>
107
108         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
109
110         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
111         $(..)shlib-versions file to last in deps list.  This lets add-ons give
112         more-specific matches that override defaults in the top-level file.
113
114         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
115         already set, don't set it or libc_cv_gcc_unwind_find_fde.
116         * sysdeps/unix/sysv/linux/configure: Regenerated.
117
118 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
119
120         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
121         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
122         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
123         * sysdeps/s390/fpu/e_sqrt.c: New file.
124         * sysdeps/s390/fpu/e_sqrtf.c: New file.
125         * sysdeps/s390/Implies: New file.
126         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
127         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
128         * sysdeps/s390/s390-64/Implies: Likewise.
129
130 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
131
132         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
133         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
134
135         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
136         DO_CALL (exit, 1) instead of branching to _exit.
137         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
138         Likewise.
139
140         * sysdeps/s390/fpu/bits/mathinline.h: New file.
141
142         * include/glob.h (glob64): Add libc_hidden_proto.
143         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
144         * sysdeps/gnu/glob64.c (glob64): Likewise.
145         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
146
147 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
148
149         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
150         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
151
152 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
153
154         * sysdeps/powerpc/fpu/s_lround.c: Removed.
155         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
156         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
157         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
158         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
159         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
160         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
161         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
162         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
163         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
164         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
165         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
166         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
167         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
168         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
169         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
170
171 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
172
173         * include/net/if.h: Handle if_nameindex and if_freenameindex with
174         libc_proto_hidden.
175         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
176         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
177         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
178         netlink if possible.  Fall back on ioctl method if necessary.
179         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
180
181         * include/unistd.h: Declare __truncate.
182         * sysdeps/generic/truncate.c: Also define __truncate.
183         * sysdeps/mach/hurd/truncate.c: Likewise.
184         * sysdeps/unix/common/syscalls.list: Likewise.
185         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
186
187 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
188
189         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
190         info.extra.  Patch by Marcus Meissner.
191
192 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
193
194         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
195         Fix branch offset for a PLT entry.
196
197 2004-06-20  Jim Meyering  <jim@meyering.net>
198
199         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
200         documentation.
201
202 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
203
204         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
205         Workaround for [BZ #232].
206
207         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
208
209 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
210
211         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
212         in ucs2/ucs2reverse when unaligned memory access is attempted.
213         * iconv/tst-iconv5.c: New file.
214         * iconv/Makefile (tests): Add tst-iconv5.
215
216 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
217
218         * inet/bug-if1.c: Include <string.h>.
219
220 2004-06-19  Roland McGrath  <roland@redhat.com>
221
222         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
223         under this macro name instead.
224         [NO_DO_WAITID]: Don't define it at all.
225         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
226         defined, then return ENOTSUP for combinations of selection bits other
227         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
228
229         * posix/tst-waitid.c: New file.
230         * posix/Makefile (tests): Add it.
231
232 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
233
234         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
235
236         [BZ #231]
237         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
238         relocation in librt.so.
239
240         [BZ #230]
241         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
242         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
243
244 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
245
246         * elf/ldconfig.c (add_dir): Take chroot into account.
247         Based on changes by HJ Lu and Hideki Iwamoto.
248
249         * nscd/connections.c (invalidate_cache): If the host cache has to
250         be invalidated, re-read resolv.conf.
251
252         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
253         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
254         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
255         if RES_NOIP6DOTINT flag is set.
256         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
257
258 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
259
260         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
262         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
265
266         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
267         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
268
269 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
270
271         [BZ #231]
272         * sysdeps/unix/alpha/Makefile: New file.
273         * sysdeps/unix/alpha/rt-sysdep.S: New file.
274         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
275
276 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
277
278         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
279         determine the canonical name only for the first returned entry.
280
281         * inet/bug-if1.c: New file.
282         * inet/Makefile (tests): Add bug-if1.
283
284 2004-06-18  Roland McGrath  <roland@frob.com>
285
286         * Makerules (compile-mkdep-flags): Add -MT $@.
287
288         * Makefile (dist, tag-for-dist): New targets.
289         (files-for-dist, tag-of-stem): New variables.
290         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
291         Make tar files using cvs export.
292         (%.bz2, %.gz, tag-%): New pattern rules.
293         (distribute): Variable removed.
294         (+subdir_targets): Remove distinfo targets.
295         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
296         (rpm/%): Pattern rule removed.
297         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
298         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
299         Targets removed.
300         * Makerules (dist, subdir_distinfo): Targets removed.
301         ($(objpfx)distinfo): Depend on $(distribute).
302         * Make-dist: File removed.
303
304         * NEWS: Fix a typo.  Update bug-reporting instructions.
305
306 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
307
308         * sysdeps/unix/sysv/linux/sched_setaffinity.c
309         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
310         cpuset is wrongly set.
311
312 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
313
314         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
315         for POWER4 machines.
316
317 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
318
319         [BZ #218]
320         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
321         in a local variable, point rp to that local variable afterwards.
322
323 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
324
325         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
326         cases properly.
327
328 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
329
330         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
331         error value for unknown interface. [BZ #198]
332
333 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
334
335         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
336         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
337         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
338         the asm uses as its input, either of size __n where __n is known or
339         0xfffffff.
340         (strstr): Add "memory" clobber.
341
342 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
343
344         [BZ #219]
345         * nss/nsswitch.c (free_mem): Don't try to close a library handle
346         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
347
348 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
349
350         [BZ #217]
351         * debug/xtrace.sh: Fix typo in error diagnostics.
352
353 2004-06-14  Andreas Schwab  <schwab@suse.de>
354
355         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
356         failed.
357
358 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
359
360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
361         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
363         that clobbers r19.
364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
365         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
367         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
368         Fix pasto that overflowed sigcontext.v_reserve.
369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
370         Fix pasto that clobbers r19.
371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
372         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
373         overflowed sigcontext.v_reserve.
374
375 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
376
377         [BZ #150]
378         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
379         instead of ".gnu.linkonce.ro." as the prefix for linkonce
380         read-only section name.
381
382 2004-06-14  Richard Henderson  <rth@redhat.com>
383
384         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
385         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
386
387 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
388
389         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
390         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
391         (__backtrace): Don't call init #ifndef SHARED.
392         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
393         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
394         (__backtrace): Don't call init #ifndef SHARED.
395         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
396         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
397         (__backtrace): Don't call init #ifndef SHARED.
398
399 2004-06-11  Roland McGrath  <roland@redhat.com>
400
401         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
402         From Krzysztof Halasa <khc@pm.waw.pl>.
403
404 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
405
406         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
407
408 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
409
410         [BZ #199]
411         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
412         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
413
414         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
415         fails.  Avoid memory leak if realloc fails.
416
417 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
418
419         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
420         NULL, "" or contains '=' character in it.  Reported by
421         Michael T Kerrisk <mtk-lists@gmx.net>.
422         * stdlib/tst-environ.c: Include errno.h.
423         (main): Add tests for these arguments to setenv/unsetenv.
424
425 2004-06-07  Roland McGrath  <roland@frob.com>
426
427         * NEWS: Update bug reporting instructions.  Fix some typos.
428
429 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
430
431         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
432         * stdio-common/_itoa.c: Add _itoa implementation.
433
434         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
435         to also send request.  Add parameter to allow this.
436         Change callers.
437         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
438         * nscd/nscd_getpw_r.c: Likewise.
439         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
440
441 2004-06-05  Andreas Jaeger  <aj@suse.de>
442
443         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
444         Handle more than 6 args correctly.  Based on a patch by Masahide
445         Washizawa <washi@jp.ibm.com>.
446
447 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
448
449         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
450         in all places, not __nss_not_use_nscd_group.
451         Reported by Philippe Gregoire.
452
453 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
454
455         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
456
457 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
458
459         * argp/argp-help.c (__argp_error, __argp_failure): Check result
460         of __asprintf call and don't use string if it failed.
461         * stdio-common/psignal.c (psignal): Likewise.
462         * locale/programs/localedef.c (more_help): Likewise.
463         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
464         arg_bool, parse_line): Check result of __asprintf calls and
465         don't use string if they failed.
466         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
467         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
468         call and exit if it failed.
469
470 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
471
472         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
473         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
474         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
475         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
476         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
477         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
478         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
479         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
480         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
481         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
482         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
483
484 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
485
486         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
487         -momit-leaf-frame-pointer.
488
489         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
490         #ifdef AF_PACKET.
491
492         * sysdeps/mach/hurd/getcwd.c
493         (_hurd_canonicalize_directory_name_intern): Only realloc when
494         size is <= 0.
495
496         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
497         isn't page aligned.
498
499         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
500         new size.
501
502         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
503         __libc_write and __libc_lseek64.
504
505 2004-05-29  Roland McGrath  <roland@redhat.com>
506
507         * elf/Makefile (shared-only-routines): Add dl-caller.
508
509 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
510
511         * sysdeps/powerpc/configure.in: New file.
512
513 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
514
515         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
516         "altivec" to enable VMX instructions.
517         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
518         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
519         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
526
527 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
528
529         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
530         __builtin_expm1l for GCC 3.5+.
531         (__expl): Define using __builtin_expl for GCC 3.4+.
532         (exp, expf, expl): Don't define for GCC 3.4+.
533         (tan, tanf, tanl): Don't define for GCC 3.5+.
534         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
535         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
536         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
537         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
538         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
539         for GCC 3.4+.
540         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
541         Don't define for GCC 3.5+.
542         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
543         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
544         define for GCC 3.5+.
545         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
546         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
547         define for GCC 3.2+.
548
549 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
550
551         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
552         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
553         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
554         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
555         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
556         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
557         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
558         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
559         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
560         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
561         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
562         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
563         libc_hidden_builtin_def if MEMPCPY_P.
564         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
565         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
566         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
567         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
568         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
569
570 2004-05-26  Roland McGrath  <roland@frob.com>
571
572         * sysdeps/generic/bits/in.h
573         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
574         These are long obsolete in BSD systems where they originated.
575         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
576
577 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
578
579         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
580         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
581         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
582         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
583         constant '\0' and first argument is not constant.
584         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
585         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
586         For GCC 3.2+ use __builtin_strncpy.
587         (strncat): For GCC 3.2+ use __builtin_strncat.
588         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
589         constant.
590         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
591         if both arguments are constant.
592
593 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
594
595         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
596         mapped addresses in gethostbyaddr.
597
598 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
599
600         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
601         flags parameter, convert afp to simple int parameter.  Adjust code.
602         typep was never != NULL and flags therefore also unused.  *afp is
603         never modified.
604         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
605         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
606         handling for __nss_hostname_digits_dots calls.
607         * nss/getXXbyYY_r.c: Likewise.
608
609         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
610
611 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
612
613         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
614         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
615         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
616         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
617         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
618         implementation from w_sqrt.c.
619         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
620         implementation from w_sqrtf.c.
621         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
622         using inline __ieee754_sqrt().
623         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
624         using inline __ieee754_sqrtf().
625         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
626         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
627         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
628         PPC_FEATURE_*  independent of __ASSEMBLER__.
629
630 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
631
632         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
633         include.
634         (aio_start_notify_thread): Define if not defined.
635         (notify_func_wrapper): Use it.
636         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
637         include.
638         (aio_create_helper_thread): Define if not defined.
639         (__aio_create_helper_thread): New function.
640         (__aio_enqueue_request): Use aio_create_helper_thread.
641
642         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
643         (struct ypresp_all_data): New type.
644         (__xdr_ypresp_all): Change second argument to
645         struct ypresp_all_data *.  Replace ypall_foreach and
646         ypall_data with objp->foreach and objp->data.
647         (yp_all): Remove status variable, add data.  Replace
648         all uses of status with data.status.  Initialize data.foreach
649         and data.data instead of ypall_foreach and ypall_data.
650
651 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
652
653         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
654         in l_flags_1, not in l_flags.
655
656 2004-04-10  Robert Millan  <robertmh@gnu.org>
657
658         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
659         with sysdeps/generic/bits/in.h.
660
661 2004-05-25  Roland McGrath  <roland@frob.com>
662
663         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
664         GCC GPL to standard glibc LGPL.
665
666 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
667
668         * manual/string.texi (Copying and Concatenation): Fixed second
669         concat example.
670         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
671
672 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
673
674         * malloc/obstack.c: Don't allow linking with _obstack.
675
676 2004-05-23  Andreas Schwab  <schwab@suse.de>
677
678         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
679         of separate "m" constraints.
680
681 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
682
683         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
684         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
685         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
686
687 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
688
689         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
690         Add comment explaining why libc still defines it.
691
692 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
693
694         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
695         obstack_alignment_mask, obstack_alloc, obstack_base,
696         obstack_blank, obstack_blank_fast, obstack_chunk_size,
697         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
698         obstack_grow0, obstack_init, obstack_int_grow,
699         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
700         obstack_next_free, obstack_object_size, obstack_ptr_grow,
701         obstack_ptr_grow_fast, obstack_room): Remove declarations of
702         nonexistent functions.
703
704 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
705
706         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
707         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
708         [PIC]: Redundent for powerpc64, removed.
709         (ENTRY): Generate size and alignment for opd entry.
710         (EALIGN): Generate size and alignment for opd entry.
711         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
712         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
713
714 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
715
716         * misc/regexp.h: Say the functions have been withdrawn.
717
718         * wcsmbs/tst-wcpncpy.c: Add more tests.
719
720 2004-05-18  Roland McGrath  <roland@frob.com>
721
722         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
723         standard glibc LGPL.
724         * sysdeps/generic/unwind-dw2.c: Likewise.
725         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
726         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
727         * sysdeps/generic/unwind-pe.h: Likewise.
728
729 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
730
731         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
732         MONTENEGRO" which have taken over the code 819.  Patch from
733         Danilo Segan. [BZ #40]
734
735 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
736
737         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
738         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
739         __sparc_get_pic_l7.
740
741 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
742
743         * catgets/gencat.c: Update bug reporting instructions.
744         * csu/version.c: Likewise.
745         * debug/catchsegv.sh: Likewise.
746         * debug/pcprofiledump.c: Likewise.
747         * debug/xtrace.sh: Likewise.
748         * elf/ldd.bash.in: Likewise.
749         * iconv/iconv_prog.c: Likewise.
750         * iconv/iconvconfig.c: Likewise.
751         * locale/programs/locale.c: Likewise.
752         * locale/programs/localedef.c: Likewise.
753         * login/programs/pt_chown.c: Likewise.
754         * malloc/memusage.sh: Likewise.
755         * malloc/memusagestat.c: Likewise.
756         * malloc/mtrace.pl: Likewise.
757         * manual/crypt.texi: Likewise.
758         * manual/install.texi: Likewise.
759         * nss/makedb.c: Likewise.
760
761 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
762
763         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
764         CHECK_STATIC_TLS if sym != NULL.
765         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
766         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
767
768 2004-05-12  Andreas Schwab  <schwab@suse.de>
769
770         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
771         when translating.
772
773 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
774
775         * Rules (xtests): Depend on tests.
776
777 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
778
779         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
780         count is negative, yet write_ptr < write_end.
781         (_IO_default_xsgetn): Avoid one underflow per char if count is
782         negative, yet read_ptr < read_end.
783
784 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
785
786         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
787         equal to TAB3.
788
789 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
790
791         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
792         call.
793
794 2004-05-10  Roland McGrath  <roland@frob.com>
795
796         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
797         (__hurd_directory_name_split): Likewise.
798
799 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
800
801         * po/fr.po: Update from translation team.
802
803 2004-05-10  Andreas Jaeger  <aj@suse.de>
804
805         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
806         Correctly compute alignment.
807         Patch by Michael Matz <matz@suse.de>.
808
809 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
810
811         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
812         * sysdeps/posix/sigpause.c: Likewise.
813         * signal/signal.h: Don't define sigpause macro unless needed.
814
815 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
816
817         * configure.in (libc_cv_libgcc_s_suffix): New check.
818         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
819         * config.make.in (libgcc_s_suffix): Set.
820         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
821
822 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
823
824         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
825
826 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
827
828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
829         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
830         Load argument values into temporary variables.
831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
832         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
833         Likewise.
834
835 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
836
837         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
838         need to be compiled with exceptions.
839
840 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
841
842         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
843         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
844
845         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
846         realloc cannot fail.
847
848         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
849         be expanded.
850
851         * nis/nis_table.c: Clean up memory handling.
852         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
853         * nis/nis_removemember.c (nis_removemember): Add comment
854         explaining use of realloc.
855
856         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
857         (carg): Likewise.
858         Patch by Lev S Bishop <lev.bishop@yale.edu>.
859
860         * math/bug-tgmath1.c (main): Test fabs and carg as well.
861
862 2004-05-06  Richard Henderson  <rth@redhat.com>
863
864         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
865         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
866         * sysdeps/unix/sysv/linux/alpha/Versions: Export
867         __libc_alpha_cache_shape as a private symbol.
868         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
869         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
870
871 2004-05-06  Richard Henderson  <rth@redhat.com>
872
873         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
874         * sysdeps/alpha/divl.S: Use them.
875         * sysdeps/alpha/divq.S: Likewise.
876         * sysdeps/alpha/divqu.S: Likewise.
877         * sysdeps/alpha/reml.S: Likewise.
878         * sysdeps/alpha/remq.S: Likewise.
879         * sysdeps/alpha/remqu.S: Likewise.
880
881 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
882
883         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
884         (cimag): Use it.
885         (creal): Likewise.
886         * math/Makefile (tests): Add bug-tgmath1.
887         * math/bug-tgmath1.c: New file.
888
889 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
890
891         * sysdeps/alpha/atomicity.h: Remove.
892         * sysdeps/generic/atomicity.h: Remove.
893
894 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
895
896         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
897         char *.
898
899 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
900
901         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
902           rt-sysdep.
903         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
904
905         * sysdeps/ia64/strcat.c: New file.
906         * sysdeps/ia64/strcat.S: Delete.
907
908 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
909
910         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
911         defined.
912
913 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
914
915         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
916         libc_hidden_proto.  Define to __GI___libm_error_support for
917         assembly going into libc.so.
918         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
919         libc_hidden_def.
920
921         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
922         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
923
924         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
925         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
926         if USE___THREAD.
927
928 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
929
930         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
931         __USE_BSD or __USE_UNIX98.
932         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
933         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
934         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
935         Likewise.
936         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
937         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
938         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
939         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
940         Likewise.
941         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
942         Likewise.
943         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
944         Likewise.
945         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
946         Likewise.
947         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
948         Likewise.
949         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
950         Likewise.
951         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
952         Likewise.
953         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
954         Likewise.
955         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
956         Likewise.
957         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
958         Likewise.
959         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
960         Likewise.
961         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
962         Likewise.
963         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
964         Likewise.
965         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
966         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
967         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
968
969 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
970
971         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
972         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
973         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
974         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
975         * sysdeps/unix/sysv/linux/Versions (libc): Remove
976         __libc_sigaction@@GLIBC_PRIVATE.
977         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
978         __modify_ldt@@GLIBC_PRIVATE.
979         * socket/Versions (libc): Remove __libc_accept, __libc_send,
980         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
981         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
982         * stdio-common/Versions (libc): Remove
983         _itoa_upper_digits@@GLIBC_PRIVATE.
984         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
985         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
986         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
987         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
988         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
989         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
990         __libc_lseek64 @@GLIBC_PRIVATE.
991
992 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
993
994         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
995         check.
996
997 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
998
999         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
1000         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
1001         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
1002         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
1003         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
1004         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
1005         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
1006         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
1007         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
1008         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
1009         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
1010         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
1011         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
1012         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
1013         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
1014         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
1015         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
1016         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
1017
1018         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
1019         mantissa for AIX long double format.
1020         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
1021         long double format.
1022         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
1023         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
1024         (_fpioconst_pow10): AIX long double format has same exponent range as
1025         double.
1026         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
1027         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
1028         as double.
1029
1030 2004-04-23  Art Haas  <ahaas@airmail.net>
1031
1032         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
1033
1034 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
1035
1036         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
1037         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
1038         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
1039         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
1040         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
1041
1042 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
1043
1044         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
1045         entries.
1046
1047 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
1048
1049         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
1050         prototypes and description [BZ #131].
1051
1052         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
1053         Patch by Ed Catmur <ed@catmur.co.uk>.
1054         * string/tst-inlcall.c (main): Add test for strpbrk.
1055
1056         [BZ #140]
1057         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
1058         include.
1059         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
1060         yet defined, #undef back after including linux/sysctl.h if defined
1061         here.
1062         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
1063         back after including linux/sysctl.h if defined here.
1064
1065         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
1066         for single precision register, add it to __asm clobbers [BZ #139].
1067         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
1068         for single precision register, add it to __asm clobbers.
1069         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
1070         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
1071         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
1072         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
1073
1074 2004-04-23  Andreas Schwab  <schwab@suse.de>
1075
1076         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
1077         __attribute_used__.
1078
1079 2004-04-22  Philip Blundell  <philb@gnu.org>
1080
1081         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
1082         when calling _dl_signal_error.
1083         (elf_machine_rel): Likewise.
1084
1085 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
1086
1087         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
1088         and use it internally instead of __sigsetjmp.
1089         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
1090         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
1091         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
1092         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
1093         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
1094         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
1095         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
1096         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
1097         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
1098         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
1099         HIDDEN_JUMPTARGET for exit call.
1100         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
1101         _exit call.
1102         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
1103         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
1104         strcpy calls.
1105
1106 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
1107
1108         * posix/tst-chmod.c (do_test): Fix a typo.
1109
1110         * elf/lateglobal.c (main): Fix error checks.
1111         Patch by Stephen Clarke <stephen.clarke@st.com>.
1112
1113         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
1114         mention they have been added in ISO C99.
1115         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1116
1117 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1118
1119         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
1120
1121 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1122
1123         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
1124         EACCES.
1125
1126 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1127
1128         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
1129         handling change.
1130         * stdio-common/tst-sscanf.c (int_tests): Adjust.
1131
1132         * nis/nss-nis.c: Include stdlib.h.
1133
1134         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
1135         warning.
1136         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
1137         libc_hidden_builtin_def.
1138
1139 2004-04-20  Jim Meyering  <jim@meyering.net>
1140
1141         * misc/error.c (error_tail): Don't leak upon realloc failure.
1142
1143 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1144
1145         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
1146         Use RETURN_ADDRESS instead of __builtin_return_address.
1147
1148 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
1149
1150         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
1151         compact code.
1152
1153 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1154
1155         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
1156         do input_error () instead of conv_error () and don't look at errno.
1157         Don't eat any whitespace before %% if skip_space == 0.
1158         * stdio-common/tst-sscanf.c (int_tests): New array.
1159         (main): Run int_tests.
1160
1161
1162 See ChangeLog.14 for earlier changes.