Update.
[glibc.git] / ChangeLog
blobf68cfd110eb58eac1befe4d6731fa1ac826c3861
1 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
3         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
4         before writing data into the buffer with negative offset.
5         * nis/nss_compat/compat-initgroups.c: Likewise.
6         * nis/nss_compat/compat-pwd.c: Likewise.
7         * nis/nss_compat/compat-spwd.c Likewise.
9 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
11         * misc/syslog.c (vsyslog): Fix copying of PID in case of
12         out-of-memory situation.  [BZ #365].
14         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
15         __THROW in inline function definitions.
17         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
18         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
19         in FLAGS parameter and fail if this is the case.
20         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
21         set.
23         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
24         * nscd/grpcache.c (cache_addgr): Likewise.
25         * nscd/hstcache.c (cache_addhst): Likewise.
27 2004-09-11  Roland McGrath  <roland@frob.com>
29         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
30         Set _dl_phdr and _dl_phnum.
31         (init1): When bootstrap task, bail early and never examine *D.
33 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
35         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
36         Cast THR, SEL and DESC to `void'.
38 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
40         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
41         databases.
43         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
45 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
47         * nscd/nscd.c (pagesize_m1): New variable.
48         (main): Initialize it.
49         * nscd/nscd.h: Declare pagesize_m1.
50         * nscd/hstcache.c: Pass correctly aligned address to msync.
51         * nscd/grpcache.c: Likewise.
52         * nscd/pwdcache.c: Likewise.
54 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
56         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
57         __nwaiters.  If pthread_cond_destroy has been called and this is
58         the last waiter, signal pthread_cond_destroy caller and avoid
59         using the pthread_cond_t structure after unlock.
60         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
62 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
64         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
65         __ASSUME_CLONE_STOPPED.
67 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
69         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
70         __asm__ for C++.  [BZ #377]
72 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
74         * nscd/nscd_stat.c: Improve output by also printing .shared and
75         .persistent.
77         * nscd/connections.c: Allow cache sharing to be really disabled.
79 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
81         * malloc/malloc.c (_int_free): Only do arena boundary check for
82         contiguous arenas.
84 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
86         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
87         instruct operands.
88         * elf/elf.h: Add R_M32R_* relocs.
90 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
92         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
93         seems not to support the nothrow attribute.  Use it only for gcc
94         3.3 and higher.
96         * malloc/hooks.c (top_check): Print top chunk corruption as normal
97         error message.
99         * malloc/malloc.c (malloc_printerr): Don't make informational
100         message look like error message.
102 2004-09-09  Andreas Jaeger  <aj@suse.de>
104         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
106 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
108         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
110         * malloc/malloc.c (_int_free): Add inexpensive double free and
111         memory corruption tests.
112         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
113         is no format string anymore.  Don't use stdio.  Adjust all callers.
114         * malloc/hooks.c: Adjust malloc_printf_nc callers.
116 2004-09-08  Roland McGrath  <roland@redhat.com>
118         * malloc/mcheck.c: Don't use __P.
119         Use prototypes definitions for static functions.
121 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
123         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
125 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
126             Jakub Jelinek  <jakub@redhat.com>
128         * nscd/nscd-client.h: Add a few #includes.
130         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
131         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
132         threads.
133         * nscd/nscd-client.h (struct database_pers_head): Add
134         nscd_certainly_running field.
135         * nscd/nscd.h: Declare setup_thread.
136         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
137         nscd_certainly_running is nonzero.
138         * sysdeps/generic/nscd_setup_thread.c: New file.
139         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
141 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
143         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
144         processes via shared memory.
145         * nscd/nscd-client.h: Likewise.
146         * nscd/nscd.h: Likewise.
147         * nscd/nscd_conf.c: Likewise.
148         * nscd/nscd_getgr_r.c: Likewise.
149         * nscd/nscd_getpw_r.c: Likewise.
150         * nscd/nscd_gethst_r.c: Likewise.
151         * nscd/nscd.conf: Add new config parameters.
152         * nscd/Makefile (aux): Add nscd_helper.
153         * nscd/nscd_helper.c: New file.
154         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
156         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
157         no derived information.
158         * connections.c (nscd_init): Fix bug in testing size of the persistent.
160         * nis/Makefile (aux): Add nis_hash.
161         * nis/nis_hash.c: New file.  Split out from nis_util.c.
162         * nis/nis_util.c: Move __nis_hash code in separate file.
164         * csu/tst-atomic.c: Improve atomic_increment_val test which would
165         not have found a ppc bug.
167         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
169         * malloc/arena.c: Remove __MALLOC_P uses.
170         * malloc/malloc.c: Likewise.
172         * malloc/mtrace.c: Remove __P uses.
173         * malloc/mcheck-init.c: Likewise.
175 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
177         * sysdeps/powerpc/powerpc64/configure.in: New file.
178         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
179         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
180         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
181         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
182         BODY_PREFIX): Define.
183         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
184         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
185         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
186         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
187         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
189 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
191         * malloc/malloc.h: Don't define __THROW if it is already defined.
193         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
194         (atomic_decrement): Define.
196         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
197         atomic_decrement_val.
198         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
199         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
201         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
202         and atomic_decrement_val.
204         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
205         and atomic_delay is not already defined.
206         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
207         * sysdeps/x86_64/bits/atomic.h: Likewise.
209         * miscd/sys/cdefs.h (__NTH): New macro.
210         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
211         (__REDIRECT_NTH): New macro.
212         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
213         * ctype/ctype.h: Likewise.
214         * dirent/dirent.h: Likewise.
215         * io/fcntl.h: Likewise.
216         * io/sys/sendfile.h: Likewise.
217         * io/sys/stat.h: Likewise.
218         * io/sys/statfs.h: Likewise.
219         * io/sys/statvfs.h: Likewise.
220         * libio/bits/stdio.h: Likewise.
221         * misc/sys/mman.h: Likewise.
222         * posix/unistd.h: Likewise.
223         * resource/sys/resource.h: Likewise.
224         * rt/aio.h: Likewise.
225         * signal/signal.h: Likewise.
226         * stdlib/stdlib.h: Likewise.
227         * string/argz.h: Likewise.
228         * string/string.h: Likewise.
229         * sysdeps/generic/inttypes.h: Likewise.
230         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
231         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
232         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
233         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
234         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
235         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
236         * wcsmbs/wchar.h: Likewise.
238         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
240         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
241         definition.
243         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
244         cancellation point.
246         * io/fts.c (fts_open): Remove uses of __P.
248         * include/stdlib.h: No need to use __THROW in this header.
250 2004-09-06  Roland McGrath  <roland@frob.com>
252         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
253         validity, since __assert_fail gets to here anyway.  Just fail.
255 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
257         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
258         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
259         addresses.
261 2004-09-05  Richard Henderson  <rth@redhat.com>
263         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
264         * sysdeps/unix/sysv/linux/kernel-features.h
265         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
266         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
267         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
268         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
269         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
271 2004-09-05  Richard Henderson  <rth@redhat.com>
273         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
274         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
275         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
276         sysdeps/alpha/remqu.S: Likewise.
277         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
279 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
281         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
282         GETHOSTBYADDRv6 requests.
284 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
286         * nscd/pwdcache.c (cache_addpw): Use correct key length in
287         cache_add calls.
288         * nscd/grpcache.c (cache_addgr): Likewise.
290 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
292         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
293         to `dtv_t *'.
295 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
297         * nscd/nscd.c (parse_opt): Use writev instead of two write for
298         invalidate command.
300 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
302         * nscd/connections.c (nscd_run): Check early for invalid request types.
304 2004-09-02  Roland McGrath  <roland@frob.com>
306         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
307         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
308         (THREAD_SELF): New macro.
310 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
312         [BZ #357]
313         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
314         (main): Call test_stack.
315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
316         (__getcontext): Push stack frame then save parms in local frame.
317         Improve instruction scheduling.
318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
319         (__swapcontext): Likewise.
321 2004-09-01  Andreas Schwab  <schwab@suse.de>
323         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
324         __builtin_offsetof.
326 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
328         [BZ #361]
329         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
330         to normal_bracket after fetching the next character.
331         * posix/tst-fnmatch.input: Add 25 new tests.
332         Reported by Markus Oberhumer <markus@oberhumer.com>.
334 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
336         * elf/rtld.c (dl_main): First check existence of ld.so.preload
337         with access.
339 2004-09-01  Roland McGrath  <roland@redhat.com>
341         * sysdeps/unix/sysv/linux/bits/waitflags.h
342         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
343         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
344         New macro.
345         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
346         available, or fall back to the waitpid-based generic code.
348 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
350         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
351         clobber the `ebp' register.
352         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
353         Reverts change from 2004-05-07 by Jeroen Dekkers.
355         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
356         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
358 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
360         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
361         before return type.
362         * locale/localename.c (__current_locale_name): Likewise.
364 2004-08-30  Roland McGrath  <roland@frob.com>
366         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
367         later sets from output.
368         * Makerules (check-abi): Pass option to set that with value of
369         LIB-abi-frozen variable if one is set.
371         * abilist/libcidn.abilist: New file (empty).
373 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
375         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
376         not __USE_XOPEN2K, use the Unix98 mandated values.
378 2004-08-27  Roland McGrath  <roland@redhat.com>
380         * configure.in (usetls): Default to yes.
381         * configure: Regenerated.
383 2004-08-26  Roland McGrath  <roland@redhat.com>
385         * configure.in (add_ons_automatic): New variable, set to yes or no
386         indicating --enable-add-ons with no explicit list.
387         (running add-on fragments): Allow a fragment to modify $libc_add_on
388         and have that affect its place in the list of add-ons to use.
389         * configure: Regenerated.
391 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
393         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
394         a mmaped memory region which is automatically mirrored on disk.
395         This implements persistent data storage.  The Memory handled
396         needed to be completely revamped, it now uses a garbage collection
397         mechanism instead of malloc.
398         * nscd/connections.c: Likewise.
399         * nscd/nscd.c: Likewise.
400         * nscd/nscd.h: Likewise.
401         * nscd/nscd_conf.c: Likewise.
402         * nscd/nscd_stat.c: Likewise.
403         * nscd/grpcache.c: Likewise.
404         * nscd/hstcache.c:: Likewise.
405         * nscd/pwdcache.c:: Likewise.
406         * nscd/Makefile: Add rules to build mem.c.
407         * nscd/mem.c: New file.
408         * nscd/nscd.conf: Describe new configuration options.
410 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
412         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
413         NO_SGIDEFS_H isn't defined.
414         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
415         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
417         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
418         _MIPS_SIM.
419         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
420         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
421         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
423 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
425         * nscd/connections.c (nscd_run): atomic_increment was not missing.
427         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
428         Patch by Greg Schafer.
430 2004-08-25  Richard Henderson  <rth@redhat.com>
432         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
433         instead of $31.  Zero $15.
434         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
436 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
438         * sysdeps/powerpc/powerpc64/bits/atomic.h
439         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
440         is negative.
441         (__arch_compare_and_exchange_bool_32_rel): Likewise.
443         * nscd/connections.c: Make socket nonblocking so that threads
444         don't get stuck on accept.  Fix locking.
446         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
447         entry with alternative key.
448         * nscd/pwdcache.c (cache_addpw): Likewise.
450 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
452         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
453         __libc_stack_end.
455 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
457         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
458         __BEGIN_DECLS/__END_DECLS.
460 2004-08-23  Andreas Jaeger  <aj@suse.de>
462         [BZ #341]
463         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
464         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
465         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
466         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
467         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
468         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
469         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
470         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
471         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
472         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
473         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
474         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
475         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
477 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
479         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
480         (check_action): Likewise.
481         When printing error messages, use malloc_printf_nc now instead of
482         fiddling with the streams cancellation flag in every place.
483         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
484         default to 3.
485         (check_action): New variable.
486         (unlink): Print error message and eventually terminate in case list
487         is corrupted.
488         (malloc_printf_nc): New function.  Use it in _int_free.
489         Change proposed by Arjan van de Ven.
491         * dlfcn/Makefile: Don't build eval.c anymore.
493 2004-08-20  Roland McGrath  <roland@frob.com>
495         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
496         of echo -e for POSIX.2 portability.
497         Reported by Paul Jarc <prj@po.cwru.edu>.
499 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
501         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
502         list generation.
504         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
505         getcanonname_r function if AI_CANONNAME flag is not set in
506         request.
508         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
509         Initialize mysize with limits only if latter is >= 0.  Use mysize
510         in malloc call.
512 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
514         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
515         to avoid warning.
517         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
518         status to NSS_STATUS_UNAVAIL.
520 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
522         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
523         cannoname lookup since it has the FQDN even if the original NAME
524         value has not.
526 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
528         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
529         pointer in new variable ORIG_NAME and use this pointer when
530         determination of canonical name failed, not the possibly IDN
531         translated value of NAME.
533 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
535         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
536         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
537         Reset RES_NOIP6DOTINT flag in this case..
539         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
540         ai_canonname.
542 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
544         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
545         CNAME records, we better follow the chain of CNAME records which
546         can be accomplished with A/AAAA lookups.
548 2004-08-15  Roland McGrath  <roland@redhat.com>
550         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
551         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
552         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
553         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
554         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
556 2004-08-15  Roland McGrath  <roland@frob.com>
558         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
559         this, not ...
560         (static-only-routines): ... this.
561         * sysdeps/ia64/Makefile: Likewise.
562         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
563         * sysdeps/sparc/sparc64/Makefile: Likewise.
564         * sysdeps/x86_64/Makefile: Likewise.
565         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
566         * sysdeps/ia64/hp-timing.c: Likewise.
567         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
568         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
570         * csu/elf-init.c: Update copyright terms including special exception
571         for these trivial files, which are statically linked into executables
572         that use dynamic linking for the significant library code.
573         * io/fstat.c: Likewise.
574         * io/fstat64.c: Likewise.
575         * io/lstat.c: Likewise.
576         * io/lstat64.c: Likewise.
577         * io/stat.c: Likewise.
578         * io/stat64.c: Likewise.
579         * stdlib/atexit.c: Likewise.
580         * sysdeps/alpha/elf/initfini.c: Likewise.
581         * sysdeps/alpha/elf/start.S: Likewise.
582         * sysdeps/arm/elf/start.S: Likewise.
583         * sysdeps/cris/elf/start.S: Likewise.
584         * sysdeps/generic/initfini.c: Likewise.
585         * sysdeps/generic/mknod.c: Likewise.
586         * sysdeps/hppa/elf/initfini.c: Likewise.
587         * sysdeps/hppa/elf/start.S: Likewise.
588         * sysdeps/i386/elf/start.S: Likewise.
589         * sysdeps/i386/i686/hp-timing.c: Likewise.
590         * sysdeps/ia64/elf/initfini.c: Likewise.
591         * sysdeps/ia64/elf/start.S: Likewise.
592         * sysdeps/ia64/hp-timing.c: Likewise.
593         * sysdeps/m68k/elf/start.S: Likewise.
594         * sysdeps/mach/start.c: Likewise.
595         * sysdeps/mips/elf/start.S: Likewise.
596         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
597         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
598         * sysdeps/s390/s390-32/elf/start.S: Likewise.
599         * sysdeps/s390/s390-32/initfini.c: Likewise.
600         * sysdeps/s390/s390-64/elf/start.S: Likewise.
601         * sysdeps/s390/s390-64/initfini.c: Likewise.
602         * sysdeps/sh/elf/initfini.c: Likewise.
603         * sysdeps/sh/elf/start.S: Likewise.
604         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
605         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
606         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
607         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
608         * sysdeps/standalone/i386/start.S: Likewise.
609         * sysdeps/standalone/i960/start.S: Likewise.
610         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
611         * sysdeps/unix/arm/start.c: Likewise.
612         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
613         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
614         * sysdeps/unix/sparc/start.c: Likewise.
615         * sysdeps/unix/start.c: Likewise.
616         * sysdeps/unix/sysv/aix/start.s: Likewise.
617         * sysdeps/unix/sysv/irix4/start.c: Likewise.
618         * sysdeps/x86_64/elf/initfini.c: Likewise.
619         * sysdeps/x86_64/elf/start.S: Likewise.
621 2004-08-15  Roland McGrath  <roland@redhat.com>
623         [BZ #227]
624         * sysdeps/unix/sysv/linux/kernel-features.h
625         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
626         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
627         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
628         the partial page after the dynamic linker's own data segment.
630 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
633         v4-mapped addresses a bit.
634         (gethosts): Move alloca out of macro, so that it is done only once.
636         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
637         addr to avoid casts.
638         (gethosts): Removed.
639         (gethosts2): Renamed to gethosts.  Make it usable for family !=
640         AF_UNSPEC.  Fix AI_V4MAPPED.
641         (gaih_inet): Remove use of old gethosts.  Always use what used to be
642         gethosts2.  If entry is found, try to use the same NSS module's
643         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
644         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
645         addresses.  Numerous cleanups.
646         * resolv/nss_dns/dns-canon.c: New file.
647         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
648         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
650         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
651         * elf/tst-dlopenrpath.c: New file.
652         * elf/tst-dlopenrpathmod.c: New file.
654         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
655         * intl/tst-gettext.c: Likewise.
657         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
659         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
660         AF_INET6.
662 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
664         * po/de.po: Update from translation team.
666 2004-08-14  Roland McGrath  <roland@frob.com>
668         * sysdeps/mach/configure: Regenerated.
669         * sysdeps/mach/hurd/configure: Regenerated.
671 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
673         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
674         performed, make sure it is still the first entry after sorting
675         that has the ai_canonname information.
677         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
678         only in one entry.
680 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
682         * scripts/output-format.sed: Handle default case of three-argument
683         OUTPUT_FORMAT.
685         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
686         __attribute_used__.
688 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
690         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
691         first returned entry.  Print name only if not NULL.
693         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
694         __netgrent object passed in instead of global variables.
695         Optimize.
696         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
697         in struct __netgrent object passed in instead of global variables.
698         * inet/netgroup.h (struct __netgrent): Add service_user field.
699         Move cursor in anonymous union, add new field location to that
700         union.
701         * inet/getnetgrent_r.c: Extensive rewrite to really enable
702         concurrent uset of set/get/endnetgrent and innetgr.
703         Reported by Chuck Simmons.
705         * inet/netgroup.h (struct name_list): Replace name pointer with
706         zero-sized array.
707         * inet/getnetgrent_r.c: Adjust code for change in name_list
708         layout.  Numerous strdup and free calls removed.
710         * elf/sprof.c (read_symbols): When comparing aliases, prefer
711         non-hidden over hidden symbols and strong over weak symbols
712         if both don't start with '_'.
714         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
715         possible.
717 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
719         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
720         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
721         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
722         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
723         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
724         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
725         accordingly.
727 2004-08-11  Andreas Schwab  <schwab@suse.de>
729         * resolv/res_libc.c: Move definition of __res_initstamp ...
730         * resolv/res_init.c: ... here.
732 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
734         * locale/C-time.c: Change default ERA value from NULL to "".
735         * locale/tst-C-locale.c: Add test case for ERA keywords.
737 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
739         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
740         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
741         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
742         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
744 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
746         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
747         RLIMIT_MSGQUEUE): Add.
748         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
749         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
750         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
751         (RLIM_NLIMITS): Adjust.
752         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
753         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
754         (RLIM_NLIMITS): Adjust.
755         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
756         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
757         (RLIM_NLIMITS): Adjust.
759 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
761         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
762         printf with #ifdef DEBUG and RES_DEBUG check.
764         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
765         __USE_MISC #endif.
766         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
767         declaration.
768         * sysdeps/gnu/bits/shm.h: Likewise.
769         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
770         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
771         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
772         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
773         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
775 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
777         * po/ca.po: Update from translation team.
779 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
781         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
782         __getpagesize declaration.
784 2004-08-11  Roland McGrath  <roland@redhat.com>
786         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
787         commands inside &&.
788         Reported by Andreas Schwab <schwab@suse.de>.
789         * configure: Regenerated.
791         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
793 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
795         * time/tzset.c (tzset_internal): Add new parameter which is
796         nonzero if called through tzset.  Use TZDEFAULT name including
797         name comparison if the new parameter is zero.  This means implicit
798         tzset calls will not cause files to be opened and read by tzfile.c
799         all the time.
801 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
803         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
804         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
805         return 1 immediately.
807         * time/tzfile.c (__tzfile_read): Free transitions only if it will
808         not be reused.
810         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
811         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
813         * stdio-common/tst-popen.c: Include <string.h>.
815         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
817         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
818         attribute.  Return NULL instead of calling pthread_exit at the end.
820 2004-08-11  Roland McGrath  <roland@redhat.com>
822         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
824 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
826         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
828 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
830         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
831         (fwrite_unlocked): When checking if size * n is <= 8, cast each
832         argument to size_t individually.  Cast n to (void) instead of
833         (size_t), surround with (), return (size_t) 0 if one of n or size
834         is 0.  [BZ #316]
835         * stdio-common/Makefile (tests): Add tst-unlockedio.
836         * stdio-common/tst-unlockedio.c: New test.
838 2004-08-09  Roland McGrath  <roland@frob.com>
840         * manual/install.texi (Supported Configurations): Replace bug-glibc
841         mention with web URL.
842         * INSTALL: Regenerated.
843         * locale/iso-3166.def: Likewise, in comment.
844         * locale/iso-4217.def: Likewise.
845         * locale/iso-639.def: Likewise.
846         * posix/cpio.h: Remove bug reporting comment.
848 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
850         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
851         casts to handle funny calls with floating point argument values
852         and signed values correctly and without warning.
853         (fwrite_unlocked): Likewise.  [BZ #309]
855         * malloc/memusage.c (me): Use creat64, not creat.
856         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
857         Patch by Guy Maor <guymaor@yahoo.com>.
859         * elf/ldconfig.c (options): Mark parameter option names as
860         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
862         * iconv/gconv_charset.h (strip): Also allow comma which is what is
863         used to separate options.  [BZ #194]
865 2004-08-09  Roland McGrath  <roland@redhat.com>
867         * FAQ.in: Refer to web pages instead of bug-glibc.
868         * FAQ: Regenerated.
870         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
872 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
874         * time/tzset.c (tzset_internal): If TZ is not set do not compare
875         old and new tz value since it might be /etc/localtime in both
876         cases although the file changed.  [BZ #154]
877         Patch by Christian Franke <franke@computer.org>.
879         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
880         Compare with values of previously opened file.  Don't do anything
881         is they match.
883 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
885         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
886         reset loader before the actual loading.
887         * elf/dl-open.c (dl_open_worker): If file name contains no path
888         element determine map of caller.  Pass caller map in this case to
889         _dl_map_object.  Set __RTLD_CALLMAP in mode.
890         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
891         Patch by Greg Wolodkin <greg@mathworks.com>.
893         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
894         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
896         * configure.in: Also recognize i786. [BZ #106]
897         Patch by <pluto@pld-linux.org>.
899         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
900         name contains any dots. [BZ #95]
902         * resolv/res_send.c: Compiling with DEBUG defined works again.
903         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
904         callers.
906         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
907         available the process is not killed. [BZ #41]
909         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
911         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
912         [BZ #28]
914         * po/sv.po: Update from translation team.
916 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
918         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
919         getsourcefilter, and setsourcefilter parameter list.
920         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
921         * sysdeps/generic/getsourcefilter.c: Likewise.
922         * sysdeps/generic/setsourcefilter.c: Likewise.
923         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
924         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
925         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
927         * po/tr.po: Update from translation team.
929 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
931         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
932         Reported by Paolo Bonzini.
934 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
936         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
937         always_inline.
938         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
939         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
941         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
942         before including linux/atalk.h.
944         * resolv/res_libc.c: Include atomic.h.
946         * intl/finddomain.c (free_mem): Rename to...
947         (_nl_finddomain_subfreeres): ... this.  Add
948         __libc_freeres_fn_section.
949         * intl/loadmsgcat.c (_nl_unload_domain): Add
950         __libc_freeres_fn_section.
951         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
952         Add attribute_hidden.
953         (_nl_findomain_subfreeres): New prototype.
954         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
956 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
958         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
959         test if the key is numeric or not.
960         (group_keys): Likewise.
962 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
964         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
965         struct group_filter, and GROUP_FILTER_SIZE.
966         * include/sys/socket.h: Declare __getsockopt.
967         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
968         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
969         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
970         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
972         * po/ko.po: Update from translation team.
974 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
976         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
977         memset.
978         (__hesiod_res_set): Free nsaddrs.
980         * include/resolv.h (__res_maybe_init): Add prototype.
981         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
982         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
983         * resolv/res_libc.c (__res_initstamp, lock): New variables.
984         (res_init): Increase __res_initstamp.
985         (__res_maybe_init): New function.
986         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
987         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
988         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
989         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
990         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
991         _nss_dns_gethostbyaddr_r): Likewise.
992         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
993         _nss_dns_getnetbyaddr_r): Likewise.
994         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
995         gethostbyaddr): Likewise.
996         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
997         res_isourserver, res_sendsigned, res_update, res_search,
998         res_querydomain): Likewise.
999         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
1000         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
1001         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1002         Likewise.
1004 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
1007         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
1008         Reported by A. Guru <a.guru@sympatico.ca>.
1010         * po/sv.po: Update from translation team.
1011         * po/sk.po: Likewise.
1012         * po/pl.po: Likewise.
1014 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1015             Ulrich Drepper  <drepper@redhat.com>
1017         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
1018         characters than necessary.
1020 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1022         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
1023         * wcsmbs/tst-mbsrtowcs.c: New file.
1025         * po/fr.po: Update from translation team.
1027 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1029         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
1030         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
1032 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1034         * po/nl.po: Update from translation team.
1036         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
1037         numeric address formats inet_addr knows.
1038         (getaddrinfo): Allow AI_NUMERICSERV flag.
1039         If neither IPv4 nor IPv6 interface is present we cannot make any
1040         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
1041         string is not just a number.  Remove useless freeaddrinfo call.
1042         * resolv/netdb.h (AI_NUMERICSERV): Define.
1043         Based on a patch by a.guru@sympatico.ca.
1045 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1047         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
1048         instead of trying to initialize some, but not all, fields one by
1049         one.
1050         * stdio-common/printf_size.c (printf_size): Initialize fb_info
1051         structure with *info instead of trying to initialize some, but not
1052         all, fields from it.
1054         * nscd/connections.c (handle_request): Check if req->type is in
1055         LASTDBREQ .. LASTREQ range instead of req.
1057         * locale/programs/linereader.c (lr_create): Initialize
1058         lr->return_widestr to 0.
1060         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
1061         (free_mem): Call free_slotinfo just once.
1063         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
1064         of NULL.
1066         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
1067         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
1068         (free_mem): Rename to _nl_locale_subfreeres.
1069         * iconv/gconv_db.c: Include locale/localeinfo.h.
1070         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
1071         (free_mem): Call _nl_locale_subfreeres.
1072         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
1074 2004-08-04  Roland McGrath  <roland@frob.com>
1076         * Makeconfig ($(common-objpfx)config.status):
1077         Fix typo: $(add_ons) -> $(add-ons).
1078         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
1079         include, use black magic to get it set to an add-on's name during the
1080         include of the add-on's Makeconfig.
1082         * configure.in: Use variable name `libc_add_on' when sourcing add-on
1083         configure fragments, so they can refer to this.
1084         * configure: Regenerated.
1086 2004-08-04  Roland McGrath  <roland@redhat.com>
1088         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
1089         (do_test): Bump sleep to three seconds.
1090         (sigchld, check_sigchld): New functions.
1091         (do_test): Handle SIGCHLD and check for getting the right details.
1093         * posix/tst-waitid.c (do_test): Kill the child process when bailing
1094         out early on some failure.
1095         [WCONTINUED]: Test WCONTINUED functionality.
1097 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
1099         * nscd/connections.c (handle_request): Print more descriptive
1100         message for invalid request types.
1102 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
1104         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
1105         Always treat high as highest number in range + 1.
1106         * iconvdata/ibm943.c (BODY): Likewise.
1108 2004-07-31  Bruno Haible  <bruno@clisp.org>
1110         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
1111         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
1112         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
1113         __jisx0213_from_ucs_level2): Regenerated.
1114         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
1115         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
1116         JISX0213_1_set.
1117         (JISX0213_1_2004_set): New enum value.
1118         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
1119         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
1120         when possible, ESC $ ( Q when needed.
1121         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
1122         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
1123         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
1124         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
1125         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
1126         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
1128 2004-07-22  Bruno Haible  <bruno@clisp.org>
1130         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
1132 2004-07-29  David S. Miller  <davem@redhat.com>
1134         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
1135         better for smaller than 256 byte copies.  Also, use only one
1136         unrolled loop instead of two for the large copy case.
1138 2004-07-30  Richard Henderson  <rth@redhat.com>
1140         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
1141         * sysdeps/alpha/remq.S: Likewise.
1142         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
1143         new division algorithms in divl.S and divq.S respectively.
1145 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
1147         * timezone/asia: Update from tzdata2004b.
1148         * timezone/backward: Likewise.
1149         * timezone/europe: Likewise.
1150         * timezone/iso3166.tab: Likewise.
1151         * timezone/leapseconds: Likewise.
1152         * timezone/northamerica: Likewise.
1153         * timezone/southamerica: Likewise.
1154         * timezone/zone.tab: Likewise.
1156         * timezone/private.h: Update from tzcode2004b.
1157         * timezone/zic.c: Likewise.
1159 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
1161         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
1162         under the name the user provided.
1163         * nscd/pwdcache.c (cache_addpw): Likewise.
1165 2004-07-26  Roland McGrath  <roland@redhat.com>
1167         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
1168         call to __waitpid.
1170 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
1172         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
1173         memory leaks.
1175         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
1176         new buffer at the right time.
1177         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1179 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
1181         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
1182         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1183         * inet/Makefile (routines): Likewise.
1184         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
1185         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1186         * sysdeps/generic/getipv4sourcefilter.c: New file.
1187         * sysdeps/generic/setipv4sourcefilter.c: New file.
1188         * sysdeps/generic/getsourcefilter.c: New file.
1189         * sysdeps/generic/setsourcefilter.c: New file.
1191 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
1193         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1194         for POWER4 machines.
1196 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1198         [BZ #274]
1199         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
1200         BITS_PER_MP_LIMB shifting up.
1201         * stdlib/tst-strtod.c (main): Add new tests.
1203 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1205         [BZ #282]
1206         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
1207         _IO_no_init.  Remove wd from struct locked_FILE.
1208         (_IO_wproc_jumps): Remove.
1209         Reported by Andrew Josey <a.josey@opengroup.org>.
1210         * stdio-common/Makefile (tests): Add tst-popen.
1211         * stdio-common/tst-popen.c: New test.
1213 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
1215         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
1216         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
1217         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
1218         Reported by Andrew Josey.
1220         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
1222         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
1223         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
1224         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
1225         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
1226         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
1227         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
1228         useconds_t if __USE_XOPEN2K is defined.
1229         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
1230         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
1232 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
1234         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1235         allocate memory for large temporary variables with alloca.
1237 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
1239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
1240         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
1242         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
1243         pointer and zero length.
1245 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1247         * nscd/cache.c (prune_cache): Print correct list when debugging.
1249 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1251         * resolv/res_libc.c (res_init): If RES_INIT is set and
1252         _res.nscount > 0, call __res_nclose and free nsaddrs.
1253         * resolv/Makefile: Add rules to build and run tst-leaks2.
1254         * resolv/tst-leaks2.c: New test.
1256 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1258         * intl/libintl.h: Don't define macros for C++.
1259         Patch by Goto Masanori.
1261 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
1263         [BZ #276]
1264         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
1265         * inet/arpa/inet.h: Likewise.
1266         * resolv/inet_addr.c: Likewise.
1268 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
1270         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
1272 2004-07-20  Roland McGrath  <roland@redhat.com>
1274         * configure.in (add_ons): Substitute this.  Move $add_ons handling
1275         after AC_CANONICAL_HOST and default setting of $machine et al.
1276         Don't set $subdirs from $add_ons.
1277         Instead, source add-on/configure fragments early on.
1278         (base_machine): If it's already set, don't set it based on $machine.
1279         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
1280         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
1281         (sysnames): Try appending add-on names after machine as well.
1282         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
1283         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
1284         files in $(add_ons) dirs.
1286         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
1287         definition, now in netinet/in.h proper.
1289 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
1291         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1292         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
1293         the build tree before just-installed ones.
1295         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
1296         include sgidefs.h where appropriate.
1297         * sysdeps/mips/dl-machine.h: Likewise.
1298         * sysdeps/mips/machine-gmon.h: Likewise.
1299         * sysdeps/mips/bits/setjmp.h: Likewise.
1300         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
1301         * sysdeps/mips/mips64/__longjmp.c: Likewise.
1302         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
1303         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1304         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1305         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1306         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1307         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1308         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1309         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1310         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1311         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1312         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
1313         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1314         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1315         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
1316         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1317         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1318         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
1319         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1320         Likewise.
1321         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
1322         Likewise.
1324         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
1325         _dl_lookup_symbol_x.
1326         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
1328 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
1330         * inet/netinet/in.h: Define struct ip_mreq and struct
1331         ip_mreq_source.
1332         Define struct group_req and struct group_source_req.
1333         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
1334         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
1335         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
1336         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
1337         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
1338         MCAST_MSFILTER.
1339         Define MCAST_INCLUDE and MCAST_EXCLUDE.
1341         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
1343 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
1345         [BZ #258]
1346         * math/libm-test.inc (max_value, min_value): New variables.
1347         (initialize): Initialize them.
1348         (pow_test): Add a couple of new tests.
1349         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
1350         exception if |y| >= 1U<<31.
1351         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
1352         exception if |y| >= 1L<<63.
1353         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1354         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
1355         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1357 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
1359         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
1360         lookup a bit.
1361         * nscd/grpcache.c (cache_addgr): Likewise.
1362         * nscd/hstcache.c (cache_addhst): Likewise.
1364 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
1366         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
1367         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1369 2004-04-16  Andreas Schwab  <schwab@suse.de>
1371         * sysdeps/ia64/bits/atomic.h: Cast first argument of
1372         __sync_bool_compare_and_swap_si correct to void*.
1374 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
1376         * iconv/iconv_prog.c (print_known_names): Make machine-readable
1377         output even less cluttered.
1379 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
1381         [BZ #269]
1382         * setjmp/Makefile (tests): Add bug269-setjmp.
1383         * setjmp/bug269-setjmp.c: New file.
1384         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
1385         Store R2 from jmpbuf in callers TOC save area.
1386         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
1387         Store R2 in TOC save area.
1388         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
1389         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
1391 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
1393         * locale/newlocale.c: Include bits/libc-lock.h.
1394         (__libc_setlocale_lock): Extern decl.
1395         (__newlocale): Use it.
1396         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
1398 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1400         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
1401         static inline __attribute ((always_inline)).  Don't define if
1402         NO_CANCELLATION.
1403         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1404         __fcntl_nocancel.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
1406         Remove static inline __attribute ((always_inline)).  Don't define
1407         if NO_CANCELLATION.
1408         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1409         __fcntl_nocancel.
1410         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
1411         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
1412         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
1413         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
1415         [BZ #262]
1416         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
1417         for main.
1418         * elf/Makefile: Add rules to build and run tst-pie1.
1419         * elf/tst-pie1.c: New test.
1420         * elf/tst-piemod1.c: New file.
1422 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
1424         [BZ #266]
1425         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
1426         long.  Rewrite example code so that it takes into account l64a output
1427         shorter than 6 characters.
1428         Reported by Julian Graham <julian.graham@aya.yale.edu>.
1430 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
1432         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
1433         (elf_machine_rela_relative): Remove unused valiable.
1435 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1437         [BZ #263]
1438         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
1439         outside the buffer if the read returns 0.  __strtod_l can't set
1440         endp to NULL, so remove a test for that case.
1442 2004-07-12  Roland McGrath  <roland@redhat.com>
1444         * manual/signal.texi (Interrupted Primitives): Make clear that
1445         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
1446         it to -1 to define "failure".
1448 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
1450         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
1451         ldsodefs.h.
1452         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
1453         already defined.
1454         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
1455         already defined.
1457         * elf/rtld.c (print_statistics): Mark with noinline attribute.
1458         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
1459         attribute.
1460         (elf_machine_rel_relative): Likewise.
1462         * include/string.h: Add libc_hidden_proto for __strtok_r and
1463         __strsep_g.
1464         * sysdeps/generic/strsep.c: Add libc_hidden_def.
1465         * sysdeps/generic/strtok_r.c: Likewise.
1466         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
1467         * sysdeps/i386/i686/strtok_r.S: Likewise.
1468         * sysdeps/x86_64/strtok_r.S: Likewise.
1470 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
1472         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
1473         instead of internal-linkage, such that we can alias to it.
1474         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
1476 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
1478         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
1479         to the front for gcc 3.5+.
1480         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
1482         * include/fcntl.h: Don't declare __fcntl_nocancel here if
1483         NO_CANCELLATION is defined.
1485 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
1487         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
1488         GL(dl_nloaded) into it while still in critical section.
1490 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
1492         * nss/getent.c (print_group, print_passwd): Use %lu format for
1493         `unsigned long int' values.
1495         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
1496         error typos in goto statements.
1498 2004-07-07  Roland McGrath  <roland@frob.com>
1500         * Makefile (dist-separate): New variable.
1501         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
1502         Depend on their configure files.
1503         (dist-do-separate-dirs): New canned sequence to do that.
1504         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
1505         (dist): Depend on add-on tar files based on $(dist-separate).
1506         (dist-version): New variable, default to $(version).
1507         (tag-for-dist, dist): Use that in place of $(version) in deps.
1509 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
1511         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
1512         before the loop running the destructors.
1514 2004-05-18  Andreas Schwab  <schwab@suse.de>
1516         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
1517         the first segment for mprotect, not l_text_end.
1519 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
1521         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
1522         Remove hashfraction variable.  Make kcount and kcountsize local
1523         variables.
1525         * elf/dl-init.c: Don't define and use _dl_starting_up if
1526         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
1527         * elf/dl-support.c: Likewise.
1528         * elf/rtld.c: Likewise.
1529         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
1530         if HAVE_INLINED_SYSCALLS is defined.
1531         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
1532         here.
1533         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
1534         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
1535         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
1537         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
1538         is needed to stop profiling.
1539         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
1540         profile make sure it cannot be unloaded.
1542         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
1544         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
1545         support, make sure the helper function is inlined.
1546         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1547         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1548         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
1551 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
1553         * include/string.h (ffs): Add libc_hidden_builtin_proto.
1554         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
1555         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
1556         * sysdeps/alpha/ffs.S (ffs): Likewise.
1557         * sysdeps/s390/ffs.c (ffs): Likewise.
1558         * sysdeps/powerpc/ffs.c (ffs): Likewise.
1559         * sysdeps/i386/ffs.c (ffs): Likewise.
1560         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
1561         * sysdeps/m68k/ffs.c (ffs): Likewise.
1562         * sysdeps/generic/ffs.c (ffs): Likewise.
1563         * sysdeps/m88k/ffs.c (ffs): Likewise.
1564         * sysdeps/am29k/ffs.c (ffs): Likewise.
1565         * sysdeps/i960/ffs.c (ffs): Likewise.
1566         * sysdeps/x86_64/ffs.c (ffs): Likewise.
1568         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
1570         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
1571         __libc_siglongjmp): Remove symbol_version.
1572         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
1573         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
1574         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
1575         unconditionally.
1576         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
1577         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
1578         strong_alias instead of default_symbol_version, remove
1579         symbol_version.
1580         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
1581         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
1582         into strong_alias to __novmxsetjmp.
1583         (__vmx__setjmp): Similarly with __vmxsetjmp.
1584         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
1585         default_symbol_version and symbol_version.
1586         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
1587         into strong_alias to __novmxsetjmp.
1588         (__vmx__setjmp): Similarly with __vmxsetjmp.
1589         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
1590         default_symbol_version and symbol_version.
1592         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
1594 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
1596         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
1598 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
1600         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
1601         instead of libc_hidden_def.
1603 2004-07-01  Roland McGrath  <roland@redhat.com>
1605         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
1607         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
1608         $(..)shlib-versions file to last in deps list.  This lets add-ons give
1609         more-specific matches that override defaults in the top-level file.
1611         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
1612         already set, don't set it or libc_cv_gcc_unwind_find_fde.
1613         * sysdeps/unix/sysv/linux/configure: Regenerated.
1615 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1617         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
1618         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
1619         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
1620         * sysdeps/s390/fpu/e_sqrt.c: New file.
1621         * sysdeps/s390/fpu/e_sqrtf.c: New file.
1622         * sysdeps/s390/Implies: New file.
1623         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
1624         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
1625         * sysdeps/s390/s390-64/Implies: Likewise.
1627 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
1629         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
1630         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1632         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
1633         DO_CALL (exit, 1) instead of branching to _exit.
1634         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
1635         Likewise.
1637         * sysdeps/s390/fpu/bits/mathinline.h: New file.
1639         * include/glob.h (glob64): Add libc_hidden_proto.
1640         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
1641         * sysdeps/gnu/glob64.c (glob64): Likewise.
1642         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
1644 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
1646         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
1647         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1649 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
1651         * sysdeps/powerpc/fpu/s_lround.c: Removed.
1652         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
1653         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
1654         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
1655         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
1656         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
1657         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
1658         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
1659         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
1660         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
1661         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
1662         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
1663         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
1664         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
1665         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
1666         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
1668 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
1670         * include/net/if.h: Handle if_nameindex and if_freenameindex with
1671         libc_proto_hidden.
1672         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
1673         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
1674         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
1675         netlink if possible.  Fall back on ioctl method if necessary.
1676         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
1678         * include/unistd.h: Declare __truncate.
1679         * sysdeps/generic/truncate.c: Also define __truncate.
1680         * sysdeps/mach/hurd/truncate.c: Likewise.
1681         * sysdeps/unix/common/syscalls.list: Likewise.
1682         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
1684 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
1686         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
1687         info.extra.  Patch by Marcus Meissner.
1689 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1691         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1692         Fix branch offset for a PLT entry.
1694 2004-06-20  Jim Meyering  <jim@meyering.net>
1696         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
1697         documentation.
1699 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
1701         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
1702         Workaround for [BZ #232].
1704         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
1706 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
1708         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
1709         in ucs2/ucs2reverse when unaligned memory access is attempted.
1710         * iconv/tst-iconv5.c: New file.
1711         * iconv/Makefile (tests): Add tst-iconv5.
1713 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1715         * inet/bug-if1.c: Include <string.h>.
1717 2004-06-19  Roland McGrath  <roland@redhat.com>
1719         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
1720         under this macro name instead.
1721         [NO_DO_WAITID]: Don't define it at all.
1722         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
1723         defined, then return ENOTSUP for combinations of selection bits other
1724         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
1726         * posix/tst-waitid.c: New file.
1727         * posix/Makefile (tests): Add it.
1729 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1731         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
1733         [BZ #231]
1734         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
1735         relocation in librt.so.
1737         [BZ #230]
1738         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
1739         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1741 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
1743         * elf/ldconfig.c (add_dir): Take chroot into account.
1744         Based on changes by HJ Lu and Hideki Iwamoto.
1746         * nscd/connections.c (invalidate_cache): If the host cache has to
1747         be invalidated, re-read resolv.conf.
1749         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
1750         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
1751         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
1752         if RES_NOIP6DOTINT flag is set.
1753         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1755 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
1757         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
1758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
1759         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
1760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
1761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
1763         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
1764         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
1766 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
1768         [BZ #231]
1769         * sysdeps/unix/alpha/Makefile: New file.
1770         * sysdeps/unix/alpha/rt-sysdep.S: New file.
1771         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1773 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
1775         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
1776         determine the canonical name only for the first returned entry.
1778         * inet/bug-if1.c: New file.
1779         * inet/Makefile (tests): Add bug-if1.
1781 2004-06-18  Roland McGrath  <roland@frob.com>
1783         * Makerules (compile-mkdep-flags): Add -MT $@.
1785         * Makefile (dist, tag-for-dist): New targets.
1786         (files-for-dist, tag-of-stem): New variables.
1787         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
1788         Make tar files using cvs export.
1789         (%.bz2, %.gz, tag-%): New pattern rules.
1790         (distribute): Variable removed.
1791         (+subdir_targets): Remove distinfo targets.
1792         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
1793         (rpm/%): Pattern rule removed.
1794         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
1795         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
1796         Targets removed.
1797         * Makerules (dist, subdir_distinfo): Targets removed.
1798         ($(objpfx)distinfo): Depend on $(distribute).
1799         * Make-dist: File removed.
1801         * NEWS: Fix a typo.  Update bug-reporting instructions.
1803 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
1805         * sysdeps/unix/sysv/linux/sched_setaffinity.c
1806         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
1807         cpuset is wrongly set.
1809 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1811         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1812         for POWER4 machines.
1814 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
1816         [BZ #218]
1817         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
1818         in a local variable, point rp to that local variable afterwards.
1820 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
1822         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
1823         cases properly.
1825 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
1827         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
1828         error value for unknown interface. [BZ #198]
1830 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
1832         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
1833         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
1834         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
1835         the asm uses as its input, either of size __n where __n is known or
1836         0xfffffff.
1837         (strstr): Add "memory" clobber.
1839 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
1841         [BZ #219]
1842         * nss/nsswitch.c (free_mem): Don't try to close a library handle
1843         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
1845 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
1847         [BZ #217]
1848         * debug/xtrace.sh: Fix typo in error diagnostics.
1850 2004-06-14  Andreas Schwab  <schwab@suse.de>
1852         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
1853         failed.
1855 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
1858         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
1859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
1860         that clobbers r19.
1861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
1862         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
1863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
1864         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
1865         Fix pasto that overflowed sigcontext.v_reserve.
1866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
1867         Fix pasto that clobbers r19.
1868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
1869         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
1870         overflowed sigcontext.v_reserve.
1872 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1874         [BZ #150]
1875         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
1876         instead of ".gnu.linkonce.ro." as the prefix for linkonce
1877         read-only section name.
1879 2004-06-14  Richard Henderson  <rth@redhat.com>
1881         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
1882         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
1884 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1886         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
1887         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1888         (__backtrace): Don't call init #ifndef SHARED.
1889         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
1890         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1891         (__backtrace): Don't call init #ifndef SHARED.
1892         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
1893         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1894         (__backtrace): Don't call init #ifndef SHARED.
1896 2004-06-11  Roland McGrath  <roland@redhat.com>
1898         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
1899         From Krzysztof Halasa <khc@pm.waw.pl>.
1901 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
1903         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
1905 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1907         [BZ #199]
1908         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
1909         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
1911         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
1912         fails.  Avoid memory leak if realloc fails.
1914 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
1916         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
1917         NULL, "" or contains '=' character in it.  Reported by
1918         Michael T Kerrisk <mtk-lists@gmx.net>.
1919         * stdlib/tst-environ.c: Include errno.h.
1920         (main): Add tests for these arguments to setenv/unsetenv.
1922 2004-06-07  Roland McGrath  <roland@frob.com>
1924         * NEWS: Update bug reporting instructions.  Fix some typos.
1926 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
1928         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
1929         * stdio-common/_itoa.c: Add _itoa implementation.
1931         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
1932         to also send request.  Add parameter to allow this.
1933         Change callers.
1934         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
1935         * nscd/nscd_getpw_r.c: Likewise.
1936         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
1938 2004-06-05  Andreas Jaeger  <aj@suse.de>
1940         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1941         Handle more than 6 args correctly.  Based on a patch by Masahide
1942         Washizawa <washi@jp.ibm.com>.
1944 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
1946         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
1947         in all places, not __nss_not_use_nscd_group.
1948         Reported by Philippe Gregoire.
1950 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
1952         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
1954 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
1956         * argp/argp-help.c (__argp_error, __argp_failure): Check result
1957         of __asprintf call and don't use string if it failed.
1958         * stdio-common/psignal.c (psignal): Likewise.
1959         * locale/programs/localedef.c (more_help): Likewise.
1960         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
1961         arg_bool, parse_line): Check result of __asprintf calls and
1962         don't use string if they failed.
1963         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
1964         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
1965         call and exit if it failed.
1967 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
1969         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
1970         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
1971         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
1972         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
1973         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
1974         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
1975         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
1976         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
1977         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
1978         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1979         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
1981 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
1983         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
1984         -momit-leaf-frame-pointer.
1986         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
1987         #ifdef AF_PACKET.
1989         * sysdeps/mach/hurd/getcwd.c
1990         (_hurd_canonicalize_directory_name_intern): Only realloc when
1991         size is <= 0.
1993         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
1994         isn't page aligned.
1996         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
1997         new size.
1999         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
2000         __libc_write and __libc_lseek64.
2002 2004-05-29  Roland McGrath  <roland@redhat.com>
2004         * elf/Makefile (shared-only-routines): Add dl-caller.
2006 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
2008         * sysdeps/powerpc/configure.in: New file.
2010 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
2012         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
2013         "altivec" to enable VMX instructions.
2014         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2015         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2016         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2024 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2026         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
2027         __builtin_expm1l for GCC 3.5+.
2028         (__expl): Define using __builtin_expl for GCC 3.4+.
2029         (exp, expf, expl): Don't define for GCC 3.4+.
2030         (tan, tanf, tanl): Don't define for GCC 3.5+.
2031         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
2032         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
2033         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
2034         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
2035         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
2036         for GCC 3.4+.
2037         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
2038         Don't define for GCC 3.5+.
2039         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
2040         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
2041         define for GCC 3.5+.
2042         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
2043         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
2044         define for GCC 3.2+.
2046 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2048         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
2049         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
2050         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
2051         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
2052         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
2053         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
2054         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
2055         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
2056         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
2057         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
2058         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
2059         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
2060         libc_hidden_builtin_def if MEMPCPY_P.
2061         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2062         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
2063         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
2064         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
2065         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
2067 2004-05-26  Roland McGrath  <roland@frob.com>
2069         * sysdeps/generic/bits/in.h
2070         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
2071         These are long obsolete in BSD systems where they originated.
2072         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
2074 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
2076         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
2077         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
2078         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
2079         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
2080         constant '\0' and first argument is not constant.
2081         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
2082         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
2083         For GCC 3.2+ use __builtin_strncpy.
2084         (strncat): For GCC 3.2+ use __builtin_strncat.
2085         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
2086         constant.
2087         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
2088         if both arguments are constant.
2090 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
2092         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
2093         mapped addresses in gethostbyaddr.
2095 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
2097         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
2098         flags parameter, convert afp to simple int parameter.  Adjust code.
2099         typep was never != NULL and flags therefore also unused.  *afp is
2100         never modified.
2101         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
2102         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
2103         handling for __nss_hostname_digits_dots calls.
2104         * nss/getXXbyYY_r.c: Likewise.
2106         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
2108 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
2110         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
2111         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
2112         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
2113         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
2114         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
2115         implementation from w_sqrt.c.
2116         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
2117         implementation from w_sqrtf.c.
2118         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
2119         using inline __ieee754_sqrt().
2120         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
2121         using inline __ieee754_sqrtf().
2122         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
2123         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2124         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
2125         PPC_FEATURE_*  independent of __ASSEMBLER__.
2127 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
2129         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
2130         include.
2131         (aio_start_notify_thread): Define if not defined.
2132         (notify_func_wrapper): Use it.
2133         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
2134         include.
2135         (aio_create_helper_thread): Define if not defined.
2136         (__aio_create_helper_thread): New function.
2137         (__aio_enqueue_request): Use aio_create_helper_thread.
2139         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
2140         (struct ypresp_all_data): New type.
2141         (__xdr_ypresp_all): Change second argument to
2142         struct ypresp_all_data *.  Replace ypall_foreach and
2143         ypall_data with objp->foreach and objp->data.
2144         (yp_all): Remove status variable, add data.  Replace
2145         all uses of status with data.status.  Initialize data.foreach
2146         and data.data instead of ypall_foreach and ypall_data.
2148 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
2150         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
2151         in l_flags_1, not in l_flags.
2153 2004-04-10  Robert Millan  <robertmh@gnu.org>
2155         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
2156         with sysdeps/generic/bits/in.h.
2158 2004-05-25  Roland McGrath  <roland@frob.com>
2160         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
2161         GCC GPL to standard glibc LGPL.
2163 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
2165         * manual/string.texi (Copying and Concatenation): Fixed second
2166         concat example.
2167         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
2169 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
2171         * malloc/obstack.c: Don't allow linking with _obstack.
2173 2004-05-23  Andreas Schwab  <schwab@suse.de>
2175         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
2176         of separate "m" constraints.
2178 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
2180         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
2181         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
2182         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
2184 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2186         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
2187         Add comment explaining why libc still defines it.
2189 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2191         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
2192         obstack_alignment_mask, obstack_alloc, obstack_base,
2193         obstack_blank, obstack_blank_fast, obstack_chunk_size,
2194         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
2195         obstack_grow0, obstack_init, obstack_int_grow,
2196         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
2197         obstack_next_free, obstack_object_size, obstack_ptr_grow,
2198         obstack_ptr_grow_fast, obstack_room): Remove declarations of
2199         nonexistent functions.
2201 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
2203         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
2204         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2205         [PIC]: Redundent for powerpc64, removed.
2206         (ENTRY): Generate size and alignment for opd entry.
2207         (EALIGN): Generate size and alignment for opd entry.
2208         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2209         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2211 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
2213         * misc/regexp.h: Say the functions have been withdrawn.
2215         * wcsmbs/tst-wcpncpy.c: Add more tests.
2217 2004-05-18  Roland McGrath  <roland@frob.com>
2219         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
2220         standard glibc LGPL.
2221         * sysdeps/generic/unwind-dw2.c: Likewise.
2222         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
2223         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2224         * sysdeps/generic/unwind-pe.h: Likewise.
2226 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
2228         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
2229         MONTENEGRO" which have taken over the code 819.  Patch from
2230         Danilo Segan. [BZ #40]
2232 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
2234         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2235         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
2236         __sparc_get_pic_l7.
2238 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2240         * catgets/gencat.c: Update bug reporting instructions.
2241         * csu/version.c: Likewise.
2242         * debug/catchsegv.sh: Likewise.
2243         * debug/pcprofiledump.c: Likewise.
2244         * debug/xtrace.sh: Likewise.
2245         * elf/ldd.bash.in: Likewise.
2246         * iconv/iconv_prog.c: Likewise.
2247         * iconv/iconvconfig.c: Likewise.
2248         * locale/programs/locale.c: Likewise.
2249         * locale/programs/localedef.c: Likewise.
2250         * login/programs/pt_chown.c: Likewise.
2251         * malloc/memusage.sh: Likewise.
2252         * malloc/memusagestat.c: Likewise.
2253         * malloc/mtrace.pl: Likewise.
2254         * manual/crypt.texi: Likewise.
2255         * manual/install.texi: Likewise.
2256         * nss/makedb.c: Likewise.
2258 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
2260         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
2261         CHECK_STATIC_TLS if sym != NULL.
2262         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2263         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2265 2004-05-12  Andreas Schwab  <schwab@suse.de>
2267         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
2268         when translating.
2270 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2272         * Rules (xtests): Depend on tests.
2274 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
2276         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
2277         count is negative, yet write_ptr < write_end.
2278         (_IO_default_xsgetn): Avoid one underflow per char if count is
2279         negative, yet read_ptr < read_end.
2281 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2283         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
2284         equal to TAB3.
2286 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
2288         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
2289         call.
2291 2004-05-10  Roland McGrath  <roland@frob.com>
2293         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
2294         (__hurd_directory_name_split): Likewise.
2296 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
2298         * po/fr.po: Update from translation team.
2300 2004-05-10  Andreas Jaeger  <aj@suse.de>
2302         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2303         Correctly compute alignment.
2304         Patch by Michael Matz <matz@suse.de>.
2306 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
2308         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
2309         * sysdeps/posix/sigpause.c: Likewise.
2310         * signal/signal.h: Don't define sigpause macro unless needed.
2312 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
2314         * configure.in (libc_cv_libgcc_s_suffix): New check.
2315         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
2316         * config.make.in (libgcc_s_suffix): Set.
2317         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
2319 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
2321         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
2323 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
2326         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2327         Load argument values into temporary variables.
2328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
2329         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2330         Likewise.
2332 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
2334         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
2335         need to be compiled with exceptions.
2337 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2339         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
2340         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
2342         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
2343         realloc cannot fail.
2345         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
2346         be expanded.
2348         * nis/nis_table.c: Clean up memory handling.
2349         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
2350         * nis/nis_removemember.c (nis_removemember): Add comment
2351         explaining use of realloc.
2353         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
2354         (carg): Likewise.
2355         Patch by Lev S Bishop <lev.bishop@yale.edu>.
2357         * math/bug-tgmath1.c (main): Test fabs and carg as well.
2359 2004-05-06  Richard Henderson  <rth@redhat.com>
2361         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
2362         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
2363         * sysdeps/unix/sysv/linux/alpha/Versions: Export
2364         __libc_alpha_cache_shape as a private symbol.
2365         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
2366         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
2368 2004-05-06  Richard Henderson  <rth@redhat.com>
2370         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
2371         * sysdeps/alpha/divl.S: Use them.
2372         * sysdeps/alpha/divq.S: Likewise.
2373         * sysdeps/alpha/divqu.S: Likewise.
2374         * sysdeps/alpha/reml.S: Likewise.
2375         * sysdeps/alpha/remq.S: Likewise.
2376         * sysdeps/alpha/remqu.S: Likewise.
2378 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2380         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
2381         (cimag): Use it.
2382         (creal): Likewise.
2383         * math/Makefile (tests): Add bug-tgmath1.
2384         * math/bug-tgmath1.c: New file.
2386 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
2388         * sysdeps/alpha/atomicity.h: Remove.
2389         * sysdeps/generic/atomicity.h: Remove.
2391 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2393         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
2394         char *.
2396 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
2398         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
2399           rt-sysdep.
2400         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
2402         * sysdeps/ia64/strcat.c: New file.
2403         * sysdeps/ia64/strcat.S: Delete.
2405 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
2407         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
2408         defined.
2410 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
2412         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
2413         libc_hidden_proto.  Define to __GI___libm_error_support for
2414         assembly going into libc.so.
2415         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
2416         libc_hidden_def.
2418         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
2419         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
2421         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
2422         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
2423         if USE___THREAD.
2425 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
2427         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
2428         __USE_BSD or __USE_UNIX98.
2429         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2430         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2431         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
2432         Likewise.
2433         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2434         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2435         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2436         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
2437         Likewise.
2438         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
2439         Likewise.
2440         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
2441         Likewise.
2442         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
2443         Likewise.
2444         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
2445         Likewise.
2446         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
2447         Likewise.
2448         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
2449         Likewise.
2450         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
2451         Likewise.
2452         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
2453         Likewise.
2454         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
2455         Likewise.
2456         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
2457         Likewise.
2458         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
2459         Likewise.
2460         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
2461         Likewise.
2462         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2463         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2464         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
2466 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
2468         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
2469         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
2470         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
2471         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
2472         * sysdeps/unix/sysv/linux/Versions (libc): Remove
2473         __libc_sigaction@@GLIBC_PRIVATE.
2474         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
2475         __modify_ldt@@GLIBC_PRIVATE.
2476         * socket/Versions (libc): Remove __libc_accept, __libc_send,
2477         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
2478         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
2479         * stdio-common/Versions (libc): Remove
2480         _itoa_upper_digits@@GLIBC_PRIVATE.
2481         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
2482         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
2483         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
2484         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
2485         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
2486         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
2487         __libc_lseek64 @@GLIBC_PRIVATE.
2489 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
2491         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
2492         check.
2494 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2496         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
2497         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
2498         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
2499         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
2500         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
2501         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
2502         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
2503         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
2504         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
2505         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
2506         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
2507         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
2508         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
2509         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
2510         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
2511         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
2512         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
2513         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
2515         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
2516         mantissa for AIX long double format.
2517         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
2518         long double format.
2519         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
2520         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
2521         (_fpioconst_pow10): AIX long double format has same exponent range as
2522         double.
2523         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
2524         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
2525         as double.
2527 2004-04-23  Art Haas  <ahaas@airmail.net>
2529         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
2531 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
2533         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
2534         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
2535         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
2536         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
2537         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
2539 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
2541         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
2542         entries.
2544 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
2546         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
2547         prototypes and description [BZ #131].
2549         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
2550         Patch by Ed Catmur <ed@catmur.co.uk>.
2551         * string/tst-inlcall.c (main): Add test for strpbrk.
2553         [BZ #140]
2554         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
2555         include.
2556         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
2557         yet defined, #undef back after including linux/sysctl.h if defined
2558         here.
2559         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
2560         back after including linux/sysctl.h if defined here.
2562         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
2563         for single precision register, add it to __asm clobbers [BZ #139].
2564         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
2565         for single precision register, add it to __asm clobbers.
2566         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
2567         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
2568         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
2569         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
2571 2004-04-23  Andreas Schwab  <schwab@suse.de>
2573         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
2574         __attribute_used__.
2576 2004-04-22  Philip Blundell  <philb@gnu.org>
2578         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
2579         when calling _dl_signal_error.
2580         (elf_machine_rel): Likewise.
2582 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
2584         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
2585         and use it internally instead of __sigsetjmp.
2586         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
2587         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
2588         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
2589         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
2590         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
2591         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
2592         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
2593         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
2594         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
2595         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
2596         HIDDEN_JUMPTARGET for exit call.
2597         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
2598         _exit call.
2599         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
2600         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
2601         strcpy calls.
2603 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
2605         * posix/tst-chmod.c (do_test): Fix a typo.
2607         * elf/lateglobal.c (main): Fix error checks.
2608         Patch by Stephen Clarke <stephen.clarke@st.com>.
2610         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
2611         mention they have been added in ISO C99.
2612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2614 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2616         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
2618 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
2620         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
2621         EACCES.
2623 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
2625         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
2626         handling change.
2627         * stdio-common/tst-sscanf.c (int_tests): Adjust.
2629         * nis/nss-nis.c: Include stdlib.h.
2631         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
2632         warning.
2633         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
2634         libc_hidden_builtin_def.
2636 2004-04-20  Jim Meyering  <jim@meyering.net>
2638         * misc/error.c (error_tail): Don't leak upon realloc failure.
2640 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2642         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2643         Use RETURN_ADDRESS instead of __builtin_return_address.
2645 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
2647         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
2648         compact code.
2650 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
2652         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
2653         do input_error () instead of conv_error () and don't look at errno.
2654         Don't eat any whitespace before %% if skip_space == 0.
2655         * stdio-common/tst-sscanf.c (int_tests): New array.
2656         (main): Run int_tests.
2659 See ChangeLog.14 for earlier changes.