Update.
[glibc.git] / ChangeLog
blobfc48660e9d8130f728122404e6b7684358347329
1 2002-08-10  Ulrich Drepper  <drepper@redhat.com>
3         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace,
4         iswxdigit, iswtolower, iswtoupper): Add libc_hidden_def.
6 2002-08-10  Andreas Jaeger  <aj@suse.de>
8         * sysdeps/i386/strchr.S: Add comment.
10 2002-08-10  Roland McGrath  <roland@redhat.com>
12         * include/wchar.h (putwc): Use libc_hidden_proto.
13         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
14         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
15         * stdio-common/dprintf.c: Add libc_hidden_def.
16         * stdio-common/fprintf.c: Likewise.
17         * stdio-common/sprintf.c: Likewise.
18         * stdio-common/sscanf.c: Likewise.
19         * libio/iofwrite.c: Likewise.
20         * libio/memstream.c: Likewise.
21         * libio/putwc.c: Likewise.
22         * stdio-common/perror.c: Likewise.
23         * sysdeps/posix/remove.c: Likewise.
24         * sysdeps/generic/remove.c: Likewise.
25         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
26         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
28 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
30         * include/bits/dlfcn.h: New file.
31         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
33         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
34         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
35         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
36         * include/pwd.h (_nss_files_parse_pwent): Likewise.
37         * include/shadow.h (_nss_files_parse_spent): Likewise.
38         * include/netdb.h (_nss_files_parse_protoent,
39         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
40         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
41         (LINE_PARSER): Use it.
42         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
43         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
45         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
46         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
47         * wctype/wcfuncs ((iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
48         towlower, towupper): Add libc_hidden_weak.
50         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
51         #endif.
53         * manual/debug.texi (%MENU%): Remove trailing dot.
54         Reported by <hayastan132@hotmail.com>.
56         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
57         aliases.
58         (lseek): Dummy.
59         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
60         Likewise.
62 2002-08-09  Roland McGrath  <roland@redhat.com>
64         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
65         name to find codeset name (if any) and normalize it.  If the
66         normalized name differs, look up only that in the archive.
67         * locale/programs/locarchive.c (add_locale_to_archive): If the name
68         contains a codeset, normalize the codeset store only the normalized
69         name in the archive.  If not, add an alias containing the locale's
70         normalized codeset name.  Apply codeset name normalization when
71         matching entries in the alias file.
73         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
74         decrement HEAD->namehash_used here.
75         (add_locale): Only need to insert name string when name_offset != 0.
77         * locale/programs/localedef.c (options): Add -A/--alias-file.
78         (alias_file): New variable.
79         (parse_opt): Grok -A, set that.
80         * locale/programs/localedef.h: Declare it.
82         * locale/locarchive.h (struct locrecent): Add `refs' member.
83         * locale/programs/locarchive.c (insert_name): New function, broken out
84         of ...
85         (add_locale_to_archive): ... here.  Call that.
86         (add_alias): New function.
87         (add_locale): New static function, add_locale_to_archive renamed.
88         (add_locale_to_archive): Call that and use add_alias to add an alias
89         for the name with codeset if the given name lacks it.
90         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
92         * locale/Makefile (routines): Add loadarchive.
93         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
94         (_nl_load_locale_from_archive): New function.
95         * locale/localeinfo.h: Declare it.
96         * locale/findlocale.c (_nl_find_locale): If using default locale path,
97         try _nl_load_locale_from_archive first.
99         * locale/loadlocale.c (_nl_intern_locale_data): New function,
100         broken out of _nl_load_locale.
101         (_nl_load_locale): Call that.
102         * locale/localeinfo.h: Declare it.
103         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
104         (struct locale_data): Remove unused member `options'.
105         * locale/findlocale.c (_nl_remove_locale): Update uses.
106         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
107         * locale/C-collate.c: Update initializer.
108         * locale/C-identification.c: Likewise.
109         * locale/C-measurement.c: Likewise.
110         * locale/C-telephone.c: Likewise.
111         * locale/C-address.c: Likewise.
112         * locale/C-name.c: Likewise.
113         * locale/C-paper.c: Likewise.
114         * locale/C-time.c: Likewise.
115         * locale/C-numeric.c: Likewise.
116         * locale/C-monetary.c: Likewise.
117         * locale/C-messages.c : Likewise.
118         * locale/C-ctype.c: Likewise.
120         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
121         use CHAR_BIT instead of BITSPERBYTE.
123         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
124         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
125         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
126         (_nl_remove_locale): Likewise.
127         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
129         * locale/findlocale.c (_nl_default_locale_path): New variable.
130         (_nl_find_locale): If LOCALE_PATH is null, default to that.
131         * locale/localeinfo.h: Declare it.
132         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
133         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
134         * locale/newlocale.c (__newlocale): Likewise.
136         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
137         * inet/rexec.c (rexec_af): Add libc_hidden_def.
138         * sysdeps/generic/morecore.c: Likewise.
139         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
140         (__libc_current_sigrtmax): Likewise.
142 2002-08-08  Roland McGrath  <roland@redhat.com>
144         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
145         * catgets/open_catalog.c (__open_catalog): Likewise.
147         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
148         from typo INITIAL_NUM_NANES.
149         (create_archive): Update use.
151 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
153         * sysdeps/unix/sysv/linux/sigwait.c: New file.
155 2002-08-08  Roland McGrath  <roland@frob.com>
157         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
159 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
161         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
162         else and undefine after including wcstol_l.c.
163         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
165 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
167         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
169 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
171         * configure.in: Make the test for broken_alias_attribute stricter.
173 2002-05-24  Robert Love  <rml@tech9.net>
175         * posix/Makefile (routines): Add sched_getaffinity and
176         sched_setaffinity.
177         * posix/sched.h: Add declarations for sched_getaffinity and
178         sched_setaffinity.
179         * sysdeps/generic/sched_getaffinity.c: New file.
180         * sysdeps/generic/sched_setaffinity.c: New file.
181         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
182         sched_setaffinity.
184 2002-08-06  Andreas Schwab  <schwab@suse.de>
186         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
188 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
190         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
191         message.
193         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
194         It is known to be defined.
196         * include/string.h: Define index and rindex only if _ISOMAC is not
197         defined.
199         * elf/rtld.c: Include <errno.h>.
200         * sysdeps/generic/libc-tls.c: Likewise.
202 2002-08-07  Roland McGrath  <roland@redhat.com>
204         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
205         it internally.
206         (precsize_aton): Likewise.
208         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
209         the static symbols added in the last change (doofus is me).
211         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
212         loop to notice missing categories in a composite name.
214         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
215         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
216         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
217         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
219 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
221         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
223 2002-08-07  Roland McGrath  <roland@redhat.com>
225         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
226         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
227         Reported by Jakub Jelinek  <jakub@redhat.com>.
229 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
231         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
232         division.
234 2002-08-06  Roland McGrath  <roland@redhat.com>
236         * include/getopt.h: Put private decls inside [_GETOPT_H].
237         Use libc_hidden_proto for getopt_long, getopt_long_only.
238         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
239         Add libc_hidden_def.
241         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
242         Define as a macro for __dl_iterate_phdr.
244         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
245         made static.  Add __ name as a strong alias.
246         (internal_endnetgrent): Likewise.
247         (internal_getnetgrent_r): Likewise.
249         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
250         with no __ prefix.
251         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
252         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
253         all *_l functions with no __ prefix.
254         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
255         * ctype/ctype_l.c: Likewise.
256         * locale/nl_langinfo.c: Likewise.
257         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
258         * stdlib/stdlib.h [__USE_GNU]: Likewise.
259         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
260         * wctype/wctype.h [__USE_GNU]: Likewise.
261         * string/strcoll_l.c (strcoll_l): Define as weak alias.
262         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
263         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
264         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
265         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
266         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
267         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
268         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
269         (__wcscasecmp_l): Add libc_hidden_def.
270         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
271         (__wcsncasecmp_l): Add libc_hidden_def.
272         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
273         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
274         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
275         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
276         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
277         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
278         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
279         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
280         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
281         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
282         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
283         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
284         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
285         * wctype/wctype_l.c (wctype_l) Define as weak alias.
287 2002-08-05  Roland McGrath  <roland@redhat.com>
289         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
290         netname2user, host2netname, user2netname, key_gendes.
291         * sunrpc/netname.c: Add libc_hidden_def.
292         * sunrpc/key_call.c: Likewise.
294         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
295         freeaddrinfo.
296         * inet/getnameinfo.c: Add libc_hidden_def.
297         * sysdeps/generic/getaddrinfo.c: Likewise.
298         * sysdeps/posix/getaddrinfo.c: Likewise.
300         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
301         * wcsmbs/wmemchr.c: Add libc_hidden_def.
302         * wcsmbs/wmemset.c: Add libc_hidden_def.
304         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
305         (index, rindex): Define as macros for strchr, strrchr.
307         * string/envz.c (envz_strip): index -> strchr
309         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
310         * sunrpc/rpc_prot.c: Add libc_hidden_def.
312         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
313         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
315         * include/stdlib.h: Use libc_hidden_proto for wctomb.
316         * stdlib/wctomb.c: Add libc_hidden_def.
318         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
319         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
320         * resolv/herror.c: Likewise.
321         * inet/rcmd.c: Add libc_hidden_def.
322         * inet/ruserpass.c: Likewise.
323         * inet/getnetgrent_r.c: Likewise.
325         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
326         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
327         for svcerr_auth, svcerr_noprog, svcerr_progvers.
328         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
329         libc_hidden_def.
330         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
331         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
333         * sysdeps/posix/system.c (do_system): New function, guts broken out of
334         __libc_system.
335         (__libc_system): Call it, putting just the line == NULL test here.
337         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
338         variables work right.
340         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
341         * elf/dl-close.c (_dl_close): Likewise.
343         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
344         in6addr_any, in6addr_loopback.  Remove decls for
345         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
346         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
347         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
348         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
349         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
350         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
351         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
352         in6addr_loopback.
353         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
355         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
356         ether_aton_r.
357         * inet/ether_aton_r.c: Add libc_hidden_def.
358         * inet/ether_ntoa_r.c: Likewise.
360         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
361         xprt_unregister.
362         * sunrpc/svc.c: Add libc_hidden_def.
363         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
364         pmap_set, pmap_unset.
365         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
366         * sunrpc/pm_getport.c: Likewise.
367         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
368         * sunrpc/publickey.c: Add libc_hidden_def.
370 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
372         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
373         the other memset call in this function.
375         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
376         at correct index.  Clear BSS region now that memalign is used.
378 2002-08-05  Roland McGrath  <roland@redhat.com>
380         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
381         * sysdeps/generic/uname.c: Add libc_hidden_def.
382         * sysdeps/mach/hurd/uname.c: Likewise.
384 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
386         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
387         wcspbrk): Add libc_hidden_proto.
388         * time/strftime.c (my_strftime): Add libc_hidden_def.
389         (strftime): Remove libc_hidden_def.
390         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
391         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
392         * wcsmbs/wcsspn.c (wcsspn): Likewise.
393         * wcsmbs/wcscmp.c (wcscmp): Likewise.
394         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
395         * wcsmbs/wcscoll.c (wcscoll): Likewise.
397         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
398         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
399         __rpc_thread_createerr): Add libc_hidden_proto.
400         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
401         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
402         __rpc_thread_createerr): Add libc_hidden_def.
404         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
405         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
406         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
407         clnt_perror, clnt_sperror): Add libc_hidden_def.
408         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
410         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
411         libc_hidden_proto.
412         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
413         * sunrpc/des_soft.c (des_setparity): Likewise.
415         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
416         Add libc_hidden_proto.
417         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
418         Add libc_hidden_def.
420 2002-08-05  Roland McGrath  <roland@redhat.com>
422         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
423         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
424         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
425         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
426         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
427         old data, abandoning the original memory allocated by rtld at startup,
428         instead of calling realloc normally.
430 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
432         * po/fr.po: Update from translation team.
434 2002-08-04  Roland McGrath  <roland@redhat.com>
436         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
437         then generate a dummy module under the given name, obeying the
438         normal rules for the "caller" field.
440         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
441         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
443         * include/pthread.h: Don't declare __pthread_initialize_minimal as
444         weak here; we declare it weak or strong in the one place we use it.
445         * sysdeps/generic/libc-start.c: ... which is here.
446         Don't make the decl weak if [USE_TLS], since static programs need TLS
447         setup even when single-threaded.
449         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
451         * elf/Makefile (test-srcs): Add $(modules-names) to it.
452         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
453         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
454         all these variables.
456 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
458         * include/stdio.h: Don't define macro magic to redirect function
459         calls if _ISOMAC is defined.
461         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
462         ldouble asin tests.
464 2002-08-04  Roland McGrath  <roland@redhat.com>
466         * stdlib/lrand48_r.c: Add libc_hidden_def.
468         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
469         TCB with __libc_memalign instead of mmap.
470         (_dl_deallocate_tls): Free it with free instead of munmap.
472         * Makerules (cpp-srcs-left): When setting this to run
473         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
474         words.  Combine the two loops into one on the concatenated list,
475         including those as well as $(test-srcs).
477         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
478         since we align here with optimally minimal waste anyway.
479         (malloc): Just call that.
481         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
482         the right variable.
484         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
485         to compute memory location for l_tls_initimage.
486         * elf/rtld.c (_dl_start): Likewise.
487         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
489         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
490         because the .d file is generated in the non-shared case and
491         so fails to catch them otherwise.
493         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
494         split out of _dl_allocate_tls.
495         (_dl_allocate_tls_init): Likewise.
496         (_dl_allocate_tls): Call those.
497         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
498         * elf/rtld.c (dl_main): Call them separately instead of calling
499         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
500         is finished, so that the initializer data has been relocated before we
501         copy it into the main thread's TLS block.
503         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
504         loop conditions, prevented the last used module from being initialized.
506 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
508         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
509         if glob resp. globfree are not macros.
510         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
511         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
512         Add libc_hidden_ver.
513         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
514         libc_hidden_def.
515         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
516         instead of libc_hidden_weak.
517         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
518         libc_hidden_ver instead of libc_hidden_def.
519         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
520         libc_hidden_ver instead of libc_hidden_def.
521         (wcstoll, wcstoq): Remove libc_hidden_weak.
522         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
523         libc_hidden_ver.
524         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
525         libc_hidden_ver.
526         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
527         libc_hidden_ver.
528         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
529         libc_hidden_ver.
531 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
533         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
534         to access _sys_siglist.
535         * string/strsignal.c: Likewise.
536         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
537         * sysdeps/gnu/siglist.c: Likewise.
538         * sysdeps/unix/siglist.c: Likewise.
539         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
541         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
543         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
545         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
546         alias and use it.
547         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
549         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
550         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
551         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
553         * include/time.h: Add libc_hidden_proto for __gmtime_r.
554         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
556         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
557         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
558         and __gconv_get_cache respectively.
559         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
560         defined static.  Change all users.
561         (__gconv_get_cache): New function.
562         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
563         (__gconv_get_alias_db): New function.
564         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
565         (__conv_modules_db): Likewise.
566         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
567         and __gconv_get_alias_db.
568         * iconv/iconv_prog.c: Use the new functions instead of accessing the
569         variables.
571         * include/stdlib.h: Add prototype and libc_hidden_proto for
572         __default_morecore.
573         * sysdeps/generic/morecore.c: Include <stdlib.h>.
575         * malloc/obstack.c: Remove fputs macro.
577         * malloc/mtrace.c: Remove fopen macro.
579 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
581         * manual/debug.texi: Fix spelling to programmatically.
582         Reported by <hayastan132@hotmail.com>.
584 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
586         * include/libio.h: Add libc_hidden_proto for __uflow.
587         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
588         fgetpos to _IO_* names.
589         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
590         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
591         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
592         putwc_unlocked, vswscanf.
593         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
594         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
595         * libio/fseek.c: Likewise.
596         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
597         not fopencookie.
598         * libio/genops.c (__uflow): Add libc_hidden_def.
599         * libio/iofflush_u.c (fflush_unlocked): Likewise.
600         * libio/iofgets_u.c (fgets_unlocked): Likewise.
601         * libio/iofputs_u.c (fputs_unlocked): Likewise.
602         * libio/iofputws_u.c (fputws_unlocked): Likewise.
603         * libio/iofread_u.c (fread_unlocked): Likewise.
604         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
605         * libio/iovswscanf.c (vswscanf): Likewise.
606         * libio/putwc_u.c (putwc_unlocked): Likewise.
607         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
608         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
609         * malloc/mtrace.c: Likewise.
611         * sunrpc/clnt_perr.c: Remove fputs macro.
612         * sunrpc/svc_simple.c: Likewise.
613         * sunrpc/svc_tcp.c: Likewise.
614         * sunrpc/svc_udp.c: Likewise.
615         * sunrpc/xdr_rec.c: Likewise.
616         * sunrpc/xdr_ref.c: Likewise.
618         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
619         iconv_prog, linereader, and charmap-dir.
620         * locale/Makefile: Likewise for locale and charmap-dir.
621         * malloc/Makefile: Likewise for memusagestat.
622         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
623         * sunrpc/Makefile: Likewise for rpc_main.
624         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
625         * timezone/Makefile: Likewise for zic.
627         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
629         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
630         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
631         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
632         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
633         _dl_close.
635         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
636         __wunderflow.
637         * libio/genops.c (__underflow): Add libc_hidden_def.
638         * libio/wgenops.c (__wuflow): Likewise.
639         (__wunderflow): Likewise.
641         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
642         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
644         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
645         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
647         * include/string.h: Add libc_hidden_proto for __strverscmp.
648         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
650         * include/unistd.h: Add libc_hidden_proto for __sysconf.
651         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
652         * sysdeps/posix/sysconf.c: Likewise.
653         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
654         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
656         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
657         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
658         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
659         __iswxdigit_l, __towlower_l, __towupper_l.
660         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
661         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
663         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
664         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
665         * sysdeps/mach/hurd/xmknod.c: Likewise.
666         * sysdeps/unix/xmknod.c: Likewise.
667         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
668         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
669         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
671         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
673 2002-08-03  Roland McGrath  <roland@redhat.com>
675         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
676         setpriority.
677         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
678         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
679         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
680         * sysdeps/mach/hurd/setpriority.c: Likewise.
681         * sysdeps/mach/hurd/getpriority.c: Likewise.
682         * sysdeps/generic/setpriority.c: Likewise.
683         * sysdeps/generic/getpriority.c: Likewise.
685         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
686         * malloc/mcheck.c: Add libc_hidden_def.
688         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
689         * misc/hsearch_r.c: Add libc_hidden_def.
691         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
692         * posix/fnmatch.c: Add libc_hidden_weak.
694         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
695         execl, execle, execlp, execvp, getpid, getsid.
696         * sysdeps/generic/alarm.c: Add libc_hidden_def.
697         * sysdeps/unix/alarm.c: Likewise.
698         * posix/confstr.c: Likewise.
699         * posix/execvp.c: Likewise.
700         * posix/execlp.c: Likewise.
701         * posix/execle.c: Likewise.
702         * posix/execl.c: Likewise.
703         * sysdeps/generic/getsid.c: Likewise.
704         * sysdeps/mach/hurd/getsid.c: Likewise.
705         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
706         * sysdeps/mach/hurd/getpid.c: Likewise.
708         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
709         qecvt_r, qfcvt_r, lrand48_r.
710         * misc/efgcvt_r.c: Add libc_hidden_def.
712         * include/wordexp.h: Use libc_hidden_proto for wordfree.
713         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
715         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
716         * locale/nl_langinfo.c: Add libc_hidden_def.
718         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
719         * sysdeps/generic/glob.c: Add libc_hidden_def.
720         * sysdeps/generic/glob64.c: Likewise.
721         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
723         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
725         * elf/Makefile (CFLAGS-vismod2.c): New variable.
727         * locale/setlocale.c (_nl_current_names): Variable moved ...
728         * locale/localename.c (_nl_current_names): ... here, new file.
729         Make it global, with attribute_hidden.
730         * locale/localeinfo.h: Declare it.
731         * locale/Makefile (aux): Add localename.
732         * locale/localename.c (__current_locale_name): New function.
733         * include/locale.h (__current_locale_name): Declare it.
734         * intl/dcigettext.c (guess_category_value): Use that instead of
735         calling setlocale.
737         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
738         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
739         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
740         * locale/newlocale.c: Add alias to __ name.
741         * locale/duplocale.c: Likewise.
742         * locale/freelocale.c: Likewise.
743         * locale/uselocale.c: New file.
744         * locale/Makefile (routines): Add it.
745         * locale/Versions (libc: GLIBC_2.3): New set.
746         Add newlocale, duplocale, freelocale, uselocale.
747         (libc: GLIBC_PRIVATE): Add __uselocale.
749         * locale/localeinfo.h [SHARED]
750         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
751         (_NL_CURRENT_DATA): Define using that.
752         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
753         (_NL_CURRENT_DEFINE): Define to empty.
754         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
755         conditionalized on this.
756         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
757         taking initializer of _nl_C_locobj.
758         [SHARED] (_nl_global_locale): New variable, using that initializer.
759         (_nl_C_locobj): Use new macro for initialzier.
760         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
761         [! SHARED] (CATEGORY_USED): New macro.
762         [SHARED] (CATEGORY_USED, _nl_C): New macros.
763         (setdata, setlocale): Use that macro instead of examining _nl_current.
764         (setdata): Set the slot in _nl_global_locale.
765         Conditionalize setting of _nl_current on [! SHARED].
766         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
767         declaration as an extern.
768         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
770         * include/locale.h: Use libc_hidden_proto for setlocale.
771         * locale/setlocale.c: Add libc_hidden_def.
773         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
775         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
776         * misc/hsearch_r.c: Add libc_hidden_def.
777         * misc/lsearch.c: Likewise.
779         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
780         endttyent.
781         * misc/getttyent.c: Add libc_hidden_def.
783         * include/mcheck.h: Use libc_hidden_proto for mcheck.
784         * malloc/mcheck.c: Add libc_hidden_def.
786         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
787         * include/argz.h: Use libc_hidden_proto for argz_delete.
788         * string/argz-delete.c: Add libc_hidden_def.
789         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
791         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
792         HIDDEN_JUMPTARGET for _exit.
793         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
794         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
795         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
796         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
798         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
799         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
800         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
801         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
803         * include/stdlib.h: Use libc_hidden_proto for abort,
804         __strtof_internal, __strtod_internal, __strtold_internal,
805         __strtol_internal, __strtoll_internal, __strtoul_internal,
806         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
807         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
808         __strtoul_l_internal, __strtoull_l_internal.
809         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
810         __wcstod_internal, __wcstold_internal, __wcstol_internal,
811         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
812         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
813         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
814         __wcsncasecmp_l.
815         * sysdeps/generic/abort.c: Add libc_hidden_def.
816         * stdlib/strtod.c: Likewise.
817         * sysdeps/generic/strtol.c: Likewise.
818         * sysdeps/wordsize-64/strtol.c: Likewise.
819         * sysdeps/wordsize-64/wcstol.c: Likewise.
820         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
822         * include/stdlib.h: Use libc_hidden_proto for qsort.
823         * stdlib/msort.c: Add libc_hidden_def.
825         * include/utime.h: Use libc_hidden_proto for utime.
826         * sysdeps/generic/utime.c: Add libc_hidden_def.
827         * sysdeps/unix/utime.c: Likewise.
829         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
830         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
831         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
832         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
833         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
835         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
836         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
837         and __libc_current_sigrtmax.
838         * signal/sigismem.c: Add libc_hidden_def.
839         * signal/sigfillset.c: Likewise.
840         * signal/sigempty.c: Likewise.
841         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
842         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
843         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
844         * sysdeps/posix/raise.c: Likewise.
845         * sysdeps/generic/raise.c: Likewise.
847 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
849         * include/string.h: Use libc_hidden_proto for __stpcpy.
850         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
851         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
852         * sysdeps/generic/stpcpy.c: Likewise.
853         * sysdeps/i386/stpcpy.S: Likewise.
854         * sysdeps/i386/i586/stpcpy.S: Likewise.
855         * sysdeps/powerpc/stpcpy.S: Likewise.
856         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
857         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
859         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
860         __strncasecmp_l, __strdup, __strndup, __strerror_r.
861         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
862         libc_hidden_def.
863         * string/strdup.c (__strdup): Likewise.
864         * string/strndup.c (__strndup): Likewise.
865         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
866         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
868 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
870         * include/libio.h: New file.
871         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
872         * libio/iolibio.h: #include <libio.h>, not "libio.h".
873         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
874         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
875         * sysdeps/unix/common/syscalls.list: Likewise.
876         * sysdeps/unix/inet/syscalls.list: Likewise.
877         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
878         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
879         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
880         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
881         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
882         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
883         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
884         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
885         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
886         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
887         * sysdeps/unix/syscalls.list: Likewise.
889 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
890             Ulrich Drepper  <drepper@redhat.com>
892         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
893         the arguments is big enough to cause an overflow.
895 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
897         * assert/assert.c: Use hidden_def not INTDEF.
899 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
901         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
902         not defined.
904 2002-08-03  Roland McGrath  <roland@redhat.com>
906         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
907         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
908         verr, verrx.
909         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
910         * misc/syslog.c: Add libc_hidden_def.
911         * misc/err.c: Likewise.
912         * stdlib/exit.c: Likewise.
913         * stdlib/bsearch.c: Likewise.
914         * sysdeps/generic/getenv.c: Likewise.
916         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
918         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
919         libc_hidden_weak for every system call symbol defined.
921         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
922         timelocal, localtime, strftime.
923         * time/asctime.c: Add libc_hidden_def.
924         * time/mktime.c: Likewise.
925         * time/localtime.c: Likewise.
926         * time/strftime.c: Likewise.
927         * time/strptime.c: Likewise.
928         * sysdeps/generic/time.c: Likewise.
929         * sysdeps/unix/time.c: Likewise.
930         * sysdeps/unix/sysv/i386/time.S: Likewise.
931         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
933         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
934         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
935         * resolv/inet_ntop.c: Likewise.
936         * resolv/inet_pton.c: Likewise.
937         * inet/inet_mkadr.c: Add libc_hidden_def.
938         * inet/inet_netof.c: Likewise.
939         * resolv/inet_addr.c: Likewise.
941         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
942         clauses from conditionals for now.  Will have to be fixed later
943         for older compilers.
945         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
947 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
949         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
950         broken alias attribute handling.
951         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
953 2002-08-02  Roland McGrath  <roland@frob.com>
955         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
956         since it sets the variables we use in a -D switch.
958 2002-08-02  Roland McGrath  <roland@redhat.com>
960         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
961         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
962         matches long int, not int.
964         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
965         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
966         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
967         * wctype/wctrans.c (wctrans): Likewise.
968         * wctype/wctype.c (__wctype): Likewise.
969         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
971 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
973         * assert/assert.c (__assert_fail): Fix typo in comment.
975         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
976         * sunrpc/rpc_thread.c: Define it without static.
977         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
979 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
981         * assert/assert.c (__assert_fail): Remove undef.
982         Replace INTDEF with libc_hidden_def.
983         * assert/__assert.c (__assert): Remove INTUSE.
984         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
985         libc_hidden_weak.
986         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
987         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
988         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
989         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
990         libm_hiden_ver): Define.
991         * include/assert.h (__assert_fail_internal): Remove.
992         (__assert_fail): Add prototype.  Add hidden_proto.
993         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
994         libc_hidden_proto.
995         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
996         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
997         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
998         Add libc_hidden_proto.
999         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1000         __fcntl): Add libc_hidden_proto.  Remove macros.
1001         (__open_internal, __fcntl_internal): Remove.
1002         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1003         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1004         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1005         libc_hiden_proto.
1006         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1007         libc_hidden_def.
1008         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1009         Add libc_hidden_def.
1010         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1011         * sysdeps/generic/open.c (__open): Remove undef.
1012         Add libc_hidden_def.  Remove INTDEF.
1013         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1014         Add libc_hidden_def.
1015         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1016         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1017         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1018         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1019         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1020         (__libc_fcntl): Add libc_hidden_def.
1021         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1022         (__open): Remove INTDEF2.  Add libc_hidden_weak.
1023         (__libc_open): Add libc_hidden_def.
1024         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1025         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1026         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1027         Add libc_hidden_def.
1028         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1029         Add libc_hidden_def.
1030         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1031         undef.
1032         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1033         (__libc_fcntl): Add libc_hidden_def.
1034         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1035         __getpgid_internal, __chown_internal): Remove.
1036         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1037         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1038         __GI___chown): Add.
1039         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1040         __getpid_internal, __open_internal, __write_internal): Remove.
1041         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1042         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1043         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1044         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1045         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1046         Replace INTDEF with libc_hidden_def.
1047         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1048         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1049         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1050         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1051         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1052         Add libc_hidden_proto.
1053         * include/sys/poll.h (__poll): Add libc_hidden_proto.
1054         * include/sys/select.h (__select): Likewise.
1055         * include/sys/socket.h (__send): Likewise.
1056         * include/sys/statfs.h (__statfs): Likewise.
1057         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1058         __getpid, __getpgid, __setpgid, __close, __read, __write,
1059         __getpagesize, __sbrk): Likewise.
1060         (__chown_internal, __dup2_internal, __getpid_internal,
1061         __getpgid_internal, __close_internal, __write_internal,
1062         __getpagesize_internal): Remove.
1063         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1064         Remove macros.
1065         * include/printf.h (__printf_fp): Add libc_hidden_proto.
1066         * include/sched.h (__sched_setscheduler): Likewise.
1067         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1068         * include/stdlib.h (__secure_getenv): Likewise.
1069         * include/signal.h (__sigaction, __sigsuspend): Likewise.
1070         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1071         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1072         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1073         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1074         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1075         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1076         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1077         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1078         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1079         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1080         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1081         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1082         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1083         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1084         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1085         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1086         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1087         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1088         * libio/genops.c (__overflow): Add libc_hidden_def.
1089         * libio/iovdprintf.c: Remove libio.h include.
1090         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1091         libc_hidden_weak): Define to nothing if not defined.
1092         (__overflow, __woverflow): Add libc_hidden_proto.
1093         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1094         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1095         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1096         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1097         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1098         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1099         and libc_hidden_def.
1100         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1101         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1102         (__getpgid): Add libc_hidden_proto.
1103         (__bsd_getpgrp): Remove INTUSE.
1104         * resolv/res_init.c (__res_ninit, __res_randomid): Add
1105         libc_hidden_def.
1106         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1107         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1108         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1109         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1110         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1111         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1112         __rpc_thread_createerr): Add libc_hidden_def.
1113         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1114         libc_hidden_def.
1115         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1116         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1117         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1118         * sysdeps/generic/chown.c (__chown): Likewise.
1119         * sysdeps/generic/close.c (__close): Likewise.
1120         * sysdeps/generic/dup2.c (__dup2): Likewise.
1121         * sysdeps/generic/pipe.c (__pipe): Likewise.
1122         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1123         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1124         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1125         * sysdeps/generic/read.c (__libc_read): Likewise.
1126         (__read): Add libc_hidden_weak.
1127         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1128         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1129         * sysdeps/generic/select.c (__select): Likewise.
1130         * sysdeps/generic/send.c (__send): Likewise.
1131         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1132         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1133         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1134         * sysdeps/generic/statfs.c (__statfs): Likewise.
1135         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1136         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1137         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1138         Remove undef and INTDEF.
1139         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1140         * sysdeps/generic/getpid.c (__getpid): Likewise.
1141         * sysdeps/generic/write.c (__libc_write): Likewise.
1142         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1143         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1144         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1145         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1146         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
1147         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1148         Remove undef and INTDEF.
1149         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1150         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1151         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1152         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1153         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1154         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1155         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1156         (__pipe): Add libc_hidden_def.
1157         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1158         libc_hidden_weak.
1159         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1160         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1161         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1162         (__read): Add libc_hidden_weak.
1163         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1164         (__libc_pwrite64): Add libc_hidden_def.
1165         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1166         * sysdeps/mach/hurd/select.c (__select): Likewise.
1167         * sysdeps/mach/hurd/send.c (__send): Likewise.
1168         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1169         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1170         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1171         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1172         * sysdeps/posix/dup2.c: Likewise.
1173         Remove undef and INTDEF.
1174         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1175         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1176         (__pwrite64): Add libc_hidden_weak.
1177         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1178         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1179         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1180         * sysdeps/standalone/close.c (__close): Likewise.
1181         * sysdeps/standalone/write.c (__libc_write): Likewise.
1182         (__write): Add libc_hidden_weak.
1183         * sysdeps/standalone/read.c (__read): Likewise.
1184         (__libc_read): Add libc_hidden_def.
1185         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1186         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1187         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1188         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1189         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1190         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1191         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1192         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1193         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1194         __GI___sigaction): Add.
1195         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1196         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1197         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1198         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1199         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1200         __GI___setpgid): Add.
1201         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1202         Remove undef and INTDEF.
1203         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1204         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1205         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1206         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1207         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1208         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1209         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1210         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1211         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1212         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1213         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1214         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1215         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1216         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1217         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1218         __GI___statfs, __GI___send): Add.
1219         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1220         libc_hidden_ver resp. libc_hidden_def.
1221         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1222         libc_hidden_def.
1223         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1224         Likewise.  Remove undef and INTDEF.
1225         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1226         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1227         __GI___statfs, __GI___send): Add.
1228         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1229         libc_hidden_def.
1230         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1231         Likewise.
1232         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1233         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1234         libc_hidden_ver resp. libc_hidden_def.
1235         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1236         __GI___send): Add.
1237         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1238         Add libc_hidden_weak.
1239         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1240         Add libc_hidden_def.
1241         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1242         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1243         libc_hidden_weak.
1244         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1245         resp. libc_hidden_def.
1246         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1247         libc_hidden_weak.
1248         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
1249         INTDEF.
1250         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1251         Likewise.  Remove undef.
1252         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1253         libc_hidden_weak.
1254         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1255         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1256         libc_hidden_weak.
1257         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1258         libc_hidden_def.
1259         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1260         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1261         Likewise.  Remove undef and INTDEF.
1262         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1263         libc_hidden_def.
1264         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1265         libc_hidden_weak.
1266         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1267         libc_hidden_def.
1268         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1269         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1270         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1271         libc_hidden_weak.
1272         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1273         Add libc_hidden_def.
1274         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1275         __GI___statfs): Add.
1276         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1277         libc_hidden_weak.
1278         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1279         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1280         Remove undef and INTDEF.
1281         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1282         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1283         libc_hidden_def.
1284         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1285         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1286         libc_hidden_weak.
1287         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1288         libc_hidden_def.
1289         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1290         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1291         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1292         Add.
1293         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1294         libc_hidden_def.  Remove undef and INTDEF.
1295         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1296         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1297         libc_hidden_def.
1298         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1299         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1300         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1301         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1302         Remove undef and INTDEF.
1303         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1304         broken visibility attribute handling.
1305         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1307 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1309         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1310         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1312         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1313         previous patch.
1315 2002-06-29  Todd Fries  <todd@openbsd.org>
1317         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1319 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1321         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1323 2002-07-30  Roland McGrath  <roland@redhat.com>
1325         * resolv/resolv.h (_res): Define macro unconditionally.
1326         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1327         * include/resolv.h: ... here.
1328         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1329         as a __thread variable.
1330         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1331         a __thread variable instead of a global.
1332         * resolv/res_data.c [_LIBC]: Don't #undef _res.
1334         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1335         time we test it.
1337         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1339         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1340         decls of memset and memcpy.
1342         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1343         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1345         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1347         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1348         (__libc_tsd_define): Define using __thread.
1350         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1351         (__rpc_thread_variables): Use __libc_tsd_get.
1352         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1353         __rpc_thread_variables, which might allocate what we're about to free.
1355         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1356         thread-local variable.
1357         * resolv/netdb.h (h_errno): Define macro unconditionally.
1358         [_LIBC] (__set_h_errno): Macro moved to ...
1359         * include/netdb.h: ... here.
1360         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1361         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1362         [! _LIBC_REENTRANT]: #undef h_errno here.
1364         * include/errno.h: Protect from multiple inclusion.
1366         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1367         before defining them, since Linux's <linux/posix_types.h> might have
1368         defined them.
1370 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1372         * malloc/malloc.c (public_cALLOc): Check for overflow on
1373         multiplication.
1374         * sunrpc/xdr_array.c (xdr_array): Likewise.
1375         * sunrpc/rpc/types.h (mem_free): Add comment.
1376         Patch by Solar Designer <solar@openwall.com>.
1378 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1380         * sysdeps/unix/sysv/linux/kernel-features.h
1381         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1383 2002-08-01  Roland McGrath  <roland@redhat.com>
1385         * libio/fileops.c (_IO_file_sync_mmap): New function.
1386         (_IO_file_jumps_mmap): Use it.
1387         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
1388         repeat the stat check and resize the mapped buffer as necessary.
1390 2002-07-31  Roland McGrath  <roland@redhat.com>
1392         * libio/fileops.c (decide_maybe_mmap): New static function.
1393         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1394         mmap the file contents.  Then switch the jump tables to the mmap
1395         tables if it worked, or the vanilla file tables if not.
1396         (_IO_file_underflow_maybe_mmap): New function.
1397         (_IO_file_seekoff_maybe_mmap): New function.
1398         (_IO_file_xsgetn_maybe_mmap): New function.
1399         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1400         * libio/libioP.h: Declare those.
1401         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1402         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1403         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1404         If the stream is read-only, set its jump tables to those new ones.
1405         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1406         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1407         We need the tables set before _IO_file_attach.
1409         * libio/tst-mmap-eofsync.c: New file.
1410         * libio/tst-mmap-fflushsync.c: New file.
1411         * libio/bug-mmap-fflush.c: New file.
1412         * libio/tst-mmap2-eofsync.c: New file.
1413         * libio/Makefile (tests): Add them.
1415         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
1416         _IO_file_underflow_mmap fails, it already set the appropriate bit.
1418 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
1420         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
1421         Declarations moved to <bits/sys_errlist.h>.  Include that file.
1422         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
1423         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
1424         declare sys_errlist and sys_nerr.
1425         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
1426         provide declarations.
1428 2002-07-31  Roland McGrath  <roland@redhat.com>
1430         * elf/rtld.c (dl_main): Fix typo in error message.
1432 2002-07-31  Roland McGrath  <roland@frob.com>
1434         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
1435         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
1436         sysdeps/mach/hurd/dl-sysdep.c change.
1438 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
1440         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
1441         -r`/build/include for kernel headers.
1443         * po/fi.po: New file.
1445 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
1447         * configure.in (static_nss): Set to `yes' if --disable-shared.
1449 2002-07-23  Bruno Haible  <bruno@clisp.org>
1451         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
1452         is set.
1454 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1456         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
1457         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
1458         arguments.
1460 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1462         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
1463         alias.
1465 2002-07-21  Bruno Haible  <bruno@clisp.org>
1467         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
1468         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
1469         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1470         trans_sysdep_tab_offset.
1471         (struct sysdep_segment): New type.
1472         (struct sysdep_string): New type.
1473         (SEGMENTS_END): New macro.
1474         * intl/gettextP.h (struct sysdep_string_desc): New type.
1475         (struct loaded_domain): New fields malloced, n_sysdep_strings,
1476         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1477         orig_tab, trans_tab, hash_tab to const pointers because they point
1478         into read-only memory.
1479         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1480         (PRI*): Define fallback values.
1481         (get_sysdep_segment_value): New function.
1482         (_nl_load_domain): Distinguish major and minor revision parts. Add
1483         support for minor revision 1 with system dependent strings.
1484         (_nl_unload_domain): Also free the 'malloced' field.
1485         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1486         now done in loadmsgcat.c. Add support for system dependent strings.
1488 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1490         * posix/bug-regex7.c: New file.
1491         * posix/bug-regex8.c: New file.
1492         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1494 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1496         * posix/bug-regex4.c (main): Fix typos.
1497         * posix/bug-regex6.c (main): Likewise.
1499 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
1501         * posix/bug-regex6.c (main): Fix warnings.
1503         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1505         * iconv/iconv_prog.c (main): Improve error message for the cases
1506         where -t and/or -f parameter are missing.
1508 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
1510         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1511         (re_search): Likewise.
1512         (re_match_2): Likewise.
1513         (re_search_2): Likewise.
1514         (re_search_stub): New function.
1515         (re_search_2_stub): New function.
1516         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1518 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1520         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1521         (re_string_eoi): Use STOP instead of LEN.
1522         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1523         (re_string_construct): Likewise.
1524         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1525         * posix/regexec.c (re_search_internal): Add a new argument STOP
1526         so that it can handle the argument STOP of re_search_2 and re_match_2
1527         correctly.
1528         (regexec): Adapt to new I/F of re_search_internal.
1529         (re_search_stub): Likewise.
1531 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
1533         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1535         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1537         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1538         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1539         of __divdi3.
1541         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1542         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1543         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1544         alias for adjtimex syscall.
1546         * elf/dl-minimal.c: Define __assert_fail_internal.
1547         * assert/assert.c: Likewise.
1548         * include/assert.h: Define __assert_file macro if !SHARED and not
1549         NOT_IN_libc.
1551         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1552         programs.
1553         * locale/Makefile: Likewise.
1554         * nscd/Makefile: Likewise.
1555         * catgets/Makefile: Likewise.
1557 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1559         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1560         compute current position.
1562         * stdio-common/tst-fseek.c (main): Improve error messages.
1564         * libio/tst-freopen.c (main): Remove unused variable.
1566         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1567         succesful seek call.  Simplify error checking.
1569 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1571         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1572         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1574 2002-07-19  Roland McGrath  <roland@frob.com>
1576         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1577         __libc_enable_secure is set.
1579 2002-07-24  Roland McGrath  <roland@frob.com>
1581         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1582         This implementation supports only IPv4.
1583         * inet/ifaddrs.h: New file.
1584         * sysdeps/generic/ifaddrs.c: New file.
1585         * sysdeps/gnu/ifaddrs.c: New file.
1586         * inet/test-ifaddrs.c: New file.
1587         * inet/Makefile (routines): Add ifaddrs.
1588         (headers): Add ifaddrs.h here.
1589         (tests): Add test-ifaddrs.
1590         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1592         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1593         socket call to get an AF_INET socket, instead of using __opensock.
1594         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1596         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1597         if not -1 use it instead of calling __opensock.
1598         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1599         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1600         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1602         * sysdeps/mach/hurd/ifreq.h: New file.
1603         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1604         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1605         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1607         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1608         which gets moved around.  Calculate size of mmap'd buffer instead.
1610 2002-07-24  Philip Blundell  <philb@gnu.org>
1612         * sysdeps/unix/arm/brk.S: Improve schedule.
1613         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1614         efficient instruction.
1615         (__socket): Optimize return sequence.
1617 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1619         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1620         sockets on old kernels.
1622 2002-07-22  Philip Blundell  <philb@gnu.org>
1624         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1625         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1626         alias.
1628 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1630         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1631         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1633         * locale/programs/locarchive.c (add_locale_to_archive): Correct
1634         test to detect duplicate locales.
1636         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1637         position would be before beginning of file.
1638         (_IO_file_seekoff_mmap): Likewise.
1639         * libio/Makefile (tests): Add bug-fseek.
1640         * libio/bug-fseek.c: New file.
1642         * intl/explodename.c: Remove support for CEN-style locale variables.
1643         It was never used and shouldn't be since it's not portable.
1644         * intl/finddomain.c: Likewise.
1645         * intl/l10nflist.c: Likewise.
1646         * intl/loadinfo.h: Likewise.
1647         * locale/findlocale.c: Likewise.
1649 2002-07-24  Roland McGrath  <roland@frob.com>
1651         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1652         position, calculate it to take into account an active pushback buffer.
1654         * libio/Makefile (tests): Add bug-ungetc.
1655         * libio/bug-ungetc.c: New file.
1657 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
1659         * sysdeps/generic/libc-tls.c: New file.
1660         * csu/Makefile (routines): Add libc-tls.
1661         (static-only-routines): Add libc-tls.
1662         * elf/dl-support.c (_dl_phdr): New variable.
1663         (_dl_phnum): New variable.
1664         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1665         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1666         for !SHARED.  First look through auxiliary vector.  If TLS always
1667         call __pthread_initialize_minimal.
1669         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1670         in mmap call is never zero.
1672 2002-07-23  Andreas Jaeger  <aj@suse.de>
1674         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1675         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1677 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
1679         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1680         creation and removal of the temp file.
1682         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
1683         file creation.
1684         * test-skeleton.c (create_temp_file): New function.
1686 2002-07-22  Andreas Jaeger  <aj@suse.de>
1688         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1689         local label.
1691 2002-07-21  Roland McGrath  <roland@frob.com>
1693         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1694         put -I../include before -I../stdlib so we get the right errno.h et al.
1695         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1696         (CFLAGS-wcstof.c): Likewise.
1697         (CFLAGS-wcstold.c): Likewise.
1698         (CFLAGS-wcstod_l.c): Likewise.
1699         (CFLAGS-wcstof_l.c): Likewise.
1700         (CFLAGS-wcstold_l.c): Likewise.
1702 2002-07-19  Roland McGrath  <roland@frob.com>
1704         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1706 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
1708         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1709         __ASSUME_AT_XID is defined.
1710         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1711         for 2.4.1 and up.
1712         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1713         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1715         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1716         (CFLAGS-wcstof.c): Likewise.
1717         (CFLAGS-wcstold.c): Likewise.
1718         (CFLAGS-wcstod_l.c): Likewise.
1719         (CFLAGS-wcstof_l.c): Likewise.
1720         (CFLAGS-wcstold_l.c): Likewise.
1722 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
1724         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1725         __priority_which_t): Always typedef to int for C++.
1727 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
1729         * configure.in: Add test for __thread support in compiler.
1730         * config.h.in: Add HAVE___THREAD.
1731         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1732         * include/sys/errno.h: Moved to...
1733         * stdlib/sys/errno.h: ...here.  New file.
1734         * stdlib/errno.h: New file.  Moved from...
1735         * include/errno.h: ...here.  Changed into an internal header defining
1736         libc-local things like __set_errno.
1737         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1738         bits/errno.h.
1739         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
1740         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
1741         either.
1742         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
1743         from...
1744         (_dl_start_final): ...here.  Add code to initialize tls elements from
1745         bootstrap_map.
1746         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
1747         if USE_TLS && HAVE___THREAD.
1748         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
1749         * sysdeps/mach/hurd/bits/errno.h: Likewise.
1750         * sysdeps/standalone/arm/bits/errno.h: Likewise.
1751         * sysdeps/standalone/bits/errno.h: Likewise.
1752         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
1753         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
1754         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
1755         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
1756         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
1757         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
1758         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
1759         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
1760         use GL(dl_rtld_map), use map parameter.
1761         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1762         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
1763         USE_TLS && HAVE___THREAD.
1764         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
1765         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
1766         TLS code sequence.
1767         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1769         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
1770         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
1771         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1772         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1773         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1774         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1776 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
1778         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
1779         MS_INVALIDATE values.
1781 2002-07-17  Andreas Schwab  <schwab@suse.de>
1782             Ulrich Drepper  <drepper@redhat.com>
1784         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
1785         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1786         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1787         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1789 2002-07-01  H.J. Lu  <hjl@gnu.org>
1791         * elf/circleload1.c (load_dso): Call "circlemod1" and check
1792         return value.
1794         * elf/circlemod1.c (circlemod1): Return int.
1795         * elf/circlemod2.c (circlemod2): Likewise.
1796         * elf/circlemod2a.c (circlemod2): Likewise.
1797         * elf/circlemod3.c (circlemod3): Likewise.
1798         (circlemod3a): A new function.
1800 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
1802         * catgets/tst-catgets.c (main): Don't expect results for
1803         untranslated messages.
1805         * glibcbug.in: Fix little typo.  Remove STDIO.
1807         * config.h.in: Fail if __FAST_MATH__ is defined.
1808         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
1809         (CPPFLAGS-test-idouble.c): Likewise.
1810         (CPPFLAGS-test-ildouble.c): Likewise.
1812 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
1814         * intl/tst-gettext.sh: Pass -f option to msgfmt.
1815         * intl/tst-gettext.c: Correctly handle untranslated messages in
1816         positive tests.
1818         * po/de.po: Update from translation team.
1820 2002-07-02  H.J. Lu  <hjl@gnu.org>
1822         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
1823         use ll/sc.
1824         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1826         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
1827         to 2.4.0 for mips.
1829 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
1831         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
1832         TLS fail if USE_TLS is not defined.
1834         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
1835         and adjust state for seek position.  [PR libc/4070]
1836         * libio/Makefile (tests): Add bug-rewind.
1837         * libio/bug-rewind.c: New file.
1839 2002-07-12  Philip Blundell  <philb@gnu.org>
1841         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
1842         (__backtrace): Use it.
1843         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
1845 2002-07-12  Philip Blundell  <philb@gnu.org>
1847         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
1848         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1849         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1850         (elf_machine_rela): Remove unused variable.
1852         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1853         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1854         define.
1856 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
1858         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1860 2002-07-14  Andreas Jaeger  <aj@suse.de>
1862         * sysdeps/x86_64/bits/link.h: Add biarch support.
1864 2002-07-13  Andreas Jaeger  <aj@suse.de>
1866         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1867         Use correct indices.
1868         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1870 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1872         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1873         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1874         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1875         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1876         * sysdeps/s390/s390-32/bits/link.h: Remove.
1877         * sysdeps/s390/s390-64/bits/link.h: Remove.
1878         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1879         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1880         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1881         * sysdeps/s390/bits/wordsize.h: New file.
1882         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1883         elfclass.h.
1884         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1885         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1886         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1887         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1888         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1889         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1890         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1891         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1892         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1893         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1894         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1895         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1896         resource.h.
1897         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1898         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1899         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1900         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1901         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1902         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1903         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1904         sigaction.h.
1905         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1906         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1907         siginfo.h.
1908         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1909         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1910         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1911         socket.h.
1912         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1913         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1914         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1915         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1916         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1917         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1918         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1919         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1920         procfs.h.
1921         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1922         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1923         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1924         ucontext.h.
1925         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1926         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1928 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1930         * Versions.def (libc): Add GLIBC_2.3.
1931         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1932         * stdlib/canonicalize.c: Add compatibility version for realpath
1933         and make new code available in GLIBC_2.3.
1935 2002-07-06  Bruno Haible  <bruno@clisp.org>
1937         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1939 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1941         * resolv/res_hconf.c (_res_hconf_init): Move code into new
1942         function do_init.  Use __libc_once.
1943         (do_init): New function.
1945         * iconvdata/iso8859-11.h: Removed.
1946         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1947         (distribute): Remove iso8859-11.h.
1948         * iconvdata/tst-tables.sh: Add ISO-8859-11.
1950         * stdio-common/vfscanf.c (inchar): Restore errno from previous
1951         underflow operation if c == (W)EOF.
1953 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1955         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1956         non-zero, adjust exponent.
1957         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1958         Remove NO_LONG_DOUBLE aliases.
1959         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1960         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1961         (__log1pl): Raise divide by zero and invalid exceptions when needed.
1962         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1963         1**y and -1**+-Inf.
1964         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1965         Fix BITS_PER_MP_LIMB 32 extraction.
1966         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1967         exceptions for qNaNs.
1968         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1969         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1970         Raise exceptions when needed.  Don't recurse unnecessarily.
1971         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1972         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1973         exceptions for qNaNs.
1974         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1975         to fix *quo return value sign.
1976         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1977         case -Inf argument.
1978         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1980 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1982         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1983         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1984         -DNDEBUG.
1986 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1988         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1989         the result.
1991         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1992         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
1994         * Versions.def (libthread_db): Add GLIBC_2.3.
1996 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
1998         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1999         new stream if possible.
2000         * libio/freopen64.c (freopen64): Likewise.
2001         * libio/Makefile (tests): Add tst-freopen.
2002         * libio/tst-freopen.c: New file.
2004 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2006         * libio/stdio.h (obstack_printf): Add format attribute.
2007         (obstack_vprintf): Likewise.
2009 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2011         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2012         resp. 16 bytes on 32-bit resp. 64-bit platforms.
2013         (re_charset_t, re_string_t): Reorder structure members for 64-bit
2014         architectures.
2016 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2018         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2019         (init_dfa): ...here.
2021 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2023         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2024         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2025         nodes in parse trees.
2026         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2027         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2028         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2029         nodes which can epsilon transit.
2030         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2031         to IS_EPSILON_NODE macro.
2032         * posix/regexec.c (update_regs): New function to update registers
2033         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2034         (proceed_next_node): Use the entities of the nodes to determine
2035         whether the node can transit to.
2036         (set_regs): Use update_regs function to update registers.
2038 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2040         * posix/bug-regex4.c (main): Remove duplicate setlocale.
2041         * posix/bug-regex6.c: New file.
2042         * posix/Makefile (tests): Add bug-regex6.
2043         (bug-regex6-ENV): Set LOCPATH.
2045 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2047         * Versions.def [libpthread]: Add GLIBC_2.2.6.
2048         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2050 2002-07-06  Bruno Haible  <bruno@clisp.org>
2052         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2054 2002-07-06  Bruno Haible  <bruno@clisp.org>
2056         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2057         declarations.
2059         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2061         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2063         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2064         not _UTSNAME_H.
2065         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2067         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2068         * sysdeps/generic/bits/ustat.h: Likewise.
2070         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2072 2002-07-08  Andreas Jaeger  <aj@suse.de>
2074         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2076 2002-07-08  Andreas Jaeger  <aj@suse.de>
2078         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2080 2002-07-06  Andreas Jaeger  <aj@suse.de>
2082         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2083         * sysdeps/x86_64/fpu/s_copysign.S: New.
2084         * sysdeps/x86_64/fpu/s_copysignf.S: New.
2085         * sysdeps/x86_64/fpu/s_copysignl.S: New.
2086         * sysdeps/x86_64/fpu/s_finitel.S: New.
2087         * sysdeps/x86_64/fpu/s_fmax.S: New.
2088         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2089         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2090         * sysdeps/x86_64/fpu/s_fmin.S: New.
2091         * sysdeps/x86_64/fpu/s_fminf.S: New.
2092         * sysdeps/x86_64/fpu/s_fminl.S: New.
2094 2002-06-05  Brian Youmans <3diff@gnu.org>
2096         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2097         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2098         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2099         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2100         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2101         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2102         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2103         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2104         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2105         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2106         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2107         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2108         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2109         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2110         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2111         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2112         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2113         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2114         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2115         * sysdeps/ia64/fpu/e_log.S: Likewise.
2116         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2117         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2118         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2119         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2120         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2121         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2122         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2123         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2124         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2125         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2126         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2127         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2128         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2129         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2130         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2131         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2132         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2133         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2134         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2135         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2136         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2137         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2138         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2139         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2140         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2141         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2142         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2143         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2144         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2145         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2146         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2147         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2148         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2149         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2150         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2151         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2152         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2153         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2154         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2155         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2156         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2157         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2158         * sysdeps/ia64/fpu/s_round.S: Likewise.
2159         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2160         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2161         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2162         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2163         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2164         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2165         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2166         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2167         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2168         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2169         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2170         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2171         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2172         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2173         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2174         reflect IBM donation of math library to FSF
2175         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2176         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2177         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2178         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2179         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2180         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2181         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2182         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2183         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2184         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2185         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2186         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2187         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2188         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2189         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2190         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2191         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2192         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2193         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2194         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2195         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2196         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2197         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2198         * sysdeps/vax/__longjmp.c: Likewise.
2199         * sysdeps/vax/setjmp.c: Likewise.
2200         * libio/filedoalloc.c: Fixed BSD copying permission notice to
2201         remove advertising clause
2202         * sysdeps/vax/htonl.s: Likewise.
2203         * sysdeps/vax/htons.s: Likewise.
2204         * libio/wfiledoalloc.c: Likewise.
2205         * stdlib/random.c: Likewise.
2206         * stdlib/random_r.c: Likewise.
2207         * sysdeps/mach/sys/reboot.h: Likewise.
2208         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2209         * sysdeps/posix/getaddrinfo.c: Likewise.
2210         * sunrpc/des_impl.c: Updated license permission notice to Lesser
2211         GPL and corrected pointer to point to the correct license.
2213 2002-07-04  Andreas Jaeger  <aj@suse.de>
2215         * scripts/config.guess: New upstream version.
2216         * scripts/config.sub: Likewise.
2218 2002-07-02  Andreas Schwab  <schwab@suse.de>
2220         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2221         in parallel to bumping up the buffer pointer.
2223 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2225         * math/libm-test.inc (acos_test): Add missing L suffix for
2226         expected result.
2227         (cpow_test): Likewise.
2228         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2229         error for acos (0.0625).
2231 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2233         * locale/iso-639.def: Add entry for Ganda.
2234         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2235         definition.
2236         (address_finish): Handle entries with two letter ISO 639 code.
2238         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2239         directory if it existed before.
2240         * iconv/iconvconfig.c: Implement --prefix option.
2242         * math/libm-test.inc (cexp_test): Add missing L suffix for
2243         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
2244         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2245         1.25 i).
2247 2002-05-29  H.J. Lu  <hjl@gnu.org>
2249         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2250         is turned on.
2252 2002-05-28  H.J. Lu  <hjl@gnu.org>
2254         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2255         are not dlopened on the dependency list of a dlopened object.
2257 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2259         * elf/dl-lookup.c (add_dependency): It is not necessary to add
2260         dependencies if they are created between objects which are created
2261         while processing RTLD_NOW for objects loaded as part of the same
2262         dlopen call.
2264 2002-06-14  H.J. Lu  <hjl@gnu.org>
2266         * elf/Makefile (tests): Add circleload1.
2267         (modules-names): Add circlemod1, circlemod2, circlemod3,
2268         circlemod1a, circlemod2a and circlemod3a.
2269         ($(objpfx)circleload1): New target.
2270         ($(objpfx)circleload1.out): Likewise.
2271         ($(objpfx)circlemod1.so): Likewise.
2272         ($(objpfx)circlemod2.so): Likewise.
2273         ($(objpfx)circlemod1a.so): Likewise.
2274         ($(objpfx)circlemod2a.so): Likewise.
2275         * elf/circleload1.c: New file.
2276         * elf/circlemod1.c: New file.
2277         * elf/circlemod1a.c: New file.
2278         * elf/circlemod2.c: New file.
2279         * elf/circlemod2a.c: New file.
2280         * elf/circlemod3.c: New file.
2281         * elf/circlemod3a.c: New file.
2283 2002-06-18  Amos Waterland  <apw@us.ibm.com>
2285         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2286         file descriptor.
2287         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2288         add check for fd not open for writing.
2290         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2291         completed element(s) and do not suspend thread if so.  Patch
2292         heavily modified by drepper.
2294         * rt/tst-aio7.c: New file.  Regression test for problems which the
2295         above three changes fix.
2296         * rt/Makefile (tests): Add tst-aio7.
2298 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
2300         * rt/tst-aio6.c: Fix comment.
2302         * catgets/gencat.c (read_input_file): Handle more than one slash
2303         at end of line correctly [PR libc/3926].
2304         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2306         * catgets/sample.SJIS: Add test case for above bug.
2307         * catgets/test-gencat.c: Adjust test code.
2308         * catgets/test-gencat.sh: Adjust expected results.
2310         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2311         to skip relative relocations.
2312         Patch by Geoff Keating <geoffk@redhat.com>.
2314 2002-05-26  Bruno Haible  <bruno@clisp.org>
2316         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2317         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2318         All callers changed.
2319         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2320         STANDARD_FROM_LOOP_ERR_HANDLER.
2321         (utf8_internal_loop): Likewise.
2322         (ucs2_internal_loop): Likewise.
2323         (internal_ucs2_loop): Perform error handling like in
2324         STANDARD_FROM_LOOP_ERR_HANDLER.
2325         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2326         in STANDARD_FROM_LOOP_ERR_HANDLER.
2327         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2328         handling.
2329         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2330         in STANDARD_FROM_LOOP_ERR_HANDLER.
2331         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2332         handling.
2333         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2334         in STANDARD_FROM_LOOP_ERR_HANDLER.
2335         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2336         handling.
2337         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2338         STANDARD_FROM_LOOP_ERR_HANDLER.
2339         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2340         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2341         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2342         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2343         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2344         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2345         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2346         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2347         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2348         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2349         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2350         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2351         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2352         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2353         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2354         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2355         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2356         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2357         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2358         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2359         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2360         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2361         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2362         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2363         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2364         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2365         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2366         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2367         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
2368         an error, still set result = __GCONV_ILLEGAL_INPUT.
2369         (BODY for TO_LOOP): Likewise.
2370         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2371         STANDARD_FROM_LOOP_ERR_HANDLER.
2372         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2373         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2374         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2375         handling.
2376         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2377         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2378         STANDARD_FROM_LOOP_ERR_HANDLER.
2379         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2380         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2381         STANDARD_FROM_LOOP_ERR_HANDLER.
2382         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2383         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2384         STANDARD_FROM_LOOP_ERR_HANDLER.
2385         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2386         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2387         STANDARD_FROM_LOOP_ERR_HANDLER.
2388         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2389         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2390         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2391         handling.
2392         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2393         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2394         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2395         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2397 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2399         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2400         labels in assembler instructions.
2402 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
2404         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2405         not enough content is available.
2406         * libio/tst-eof.c: New file.
2407         * libio/Makefile (tests): Add tst-eof.
2409         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
2410         update atime.
2411         * libio/tst-atime.c: New file.
2412         * libio/Makefile (tests): Add tst-atime.
2414         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
2415         handling of overly long words.
2417 2002-06-25  Andreas Jaeger  <aj@suse.de>
2419         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
2420         to not use 32-bit pc relative relocations.
2421         (elf_machine_dynamic): Likewise.
2423 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2425         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
2426         (__GETDENTS): Check for failed getdents64 syscall.
2427         * dirent/Makefile (tests): Add bug-readdir1.
2428         * dirent/bug-readdir1.c: New file.
2430 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
2432         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
2433         lookups.
2434         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
2435         code.  Print TLS modid and offset for modules containing PT_TLS
2436         segments.
2438 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2440         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2441         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2442         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2443         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2445 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2447         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
2448         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
2449         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
2450         * nss/getXXent_r.c (NEW, NEW1): Define.
2451         (NEW (REENTRANT_GETNAME)): Strong alias to
2452         INTERNAL (REENTRANT_GETNAME).
2453         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
2455 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2457         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
2458         (_IO_file_jumps_mmap): Use it.
2459         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
2460         * libio/libioP.h: Remove _IO_wdefault_setbuf and
2461         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
2462         prototype.
2463         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
2464         (_IO_wfile_jumps_mmap): Don't use it anymore.
2465         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
2466         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
2467         _IO_wdefault_setbuf.
2468         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
2469         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2470         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2472 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
2474         * libio/Makefile (tests): Add tst-mmap-setvbuf.
2475         * libio/tst-mmap-setvbuf.c: New test.
2477 2002-06-21  Andreas Jaeger  <aj@suse.de>
2479         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2481 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
2483         * include/unistd.h (__fork_internal): Remove.
2484         (__fork): Don't define to __fork_internal.
2485         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2486         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2487         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2488         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2489         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2491 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2493         * po/hr.po: New file.
2495 2002-06-11  Wolfram Gloger  <wg@malloc.de>
2497         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2498         Reported by Michael Meissner <meissner@redhat.com>.
2500 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2502         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2503         Patch by Hans Boehm <hans_boehm@hp.com>.
2505 2002-06-20  Andreas Jaeger  <aj@suse.de>
2507         * math/libm-test.inc: Use exact values as input parameters,
2508         compute output parameters with 36 digits for 128-bit long doubles.
2509         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2510         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2511         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2513 2002-06-13  Stephen L Moshier  <steve@moshier.net>
2515         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2516         argument or result is subnormal.
2518 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
2520         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2521         quotient.
2522         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2523         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2525         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2527 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
2529         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2530         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2531         Reported by Peter A. Buhr.
2533 2002-06-15  Roland McGrath  <roland@frob.com>
2535         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2536         warning.
2538         * sysdeps/mach/hurd/getcwd.c
2539         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2541         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2542         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2544         * sysdeps/alpha/divrem.h: Use local label instead of global one for
2545         jump to local subroutine.
2547 2002-06-14  Roland McGrath  <roland@frob.com>
2549         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2550         * sysdeps/mach/hurd/Makeconfig: ... here.
2552 2002-06-13  Andreas Schwab  <schwab@suse.de>
2554         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2555         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2556         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2558 2002-06-13  Roland McGrath  <roland@frob.com>
2560         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2561         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2562         Use intptr_t instead of int for argc in stack layout.
2563         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2564         (_dl_init_first): Likewise.
2565         (_hurd_stack_setup): Likewise.
2566         (init1): Add a cast.
2567         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2569         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2570         argument to pfinet_siocgifconf RPC.
2572 2002-06-13  Andreas Schwab  <schwab@suse.de>
2574         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2575         expansion order.
2577 2002-06-12  Roland McGrath  <roland@frob.com>
2579         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2580         if already defined.
2581         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2582         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2584 2002-06-11  Roland McGrath  <roland@frob.com>
2586         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2587         file on [!RTLD_STAT64].
2588         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2590         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2591         (__fdopen): Use INTUSE.
2592         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2594         * stdio-common/tmpfile64.c: File removed.
2595         * sysdeps/generic/tmpfile64.c: New file.
2596         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2597         if not already defined.
2598         (tmpfile): Use it in place of __GT_FILE.
2600         * include/unistd.h: Declare __chown_internal.
2602         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2603         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2605 2002-06-09  Roland McGrath  <roland@frob.com>
2607         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2608         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2609         value of HURD_INTERFACE_VERSION >= 20020609.
2610         * sysdeps/mach/hurd/configure: Regenerated.
2611         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2612         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2613         convert a struct stat64 into a struct stat and return 0 or -1
2614         with errno set to EOVERFLOW.
2615         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2616         for struct statfs64 to struct statfs.
2617         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2618         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2619         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2620         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2621         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2622         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2623         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2624         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2625         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2626         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2627         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2628         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2629         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2630         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2631         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2632         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2633         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2634         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2635         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2636         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2637         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2638         Use struct stat64 for io_stat argument.
2639         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2640         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2641         to io_seek.
2642         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2643         * hurd/fd-write.c (_hurd_fd_write): Likewise.
2644         * hurd/hurd/fd.h: Update decls.
2645         * sysdeps/mach/hurd/getcwd.c
2646         (_hurd_canonicalize_directory_name_internal): Use ino64_t
2647         and struct dirent64.
2648         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2649         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2650         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2651         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2653 2002-06-08  Roland McGrath  <roland@frob.com>
2655         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2656         instead of unsigned long int for __allocation and __size members.
2658 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2660         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2661         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2662         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2663         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2665 2002-06-07  Roland McGrath  <roland@frob.com>
2667         * sysdeps/mach/hurd/bits/environments.h: File removed.
2669 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2671         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2672         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2673         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2674         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2675         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2676         (sendfile64): Likewise.
2677         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2678         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2679         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2680         Likewise.
2681         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2683         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2684         already defined.
2686 2002-06-04  Bruno Haible  <bruno@clisp.org>
2688         * sysdeps/cris/stackinfo.h: New file.
2690         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2691         to an integer type before performing bit operations on it.
2693 2002-06-05  Roland McGrath  <roland@frob.com>
2695         * sysdeps/generic/sendfile.c: Include <errno.h>.
2696         * sysdeps/generic/sendfile64.c: Likewise.
2698         * io/Makefile (routines): Add sendfile and sendfile64.
2699         (headers): Add sys/sendfile.h to the list.
2700         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2701         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2702         * io/sys/sendfile.h: ... here.
2703         * sysdeps/generic/sendfile.c: New file.
2704         * sysdeps/generic/sendfile64.c: New file.
2706         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2707         Move sendfile, sendfile64 to ...
2708         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2709         * sysdeps/mach/hurd/sendfile.c: New file.
2710         * sysdeps/mach/hurd/sendfile64.c: New file.
2712         * sysdeps/mach/nanosleep.c: New file.
2714 2002-06-04  Roland McGrath  <roland@frob.com>
2716         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
2717         * sysdeps/alpha/elf/configure: New file (generated).
2719 2002-06-02  Roland McGrath  <roland@frob.com>
2721         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2723 2002-06-01  Roland McGrath  <roland@frob.com>
2725         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2726         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2728 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2730         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2731         Add nsmap.
2732         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2733         Remove nstimes setting.
2734         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2735         * resolv/res_send.c (res_nsend): Don't close unconditionally if
2736         there is mix of IPv6 and IPv4 nameservers.
2737         Use nsmap array to find free slots and preserve nameserver ordering.
2738         Fix RES_ROTATE.
2740 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2742         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
2743         use this header with LFS.
2745         * po/sk.po: Update from translation team.
2747 2002-05-28  Andreas Schwab  <schwab@suse.de>
2749         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
2750         message when finding object of wrong class.
2752 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
2754         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
2755         Patch by <radu@netsoft.ro>.
2757 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2759         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
2760         Add readahead.
2761         * sysdeps/unix/sysv/linux/readahead.c: New file.
2762         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
2763         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
2764         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
2765         Add sendfile64 alias to sendfile syscall.
2766         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2767         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2768         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2769         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
2770         syscall.
2772         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
2773         special section for PIC register loading.
2774         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2776         * config.h.in: Define HAVE_HIDDEN.
2777         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
2779         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
2781 2002-05-28  Roland McGrath  <roland@frob.com>
2783         * sysdeps/mach/alpha/setfpucw.c: New file.
2785 2002-05-26  Roland McGrath  <roland@frob.com>
2787         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
2788         Use integer_t instead of int for IOC_VOID case.
2790 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
2792         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
2794 2002-05-26  Bruno Haible  <bruno@clisp.org>
2796         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
2797         end of the ISO-8859-7 from idx table.
2799 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
2801         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
2803 2002-05-24  David S. Miller  <davem@redhat.com>
2805         * string/bits/string2.h (memset): Do not try to optimize when
2806         not _STRING_ARCH_unaligned if GCC will do the right thing.
2808 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
2810         * posix/regex.c: Define `inline' as a macro into nothing for the
2811         compilers which lack the keyword.
2812         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
2813         for the compatibility of gawk.
2814         * posix/regcomp.c: Add fake implementation of isblank() for the
2815         environments which lack the function.
2816         Don't use free_charset() in case of non-i18n envs.
2817         (build_range_exp): Don't use i18n related code in case of non-i18n
2818         envs.
2819         (build_collating_symbol): Likewise.
2820         (build_equiv_class): Likewise.
2821         (build_charclass): Likewise.
2822         (re_compile_fastmap_iter): Likewise.
2823         (parse_bracket_exp): Likewise.
2824         (build_word_op): Likewise.
2825         (regfree): Don't use free_charset() in case of non-i18n envs.
2826         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
2827         re_token_type_t in case of non-i18n envs.
2828         Don't define re_charset_t in case of non-i18n envs.
2829         Change the type of wcs of re_string_t from wchar_t to wint_t,
2830         since we store also WEOF.
2831         * posix/regex_internal.c: (re_string_realloc_buffers): Change
2832         the type of wcs of re_string_t from wchar_t to wint_t.
2833         (re_string_reconstruct): Likewise.
2834         (create_ci_newstate): Don't use i18n related code in case of
2835         non-i18n envs.
2836         (create_cd_newstate): Likewise.
2838 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
2840         * iconv/loop.c: Fix typo.
2842 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2844         * inet/ether_line.c (ether_line): Fix a typo causing only
2845         lower 4 bits of each ethernet address byte being assigned.
2846         Don't modify what line points to.
2847         * inet/tst-ether_aton.c (main): Add ether_line tests.
2849 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
2851         * manual/filesys.texi: Don't make readlink example leak memory
2852         when readlink fails.
2854 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
2856         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
2857         some more security checks.
2859 2002-05-17  David S. Miller  <davem@redhat.com>
2861         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2863 2002-05-16  David S. Miller  <davem@redhat.com>
2865         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2866         (elf_machine_dynamic): Use it to force PIC register to be loaded.
2867         (elf_machine_load_address): Likewise.
2868         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2870         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2871         is unaligned, do not forget to fully initialize %g1 magic value.
2873         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2874         register definitions and provide 32-bit variants of structures
2875         during 64-bit builds.
2877         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2878         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2879         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2880         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2881         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2882         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2883         Do not clear implicit one bit here, it must be done post-rounding.
2884         Only pad to the left using left shift if value uses less than the
2885         available fractional bits.
2887 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2889         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2890         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2891         (shared-only-routines): Likewise.
2892         * sysdeps/powerpc/libgcc-compat.c: New file.
2893         * sysdeps/wordsize-32/cmpdi2.c: Removed.
2894         * sysdeps/wordsize-32/fixdfdi.c: Removed.
2895         * sysdeps/wordsize-32/fixsfdi.c: Removed.
2896         * sysdeps/wordsize-32/shdi3.c: Removed.
2898 2002-05-16  Bruno Haible  <bruno@clisp.org>
2900         * MakeTAGS (libc.pot): Don't sort the output.
2901         * po/header.pot: Update to match xgettext 0.11 output.
2903 2002-05-16  Bruno Haible  <bruno@clisp.org>
2905         * MakeTAGS (subdirs): Remove duplicates.
2907 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2909         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2910         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2911         alias.
2913 2002-05-19  Andreas Jaeger  <aj@suse.de>
2915         * sysdeps/unix/sysv/linux/configure.in: Warn against an
2916         installation in /usr/local.
2918 2002-05-16  Bruno Haible  <bruno@clisp.org>
2920         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2921         string as argument of #error.
2923 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
2925         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2926         don't define static.  Remove old __realpath function.  TC1 of
2927         POSIX 2001 will allow the second parameter to be NULL.
2928         * stdlib/test-canon.c: Comment out test for NULL as second
2929         parameter of realpath.
2931         * time/offtime.c (__offtime): Set errno if overflow is detected.
2933         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2934         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2935         dl-brk and dl-sbrk.
2937         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2938         (fdimf): Likewise.
2940 2002-05-15  Roland McGrath  <roland@frob.com>
2942         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2944 2002-05-12  Bruno Haible  <bruno@clisp.org>
2946         * iconvdata/testdata/EUC-JISX0213: New file.
2947         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2948         * iconvdata/testdata/SHIFT_JISX0213: New file.
2949         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2950         * iconvdata/testdata/ISO-2022-JP-3: New file.
2951         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2952         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2953         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2954         contains comments indicating precomposed characters.
2956 2002-04-21  Bruno Haible  <bruno@clisp.org>
2958         * iconvdata/iso-2022-jp-3.c: New file.
2959         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2960         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2961         (LDFLAGS-ISO-2022-JP-3.so): New variable.
2962         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2963         (distribute): Add iso-2022-jp-3.c.
2965 2002-05-12  Bruno Haible  <bruno@clisp.org>
2967         * iconvdata/tst-table-to.c (main): Restore handling of
2968         transliterations, broken by last patch.
2970 2002-05-12  Bruno Haible  <bruno@clisp.org>
2972         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2974 2002-05-12  Bruno Haible  <bruno@clisp.org>
2976         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2977         when there is not enough room in the output buffer.
2978         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2980 2002-04-20  Bruno Haible  <bruno@clisp.org>
2982         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2983         macros.
2984         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2985         Also make this macro work if FROM_DIRECTION evaluates to 0.
2986         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2987         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2988         of consume_incomplete.
2989         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2990         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2991         4, not 8.
2992         * iconvdata/cp1258.c: Likewise.
2993         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2994         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2995         not 2.
2996         * iconvdata/ibm933.c: Likewise.
2997         * iconvdata/ibm935.c: Likewise.
2998         * iconvdata/ibm937.c: Likewise.
2999         * iconvdata/ibm939.c: Likewise.
3000         * iconvdata/iso-2022-cn.c: Define
3001         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3002         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3003         * iconvdata/iso-2022-cn-ext.c: Likewise.
3004         * iconvdata/iso-2022-jp.c: Define
3005         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3006         {MIN,MAX}_NEEDED_{FROM,TO}.
3007         * iconvdata/tcvn5712-1.c: Define
3008         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3009         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3010         * iconvdata/euc-jisx0213.c: Define
3011         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3012         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3013         * iconvdata/shift_jisx0213.c: Likewise.
3015 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3017         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3018         shdi3, fixdfdi, fixsfdi in csu dir.
3019         (shared-only-routines): Likewise.
3020         * sysdeps/wordsize-32/cmpdi2.c: New file.
3021         * sysdeps/wordsize-32/shdi3.c: New file.
3022         * sysdeps/wordsize-32/fixdfdi.c: New file.
3023         * sysdeps/wordsize-32/fixsfdi.c: New file.
3024         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3025         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3026         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3028         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3029         Only use va_arg if the argument will be used [PR libc/3259].
3031 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
3033         * catgets/catgets.c (catopen): Free buffer if internal catalog
3034         open fails.
3036 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3038         * debug/xtrace.sh: Make more robust.  For realtime tracking use
3039         non-buffering methods.
3040         * debug/pcprofiledump.c: Implement -u option.
3041         Patch by Roger Luethi <rl@hellgate.ch>.
3043 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
3045         * include/netinet/in.h (bindresvport_internal): Add prototype.
3046         * include/rpc/auth.h  (authunix_create_internal,
3047         authunix_create_default_internal, authnone_create_internal,
3048         authdes_pk_create_internal): Add prototypes.
3049         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3050         clntudp_create_internal, clntudp_bufcreate_internal,
3051         clntunix_create_internal): Add prototypes.
3052         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3053         svc_getreq_internal, svc_getreq_common_internal,
3054         svc_getreqset_internal, svc_getreq_poll_internal,
3055         svc_register_internal, svc_unregister_internal,
3056         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3057         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3058         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3059         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3060         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3061         * inet/rcmd.c (rcmd_af): Use __listen.
3062         (rresvport_af): Use __bind.
3063         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3064         authunix_create, authunix_create_default, authnone_create,
3065         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3066         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3067         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3068         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3069         _authenticate, add INTDEF after such function definitions.
3070         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3071         __setsockopt, __getsockname instead of non-__ variants.
3072         * sunrpc/pmap_rmt.c: Likewise.
3073         * sunrpc/rtime.c: Likewise.
3074         * sunrpc/svc_udp.c: Likewise.
3075         * sunrpc/clnt_unix.c: Likewise.
3076         * sunrpc/svc_unix.c: Likewise.
3077         * sunrpc/bindrsvprt.c: Likewise.
3078         * sunrpc/svc_tcp.c: Likewise.
3079         * sunrpc/auth_none.c: Likewise.
3080         * sunrpc/clnt_raw.c: Likewise.
3081         * sunrpc/clnt_tcp.c: Likewise.
3082         * sunrpc/auth_unix.c: Likewise.
3083         * sunrpc/key_call.c: Likewise.
3084         * sunrpc/clnt_gen.c: Likewise.
3085         * sunrpc/pm_getmaps.c: Likewise.
3086         * sunrpc/clnt_simp.c: Likewise.
3087         * sunrpc/pmap_clnt.c: Likewise.
3088         * sunrpc/svc_run.c: Likewise.
3089         * sunrpc/svc.c: Likewise.
3090         * sunrpc/svc_simple.c: Likewise.
3091         * sunrpc/pm_getport.c: Likewise.
3092         * sunrpc/auth_des.c: Likewise.
3093         * sunrpc/svc_auth.c: Likewise.
3094         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3095         __register_frame_info_table_bases, __deregister_frame_info_bases):
3096         Add INTDEF.
3097         (__register_frame_info_bases_internal,
3098         __register_frame_info_table_bases_internal,
3099         __deregister_frame_info_bases_internal): Add prototypes.
3100         (__register_frame_info, __register_frame): Use INTUSE in call to
3101         __register_frame_info_bases.
3102         (__register_frame_info_table): Similarly.
3103         (__deregister_frame_info, __deregister_frame): Similarly.
3104         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3105         sendto as weak alias.
3106         * sysdeps/mach/hurd/sendto.c: Likewise.
3107         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3108         recvfrom as weak alias.
3109         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3110         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3111         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3112         recvmsg as weak alias.
3113         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3114         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3115         sendmsg as weak alias.
3116         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3117         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3118         setsockopt, add setsockopt as weak alias.
3119         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3120         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3121         weak alias.
3122         * sysdeps/mach/hurd/bind.c: Likewise.
3123         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3124         as weak alias.
3125         * sysdeps/mach/hurd/listen.c: Likewise.
3126         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3127         getsockname, add getsockname as weak alias.
3128         * sysdeps/mach/hurd/getsockname.c: Likewise.
3129         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3130         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3131         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3132         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3133         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3134         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3135         Add aliases.
3136         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3137         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3138         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3139         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3140         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3141         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3142         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3143         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3144         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3145         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3146         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3147         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3149 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3151         * locale/programs/localedef.h (show_archive_content): Add verbose
3152         argument.
3153         * locale/programs/localedef.c (main): Adjust caller.
3154         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3155         (nameentcmp, dataentcmp): New functions.
3156         (xstrcmp): Remove.
3157         (show_archive_content): Print verbose listing with --list-archive -v.
3159 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3161         * locale/programs/locarchive.c (open_archive): Take extra argument
3162         readonly.  If true open file with O_RDONLY and don't create the
3163         archive if it doesn't exist.
3164         Adapt all callers.
3165         (close_archive): Don't do anything if fd element is -1.
3166         * locale/programs/localedef.h (open_archive): Adjust prototype.
3167         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3168         call.
3170         * malloc/malloc.c (__posix_memalign): Correct check for size of
3171         alignment value [PR libc/3444].
3173         * include/stdio.h: Remove references to old stdio implementation.
3175         * libio/Makefile (bug-ungetwc2-ENV): Define.
3177 2002-05-13  Roland McGrath  <roland@frob.com>
3179         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3181         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3183 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
3185         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3186         Allocate three, not two, more than LEN when appending '/.'.
3187         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
3188         if NAME ends with '/.' if it is shorter than 2 chars.
3190 2002-05-12  Roland McGrath  <roland@frob.com>
3192         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3193         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3195         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3196         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3198 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3200         * sysdeps/ia64/Makefile: Remove extra endif.
3201         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3203 2002-05-10  Andreas Schwab  <schwab@suse.de>
3205         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3207 2002-05-09  Andreas Jaeger  <aj@suse.de>
3209         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3210         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3211         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3213         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3214         * sysdeps/wordsize-64/glob.c: ...here.
3215         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3216         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3217         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3219 2002-05-08  Roland McGrath  <roland@frob.com>
3221         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3222         O_NOTRANS flag in "." lookup.
3224 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
3226         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3228 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
3230         * locale/duplocale.c (__duplocale): Update special members only
3231         when allocation succeeded.
3233 2002-05-03  Roland McGrath  <roland@frob.com>
3235         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3236         we can only build libc.so.0.3(GLIBC_2.2.6) now.
3238 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3240         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3241         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3242         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3243         * sysdeps/ia64/ia64libgcc.S: New file.
3245 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
3247         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3249         * malloc/memusage.c: Distinguish anonymous mmap.
3251 2002-05-01  Roland McGrath  <roland@frob.com>
3253         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3254         and use INTDEF on it.
3255         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3257         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3259         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3261 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
3263         * malloc/memusage.c: Add support for tracking mmap & friends.
3264         * malloc/memusage.sh: Implement -m/--mmap option.
3266 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3268         * locale/programs/locarchive.c (create_archive): Add archivefname
3269         argument, create fname from it.
3270         (enlarge_archive): Honour output_prefix.
3271         (open_archive): Likewise.
3273 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3275         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3276         too many stpcpy macros.
3278 2002-04-26  Bruno Haible  <bruno@clisp.org>
3280         * locale/programs/ld-collate.c (collate_read): Cast first argument
3281         for "%.*s" to int.
3283 2002-04-26  Bruno Haible  <bruno@clisp.org>
3285         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3286         __dcngettext_internal): New declarations.
3287         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3288         attribute declarations.
3290 2002-04-30  Roland McGrath  <roland@frob.com>
3292         Removed old GNU stdio implementation; GNU libio is now the only option.
3293         * configure.in: Removed --enable-libio option and @stdio@ subst var.
3294         Define USE_IN_LIBIO unconditionally.
3295         * configure: Regenerated.
3296         * Makeconfig (stdio): Set to libio by default.
3297         * config.make.in (stdio): Variable removed.
3298         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3299         * sysdeps/unix/sysv/linux/configure: Regenerated.
3300         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3301         * sysdeps/mach/hurd/configure: Regenerated.
3302         * stdio/.cvsignore: File removed.
3303         * stdio/Makefile: File removed.
3304         * stdio/Versions: File removed.
3305         * stdio/__fbufsize.c: File removed.
3306         * stdio/__flbf.c: File removed.
3307         * stdio/__fpending.c: File removed.
3308         * stdio/__fpurge.c: File removed.
3309         * stdio/__freadable.c: File removed.
3310         * stdio/__freading.c: File removed.
3311         * stdio/__fsetlocking.c: File removed.
3312         * stdio/__fwritable.c: File removed.
3313         * stdio/__fwriting.c: File removed.
3314         * stdio/clearerr.c: File removed.
3315         * stdio/fclose.c: File removed.
3316         * stdio/fcloseall.c: File removed.
3317         * stdio/feof.c: File removed.
3318         * stdio/ferror.c: File removed.
3319         * stdio/fflush.c: File removed.
3320         * stdio/fgetc.c: File removed.
3321         * stdio/fgetpos.c: File removed.
3322         * stdio/fgets.c: File removed.
3323         * stdio/fileno.c: File removed.
3324         * stdio/fmemopen.c: File removed.
3325         * stdio/fopen.c: File removed.
3326         * stdio/fopncook.c: File removed.
3327         * stdio/fputc.c: File removed.
3328         * stdio/fputs.c: File removed.
3329         * stdio/fread.c: File removed.
3330         * stdio/freopen.c: File removed.
3331         * stdio/fseek.c: File removed.
3332         * stdio/fsetpos.c: File removed.
3333         * stdio/ftell.c: File removed.
3334         * stdio/fwrite.c: File removed.
3335         * stdio/getc.c: File removed.
3336         * stdio/getchar.c: File removed.
3337         * stdio/getdelim.c: File removed.
3338         * stdio/gets.c: File removed.
3339         * stdio/glue.c: File removed.
3340         * stdio/internals.c: File removed.
3341         * stdio/linewrap.c: File removed.
3342         * stdio/linewrap.h: File removed.
3343         * stdio/memstream.c: File removed.
3344         * stdio/newstream.c: File removed.
3345         * stdio/obstream.c: File removed.
3346         * stdio/putc.c: File removed.
3347         * stdio/putchar.c: File removed.
3348         * stdio/puts.c: File removed.
3349         * stdio/rewind.c: File removed.
3350         * stdio/setbuf.c: File removed.
3351         * stdio/setbuffer.c: File removed.
3352         * stdio/setlinebuf.c: File removed.
3353         * stdio/setvbuf.c: File removed.
3354         * stdio/stdio.h: File removed.
3355         * stdio/ungetc.c: File removed.
3356         * stdio/vasprintf.c: File removed.
3357         * stdio/vscanf.c: File removed.
3358         * stdio/vsnprintf.c: File removed.
3359         * stdio/vsprintf.c: File removed.
3360         * stdio/vsscanf.c: File removed.
3361         * sysdeps/generic/defs.c: File removed.
3362         * sysdeps/generic/fdopen.c: File removed.
3363         * sysdeps/generic/pipestream.c: File removed.
3364         * sysdeps/generic/stdio_init.c: File removed.
3365         * sysdeps/generic/sysd-stdio.c: File removed.
3366         * sysdeps/generic/vdprintf.c: File removed.
3367         * sysdeps/mach/hurd/defs.c: File removed.
3368         * sysdeps/mach/hurd/fdopen.c: File removed.
3369         * sysdeps/mach/hurd/pipestream.c: File removed.
3370         * sysdeps/mach/hurd/stdio_init.c: File removed.
3371         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3372         * sysdeps/mach/hurd/vdprintf.c: File removed.
3373         * sysdeps/posix/defs.c: File removed.
3374         * sysdeps/posix/fdopen.c: File removed.
3375         * sysdeps/posix/pipestream.c: File removed.
3376         * sysdeps/posix/stdio_init.c: File removed.
3377         * sysdeps/posix/vdprintf.c: File removed.
3378         * sysdeps/unix/pipestream.c: File removed.
3379         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3380         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3381         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3383 2002-04-29  Roland McGrath  <roland@frob.com>
3385         * include/libc-symbols.h (link_warning): Use `unused' attribute.
3387 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
3389         * sysdeps/generic/tls.h: Describe what must be defined.
3391         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3392         glob_in_dir [PR libc/3385].
3393         * posix/globtest.sh: Add test case.
3395         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3396         //TRANSLIT twice.
3398 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
3400         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3401         _internal symbol handling.
3402         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3404 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3406         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3407         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3409 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
3411         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
3412         not _LIBC and RE_ENABLE_I18N.
3413         (build_range_exp): Implement for not _LIBC.
3414         (build_collating_symbol): Likewise.
3415         (parse_bracket_exp): Unify redundant error handlings.
3416         Don't erase mbcset for non matching list in multibyte envs.
3417         (build_word_op): Add '_' to matching list for \w operator.
3418         * posix/regex_internal.c (re_string_construct): Invoke
3419         build_upper_buffer in case of not RE_ENABLE_I18N.
3420         (re_string_reconstruct): Don't touch cur_state in case of not
3421         RE_ENABLE_I18N.
3422         * posix/regex_internal.h (attribute_hidden): New macro in case of
3423         not _LIBC.
3424         (re_charset_t): Define range_starts/ends in case of not _LIBC.
3425         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
3426         RE_ENABLE_I18N.
3427         (transit_state_mb): Likewise.
3428         (check_node_accept_bytes): Implement the code evaluating range
3429         expression in case of not _LIBC.
3430         (find_collation_sequence_value): Hide in case of not _LIBC.
3432 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
3434         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
3435         i386/semctl.c.
3436         (__old_semctl, __new_semctl): Only use va_arg if the argument will
3437         be used.
3439 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3441         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
3443         * sysdeps/ia64/strncpy.S: Fix recovery code.
3444         Patch by David Mosberger <davidm@hpl.hp.com>.
3446 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3448         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
3449         GLIBC_2.2.6.
3451 2002-04-14  Bruno Haible  <bruno@clisp.org>
3453         * posix/regex.c (re_max_failures): Add back symbol for binary
3454         compatibility.
3456 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
3458         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
3459         of buffer building functions.
3460         * posix/regex_internal.c (re_string_allocate): New function.
3461         (re_string_realloc_buffers): New function.
3462         (re_string_skip_chars): New function.
3463         (re_string_reconstruct): New function.
3464         (re_string_construct): Adapt it to new interface of buffer building
3465         functions.
3466         (re_string_construct_common): Likewise.
3467         (build_wcs_buffer): Likewise.
3468         (build_wcs_upper_buffer): Likewise.
3469         (build_upper_buffer): Likewise.
3470         (re_string_translate_buffer): Likewise.
3471         (re_string_context_at): Adapt it to variable length buffers.
3472         * posix/regex_internal.h (re_string_t): Add new fields to handle
3473         variable length buffers.
3474         (re_match_context_t): Likewise.
3475         * posix/regexec.c (re_search_internal): Adapt it to new interface
3476         of re_string_t and re_match_context_t.
3477         (acquire_init_state_context): Likewise.
3478         (check_matching): Likewise.
3479         (check_halt_state_context): Likewise.
3480         (proceed_next_node): Likewise.
3481         (set_regs): Likewise.
3482         (sift_states_backward): Likewise.
3483         (clean_state_log_if_need): Likewise.
3484         (sift_states_iter_mb): Likewise.
3485         (sift_states_iter_bkref): Likewise.
3486         (add_epsilon_backreference): Likewise.
3487         (transit_state): Likewise.
3488         (transit_state_sb): Likewise.
3489         (transit_state_mb): Likewise.
3490         (transit_state_bkref): Likewise.
3491         (transit_state_bkref_loop): Likewise.
3492         (check_node_accept): Likewise.
3493         (match_ctx_init): Likewise.
3494         (extend_buffers): New function.
3496 2002-04-21  Bruno Haible  <bruno@clisp.org>
3498         * iconvdata/tst-table.sh: For the second check, use the truncated
3499         GB18030 charmap table, like for the first check.
3501 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3503         * elf/dl-load.c (open_verify): Correct __lseek parameters.
3504         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3506 2002-04-23  H.J. Lu  <hjl@gnu.org>
3508         * include/math.h (isfinite): Fix a typo.
3510 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3512         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3513         which is created by the test suite.
3515 2002-04-20  Bruno Haible  <bruno@clisp.org>
3517         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3518         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3520 2002-04-20  Bruno Haible  <bruno@clisp.org>
3522         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3523         to avoid gcc warning.
3525 2002-04-20  Bruno Haible  <bruno@clisp.org>
3527         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3528         of data->__statep->__count.
3530 2002-04-20  Bruno Haible  <bruno@clisp.org>
3532         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3533         tag characters.
3534         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3536 2002-04-24  Roland McGrath  <roland@frob.com>
3538         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3539         use END macro instead of our own .end directive.
3540         Use `callsys' insn mnemonic instead of `call_pal'.
3542         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3544         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3545         macro; we need this for Hurd.
3547         Log entry was missing for 2002/03/24 commit of rev 1.8,
3548         goes with 2002-03-17 changes.
3549         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3550         (sysdep_routines): Append ioperm here.
3551         (sysdep_headers): Append sys/io.h here.
3553 2002-04-23  Roland McGrath  <roland@frob.com>
3555         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3556         * sysdeps/mach/hurd/sendto.c: Likewise.
3557         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3558         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3559         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3561 2002-04-22  Roland McGrath  <roland@frob.com>
3563         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3564         failure from i386_io_perm_* RPCs to ENOSYS.
3566 2002-04-22  Andreas Jaeger  <aj@suse.de>
3568         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3570         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3572         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3573         register instead of destroying %rbx.
3575 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
3577         * string/string.h: Declare strerror_r also for XPG6.
3579 2002-04-19  Roland McGrath  <roland@frob.com>
3581         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3583 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
3585         * Makefile: Add handling of xtests and xcheck targets.
3586         * MakeTAGS: Likewise.
3587         * Makeconfig: Likewise.
3588         * Makerules: Likewise.
3589         * Rules: Likewise.
3590         * manual/Makefile: Likewise.
3591         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3592         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
3594 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
3596         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3597         authnone_private_s.
3598         * sunrpc/auth_none.c: Include bits/libc-lock.h.
3599         Delete #ifdef _RPC_THREAD_SAFE_ block.
3600         (authnone_private): Make a struct, not a pointer to struct.
3601         (authnone_private_guard): New once-control variable.
3602         (authnone_create_once): New function, split out of
3603         authnone_create.  No need to allocate memory.
3604         (authnone_create): Just call authnone_create_once via
3605         __libc_once, then return &authnone_private->no_client.
3606         (authnone_marshal): Access private data via CLIENT argument,
3607         not authnone_private pointer.
3608         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3609         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3610         authnone_private_s.
3612 2002-04-12  H.J. Lu  <hjl@gnu.org>
3614         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3616 2002-04-18  Bruno Haible  <bruno@clisp.org>
3618         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3619         FROM_DIRECTION): Make the FROM direction stateless.
3620         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3621         FROM_DIRECTION): Likewise.
3623 2002-04-15  Bruno Haible  <bruno@clisp.org>
3625         * iconvdata/JISX0213.TXT: New file.
3626         * iconvdata/jisx0213.h: New file.
3627         * iconvdata/jisx0213.c: New file.
3628         * iconvdata/euc-jisx0213.c: New file.
3629         * iconvdata/shift_jisx0213.c: New file.
3630         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3631         * iconvdata/EUC-JISX0213.precomposed: New file.
3632         * iconvdata/SHIFT_JISX0213.precomposed: New file.
3633         * iconvdata/SHIFT_JISX0213.irreversible: New file.
3634         * iconvdata/tst-table-to.c (main): Make it work for encodings for
3635         which the "to" direction is stateful.
3636         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3637         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3638         SHIFT_JISX0213.
3639         (libJISX0213-routines): New variable.
3640         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3641         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3642         (LDFLAGS-libJISX0213.so): New variable.
3643         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3644         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3645         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3647 2002-04-15  Bruno Haible  <bruno@clisp.org>
3649         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3650         uint32_t.  Update to Unicode 3.2.
3651         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3652         (BODY for TO_LOOP): Handle the ASCII range specially.
3653         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3654         * iconvdata/testdata/BIG5HKSCS: Remove a character.
3655         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3657 2002-04-15  Bruno Haible  <bruno@clisp.org>
3659         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3660         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3662 2002-04-15  Bruno Haible  <bruno@clisp.org>
3664         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3665         (ucs4_to_cns11643): Update.
3666         * iconvdata/cns11643.c: Update to Unicode 3.2.
3667         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3668         __cns11643_from_ucs4p2_tab): Regenerated.
3669         (__cns11643_from_ucs4p2c_tab): New array.
3670         * iconvdata/cvs11643l1.c: Update comments.
3671         * iconvdata/EUC-TW.irreversible: Remove two entries.
3673 2002-04-15  Bruno Haible  <bruno@clisp.org>
3675         * locale/C-translit.h.in: Update to Unicode 3.2.
3676         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3677         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3679 2002-04-15  Bruno Haible  <bruno@clisp.org>
3681         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3682         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3684 2002-04-15  Bruno Haible  <bruno@clisp.org>
3686         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3687         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3688         always one byte, not 0 bytes in some cases and 2 bytes in others.
3690         * iconvdata/tst-table-from.c (main): Correct the usage message.
3692 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3694         * posix/regcomp.c (parse_expression): Fix incorrect error code.
3695         (parse_dup_op): Fix error handling like "a{}".
3696         (parse_bracket_exp): Add error handling.
3697         (fetch_number): Add error handling for "a{<very_large_number>}".
3699 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3701         * posix/regcomp.c (parse_bracket_symbol): Add error handling
3702         in case that the symbol name is too long.
3703         (build_charclass): Handle [:lower:]/[:uppper:] correctly
3704         in case of REG_ICASE.
3706 2002-04-19  Andreas Jaeger  <aj@suse.de>
3708         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3709         <hartvige@mips.com>.
3711 2002-04-15  H.J. Lu  <hjl@gnu.org>
3713         * include/math.h (__finitel_internal): Declare only if
3714         __NO_LONG_DOUBLE_MATH is not defined.
3715         (__isinfl_internal): Likewise.
3716         (__isnanl_internal): Likewise.
3718         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3719         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3720         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3721         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3722         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3723         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3724         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3726         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3727         __fcntl_internal.
3729         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3730         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3732 2002-04-15  Bruno Haible  <bruno@clisp.org>
3734         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3735         (BODY for TO_LOOP): Likewise.
3736         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3737         * iconvdata/tst-table.sh: Add support for encodings which contain
3738         precomposed Unicode characters, known to the iconv converter in both
3739         directions but not listed in the charmap.
3740         * iconvdata/IBM856.irreversible: New file.
3741         * iconvdata/IBM922.irreversible: New file.
3742         * iconvdata/IBM1132.irreversible: New file.
3743         * iconvdata/IBM1133.irreversible: New file.
3744         * iconvdata/IBM1160.irreversible: New file.
3745         * iconvdata/IBM1161.irreversible: New file.
3746         * iconvdata/IBM1163.irreversible: New file.
3747         * iconvdata/IBM1164.irreversible: New file.
3748         * iconvdata/ARMSCII-8.irreversible: New file.
3749         * iconvdata/TCVN5712-1.precomposed: New file.
3750         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
3751         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
3752         ARMSCII-8, TCVN5712-1.
3753         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
3754         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
3755         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
3756         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
3758 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
3760         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
3761         for EVENING69.  Include offsets in TZ environment variable.
3763 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
3765         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
3766         avoid compiler warnings.
3768         * locale/programs/localedef.c (main): Always call
3769         construct_output_path.
3771         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
3773         * locale/programs/locfile.c (to_archive): New variable.  To collect
3774         data which has to be added to the locale archive.
3775         (write_all_categories): Take new third parameter with locale name.
3776         Unless no_archive flag set add new locale data to the archive
3777         (write_locale_data): Unless no-archive flag set store generated data
3778         in to_archive data structure instead of generation output file.
3779         Add new parameter with locale category index.
3780         * locale/programs/locfile.h: Add new parameters in declaractions of
3781         write_all_categories and write_locale_data.
3782         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
3783         --add-to-archive, and --delete-from-archive options.  Pass extra
3784         parameter to write_all_categories.
3785         * locale/programs/localedef.h: Add prototypes for functions in
3786         locarchive.c.
3787         * locale/locarchive.h: New file.
3788         * locale/programs/locarchive.c: New file.
3789         * locale/Makefile (distribute): Add programs/locarchive.c and
3790         locarchive.h.
3791         (localedef-modules): Add md5 and locarchive.
3792         Add vpath to crypt subdir for md5.c.
3794         * locale/programs/ld-address.c: Pass locale category ID as new second
3795         parameter to write_locale_data.
3796         * locale/programs/ld-collate.c: Likewise.
3797         * locale/programs/ld-ctype.c: Likewise.
3798         * locale/programs/ld-identification.c: Likewise.
3799         * locale/programs/ld-measurement.c: Likewise.
3800         * locale/programs/ld-messages.c: Likewise.
3801         * locale/programs/ld-monetary.c: Likewise.
3802         * locale/programs/ld-name.c: Likewise.
3803         * locale/programs/ld-numeric.c: Likewise.
3804         * locale/programs/ld-paper.c: Likewise.
3805         * locale/programs/ld-telephone.c: Likewise.
3806         * locale/programs/ld-time.c: Likewise.
3808         * locale/simple-hash.c: Move compute_hashval function from here...
3809         * locale/hashval.h: ...to here.  New file.
3810         * locale/simple-hash.h: Add prototype for compute_hashval.
3812         * include/libintl.h: Minor cleanups.
3814 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
3816         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
3818 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
3820         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
3822 2002-04-14  Bruno Haible  <bruno@clisp.org>
3824         * locale/programs/charmap.c (charmap_read): Don't access result if
3825         result == NULL.
3827 2002-02-17  Andreas Schwab  <schwab@suse.de>
3829         * elf/reldep7.c: New file.
3830         * elf/reldep7mod1.c: New file.
3831         * elf/reldep7mod2.c: New file.
3832         * elf/Makefile: Add rules to build and run reldep7.
3834 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
3836         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
3837         the end of the function.  Pass original flags to recursive call if
3838         add_dependency failed.
3839         (_dl_lookup_versioned_symbol): Likewise.
3841 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
3843         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
3844         early, but check whether it overflowed afterwards.
3845         * time/tst-mktime.c (main): Add new tests.
3847 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
3849         * debug/xtrace.sh: Fix program name in help message.
3850         Patch by Roger Luethi <rl@hellgate.ch>.
3852         * include/sys/stat.h: Add prototypes for __lxstat_internal and
3853         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
3854         NOT_IN_libc.
3855         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
3856         * sysdeps/mach/hurd/lxstat.c: Likewise.
3857         * sysdeps/unix/common/lxstat.c: Likewise.
3858         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
3859         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3860         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3861         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3862         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3863         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
3864         * sysdeps/mach/hurd/lxstat64.c: Likewise.
3865         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
3866         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3868         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
3869         prototypes.  Add __mbrlen and __mbrtowc macros.
3870         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
3871         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
3873         * include/unistd.h: Add prototype for __write_internal and add
3874         __libc_write macro is SHARED.
3875         * sysdeps/generic/write.c: Use INTDEF for __write.
3876         * sysdeps/mach/hurd/write.c: Likewise.
3877         * sysdeps/unix/sysv/aix/write.c: Likewise.
3878         * sysdeps/unix/syscalls.list: Add __libc_write alias.
3880         * assert/assert.c: Replace STR_N_SIZE with something usable in
3881         macro arguments.
3882         * assert/assert-perr.c: Likewise.
3884         * include/sys/socket.h: Declare __libc_sa_len_internal and define
3885         SA_LEN macro to use it if not NOT_IN_libc.
3886         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
3888         * include/fcntl.h: Declare __open_internal and define __open and
3889         __libc_open macros if not NOT_IN_libc.
3890         * sysdeps/generic/open.c: Use INTDEF for __open.
3891         * sysdeps/mach/hurd/open.c: Likewise.
3892         * sysdeps/unix/sysv/aix/open.c: Likewise.
3893         * sysdeps/unix/syscalls.list: Add __open_internal alias.
3895         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
3896         has correct number.
3898         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
3899         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
3900         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3901         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3903         * include/wctype.h: Declare __iswalpha_l_internal,
3904         __iswdigit_l_internal, __iswspace_l_internal,
3905         __iswxdigit_l_internal, and __iswctype_internal.  Define
3906         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
3907         __iswxdigit_l macros if not NOT_IN_libc.
3908         * wctype/iswctype.c: Use INTDEF for __iswctype.
3909         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
3911         * include/math.h: Declare __isinf_internal, __isinfl_internal,
3912         __isnan_internal, and __isnanl_internal.
3913         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
3914         __isnan, and __isnanl.
3915         * stdio-common/printf_size.c: Likewise.
3916         * sysdeps/generic/printf_fphex.c: Likewise.
3917         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
3918         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3919         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
3920         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
3921         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3922         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3923         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3924         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3925         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3926         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3927         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3928         * sysdeps/m68k/s_isinfl.c: Likewise.
3929         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3930         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3932         * include/sys/time.h: Declare __gettimeofday_internal and define
3933         __gettimeofday macro if not NOT_IN_libc.
3934         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
3935         * sysdeps/mach/gettimeofday.c: Likewise.
3936         * sysdeps/posix/gettimeofday.c: Likewise.
3937         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
3938         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3939         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3940         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
3942         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
3943         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
3944         Remove __lstat and __fstat inline functions.
3945         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
3946         * sysdeps/mach/hurd/fxstat.c: Likewise.
3947         * sysdeps/unix/fxstat.c: Likewise.
3948         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
3949         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
3950         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3951         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3952         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3953         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
3954         * sysdeps/mach/hurd/fxstat64.c: Likewise.
3955         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
3956         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3958         * include/unistd.h: Declare __getpid_internal and define
3959         __getpid macro if not NOT_IN_libc.
3960         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
3961         * sysdeps/generic/getpid.c: Likewise.
3962         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
3963         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
3965         * include/unistd.h: Declare __getpgid_internal and define
3966         __getpgid macro if not NOT_IN_libc.
3967         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
3968         * sysdeps/mach/hurd/getpgid.c: Likewise.
3969         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
3970         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3971         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3972         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
3974         * include/unistd.h: Declare __getpagesize_internal and define
3975         __getpagesize macro if not NOT_IN_libc.
3976         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
3977         __getpagesize.
3978         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
3979         * sysdeps/mach/getpagesize.c: Likewise.
3980         * sysdeps/posix/getpagesize.c: Likewise.
3981         * sysdeps/unix/getpagesize.c: Likewise.
3982         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3983         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3984         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
3985         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
3987 2002-04-13  Andreas Jaeger  <aj@suse.de>
3989         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
3990         as clobber to reduce register pressure.
3991         (__strpbrk_cg): Likewise.
3992         (__mempcpy_by4): Likewise.
3993         (__strstr_cg): Likewise.
3994         Add prototype for __memrchr.
3996 2002-04-13  Andreas Schwab  <schwab@suse.de>
3998         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
3999         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4000         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4002 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
4004         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
4005         check whether the caller prefers getting the most recent version of
4006         a symbol of the earliest version.
4007         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
4008         _dl_do_lookup to also take the new parameter and pass it on.
4009         Change 'explicit' parameter of _dl_lookup_symbol and
4010         _dl_lookup_versioned_symbol to flags.  Adjust tests.
4011         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4012         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4013         _dl_lookup_versioned_symbol.
4014         * elf/dl-reloc.c: Likewise.
4015         * elf/dl-runtime.c: Likewise.
4016         * elf/dl-sym.c: Likewise.
4017         * sysdeps/mips/dl-machine.h: Likewise.
4019 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4021         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4022         in a token.
4023         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4025 2002-04-10  Andreas Jaeger  <aj@suse.de>
4027         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4029         * include/argz.h: Remove extra char from last patch.
4031 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
4033         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4034         * sysdeps/unix/sysv/aix/chown.c: Likewise.
4035         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4036         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4037         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4038         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4039         __chown_internal.
4040         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4042         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4043         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4044         * intl/ngettext.c: Likewise.
4046         * include/sys/socket.h: Declare __connect_internal and define
4047         __connect macro if not NOT_IN_libc.
4048         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4049         * sysdeps/unix/sysv/aix/connect.c: Likewise.
4050         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4052         * include/unistd.h: Declare __close_internal and define __close macro
4053         if not NOT_IN_libc.
4054         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4055         WJUMP3): Add extra parenthesis to avoid expanding element names with
4056         macors like __close.
4057         * sysdeps/unix/syscalls.list: Add __close_internal alias.
4059         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4060         if not NOT_IN_libc.
4061         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4062         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4063         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4065         * include/unistd.h: Declare __fork_internal and define __fork macro
4066         if not NOT_IN_libc.
4067         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4068         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4069         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4071         * include/stdio_ext.h: Declare __fsetlocking_internal and define
4072         __fsetlocking macro to use it if not NOT_IN_libc.
4073         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4075         * libio/__fbufsize.c: Correct copyright.
4076         * libio/__flbf.c: Likewise.
4077         * libio/__fpending.c: Likewise.
4078         * libio/__fpurge.c: Likewise.
4079         * libio/__freadable.c: Likewise.
4080         * libio/__freading.c: Likewise.
4081         * libio/__fsetlocking.c: Likewise.
4082         * libio/__fwritable.c: Likewise.
4083         * libio/__fwriting.c: Likewise.
4085         * include/stdio.h: Declare __asprintf_internal and define __asprintf
4086         macro to use it if not NOT_IN_libc.
4087         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4089         * include/mntent.h: Declare __setmntent_internal,
4090         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
4091         __getmntent_r, and __endmntent macros to use these functions if not
4092         NOT_IN_libc.
4093         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4094         __endmntent.
4096         * include/math.h: Declare __finite_internal, __finitef_internal, and
4097         __finitel_internal.  Redefine isfinite macro if in libc or libm using
4098         these functions.
4099         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4100         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4101         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4102         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4103         * sysdeps/i386/fpu/s_finitef.S: Likewise.
4104         * sysdeps/i386/fpu/s_finitel.S: Likewise.
4105         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4106         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4107         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4108         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4110         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
4111         to use this function if not NOT_IN_libc.
4112         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4113         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4114         * sysdeps/mach/hurd/fcntl.c: Likewise.
4115         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4116         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4118         * include/argz.h: Declare __argz_count_internal and
4119         __argz_stringify_internal.
4120         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4121         __argz_stringify.
4122         * string/argz-count.c: Use INTDEF for __argz_count.
4123         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4125         * include/stdlib.h: Declare __cxa_atexit_internal and define
4126         __cxa_atexit macro if not NOT_IN_libc.
4127         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4128         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4130         * assert/assert.c: Use INTDEF for __assert_fail.
4131         * assert/__assert.c: Use INTUSE for call to __assert_fail.
4132         * include/assert.h: Declare __assert_fail_internal.
4134         * extra-lib.mk: Mark assignment to lib with override.
4136 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4138         * Makerules: Use cppflags-iterator.mk to add defines for all test
4139         source files.
4141 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4143         * elf/elf.h: Define R_SH_TLS_xxx macros.
4144         * elf/rtld.c: Remove an extra parenthesis.
4145         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4146         TLS_GD macros.
4147         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4148         * sysdeps/sh/dl-lookupcfg.h: New file.
4149         * sysdeps/sh/dl-tls.h: New file.
4150         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4151         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4152         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4153         R_SH_TLS_TPOFF32 relocations.
4155 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4157         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4158         of NOT_IN_LIBC.
4159         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4160         * include/stdlib.h: Likewise.
4162 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
4164         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4165         instead of _RTLD_LOCAL.
4166         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4167         * include/unistd.h: Likewise.
4168         * sysdeps/generic/ldsodefs.h: Likewise.
4170         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4171         if in libc or ld.so.
4173 2002-04-08  Andreas Jaeger  <aj@suse.de>
4175         * elf/cache.c (print_entry): Support x86-64.
4177 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4179         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4180         with one accessing the locale data structures directly.
4181         * stdio-common/printf-prs.c: Include localeinfo.h for new
4182         MB_CUR_MAX definition.
4184         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4185         is the name of the source file without extension.
4186         * Makefile (distribute): Add cppflags-iterator.mk.
4187         * cppflags-iterator.mk: New file.
4188         * extra-lib.mk: For the sources of the library run
4189         cppflags-iterator.mk.
4191         * include/libintl.h: Declare __dcgettext_internal and
4192         _libc_intl_domainname_internal.  Define __dcgettext using these
4193         two symbols if used in libc itself.
4194         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4195         _libc_intl_domainname_internal.
4196         * argp/argp-parse.c: Likewise.
4197         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4198         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4199         * intl/gettext.c: Likewise.
4200         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4201         alias.
4202         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4203         __dcgettext.
4204         * posix/regex_internal.c (gettext): Likewise.
4206 2002-04-08  Andreas Jaeger  <aj@suse.de>
4208         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4210         * sysdeps/x86_64/fpu/s_llrint.S: New.
4211         * sysdeps/x86_64/fpu/s_llrintf.S: New.
4212         * sysdeps/x86_64/fpu/s_llrintl.S: New.
4213         * sysdeps/x86_64/fpu/s_lrint.S: New.
4214         * sysdeps/x86_64/fpu/s_lrintf.S: New
4215         * sysdeps/x86_64/fpu/s_lrintl.S: New.
4217 2002-04-08  Roland McGrath  <roland@frob.com>
4219         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4220         widening __hurd_fail value.
4222 2002-04-07  Roland McGrath  <roland@frob.com>
4224         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4225         <mach/machine/alpha_instruction.h>.
4226         (_hurd_setup_sighandler): Take proper arguments for current decls.
4227         Update code to use _hurdsig_catch_fault.
4228         Use `callsys' instruction instead of `call_pal'.
4229         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4231         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4232         (ALIGN, at, AT, fp): New macros.
4234 2002-04-06  Roland McGrath  <roland@frob.com>
4236         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4238         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4239         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4241         * sysdeps/mach/hurd/bind.c: Use prototype definition.
4242         * sysdeps/mach/hurd/connect.c: Likewise.
4243         * sysdeps/mach/hurd/getsockopt.c: Likewise.
4244         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4246         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4247         __msg_sig_post RPC.
4249         * hurd/catch-exc.c: Use integer_t instead of int.
4250         * hurd/hurdfault.c: Likewise.
4252         * sysdeps/mach/hurd/alpha/exc2signal.c
4253         (_hurd_exception2signal): Rewritten.
4254         * sysdeps/mach/hurd/alpha/longjmp-ts.c
4255         (_hurd_longjmp_thread_state): Rewritten.
4257 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
4259         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4260         DB_LOOKUP_FCT prototype.
4261         * nss/getXXent_r.c: Likewise.
4262         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4263         * inet/getaliasname_r.c: Likewise.
4264         * inet/getnetbyad_r.c: Likewise.
4265         * inet/getnetbynm_r.c: Likewise.
4266         * inet/getnetent_r.c: Likewise.
4267         * inet/getproto_r.c: Likewise.
4268         * inet/getprtent_r.c: Likewise.
4269         * inet/getprtname_r.c: Likewise.
4270         * inet/getrpcbyname_r.c: Likewise.
4271         * inet/getrpcbynumber_r.c: Likewise.
4272         * inet/getrpcent_r.c: Likewise.
4273         * inet/getservent_r.c: Likewise.
4274         * inet/getsrvbynm_r.c: Likewise.
4275         * inet/getsrvbypt_r.c: Likewise.
4276         * shadow/getspent_r.c: Likewise.
4277         * shadow/getspnam_r.c: Likewise.
4279         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4281         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4282         Use i686-friendly PIC code.
4283         * sysdeps/i386/elf/setjmp.S: Likewise.
4285         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4287         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4288         list.
4289         * elf/Versions: Remove it here.
4291 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
4293         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4294         direction.  Reported by H . J . Lu <hjl@lucon.org>.
4296 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4298         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4299         test just before the test runs.
4300         * intl/tst-translit.sh: Likewise.
4301         * intl/tst-codeset.sh: Likewise.
4303         * timezone/zic.c: Update from tzcode2002c.
4304         * timezone/asia: Update from tzdata2002c.
4305         * timezone/backward: Likewise.
4306         * timezone/europe: Likewise.
4307         * timezone/northamerica: Likewise.
4308         * timezone/northamerica: Likewise.
4309         * timezone/northamerica: Likewise.
4310         * timezone/southamerica: Likewise.
4311         * timezone/zone.tab: Likewise.
4313 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
4315         * sysdeps/generic/brk.c (__curbrk): Declare.
4316         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4317         * sysdeps/generic/dl-sbrk.c: Likewise.
4318         * sysdeps/unix/arm/dl-brk.S: New file.
4319         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4320         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4321         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4322         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4323         * sysdeps/unix/i386/dl-brk.S: New file.
4324         * sysdeps/unix/mips/dl-brk.S: New file.
4325         * sysdeps/unix/sparc/dl-brk.S: New file.
4326         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4327         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4328         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4329         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4331 2002-04-03  Andreas Schwab  <schwab@suse.de>
4333         * Makefile (headers): Add gnu/lib-names.h here instead of
4334         install-others.
4335         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4336         installation rule.
4337         (install-headers): Add dependency on install-headers-nosubdir.
4338         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4339         instead of install-others.
4340         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4341         installation rule.
4343 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4345         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4346         Reported by Sam Roberts <sroberts@uniserve.com>.
4348 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
4350         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4351         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4352         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4353         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4355 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
4357         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4358         (RTLD_START): Ditto.
4359         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4360         dependency violation.
4362 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4364         * time/mktime.c (__mktime_internal): Move check for year < 70 below
4365         all variable declarations.
4367 2002-04-04  Andreas Schwab  <schwab@suse.de>
4369         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4371 2002-04-04  Andreas Jaeger  <aj@suse.de>
4373         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4374         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4376         * sysdeps/x86_64/fpu/s_fabs.c: New file.
4377         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4378         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4380         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4382         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4384         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4385         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4387         * configure.in: Handle all mips entries the same.
4389         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4390         * sysdeps/mips/mips3/*: Likewise.
4391         * sysdeps/mips/p40/bits/endian.h: Likewise.
4393 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
4395         * misc/dirname.c (dirname): Ignore trailing slashes at end of
4396         non-null result [PR libc/2600].
4398         * misc/tst-dirname.c: Add more tests.
4400 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
4402         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
4403         define a code_set_name provide one based on the filename.
4405         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
4407 2001-12-28  Andreas Jaeger  <aj@suse.de>
4409         * time/mktime.c (__mktime_internal): Check for year < 70
4410         [PR libc/2738].
4412 2002-04-03  Andreas Jaeger  <aj@suse.de>
4414         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
4415         shmat.
4416         Reported by Andi Kleen <ak@suse.de>.
4418 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
4420         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
4421         * sysdeps/generic/w_lgammaf.c: Likewise.
4422         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
4424         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
4425         Adjust for new output format of the backtrace functions.
4427         * misc/syslog.c (vsyslog): Only use cleanup handler if
4428         _LIBC_REENTRANT is defined [PR libc/2924].
4430         * libio/Makefile (tests): Add bug-ungetwc2.
4431         * libio/bug-ungetwc2.c: New file.
4433         * manual/install.texi: Typographical and grammatical cleanup.
4434         Patch by Dennis Grace <dgrace@us.ibm.com>.
4436         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
4437         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
4439         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
4440         always "&".  Adjust callers.
4441         Add "_" prefix to several generated definitions.
4442         Patch by paul@serice.net [PR libc/3158].
4444 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4446         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
4447         size of _dl_arm_cap_flags.
4448         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
4450         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
4451         Define as 8.
4453 2002-03-22  H.J. Lu  <hjl@gnu.org>
4455         * scripts/firstversions.awk: Check the first version.
4457 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4459         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
4460         dependencies must be stable to work correctly.
4461         Reported by martin.lubich@datacon.at.
4463         * libio/bug-ungetwc1.c: New file.
4464         * libio/Makefile (tests): Add bug-ungetwc1.
4466         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
4467         if stream was last used for writing.
4469         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
4470         number [PR libc/3111].
4472         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
4473         to ...
4474         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
4476 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
4478         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
4479         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
4480         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
4481         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
4482         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
4484 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
4486         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
4487         dynamic tags.
4489 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4491         * sysdeps/i386/fpu/s_fabs.S: New file.
4492         * sysdeps/i386/fpu/s_fabsf.S: New file.
4493         * sysdeps/i386/fpu/s_fabsl.S: New file.
4494         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
4495         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
4496         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
4498 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4500         * rt/tst-shm.c (do_test): Add one more test for size of shared
4501         memory object.
4503 2002-03-29  Wolfram Gloger  <wg@malloc.de>
4505         * malloc/malloc.c: Add short description and prototypes for
4506         malloc_get_state, malloc_set_state and posix_memalign, for
4507         consistency and to avoid warnings with -Wstrict-prototypes.
4508         Reported by Andreas Jaeger <aj@suse.de>.
4510 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4512         * po/gl.po: Update from translation team.
4514 2002-03-31  Roland McGrath  <roland@frob.com>
4516         * hurd/hurdselect.c (_hurd_select): Fix
4517         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
4518         Use a union rather than casts to compare mach_msg_type_t as int.
4520 2002-03-25  Roland McGrath  <roland@frob.com>
4522         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
4523         check off the end of NAME when it's shorter than 2 chars.
4524         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
4526 2002-03-17  Roland McGrath  <roland@frob.com>
4528         * sysdeps/mach/hurd/i386/sys/io.h: New file.
4529         * sysdeps/mach/hurd/i386/ioperm.c: New file.
4530         * sysdeps/mach/hurd/i386/Dist: Add them.
4531         * sysdeps/mach/hurd/i386/Versions
4532         (libc: GLIBC_2.2.6): New set, add ioperm.
4533         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
4534         (mach_interface_list): Check for mach_i386.defs.
4535         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
4536         * sysdeps/mach/configure: Regenerated.
4538 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
4540         * po/fr.po: Update from translation team.
4542 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4544         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
4545         getpriority from syscalls list.
4547 2002-03-28  Andreas Jaeger  <aj@suse.de>
4549         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
4550         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
4551         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
4552         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
4554 2002-03-27  Andreas Jaeger  <aj@suse.de>
4556         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4557         sigcontext): Follow further kernel change.
4559         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
4560         kernel change.
4562         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
4563         Change for struct sigcontext change.
4565         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4566         Follow changes in struct sigcontext.
4568         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
4569         sysycall, use wrapper instead.
4571 2002-03-26  Andreas Jaeger  <aj@suse.de>
4573         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
4574         read and write accesses as detailed as possible.
4575         (__memcpy_by2): Likewise.
4576         (__memcpy_g): Likewise.
4577         (memmove): Likewise.
4578         (memcmp): Likewise.
4579         (__memset_ccn_by4): Likewise.
4580         (__memset_ccn_by2): Likewise.
4581         (__memset_gcn_by4): Likewise.
4582         (__memset_gcn_by2): Likewise.
4583         (memchr): Likewise.
4584         (__memrchr): Likewise.
4585         (rawmemchr): Likewise.
4586         (__strlen_g): Likewise.
4587         (__strcpy_g): Likewise.
4588         (__mempcpy_by4): Likewise.
4589         (__mempcpy_by2): Likewise.
4590         (__mempcpy_byn): Likewise.
4591         (__stpcpy_g): Likewise.
4592         (__strncpy_by4): Likewise.
4593         (__strncpy_by2): Likewise.
4594         (__strncpy_byn): Likewise.
4595         (__strncpy_gg): Likewise.
4596         (__strcat_c): Likewise.
4597         (__strcat_g): Likewise.
4598         (__strncat_g): Likewise.
4599         (__strcmp_gg): Likewise.
4600         (__strncmp_g): Likewise.
4601         (__strchr_c): Likewise.
4602         (__strchr_g): Likewise.
4603         (__strchrnul_c): Likewise.
4604         (__strchrnul_g): Likewise.
4605         (__strrchr_c): Likewise.
4606         (__strrchr_g): Likewise.
4607         (__strrchr_c): Likewise.
4608         (__strrchr_g): Likewise.
4609         (__strcspn_c1): Likewise.
4610         (__strcspn_cg): Likewise.
4611         (__strcspn_g): Likewise.
4612         (__strcspn_g): Likewise.
4613         (__strspn_c1): Likewise.
4614         (__strspn_cg): Likewise.
4615         (__strspn_g): Likewise.
4616         (__strspn_g): Likewise.
4617         (__strpbrk_cg): Likewise.
4618         (__strpbrk_g): Likewise.
4619         (__strstr_cg): Likewise.
4620         (__strstr_g): Likewise.
4622         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
4623         Michal Ludvig <mludvig@suse.cz>.
4625         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
4626         compatibilty, adjust for kernel changes.
4628         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4629         sigcontext): Adjust for kernel changes.
4631 2002-03-25  Andreas Jaeger  <aj@suse.de>
4633         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
4634         little endian.
4635         Reported by Artur Zaprzala <zybi@talex.com.pl>.
4637 2002-03-24  Andreas Jaeger  <aj@suse.de>
4639         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
4641         * stdio-common/tst-fdopen.c (main): Remove unused variable.
4643         * iconv/tst-iconv3.c (main): Use correct printf strings.
4645 2002-03-18  Roland McGrath  <roland@frob.com>
4647         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
4648         (CMGROUP_MAX): New macro.
4650 2002-03-23  Roland McGrath  <roland@frob.com>
4652         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
4653         * sysdeps/posix/shm_unlink.c: Likewise.
4655 2002-03-22  Roland McGrath  <roland@frob.com>
4657         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
4658         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
4659         under --enable-libio.
4660         * sysdeps/mach/hurd/configure: Regenerated.
4662 2002-03-23  Roland McGrath  <roland@frob.com>
4664         * sysdeps/mach/hurd/i386/Makefile
4665         (sysdep_routines, shared-only-routines): Don't add framestate,
4666         reverting 2001-10-02 change.
4667         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4668         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4669         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4670         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4671         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4672         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4673         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4674         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4675         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
4676         Do it here instead, only if [$(unwind-find-fde) = yes].
4678 2002-03-23  Andreas Jaeger  <aj@suse.de>
4680         * signal/signal.h: Fix typo. Patch by Steve Kemp
4681         <skx@tardis.ed.ac.uk>.
4683 2002-03-22  Andreas Jaeger  <aj@suse.de>
4685         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
4686         getresuid.
4688         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4689         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
4690         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4691         user_fpregs_struct): Rename fwd.
4693         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4694         Follow sigcontext changes.
4696 2002-03-22  Andreas Jaeger  <aj@suse.de>
4698         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
4699         changes for NaNs on MIPS.
4700         Patch by Hartvig Ekner <hartvige@mips.com>.
4702 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
4704         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
4705         Use realloc if too large.
4706         (addgrbyid): Likewise.
4707         * nscd/hstcache.c (addhstbyname): Likewise.
4708         (addhstbyaddr): Likewise.
4709         (addhstbynamev6): Likewise.
4710         (addhstbyaddrv6): Likewise.
4711         * nscd/pwdcache.c (addpwbyname): Likewise.
4712         (addpwbyuid): Likewise.
4714 2002-03-21  Andreas Jaeger  <aj@suse.de>
4716         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4717         _fpstate): Add separate struct for x86-64.
4719         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4720         user_fpregs_struct): Change member names to follow kernel.
4722 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
4724         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
4725         Correctly close the UDP connection right away [PR libc/3120].
4727 2002-03-20  Andreas Jaeger  <aj@suse.de>
4729         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4730         user_fpregs_struct): Fix for changed kernel struct.
4731         (struct user_regs_struct): Likewise.
4732         (struct user): Likewise.
4733         Add 32-bit x86 compatibility.
4735         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
4737 2002-03-19  Andreas Jaeger  <aj@suse.de>
4739         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
4741 2002-03-18  Andreas Jaeger  <aj@suse.de>
4743         * iconvdata/Makefile: Only run tests when shared libs are
4744         available.
4746 2002-03-17  Andreas Jaeger  <aj@suse.de>
4748         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
4750         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
4752         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
4753         bits.
4755         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
4756         (CAUSE_SHIFT): New.
4757         Patch by Hartvig Ekner <hartvige@mips.com>.
4759         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
4760         * sysdeps/generic/unwind-pe.h: Likewise.
4762         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
4763         type to _IO_setb.
4765         * libio/stdio.c (AL2): Define variant when visibility attribute is
4766         not supported.
4768         * include/libc-symbols.h (_INTVARDEF): Define variant when
4769         visibility attribute is not supported.
4771 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
4773         * po/fr.po: Update from translation team.
4775 2002-02-25  Bruno Haible  <bruno@clisp.org>
4777         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
4779 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
4781         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
4782         buffers if _IO_file_attach failed.
4784         * libio/fileops.c (_IO_file_open): Close file descriptor if
4785         _IO_SEEKOFF call failed.
4787 2002-03-15  H.J. Lu  <hjl@gnu.org>
4788             Ulrich Drepper  <drepper@redhat.com>
4790         * configure.in: Check for availability of
4791         init_array/fini_array/preinit_array handling in binutils.
4792         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
4793         * config.make.in (have-initfini-array): New variable.
4795 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
4797         * stdio-common/tst-printf.c (main): Comment out one test which
4798         checked the compiler's ability to fold floating-point constants
4799         but not really printf.
4800         (rfg3): Make s const.
4801         * stdio-common/tst-printf.sh: Adjust for removed test.
4803         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
4804         internal function.  Adjust for internal_function calling convention.
4805         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
4806         as internal_function.
4808         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
4809         hidden.
4811         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
4812         declaration and definition.
4813         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
4814         declaration.
4815         * nss/getXXent_r.c: Likewise.
4816         * nss/nsswitch.h (db_lookup_function): Add internal_function to
4817         definition.
4819         * include/time.h: Declare __localtime_r as hidden.
4821         * include/aliases.h: Declare __getaliasent_r as hidden.
4822         * include/grp.h: Declare __getgrent_r as hidden.
4823         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
4824         __getservent_r, and __getprotoent_r as hidden.
4825         * include/pwd.h: Declare __getpwent_r as hidden.
4826         * include/shadow.h: Declare __getspent_r as hidden.
4827         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
4829         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
4830         and __gconv_transliterate as hidden.
4831         Add internal_function to __gconv_get_path declaration.
4832         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
4833         definition.  Add attribute_hidden to __gconv_read_conf definition.
4835 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
4837         * elf/rtld.c: Declare _environ as hidden.
4838         * sysdeps/generic/dl-environ.c: Likewise.
4839         * sysdeps/generic/dl-sysdep.c: Likewise.
4841         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
4842         _dl_mcount_internal as hidden.
4844         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
4845         * sysdeps/generic/dl-brk.c: New file.
4846         * sysdeps/generic/dl-sbrk.c: New file.
4847         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
4848         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
4850         * elf/dl-minimal.c (malloc): Declare _end as hidden.
4851         (__errno_location): New function.  Declare errno as hidden.
4852         * elf/rtld.c (_dl_argc): Define as hidden.
4853         (_dl_skip_args): Define as hidden.
4854         (_begin, _end): Declare as hidden.
4855         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
4856         * sysdeps/generic/entry.h (_start): Declare as hidden.
4857         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
4858         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
4859         _dl_runtime_resolve and _dl_runtime_profile as hidden.
4860         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
4862 2002-03-14  Roland McGrath  <roland@frob.com>
4864         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
4866         * Makeconfig (%.v.i, %.v): New implicit rules.
4867         (preprocess-versions): Variable removed.
4868         ($(common-objpfx)shlib-versions.v.i): New target giving just the
4869         shlib-versions input files as dependencies.
4870         ($(common-objpfx)soversions.i): Depend on that instead of the input
4871         files.  Use it as input instead of using a pipeline.
4872         (postclean-generated): Append soversions.i, shlib-versions.v, and
4873         shlib-versions.v.i here.
4874         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
4875         the Versions.def input files as dependencies.
4876         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
4877         ($(common-objpfx)Versions.all): Depend on that instead of the input
4878         files.  Use it as input instead of using a pipeline.
4879         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
4880         (postclean-generated): Append those .v and .v.i files here.
4882 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
4884         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
4885         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
4886         Remove.
4888 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
4890         * sysdeps/generic/mp_clz_tab.c: New file.
4891         * sysdeps/i386/mp_clz_tab.c: New file.
4892         * sysdeps/hppa/mp_clz_tab.c: New file.
4893         * sysdeps/powerpc/mp_clz_tab.c: New file.
4894         * stdlib/Makefile (aux): Revert last patch.
4895         * math/Makefile (gmp-objs): Likewise.
4897 2002-03-13  Paul Eggert  <eggert@twinsun.com>
4899         * time/strftime.c: Comment fixes for references to obsolescent
4900         standards, In most cases the simplest fix is to remove the
4901         confusing comments.  Cross-referencing all the standards properly
4902         is a bit of a pain, and it should be enough to put that info in
4903         the documentation as I did in my recent time.texi patch.
4905 2002-03-13  Paul Eggert  <eggert@twinsun.com>
4907         * manual/time.texi (Formatting Calendar Time):
4908         ISO C99 also specifies the E and O modifiers.
4909         %P is a GNU extension, and is not in ISO C99.
4910         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
4911         %T is also in ISO C99.
4912         The RFC 822 example is not valid in arbitrary locales.
4913         Reword the POSIX.2 wording slightly, to make it a bit clearer
4914         that POSIX.2 formats are also supported by later POSIX versions.
4915         If a format was introduced in ISO C99 it is also required by
4916         POSIX.1-2001.
4918 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
4920         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
4921         _sys_nerr_internal with INTVARDEF2.
4922         * include/libc-symbols.h (INTVARDEF2): New macro.
4923         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
4924         (_sys_nerr_internal): Library.
4926         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
4927         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
4929         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
4931 2002-03-13  Wolfram Gloger  <wg@malloc.de>
4933         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
4935 2002-03-02  Andreas Schwab  <schwab@suse.de>
4937         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
4938         'h' flag and positional arg.
4939         * stdio-common/tst-printf.c (rfg3): New function to test
4940         positional arguments.
4941         (main): Fix some warnings.
4943 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4945         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
4946         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4948 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
4950         * grp/initgroups.c (__nss_group_data): Declare as hidden.
4952         * include/locale.h (_nl_C_locobj): Declare as hidden.
4954         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
4955         * time/strptime.c (_nl_C_LC_TIME): Likewise.
4957         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
4959         * include/sys/gmon.h: Declare _gmonparam as hidden.
4961         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
4962         (__ctype32_wctrans): Likewise.
4963         (__ctype32_width): Likewise.
4965         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
4966         use of __ttyname.
4968         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
4969         Define as hidden.
4970         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
4971         hidden.  Change all users of these variables.
4973         * posix/regex_internal.h (__re_error_msgid): Renamed from
4974         re_error_msgid.  Declare as hidden.
4975         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
4976         hidden.
4978         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
4979         (__printf_function_table): Likewise.
4980         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
4981         hidden.
4982         (__printf_function_table): Likewise.
4984         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
4985         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
4987         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
4988         * nss/nsswitch.c: Declare _nss_*_database as hidden.
4990         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
4991         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
4993 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
4995         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
4996         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4997         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4998         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4999         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5000         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5001         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5002         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5003         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5004         _nl_C_LC_CTYPE_width: Declare as hidden.
5005         * include/locale.h: Declare _nl_locale_file_list.
5006         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5007         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5008         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5009         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5010         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5011         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5012         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5013         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5014         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5015         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5016         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5017         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5018         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5019         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5020         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5021         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5022         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5023         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5024         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5025         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5026         _nl_C_LC_CTYPE_width, and as hidden.
5027         * locale/findlocale.c: Declare _nl_C as hidden.
5028         * locale/newlocale.c: Likewise.
5029         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
5030         _nl_locale_file_list.
5031         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5032         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5033         Define _nl_C_locobj as hidden.
5035         * malloc/mtrace.c (_mtrace_file): Define as hidden.
5036         (_mtrace_line): Likewise.
5038         * include/time.h: Declare __mon_yday as hidden.
5039         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5041         * libio/libioP.h: Declare __libio_codecvt as hidden.
5042         * libio/fileops.c: Declare __libio_translit as hidden.
5043         * libio/iofwide.c: Define __libio_translit as hidden.
5045         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5046         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5047         * login/getutline_r.c: Likewise.
5048         * login/utmpname.c: Likewise.
5050         * login/utmp-private.h: Declare __libc_utmp_file_functions,
5051         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5052         __libc_utmp_file_name as hidden.
5054         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5055         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5056         * locale/freelocale.c: Likewise.
5057         * locale/lc-time.c: Likewise.
5059         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5060         (__libc_ptyname2): Likewise.
5061         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5062         hidden.
5063         (__libc_ptyname2): Likewise.
5065         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5066         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5067         * sysdeps/generic/init-first.c: Likewise.
5068         * sysdeps/i386/init-first.c: Likewise.
5069         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5070         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5071         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5072         * sysdeps/sh/init-first.c: Likewise.
5073         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5074         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5076         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5077         (_itowa_upper_digits): Likewise.
5079         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5080         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5081         as hidden.
5083         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5084         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5085         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5086         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5088         * gmon/gmon.c (__bb_head): Define as hidden.
5089         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5091         * argp/argp-parse.c (_argp_hang): Define as static.
5093         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5094         handling in latest compilers.
5096         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5097         define alias.
5098         * libio/fileops.c (_IO_file_jumps): Likewise.
5099         * libio/stdfiles.c (_IO_list_all): Likewise.
5100         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5102         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5103         include/malloc.h.
5104         * include/malloc.h: Add __libc_malloc_initialized declaration
5105         here.  Mark variable hidden.
5106         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5108         * elf/dl-open.c (__libc_argc): Declare as hidden.
5109         (__libc_argv): Likewise.
5110         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5111         (__libc_argv): Likewise.
5112         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5113         __libc_argv as hidden.
5114         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5115         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5116         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5117         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5119         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5120         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5121         * stdlib/erand48.c: Likewise.
5122         * stdlib/jrand48.c: Likewise.
5123         * stdlib/lcong48.c: Likewise.
5124         * stdlib/lrand48.c: Likewise.
5125         * stdlib/mrand48.c: Likewise.
5126         * stdlib/nrand48.c: Likewise.
5127         * stdlib/seed48.c: Likewise.
5128         * stdlib/srand48.c: Likewise.
5130         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5131         (_itoa_lower_digits_internal): New declaration.
5132         (_itoa_upper_digits_internal): New declaration.
5133         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5134         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5135         (_itoa_upper_digits_internal): New declaration.
5136         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5137         _itoa_lower_digits.
5138         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5139         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5141         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5142         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5144         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5145         (_itowa_lower_digits): Likewise.
5146         (_itowa_upper_digits): Likewise.
5147         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5148         (_itowa_upper_digits): Likewise.
5150         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5151         not already defined.
5152         (GERMANIC_PLURAL): Declare as hidden.
5154         * posix/getopt.c (__getopt_initialized): Declare as hidden.
5155         (attribute_hidden): Define as empty macro if not already defined.
5157         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5158         (__gconv_max_path_elem_len): Likewise.
5159         (__gconv_path_envvar): Likewise.
5161         * math/Makefile (gmp-objs): Remove mp_clz_tab.
5162         * stdlib/Makefile (aux): Remove mp_clz_tab.
5163         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
5165         * stdlib/exit.h (__exit_funcs): Declare as hidden.
5167         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5169         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5170         _nl_category_names, _nl_category_name_sizes, _nl_current,
5171         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5173         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5174         (_nl_current_default_domain): Likewise
5175         (_nl_state_lock): Likewise.
5176         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5177         (_nl_current_default_domain): Likewise
5178         (_nl_state_lock): Likewise.
5179         * intl/bindtextdom.c (_nl_state_lock): Likewise.
5181         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5182         (_fpioconst_pow10): Likewise.
5184         * include/time.h (_tmbuf): Add attribute_hidden.
5186         * time/tzset.c (tzstring_list): Define as static.
5188         * include/time.h: Add attribute_hidden to __tzname_cur_max and
5189         __use_tzfile declaration.
5191         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5192         and __wcsmbs_last_locale declaration.
5194 2002-02-25  Paul Eggert  <eggert@twinsun.com>
5196         * timezone/Makefile (tzbases): Move systemv from here...
5197         (tzlinks): to here, since the entries in systemv were all changed
5198         from Zone to Link lines in tz-2001a.  Bug reported (and patch
5199         tested) by Peter Breitenlohner.
5201 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
5203         * time/tst-posixtz.c (tests): Add new tests.
5204         (main): Test whether tzset() sets daylight properly.
5206 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5208         * time/tzset.c (tz_compute): Move __daylight, __tzname and
5209         __tzname_cur_max setting...
5210         (tzset_internal): ...here.
5212 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5214         * time/tzset.c (compute_change): Don't return any value.
5215         (tz_compute): Likewise.  Don't handle southern hemisphere here.
5216         (__tz_convert): But here.
5218 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5220         * manual/examples/mkfsock.c: Include <string.h> as well.
5221         Patch by Alain De Carolis <alaind@wseurope.com>.
5223 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
5225         * posix/regexec.c (re_match): Fix incorrect register sizes.
5226         (re_search): Likewise.
5228 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5230         * posix/regcomp.c (regfree): Remove a disused condition.
5231         * posix/regex_internal.c (re_acquire_state): Likewise.
5232         (re_acquire_state_context): Likewise.
5233         (register_state): Remove a redundant malloc invocation.
5234         * posix/regex_internal.h: (re_state_table_entry): Simplify
5235         the structure.
5237 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5239         * posix/regcomp.c (regcomp): Add __builtin_expect to error
5240         handling conditions.
5241         (regerror): Likewise.
5242         (regfree): Likewise.
5243         (re_compile_internal): Likewise.
5244         (init_dfa): Likewise.
5245         (init_word_char): Likewise.
5246         (create_initial_state): Likewise.
5247         (analyze): Likewise.
5248         (analyze_tree): Likewise.
5249         (duplicate_node): Likewise.
5250         (calc_eclosure): Likewise.
5251         (calc_eclosure_iter): Likewise.
5252         (parse): Likewise.
5253         (parse_reg_exp): Likewise.
5254         (parse_branch): Likewise.
5255         (parse_expression): Likewise.
5256         (parse_subexp): Likewise.
5257         (parse_dup_op): Likewise.
5258         (parse_bracket_exp): Likewise.
5259         (build_equiv_class): Likewise.
5260         (build_charclass): Likewise.
5261         (build_word_op): Likewise.
5262         (fetch_number): Likewise.
5263         (create_tree): Likewise.
5264         (duplicate_tree): Likewise.
5265         * posix/regex.c (BE): New macro.
5266         * posix/regexec.c (re_match): Add __builtin_expect to error
5267         handling conditions.
5268         (re_match_2): Likewise.
5269         (re_search): Likewise.
5270         (re_search_internal): Likewise.
5271         (check_matching): Likewise.
5272         (proceed_next_node): Likewise.
5273         (set_regs): Likewise.
5274         (sift_states_backward): Likewise.
5275         (add_epsilon_backreference): Likewise.
5276         (transit_state): Likewise.
5277         (transit_state_sb): Likewise.
5278         (transit_state_mb): Likewise.
5279         (transit_state_bkref): Likewise.
5280         (transit_state_bkref_loop): Likewise.
5281         (build_trtable): Likewise.
5282         (group_nodes_into_DFAstates): Likewise.
5283         (match_ctx_init): Likewise.
5284         (match_ctx_add_entry): Likewise.
5285         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5286         to error handling conditions.
5287         (re_string_construct_toupper): Likewise.
5288         (build_wcs_buffer): Likewise.
5289         (build_wcs_upper_buffer): Likewise.
5290         (build_upper_buffer): Likewise.
5291         (re_string_translate_buffer): Likewise.
5292         (re_node_set_alloc): Likewise.
5293         (re_node_set_init_1): Likewise.
5294         (re_node_set_init_2): Likewise.
5295         (re_node_set_init_copy): Likewise.
5296         (re_node_set_intersect): Likewise.
5297         (re_node_set_init_union): Likewise.
5298         (re_node_set_merge): Likewise.
5299         (re_node_set_insert): Likewise.
5300         (re_dfa_add_node): Likewise.
5301         (re_acquire_state): Likewise.
5302         (re_acquire_state_context): Likewise.
5303         (create_new_state_common): Likewise.
5304         (register_state): Likewise.
5305         (create_ci_new_state): Likewise.
5306         (create_cd_new_state): Likewise.
5307         (re_string_context_at): Remove redundant condition.
5309 2002-01-16  Roger Sayle  <roger@eyesopen.com>
5311         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5313         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5315 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
5317         * sysdeps/i386/elf/configure.in: Fix comment.
5319         * sysdeps/sparc/sparc64/configure.in: New.
5320         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5321         if .dynamic comes before .got.
5322         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5324         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5325         HP_TIMING_ACCUM): Fix typos.
5327 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5329         * string/strfry.c: Add some more randomness to the seed.
5330         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5332         * po/es.po: Update from translation team.
5333         * po/fr.po: Likewise.
5335         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5337         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5338         when determining type of format.
5339         Patch by James Antill <james@anqd.org> [PR libc/2787].
5341 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
5343         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5345 2002-03-11  Roland McGrath  <roland@frob.com>
5347         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5349         * Versions.def (libc): Add GLIBC_2.2.6.
5350         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5351         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5352         __errno_location instead of __hurd_errno_location, and don't inline it.
5353         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5354         * hurd/errno.c: New file.
5355         * hurd/Makefile (routines): Add errno.
5357 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5359         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5360         ridiculously large widths and precisions [PR libc/3026].
5362 2002-03-11  Andreas Jaeger  <aj@suse.de>
5364         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5365         support.
5366         Patch by Susanne Oberhauser <froh@SuSE.de>.
5368 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5370         * inet/rexec.c (ahostbuf): Define as static.
5372         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5373         (__ctype32_wctrans): Likewise.
5374         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5375         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5376         (__ctype32_wctrans): Likewise.
5377         (__ctype32_width): Likewise.
5379         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5380         They were never exported anyway.
5382         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5383         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
5384         exported.
5385         * include/sys/gmon.h: Declare _gmonparam.
5387         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5388         symbols for getdents64.  They were never exported.
5390 2002-03-09  Roland McGrath  <roland@frob.com>
5392         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
5393         Reported by Jon Arney <jarney1@cox.net>.
5395 2002-02-23  Roland McGrath  <roland@frob.com>
5397         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
5398         declaration.
5399         (__hurd_errno_location): Function removed.
5401 2002-03-06  Andreas Jaeger  <aj@suse.de>
5403         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
5404         32-bit.
5406 2002-03-04  Andreas Jaeger  <aj@suse.de>
5408         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
5410         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
5411         x86-64.
5413         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
5415         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
5417         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
5419         * sysdeps/x86_64/bits/setjmp.h: New.
5421         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
5423         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
5425         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
5426         for x86.
5427         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
5428         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
5430 2002-02-28  Bo Thorsen  <bo@suse.de>
5432         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
5433         version.
5435 2002-03-03  Andreas Jaeger  <aj@suse.de>
5437         * sysdeps/x86_64/bits/wordsize.h: New file.
5439         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
5440         * elf/tst-tlsmod1.c: Likewise.
5442         * posix/regcomp.c: Get regex.h from include dir for internal
5443         prototypes.
5445         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
5446         to libc-internal.h and include it.
5447         * include/libc-internal.h: Add __init_misc.
5449         * misc/init-misc.c: Include libc-internal.h for prototypes.
5451         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
5453         * misc/error.c [_LIBC]: Include libioP.h for prototype of
5454         _IO_putc_internal.
5456 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
5458         * posix/regcomp.c: Compatibility changes to allow using the code
5459         outside glibc.
5461 2002-02-28  Hartvig Ekner <hartvige@mips.com>
5463         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
5464         compiled non-PIC.
5466 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
5468         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
5469         of .str elements in the returned data structure.
5471         * elf/elf.h: Add Alpha TLS bits.
5473 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5475         * sysdeps/unix/sysv/linux/nice.c: New file.
5477 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
5479         * elf/Makefile (dl-routines): Add dl-origin.
5480         (elide-routines.os): Add dl-origin.
5481         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
5482         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
5483         _dl_debug_state.
5484         * include/libc-symbols.c: Define attribute_hidden depending on
5485         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
5487         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
5488         * elf/dl-load.c: Likewise.
5489         * elf/rtld.c: Likewise.
5490         * include/unistd.h: Declare __libc_enable_secure_internal.
5491         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
5492         Use INTUSE with __libc_enable_secure.
5493         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5495         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
5496         * elf/dl-error.c: Likewise,
5497         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
5499         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
5500         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
5501         function definition.  Use INTDEF with _dl_get_origin.
5502         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5504         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
5505         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
5507         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
5508         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
5509         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
5511         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
5512         * elf/dl-deps.c: Likewise.
5513         * elf/dl-error.c: Likewise.
5514         * elf/dl-fini.c: Likewise.
5515         * elf/dl-init.c: Likewise.
5516         * elf/dl-load.c: Likewise.
5517         * elf/dl-lookup.c: Likewise.
5518         * elf/dl-reloc.c: Likewise.
5519         * elf/dl-version.c: Likewise.
5520         * elf/do-lookup.h: Likewise.
5521         * sysdeps/arm/dl-machine.h: Likewise.
5522         * sysdeps/cris/dl-machine.h: Likewise.
5523         * sysdeps/hppa/dl-machine.h: Likewise.
5524         * sysdeps/i386/dl-machine.h: Likewise.
5525         * sysdeps/m68k/dl-machine.h: Likewise.
5526         * sysdeps/powerpc/dl-machine.h: Likewise.
5527         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5528         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5529         * sysdeps/sh/dl-machine.h: Likewise.
5530         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
5531         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
5532         * sysdeps/x86_64/dl-machine.h: Likewise.
5533         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
5534         _dl_argv[0].  Use INTUSE with _dl_argv.
5535         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
5536         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
5538 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5540         * elf/rtld.c (_rtld_global): Remove .protected.
5541         (_rtld_local): Strong alias to _rtld_global.
5542         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
5543         only .os object.
5544         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
5545         _rtld_local instead of _rtld_global.
5546         (_rtld_local): Add hidden extern, possibly in .sdata section.
5547         * configure.in: Add tests for visibility attribute and .sdata.
5548         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
5549         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
5550         * sysdeps/arm/dl-machine.h: Likewise.
5551         * sysdeps/generic/ldsodefs.h: Likewise.
5552         * sysdeps/hppa/dl-machine.h: Likewise.
5553         * sysdeps/cris/dl-machine.h: Likewise.
5554         * sysdeps/i386/dl-machine.h: Likewise.
5555         * sysdeps/ia64/dl-machine.h: Likewise.
5556         * sysdeps/m68k/dl-machine.h: Likewise.
5557         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5558         * sysdeps/mips/dl-machine.h: Likewise.
5559         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5560         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5561         * sysdeps/sh/dl-machine.h: Likewise.
5562         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5563         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5564         * sysdeps/x86_64/dl-machine.h: Likewise.
5566 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
5568         * login/login.c (login): Always initialize ut_line field
5569         [PR libc/2991].
5571 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5573         * sysdeps/i386/Makefile (sysdep_routines): Add
5574         divdi3 in csu dir.
5575         (shared-only-routines): Likewise.
5576         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
5577         (shared-only-routines): Likewise.
5578         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
5579         (shared-only-routines): Likewise.
5580         * sysdeps/wordsize-32/divdi3.c: New file.
5582 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
5584         * locale/iso-4217.def: Remove obsolete currencies for countries
5585         with Euro.
5587 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
5589         * posix/regcomp.c (regcomp): Remove a redundant condition.
5590         (init_word_char): Add a check on malloc failure.
5591         (create_initial_state): Likewise.
5592         (duplicate_node): Likewise.
5593         (calc_eclosure): Likewise.
5594         (calc_eclosure_iter): Likewise.
5595         (parse_expression): Likewise.
5596         (parse_bracket_exp): Remove unnecessary malloc invocations.
5597         (build_equiv_class): Likewise.
5598         (build_charclass): Likewise.
5599         * posix/regex_internal.c (re_node_set_intersect): Add a check
5600         on malloc failure.
5601         (re_node_set_add_intersect): Likewise.
5602         (re_node_set_merge): Likewise.
5603         (re_acquire_state): Likewise.
5604         (re_acquire_state_context): Likewise.
5605         (create_newstate_common): Likewise.
5606         (register_state): Likewise.
5607         (create_ci_newstate): Likewise.
5608         (create_cd_newstate): Likewise.
5609         * posix/regex_internal.h: Fix prototypes of re_acquire_state
5610         and re_acquire_state_context.
5611         * posix/regexec.c (regexec): Suit it to the error handling of
5612         re_search_internal.
5613         (re_match): Likewise.
5614         (re_search): Likewise.
5615         (re_search_internal): Add a check on malloc failure.
5616         (acquire_init_state_context): Likewise.
5617         (check_matching): Likewise.
5618         (proceed_next_node): Likewise.
5619         (set_regs): Likewise.
5620         (sift_states_backward): Likewise.
5621         (sift_states_iter_bkref): Likewise.
5622         (add_epsilon_backreference): Likewise.
5623         (transit_state): Likewise.
5624         (transit_state_sb): Likewise.
5625         (transit_state_mb): Likewise.
5626         (transit_state_bkref_loop): Likewise.
5627         (build_trtable): Likewise.
5628         (group_nodes_into_DFAstates): Likewise.
5629         (match_ctx_init): Likewise.
5630         (match_ctx_add_entry): Likewise.
5632 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
5634         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
5635         l_libname if profiling is enabled [PR libc/2916].
5637         * sysdeps/ia64/dl-tls.h: New file.
5639 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
5641         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
5642         Work around an Alpha gas bug.
5644 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
5646         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
5647         uses read to load the catalog.
5648         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
5650 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
5652         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
5653         regex_internal.c, and regex_internal.h.
5654         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
5655         * posix/regex.c: Complete rewrite.
5656         * posix/regexec.c: New file.
5657         * posix/regcomp.c: New file.
5658         * posix/regex_internal.c: New file.
5659         * posix/regex_internal.h: New file.
5660         * posix/regex.h (RE_ICASE): New macro.
5661         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5663         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
5664         ungetwc.  It's a macro.
5665         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
5666         implementation.
5667         Reported by Jason Merrill <jason@redhat.com>.
5669 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5671         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
5672         position to fp->_offset if it is set.
5673         * stdio-common/Makefile (tests): Add tst-fdopen.
5674         * stdio-common/tst-fdopen.c: New test.
5676 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5678         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
5679         * stdio-common/tst-ungetc.c (main): Add another test.
5681 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
5683         * assert/assert-perr.c: Use INTUSE to reference functions and variables
5684         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
5685         aliases.  Add prototypes for the new aliases.
5686         * assert/assert.c: Likewise.
5687         * include/libc-symbols.h: Likewise.
5688         * include/stdio.h: Likewise.
5689         * include/netinet/in.h: Likewise.
5690         * include/rpc/auth.h: Likewise.
5691         * include/rpc/auth_unix.h: Likewise.
5692         * include/rpc/key_prot.h: Likewise.
5693         * include/rpc/pmap_prot.h: Likewise.
5694         * include/rpc/pmap_rmt.h: Likewise.
5695         * include/rpc/rpc_msg.h: Likewise.
5696         * include/rpc/xdr.h: Likewise.
5697         * inet/gethstbyad_r.c: Likewise.
5698         * inet/gethstbynm2_r.c: Likewise.
5699         * inet/gethstbynm_r.c: Likewise.
5700         * inet/gethstent_r.c: Likewise.
5701         * inet/in6_addr.c: Likewise.
5702         * libio/__fpurge.c: Likewise.
5703         * libio/filedoalloc.c: Likewise.
5704         * libio/fileops.c: Likewise.
5705         * libio/ftello.c: Likewise.
5706         * libio/ftello64.c: Likewise.
5707         * libio/genops.c: Likewise.
5708         * libio/iofclose.c: Likewise.
5709         * libio/iofdopen.c: Likewise.
5710         * libio/iofflush.c: Likewise.
5711         * libio/iofflush_u.c: Likewise.
5712         * libio/iofgetpos.c: Likewise.
5713         * libio/iofgetpos64.c: Likewise.
5714         * libio/iofgets.c: Likewise.
5715         * libio/iofgets_u.c: Likewise.
5716         * libio/iofopen.c: Likewise.
5717         * libio/iofopncook.c: Likewise.
5718         * libio/iofputs.c: Likewise.
5719         * libio/iofread.c: Likewise.
5720         * libio/iofread_u.c: Likewise.
5721         * libio/iofsetpos.c: Likewise.
5722         * libio/iofsetpos64.c: Likewise.
5723         * libio/ioftell.c: Likewise.
5724         * libio/iofwrite.c: Likewise.
5725         * libio/iogetline.c: Likewise.
5726         * libio/iogets.c: Likewise.
5727         * libio/iogetwline.c: Likewise.
5728         * libio/iolibio.h: Likewise.
5729         * libio/iopadn.c: Likewise.
5730         * libio/iopopen.c: Likewise.
5731         * libio/ioseekoff.c: Likewise.
5732         * libio/ioseekpos.c: Likewise.
5733         * libio/iosetbuffer.c: Likewise.
5734         * libio/iosetvbuf.c: Likewise.
5735         * libio/ioungetc.c: Likewise.
5736         * libio/ioungetwc.c: Likewise.
5737         * libio/iovdprintf.c: Likewise.
5738         * libio/iovsprintf.c: Likewise.
5739         * libio/iovsscanf.c: Likewise.
5740         * libio/libioP.h: Likewise.
5741         * libio/memstream.c: Likewise.
5742         * libio/obprintf.c: Likewise.
5743         * libio/oldfileops.c: Likewise.
5744         * libio/oldiofclose.c: Likewise.
5745         * libio/oldiofdopen.c: Likewise.
5746         * libio/oldiofgetpos.c: Likewise.
5747         * libio/oldiofgetpos64.c: Likewise.
5748         * libio/oldiofopen.c: Likewise.
5749         * libio/oldiofsetpos.c: Likewise.
5750         * libio/oldiofsetpos64.c: Likewise.
5751         * libio/oldiopopen.c: Likewise.
5752         * libio/oldstdfiles.c: Likewise.
5753         * libio/putc.c: Likewise.
5754         * libio/setbuf.c: Likewise.
5755         * libio/setlinebuf.c: Likewise.
5756         * libio/stdfiles.c: Likewise.
5757         * libio/stdio.c: Likewise.
5758         * libio/strops.c: Likewise.
5759         * libio/vasprintf.c: Likewise.
5760         * libio/vscanf.c: Likewise.
5761         * libio/vsnprintf.c: Likewise.
5762         * libio/vswprintf.c: Likewise.
5763         * libio/wfiledoalloc.c: Likewise.
5764         * libio/wfileops.c: Likewise.
5765         * libio/wgenops.c: Likewise.
5766         * libio/wstrops.c: Likewise.
5767         * malloc/mtrace.c: Likewise.
5768         * misc/error.c: Likewise.
5769         * misc/syslog.c: Likewise.
5770         * nss/getXXbyYY_r.c: Likewise.
5771         * nss/getXXent_r.c: Likewise.
5772         * nss/hosts-lookup.c: Likewise.
5773         * stdio-common/getw.c
5774         * stdio-common/printf-prs.c: Likewise.
5775         * stdio-common/printf_fp.c: Likewise.
5776         * stdio-common/printf_size.c: Likewise.
5777         * stdio-common/putw.c: Likewise.
5778         * stdio-common/scanf.c: Likewise.
5779         * stdio-common/sprintf.c: Likewise.
5780         * stdio-common/tmpfile64.c: Likewise.
5781         * stdio-common/vfprintf.c: Likewise.
5782         * stdio-common/vfscanf.c: Likewise.
5783         * stdlib/strfmon.c: Likewise.
5784         * sunrpc/auth_des.c: Likewise.
5785         * sunrpc/auth_none.c: Likewise.
5786         * sunrpc/auth_unix.c: Likewise.
5787         * sunrpc/authdes_prot.c: Likewise.
5788         * sunrpc/authuxprot.c: Likewise.
5789         * sunrpc/clnt_perr.c: Likewise.
5790         * sunrpc/clnt_raw.c: Likewise.
5791         * sunrpc/clnt_tcp.c: Likewise.
5792         * sunrpc/clnt_udp.c: Likewise.
5793         * sunrpc/clnt_unix.c: Likewise.
5794         * sunrpc/key_call.c: Likewise.
5795         * sunrpc/key_prot.c: Likewise.
5796         * sunrpc/openchild.c: Likewise.
5797         * sunrpc/pm_getmaps.c: Likewise.
5798         * sunrpc/pm_getport.c: Likewise.
5799         * sunrpc/pmap_clnt.c: Likewise.
5800         * sunrpc/pmap_prot.c: Likewise.
5801         * sunrpc/pmap_prot2.c: Likewise.
5802         * sunrpc/pmap_rmt.c: Likewise.
5803         * sunrpc/rpc_cmsg.c: Likewise.
5804         * sunrpc/rpc_prot.c: Likewise.
5805         * sunrpc/svc_authux.c: Likewise.
5806         * sunrpc/svc_raw.c: Likewise.
5807         * sunrpc/svc_simple.c: Likewise.
5808         * sunrpc/svc_tcp.c: Likewise.
5809         * sunrpc/svc_udp.c: Likewise.
5810         * sunrpc/svc_unix.c: Likewise.
5811         * sunrpc/xdr.c: Likewise.
5812         * sunrpc/xdr_array.c: Likewise.
5813         * sunrpc/xdr_mem.c: Likewise.
5814         * sunrpc/xdr_rec.c: Likewise.
5815         * sunrpc/xdr_ref.c: Likewise.
5816         * sunrpc/xdr_stdio.c: Likewise.
5817         * sysdeps/generic/_strerror.c: Likewise.
5818         * sysdeps/generic/printf_fphex.c: Likewise.
5819         * sysdeps/generic/tmpfile.c: Likewise.
5820         * sysdeps/gnu/errlist.awk: Likewise.
5821         * sysdeps/gnu/errlist.c: Likewise.
5823         * libio/Makefile (routines): Remove iosprint.
5824         * libio/iosprintf.c: Removed
5827 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
5829         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
5830         non_dynamic_init and exported now.
5831         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
5832         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
5833         !SHARED.
5834         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5835         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5836         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5838 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
5840         * elf/dl-close.c (free_slotinfo): Check for end of list and return
5841         true in this case.
5843         * locale/iso-639.def: Add language codes for Walloon.
5845         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
5846         total number of relocations performed.
5848         * elf/sprof.c (load_profdata): If do_test provide information as
5849         to why loading failed.
5850         * elf/dl-profile.c (_dl_start_profile): Initialize all of
5851         hist_hdr.dimen.
5853         * csu/set-init.c: Moved to...
5854         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
5855         * csu/Makefile: Don't compile set-init.
5856         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
5857         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
5858         to __libc_init.
5859         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5860         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5861         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
5862         __libc_init.
5863         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
5864         __libc_subinit.
5866 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
5868         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
5869         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
5870         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
5871         (_dl_deallocate_tls): New function.
5872         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
5873         _dl_deallocate_tls.
5875 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5877         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
5878         * stdio-common/tst-fseek.c (main): Add test for this.
5880 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
5882         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
5884 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
5886         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
5887         pointer before dereferencing.
5889 2002-02-18  Roland McGrath  <roland@frob.com>
5891         * sysdeps/mach/hurd/times.c: Fix typo in last change.
5893         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
5894         Use task_policy in place of task_priority.
5896         * sysdeps/generic/bits/mman.h
5897         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
5898         * sysdeps/mach/msync.c: New file.
5900         * sysdeps/mach/powerpc/syscall.S: New file.
5902         * mach/msg.c [MACH_MSG_OVERWRITE]
5903         (__mach_msg_trap, __mach_msg_overwrite): New functions.
5904         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
5906         * sysdeps/mach/configure.in: Check for clock.defs to put into
5907         mach_interface_list.
5908         * sysdeps/mach/configure: Regenerated.
5910         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
5911         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
5912         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
5913         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
5914         (mach-shortcuts): Add device_read_overwrite_request,
5915         device_read_overwrite, vm_read_overwrite, thread_switch.
5917         * configure.in (base_machine): Set to $machine by default.
5918         * configure: Regenerated.
5920         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
5921         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
5922         * sysdeps/mach/configure: Regenerated.
5923         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
5925         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
5927         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
5929         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
5930         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
5932 2002-02-17  Roland McGrath  <roland@frob.com>
5934         * sysdeps/mach/hurd/times.c
5935         [NO_CREATION_TIME] (startup_time): New static variable.
5936         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
5937         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
5938         creation_time from task_basic_info.
5939         (__times): Use __gettimeofday instead of __host_get_time.
5941         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
5942         Use untyped Mach IPC message format.
5944         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
5946         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
5947         _S_catch_exception_raise_state_identity,
5948         _hurdsig_fault_catch_exception_raise_state,
5949         _hurdsig_fault_catch_exception_raise_state_identity.
5951         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
5953         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
5954         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
5956         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
5957         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
5959         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
5960         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
5961         them as no-op macros.
5962         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
5963         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
5965         * sysdeps/powerpc/dl-machine.h
5966         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
5968         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
5969         Use untyped Mach IPC message format.
5971         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
5972         Handle untyped Mach IPC message formats.
5974         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
5975         Expect different argument conventions when this is defined.
5976         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
5977         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
5978         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
5979         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
5980         for OSF Mach variant.
5981         (faulted): Use mig_reply_error_t for REPLY.
5982         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
5983         in __thread_set_exception_ports call.
5984         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
5985         __mach_port_set_attributes in place of __mach_port_set_qlimit.
5987         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
5988         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
5989         on Darwin, which includes bogons.
5991         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
5992         variable LOADBASE so it's not declared when it's not used.
5994 2002-02-16  Roland McGrath  <roland@frob.com>
5996         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
5997         to use BI.creation_time.
5999         * mach/Machrules (MIG): Add -x c to CPP value passed down.
6001         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6002         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6003         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6004         host_page_size instead of vm_statistics.
6006         * sysdeps/mach/Makefile (mach-before-compile): Don't include
6007         mach_interface.h here, since not all variants use that name.
6009         * sysdeps/mach/configure.in: Add some checks for Mach headers
6010         to ensure a sane installation.
6011         (mach_interface_list): Define this variable by checking for .defs
6012         files found in various variants.
6013         * configure.in (mach_interface_list): AC_SUBST this.
6014         * config.make.in (mach-interface-list): New substituted variable.
6015         * mach/Makefile (user-interfaces): Define this using the value
6016         of $(mach-interface-list) instead of mach, mach4.
6017         Updated other references to mach_interface to use it as well.
6019         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6021         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6022         mig_reply_error_t for OSF Mach variant.
6024         * mach/Makefile (routines): Remove bootprivport.
6025         * mach/bootprivport.c: File removed.  It has never been used.
6027         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6028         Grok the OSF flavor of message format.
6029         (mach_msg_destroy_port): For MAKE_SEND and
6030         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6031         no-senders notification.
6033 2002-02-06  Roland McGrath  <roland@frob.com>
6035         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6036         to here if 2.0 compatibility enabled ...
6037         (libc: GLIBC_2.1.3): ... from here.
6039 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
6041         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6042         generation counter.
6043         * elf/dl-close.c (_dl_close): Likewise.
6045 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
6047         * elf/Makefile: Add rules to build and run tst-tls8.
6048         * elf/tst-tls8.c: New file.
6049         * elf/tst-tlsmod4.c: New file.
6051         * stdlib/test-a64l.c (tests): Add more test cases.
6053         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6054         Reported by Walter Harms <WHarms@bfs.de>.
6056 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
6058         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6059         definitions for struct sigcontext.
6060         Suggested by David Mosberger-Tang.
6062 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6064         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
6065         for removing reference of module in slotinfo list.
6066         (_dl_close): Use remove_slotinfo.
6067         * sysdeps/generic/dl-tls.c: General pretty printing.
6068         (oom): Define only if SHARED.
6069         (_dl_next_tls_modid): Correct starting point for the case we assume
6070         there is a gap.  Add missing instruction grouping (doh!).  Correct
6071         tests for reaching maximum index.
6072         * elf/Makefile: Add rules to build and run tst-tls7.
6073         * elf/tst-tls7.c: New file.
6074         * elf/tst-tlsmod3.c: New file.
6076         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6077         USE_TLS.
6078         * elf/tst-tlsmod2.c: Likewise.
6080         * elf/dl-close.c (_dl_close): When closing an object using TLS
6081         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6082         true.  Increment dl_tls_generation only if we closed any TLS-using
6083         object.
6084         * elf/tst-tls6.c: New file.
6085         * elf/Makefile: Add rules to build and run tst-tls6.
6087         * po/da.po: Update from translation team.
6089         * locale/categories.def: Fix typo [PR libc/2948].
6090         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6091         [PR libc/2949].
6092         * locale/iso-4217.def: Update from official version [PR libc/2950].
6093         * glibcbug.in: Honor TMPDIR [PR libc/2951].
6094         * locale/programs/ld-collate.c (collate_finish): Bail out with a
6095         message if input is too confusion instead of using assert.
6096         (collate_read): Don't crash on unknown symbol [PR libc/2952].
6097         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6099         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6100         * elf/tst-tls2.c: Likewise.
6101         * elf/tst-tls3.c: Likewise.
6103 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6105         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6107 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6109         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6110         if this is really necessary.
6112         * elf/dl-close.c (_dl_close): Implement freeing entries in the
6113         slotinfo array.
6114         (free_mem): Free memory for the slotinfo array if possible.
6116 2002-02-12  Andreas Schwab  <schwab@suse.de>
6118         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6120 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
6122         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6123         TLS_DTV_UNALLOCATE.
6124         (oom): New function.
6125         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6126         (_dl_determine_tlsoffset): Likewise.
6127         (_dl_allocate_tls): Likewise.
6128         (__TLS_GET_ADDR): Define if not already defined.
6129         (_dl_tls_symaddr): New function.
6130         (allocate_and_init): New function.
6131         (__tls_get_addr): Actually implement handling of generation counter
6132         and deferred allocation.
6133         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6134         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6135         _dl_tls_generation.
6136         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6137         Declare _dl_tls_symaddr.
6138         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6139         SHARED.
6140         * include/link.h (struct link_map):  Remove l_tls_nextimage and
6141         l_tls_previmage.
6142         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6143         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6144         (_dl_vsym): Likewise.
6145         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6146         layout.
6147         (dl_main): Allow PT_TLS be present for empty segment.  Remove
6148         nextimage list handling.  Instead add all modules using TLS to
6149         dl_tls_dtv_slotinfo_list.
6150         * elf/dl-open.c (dl_open_worker): After successfully loading all
6151         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6152         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6153         empty segment don't do anything.  Remove handling of initimage list.
6154         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6155         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6156         * elf/dl-minimal.c: Define __libc_memalign.
6157         * elf/dl-support.c: Remove _dl_initimage_list.  Add
6158         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6159         _dl_tls_generation.
6160         * include/stdlib.h: Declare __libc_memalign.
6162         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6163         * elf/tst-tls4.c: New file.
6164         * elf/tst-tls5.c: New file.
6165         * elf/tst-tlsmod2.c: New file.
6167         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6169         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6171         * elf/tst-tls1.c: Use test-skeleton.c.
6172         * elf/tst-tls2.c: Likewise.
6173         * elf/tst-tls3.c: Likewise.
6175         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6177 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6179         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6181 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
6183         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6185         * elf/tst-tls3.c: New file.
6186         * elf/tst-tlsmod1.c: New file.
6187         * elf/Makefile: Add rules to build and run tst-tls3.
6189         * sysdeps/i386/dl-machine.h: Include <tls.h>.
6190         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6191         TLS relocations.
6193         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6195         * po/fr.po: Update from translation team.
6197         * elf/tls-macros.h: Add alternative macros for use in PIC.
6199         * elf/dl-lookup.c: Include <tls.h>.
6200         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6202         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6203         required by passing pointer to last element of the list.
6205         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6206         l_tls_initimage to a place where it actually is performed.
6208         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6209         after globfree() calls.
6211         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6212         (openaux): Pass open_mode as new last argument to _dl_map_object.
6213         (_dl_map_object_deps): Add new argument open_mode.  Initialize
6214         open_mode element of args variable with it.
6215         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6216         _dl_map_object_deps.
6217         * elf/rtld.c (dl_main): Add zero as last parameter to
6218         _dl_map_object_deps call.
6219         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6220         * elf/nodlopen2.c: New file.
6221         * elf/nodlopenmod2.c: New file.
6222         * elf/Makefile: Add rules to build and run nodlopen2.
6224         * elf/tst-tls1.c: Move TLS helper macros to...
6225         * elf/tls-macros.h: ...here.  New file.
6226         * elf/tst-tls2.c: New file.
6227         * elf/Makefile (tests): Add tst-tls2.
6228         (distribute): Add tls-macros.h.
6230         * po/sv.po: Update from translation team.
6232         * elf/tst-tls1.c (main): Add complete set of tests.  Split
6233         architecture specific definitions from the actual test code.
6235         * po/tr.po: Update from translation team.
6237 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
6239         * elf/Makefile (tests): Add tst-tls1.
6240         * elf/tst-tls1.c: New file.
6242         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6243         alignment of TCB for now.
6245         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6246         initialization image for the application itself.
6248         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6249         loop to initialize TLS block.
6251 2002-02-08  Richard Henderson  <rth@redhat.com>
6253         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6254         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6256         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6258 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
6260         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6262 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
6264         * po/ca.po: Update from translation team.
6265         * po/sk.po: Likewise.
6267         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6268         (dl_main): Move dtv/static TLS handling before relocation.
6269         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
6270         TLS_INIT_TP to allocate and install the dtv/static TLS block.
6271         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6272         so far uses TLS initialize GL(dl_tls_static_size) and
6273         GL(dl_tls_static_align) to account for the TCB.
6274         (_dl_allocate_tls): New function.
6275         * sysdeps/generic/ldsodefs.h (rtld_global): Add
6276         _dl_initial_dtv_malloced.
6278         * configure.in: Test for __builtin_memset more realistically.
6280         * csu/version.c (banner): If TLS support is available say so.
6282 2002-02-04  H.J. Lu  <hjl@gnu.org>
6284         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6285         __attribute_used__.
6286         (__dl_runtime_resolve): Likewise.
6288         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6289         declaration.
6291 2001-11-15  H.J. Lu  <hjl@gnu.org>
6293         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6294         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6296         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6298 2002-02-07  H.J. Lu  <hjl@gnu.org>
6300         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6301         ".set noreorder".
6302         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6303         Likewise.
6305 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6307         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6309         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6310         ___tls_get_addr_internal.
6311         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6313         * po/ko.po: Update from translation team.
6315 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
6317         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6318         attribute, change __pad{1,2} type to unsigned int.
6319         (struct stat64): Remove packed attribute.
6321 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6323         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6325 2002-02-07  Andreas Schwab  <schwab@suse.de>
6327         * configure.in: Fix check for -zcombreloc.
6329 2002-02-06  H.J. Lu  <hjl@gnu.org>
6331         * config.h.in (HAVE_BUILTIN_MEMSET): New.
6332         * configure.in: Check if __builtin_memset really works.
6333         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6334         __GNUC_PREREQ (2, 96) before using __builtin_memset.
6336 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
6338         * io/bug-ftw3.c (main): Don't try the test if root.
6340 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6342         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6343         constraints.
6344         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6345         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6346         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6347         Likewise.
6348         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6349         a weak alias for __clone.
6350         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6351         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6352         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6353         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6354         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6355         a weak alias for __mmap64.
6357 2002-02-05  H.J. Lu  <hjl@gnu.org>
6359         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6360         (atomic_add): Likewise.
6361         (compare_and_swap): Likewise.
6362         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6364 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6366         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6368         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6369         alignment of the TCB and store total size and alignment of static
6370         TLS block in _dl_tls_static_size and _dl_tls_static_align.
6371         tls_index is a typedef.
6372         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6373         _dl_tls_static_align.
6374         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6375         * elf/dl-support.c: Define _dl_tls_static_size and
6376         _dl_tls_static_align.
6378 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6380         * configure.in: Add --without-tls option.
6381         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6382         --without-tls is given.
6384         * sysdeps/generic/dl-tls.c: Include <tls.h>.
6386         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6388 2002-02-06  Roland McGrath  <roland@frob.com>
6390         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6391         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6393         * scripts/versions.awk: Improve error message for missing version.
6394         Each version inherits from the last one only if they have the same
6395         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
6396         but not GLIBC_x and FOO_y.
6398         * scripts/firstversions.awk: Handle libraries that don't have each
6399         particular version named in the third column of shlib-versions.
6401         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
6403 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6405         * Versions.def [ld]: Add GLIBC_2.3.
6406         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
6407         * elf/Makefile (dl-routines): Add dl-tls.
6408         (distribute): Add dl-tls.h.
6409         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6410         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6411         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
6412         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
6413         along with the other info in the link map.  Change queueing of init
6414         images for double linked list.  Use _dl_next_tls_modid to compute
6415         l_tls_modid.
6416         * elf/rtld.c (_dl_start_final): Store alignment requirement
6417         along with the other info in rtld map and executable map.
6418         (dl_main): Add ld.so to the init image list if necessary.  Compute
6419         final module ID with _dl_next_tls_modid.
6420         * include/link.h (struct link_map): Add l_tls_previmage and
6421         l_tls_align.
6422         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6423         * sysdeps/i386/elf/Versions: New file.
6424         * sysdeps/generic/dl-tls.c: New file.
6425         * sysdeps/generic/dl-tls.h: New file.
6426         * sysdeps/i386/dl-tls.h: New file.
6428 2002-02-06  Roland McGrath  <roland@frob.com>
6430         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
6431         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
6433 2002-01-05  Roland McGrath  <roland@frob.com>
6435         * sysdeps/mach/configure.in: New file.
6436         * sysdeps/mach/configure: New generated file.
6438         * mach/Makefile (user-interfaces): Remove default_pager_helper.
6439         It has never been used by anything.
6441 2002-02-06  H.J. Lu  <hjl@gnu.org>
6443         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
6444         is included.
6446 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6448         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
6449         attribute((packed)) to counter stupid people misusing gcc options.
6450         (struct stat64): Likewise.
6452 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6454         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
6455         the variables which are used as booleans.
6457 2002-02-06  Andreas Jaeger  <aj@suse.de>
6459         * include/libc-symbols.h (INTUSE): Renamed from INT.
6460         * elf/dl-deps.c: Change users.
6461         * sysdeps/generic/dl-sysdep.c: Likewise.
6462         * sysdeps/generic/dl-cache.c: Likewise.
6463         * elf/dl-reloc.c: Likewise.
6464         * elf/rtld.c: Likewise.
6465         * elf/dl-version.c: Likewise.
6466         * elf/dl-load.c: Likewise.
6467         * elf/dl-dst.h: Likewise.
6468         * elf/dl-init.c: Likewise.
6469         * elf/dl-error.c: Likewise.
6470         * elf/dl-fini.c: Likewise.
6471         * elf/dl-runtime.c: Likewise.
6472         * elf/do-lookup.h: Likewise.
6474         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
6475         definition.
6476         * stdio-common/_itowa.h: Likewise.
6478 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6480         * elf/dl-minimal.c: Define _itoa_lower_digits.
6482         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
6483         DT_FLAGS set.
6485         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
6486         loading modules with the DF_STATIC_TLS flag set.
6487         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
6488         element.
6489         * include/link.h (struct link_map): Add l_flags field.
6490         * elf/elf.h (DF_STATIC_TLS): New definition.
6492         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
6493         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
6495         * elf/rtld.c (process_dl_debug): Correct printing help message.
6496         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
6497         for %s.
6499         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
6500         definition and pass &errno in use of this variable.
6501         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
6503 2002-02-04  Andreas Schwab  <schwab@suse.de>
6505         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
6506         * locale/programs/charmap-dir.c: Wrap calls that output messages
6507         with WITH_CUR_LOCALE.  Include "localedef.h" first.
6508         * locale/programs/charmap.c: Likewise.
6509         * locale/programs/ld-address.c: Likewise.
6510         * locale/programs/ld-collate.c: Likewise.
6511         * locale/programs/ld-ctype.c: Likewise.
6512         * locale/programs/ld-identification.c: Likewise.
6513         * locale/programs/ld-measurement.c: Likewise.
6514         * locale/programs/ld-messages.c: Likewise.
6515         * locale/programs/ld-monetary.c: Likewise.
6516         * locale/programs/ld-name.c: Likewise.
6517         * locale/programs/ld-numeric.c: Likewise.
6518         * locale/programs/ld-paper.c: Likewise.
6519         * locale/programs/ld-telephone.c: Likewise.
6520         * locale/programs/ld-time.c: Likewise.
6521         * locale/programs/linereader.c: Likewise.
6522         * locale/programs/linereader.h: Likewise.
6523         * locale/programs/localedef.c: Likewise.
6524         * locale/programs/locfile.c: Likewise.
6525         * locale/programs/repertoire.c: Likewise.
6527 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6529         * elf/rtld.c (_dl_start_final): Determine load address to locate
6530         ehdr with GL(dl_rtld_map).l_map_start.
6532         * po/ca.po: Update from translation team.
6534         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
6535         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
6536         header entry.
6537         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6538         _dl_tls_module_cnt.
6539         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
6541 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
6543         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
6544         * include/link.h (struct link_map): Add various members for TLS
6545         information.
6546         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6547         _rtld_tlsoffset, add _dl_initimage_list.
6548         * sysdeps/i386/dl-lookupcfg.h: New file.
6549         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
6550         TLS relocation.  When using TLS we now use RESOLVE_MAP.
6551         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
6552         is used.
6554         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
6555         unused.
6557         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
6558         thread-pointer as soon as possible.
6559         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
6560         elements in rtld_global.
6561         * sysdeps/generic/tls.h: New file.
6562         * elf/Makefile (distribute): Add tls.h.
6563         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
6564         relocations.  Not complete yet.
6566         * resolv/resolv.h: Allow user to define __need_res_state and only
6567         define __res_start structure then.
6568         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
6570         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
6571         dl_cpuclock_offset initialization to _dl_start_final.
6572         (_dl_show_auxv): Avoid unnecessary sign extension.
6573         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
6575 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
6577         * config.h.in: Add HAVE_TLS_SUPPORT.
6578         * sysdeps/i386/elf/configure.in: New file.
6580 2002-02-03  Andreas Schwab  <schwab@suse.de>
6582         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
6583         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
6585 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
6587         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
6588         alloca if the memory reqirements are too high.
6590 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
6592         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
6593         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
6594         the former is available anyway and speed isn't important here.
6595         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
6596         * elf/dl-version.c (match_symbol): Likewise.
6597         (_dl_check_map_versions): Likewise.
6598         * elf/rtld.c (process_envvars): Likewise.
6599         (print_statistics): Likewise.
6600         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
6601         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
6602         bases.  Add assert to catch uses of unimplemented features.
6603         (__strsep): Add assert to catch uses of unimplemented features.
6604         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
6605         and avoid inline optimization.
6606         * elf/rtld.c (process_envvars): Likewise.
6607         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
6608         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
6609         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
6611 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6613         * stdio-common/_itoa.h: Minor simplifications of the code.
6614         * stdio-common/_itoa.c: Likewise.
6616         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
6617         instead of _dl_printf for debugging info output.
6619         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
6620         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
6622 2002-02-01  H.J. Lu  <hjl@gnu.org>
6624         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
6625         (atomic_add): Likewise.
6626         (compare_and_swap): Return 0 only when failed to compare. Use
6627         branch likely.
6629         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
6630         branch likely.
6632 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6634         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
6636 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6638         * elf/dl-minimal.c (__strsep): New minimal implementation.
6640 2002-02-02  Paul Eggert  <eggert@twinsun.com>
6642         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
6643         (__mktime_internal): If no tm_isdst is requested, prefer solutions
6644         with tm_isdst > 0 when the requested time falls within a
6645         spring-forward gap [PR libc/2894].
6647 2002-02-03  Andreas Schwab  <schwab@suse.de>
6649         * stdio-common/tst-rndseek.c: Increase timeout.
6651 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6653         Change ld.so to not use functions which are exported.  One cannot
6654         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
6655         definitions.
6656         * include/libc-symbols.h: Define INT and INTDEF.
6657         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
6658         _dl_signal_error_internal, _dl_map_object_internal,
6659         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
6660         _dl_lookup_versioned_symbol_internal,
6661         _dl_relocate_object_internal, _dl_debug_state_internal,
6662         _dl_start_profile_internal, and _dl_unload_cache_internal.
6663         * include/dlfcn.h: Declare _dl_catch_error_internal.
6664         * elf/rtld.c: Use INT for calls to any of the *_internal functions
6665         above.  Add INTDEF to function definitions.
6666         * elf/dl-debug.c: Likewise.
6667         * elf/dl-deps.c: Likewise.
6668         * elf/dl-dst.h: Likewise.
6669         * elf/dl-error.c: Likewise.
6670         * elf/dl-fini.c: Likewise.
6671         * elf/dl-init.c: Likewise.
6672         * elf/dl-load.c: Likewise.
6673         * elf/dl-lookup.c: Likewise.
6674         * elf/dl-misc.c: Likewise.
6675         * elf/dl-open.c: Likewise.
6676         * elf/dl-profile.c: Likewise.
6677         * elf/dl-reloc.c: Likewise.
6678         * elf/dl-runtime.c: Likewise.
6679         * elf/dl-version.c: Likewise.
6680         * elf/do-lookup.h: Likewise.
6681         * sysdeps/generic/dl-cache.c: Likewise.
6682         * sysdeps/generic/dl-sysdep.c: Likewise.
6683         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
6684         instead of _dl_init.
6685         * sysdeps/arm/dl-machine.h: Likewise.
6686         * sysdeps/cris/dl-machine.h: Likewise.
6687         * sysdeps/hppa/dl-machine.h: Likewise.
6688         * sysdeps/i386/dl-machine.h: Likewise.
6689         * sysdeps/ia64/dl-machine.h: Likewise.
6690         * sysdeps/m68k/dl-machine.h: Likewise.
6691         * sysdeps/mips/dl-machine.h: Likewise.
6692         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6693         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6694         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6695         * sysdeps/sh/dl-machine.h: Likewise.
6696         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6697         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6698         * sysdeps/x86_64/dl-machine.h: Likewise.
6699         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
6701         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
6702         and _dl_debug_initialize.
6704         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
6705         more information.
6706         * elf/rtld.c (dl_main): Avoid strrchr.
6707         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
6708         result of readlink.  Search from the back for '/'.
6710         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
6711         strncpy if possible.
6713         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
6714         strncmp.
6715         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
6716         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
6717         strspn, and strcspn.
6718         (process_envvars): Don't use strcspn.
6720         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
6721         (_dl_dst_substitute): Likewise.
6723 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
6725         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
6726         code which is never used when relocating ld.so itself.
6728         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
6729         starting ld.so itself.  Move l_addr variable initialization closer
6730         to use.
6731         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
6733 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
6735         * Versions.def (libc): Add GLIBC_PRIVATE.
6736         (libdb, libnss_db, libdb1): Remove.
6737         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
6738         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
6739         (libpthread): Add GLIBC_PRIVATE.
6740         (libresolv): Likewise, remove GLIBC_2.1.
6741         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
6742         GLIBC_2.2.3, GLIBC_2.3.
6743         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
6744         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
6745         _dl_sym, _dl_vsym): Likewise.
6746         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
6747         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
6748         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
6749         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
6750         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
6751         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
6752         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
6753         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
6754         Likewise.
6755         (_dl_object_relocation_scope): Remove.
6756         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
6757         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
6758         __gconv_cache): Move to GLIBC_PRIVATE.
6759         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
6760         __internal_setnetgrent): Likewise.
6761         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
6762         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
6763         * locale/Versions (__collate_element_hash, __collate_element_strings,
6764         __collate_symbol_classes, __collate_symbol_hash,
6765         __collate_symbol_strings, _nl_current_LC_COLLATE,
6766         _nl_current_LC_CTYPE): Likewise.
6767         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
6768         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
6769         (libnss_nis, libnss_nisplus): Likewise.
6770         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
6771         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
6772         (libnss_files): Move all symbols to GLIBC_PRIVATE.
6773         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
6774         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
6775         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
6776         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
6777         __ns_get16, __ns_samename): Likewise.
6778         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
6779         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
6780         GLIBC_PRIVATE.
6781         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
6782         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
6783         __libc_connect): Likewise.
6784         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
6785         Likewise.
6786         * stdlib/Versions (__libc_system): Likewise.
6787         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
6788         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
6789         * sysdeps/ia64/fpu/Versions: Likewise.
6790         * sysdeps/ia64/Versions: Likewise.
6791         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
6792         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
6793         to GLIBC_PRIVATE.
6794         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
6795         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
6796         __libc_sigaction): Likewise.
6797         * termios/Versions (__libc_tcdrain): Likewise.
6799         * misc/sys/cdefs (__attribute_noinline__): Define.
6800         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
6801         __attribute_noinline__.
6803         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
6804         * elf/dl-xstat64.c: New file.
6805         * elf/dl-fxstat64.c: New file.
6806         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
6807         don't export __fxstat64 at multiple versions.
6808         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
6809         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
6811 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
6813         * locale/program/ld-collate.c (collate_finish): Assign a wide
6814         char collation sequence value to multi character collating
6815         elements, and avoid over writing by non-character elements.
6817 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
6819         * elf/Makefile (distribute): Add dl-procinfo.c.
6820         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
6821         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6823 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
6825         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
6826         definition.
6827         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
6828         _rtld_global struct.
6829         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6830         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
6831         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6832         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
6833         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
6834         _dl_fpu_control_set): Remove unused externs.
6835         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
6836         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
6837         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
6838         related variables in _rtld_global struct.
6839         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
6840         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
6841         unused extern.
6843 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
6845         * sysdeps/generic/dl-procinfo.c: New file.
6847 2002-02-01  Andreas Schwab  <schwab@suse.de>
6849         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
6851 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
6853         * elf/rtld.c (_dl_start): Mark as internal_function.
6854         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
6855         in register.
6856         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
6857         General pretty printing.
6859 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
6861         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
6862         * elf/dl-reloc.c: Pretty printing.
6863         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
6864         procinfo-related variables in rtld_global struct.
6865         * elf/dl-support.c: Likewise.
6866         * elf/rtld.c: Likewise.
6867         * sysdeps/i386/i686/Makefile: Likewise.
6868         * sysdeps/i386/i686/hp-timing.c: Likewise.
6869         * sysdeps/i386/i686/hp-timing.h: Likewise.
6870         * sysdeps/ia64/Makefile: Likewise.
6871         * sysdeps/ia64/hp-timing.c: Likewise.
6872         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
6873         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
6874         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
6875         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
6876         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6877         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
6878         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6879         * sysdeps/x86_64/Makefile: Likewise.
6881         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
6882         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
6883         _dl_debug_fd to rtld_global.
6884         * elf/Versions: Likewise.
6885         * elf/dl-close.c: Likewise.
6886         * elf/dl-iteratephdr.c: Likewise.
6887         * elf/dl-lookup.c: Likewise.
6888         * elf/dl-misc.c: Likewise.
6889         * elf/dl-open.c: Likewise.
6890         * elf/dl-support.c: Likewise.
6891         * elf/do-lookup.h: Likewise.
6892         * elf/rtld.c: Likewise.
6893         * sysdeps/generic/dl-cache.c: Likewise.
6894         * sysdeps/generic/dl-sysdep.c: Likewise.
6895         * sysdeps/ia64/Versions: Likewise.
6896         * sysdeps/unix/clock_gettime.c: Likewise.
6897         * sysdeps/unix/clock_settime.c: Likewise.
6898         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6899         * sysdeps/sparc/Versions: Removed.
6900         * sysdeps/i386/i686/Versions : Removed.
6901         * sysdeps/x86_64/Versions: Removed.
6902         * configure.in: Define HAVE_PROTECTED if .protected is available.
6903         * config.h.in: Add entry for HAVE_PROTECTED.
6905 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
6907         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
6908         code in struct _rtld_global.  Export this struct, remove all
6909         exports for the signal variables.
6910         * sysdeps/arm/dl-machine: Likewise.
6911         * sysdeps/generic/dl-origin: Likewise.
6912         * sysdeps/generic/dl-sysdep: Likewise.
6913         * sysdeps/generic/dl-cache: Likewise.
6914         * sysdeps/hppa/dl-fptr: Likewise.
6915         * sysdeps/hppa/dl-machine: Likewise.
6916         * sysdeps/cris/dl-machine: Likewise.
6917         * sysdeps/i386/dl-machine: Likewise.
6918         * sysdeps/ia64/dl-machine: Likewise.
6919         * sysdeps/m68k/dl-machine: Likewise.
6920         * sysdeps/mach/hurd/dl-sysdep: Likewise.
6921         * sysdeps/mips/mips64/dl-machine: Likewise.
6922         * sysdeps/mips/dl-machine: Likewise.
6923         * sysdeps/powerpc/elf/libc-start: Likewise.
6924         * sysdeps/powerpc/dl-machine: Likewise.
6925         * sysdeps/powerpc/dl-start: Likewise.
6926         * sysdeps/sparc/sparc32/dl-machine: Likewise.
6927         * sysdeps/sparc/sparc64/dl-machine: Likewise.
6928         * sysdeps/sh/dl-machine: Likewise.
6929         * sysdeps/s390/s390-32/dl-machine: Likewise.
6930         * sysdeps/s390/s390-64/dl-machine: Likewise.
6931         * sysdeps/unix/sysv/aix/libc-start: Likewise.
6932         * sysdeps/unix/sysv/aix/start-libc: Likewise.
6933         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
6934         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
6935         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
6936         * sysdeps/x86_64/dl-machine: Likewise.
6938 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
6940         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
6941         are too high.
6943 2002-01-31  Andreas Schwab  <schwab@suse.de>
6945         * sysdeps/posix/readv.c: Check for ssize_t overflow.
6947 2002-01-31  Andreas Schwab  <schwab@suse.de>
6949         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
6950         reference to _dl_pagesize.
6952 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
6954         * Versions.def [ld]: Add GLIBC_2.3.
6955         * elf/dl-addr.c: Move global variables for SHARED code in struct
6956         _rtld_global.  Export this struct, remove all exports for the
6957         signal variables.
6958         * elf/dl-close.c: Likewise.
6959         * elf/dl-conflict.c: Likewise.
6960         * elf/dl-debug.c: Likewise.
6961         * elf/dl-deps.c: Likewise.
6962         * elf/dl-dst.h: Likewise.
6963         * elf/dl-error.c: Likewise.
6964         * elf/dl-fini.c: Likewise.
6965         * elf/dl-init.c: Likewise.
6966         * elf/dl-iteratephdr.c: Likewise.
6967         * elf/dl-libc.c: Likewise.
6968         * elf/dl-load.c: Likewise.
6969         * elf/dl-lookup.c: Likewise.
6970         * elf/dl-minimal.c: Likewise.
6971         * elf/dl-object.c: Likewise.
6972         * elf/dl-open.c: Likewise.
6973         * elf/dl-profile.c: Likewise.
6974         * elf/dl-profstub.c: Likewise.
6975         * elf/dl-reloc.c: Likewise.
6976         * elf/dl-runtime.c: Likewise.
6977         * elf/dl-support.c: Likewise.
6978         * elf/dl-sym.c: Likewise.
6979         * elf/dl-version.c: Likewise.
6980         * elf/do-lookup.h: Likewise.
6981         * elf/do-rel.h: Likewise.
6982         * elf/dynamic-link.h: Likewise.
6983         * elf/rtld.c: Likewise.
6984         * sysdeps/generic/dl-cache.c: Likewise.
6985         * sysdeps/generic/dl-sysdep.c: Likewise.
6986         * sysdeps/generic/ldsodefs.h: Likewise.
6987         * sysdeps/generic/libc-start.c: Likewise.
6988         * sysdeps/i386/dl-machine.h: Likewise.
6989         * sysdeps/ia64/dl-fptr.c: Likewise.
6990         * sysdeps/ia64/dl-machine.h: Likewise.
6991         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
6992         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6993         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
6994         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
6995         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6996         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6997         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
6998         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7000 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7002         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7003         to avoid warning
7004         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7006         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7007         SHARED version.
7008         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7010         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7012 2002-01-29  Ben Collins  <bcollins@debian.org>
7014         * string/bits/string2.h (__mempcpy): Protect size arg for
7015         addition when using __builtin_memcpy.
7017 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7019         * stdlib/Makefile (tests): Add tst-qsort.
7020         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
7022         * manual/signal.texi (Process Signal Mask): Document that
7023         pthread_sigmask, not sigprocmask, must be used in MT programs.
7024         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7026         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7027         found.
7028         * misc/Makefile (tests): Add tst-hsearch.
7029         * misc/tst-hsearch.c: New file.
7031 2002-01-18  Wolfram Gloger  <wg@malloc.de>
7033         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7034         * malloc/malloc.h: Likewise.
7035         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7036         * malloc/arena.c: New file.
7037         * malloc/hooks.c: New file.
7038         * malloc/tst-mallocstate.c: New file.
7039         * malloc/Makefile: Add new testcase tst-mallocstate.
7040         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
7042 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7044         * stdlib/msort.c: Remove last patch.  The optimization violates the
7045         same rule which qsort.c had problems with.
7047 2002-01-27  Paul Eggert  <eggert@twinsun.com>
7049         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7050         to a pivot element that lies outside the array to be sorted, as
7051         ISO C99 requires that the comparison function be called only with
7052         addresses of array elements [PR libc/2880].
7054 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7056         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7057         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
7059         * timezone/asia: Update from tzdata2002b.
7060         * timezone/australasia: Likewise.
7061         * timezone/backward: Likewise.
7062         * timezone/europe: Likewise.
7063         * timezone/leapseconds: Likewise.
7064         * timezone/iso3166.tab: Likewise.
7065         * timezone/zone.tab: Likewise.
7067 2002-01-23  Richard Henderson  <rth@redhat.com>
7069         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7071 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7073         * string/strxfrm.c: Allocate one more byte for rulearr and clear
7074         this element [PR libc/2855].
7076         * string/strcoll.c: Handle zero-length arguments specially
7077         [PR libc/2856].
7079 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
7081         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7082         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7083         short lengths and constant src.
7084         (strcpy): Don't optimize for gcc 3.0+.
7085         (__stpcpy): For gcc 3.0+, don't use
7086         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7087         for short string literal src.
7089 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7091         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7092         Set for arm, too.
7094 2001-01-22  Paul Eggert  <eggert@twinsun.com>
7096         * manual/llio.texi (Linked Channels, Cleaning Streams):
7097         Make it clearer that a just-opened input stream might need cleaning.
7099 2002-01-21  H.J. Lu  <hjl@gnu.org>
7101         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7102         Don't use label at end of compound statement.
7104 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
7106         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7107         Remove test for negative integer arg; sin_pi does it correctly.
7109 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
7111         * nscd/Makefile (distribute): Filter out xmalloc.c.
7113 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
7115         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7116         Set offset if read end wasn't the buffer end.
7117         (_IO_file_seekoff_mmap): New function.
7118         (_IO_file_xsgetn_mmap): New function.
7119         (_IO_file_jumps_mmap): Use the two new functions.
7120         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7121         != end buffer.
7122         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7123         _IO_file_underflow_mmap.
7124         * libio/iofopen.c: Don't position file descriptor at end of file.
7125         * libio/tst-widetext.c: Improve error messages.
7126         * stdio-common/tst-rndseek.c: Likewise.
7128 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
7130         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7131         end of enum for !_GNU_SOURCE.
7132         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7133         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7134         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7135         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7136         values unless _GNU_SOURCE.
7138         * iconvdata/tcvn5712-1.c: Minor cleanups.
7140 2002-01-18  Andreas Schwab  <schwab@suse.de>
7142         * sysdeps/unix/sysv/linux/configure.in
7143         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7145 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7147         * stdlib/msort.c (msort_with_tmp): Replace implementation with
7148         more efficient "Towers of Hanoi" mergesort.
7149         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7150         for generic, sizeof(int) and sizeof(long) variants respectively.
7152 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
7154         * manual/syslog.texi (openlog): Describe possible problems with
7155         first parameter.
7156         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7158         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
7159         * nscd/connections.c (begin_drop_privileges): New function.
7160         (finish_drop_privileges): New function.
7161         (nscd_init): Call the new functions which also install all groups
7162         for the server user.
7163         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7164         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7166 2002-01-17  H.J. Lu  <hjl@gnu.org>
7168         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7169         `const' from `got'.
7171 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7173         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7174         instructions for pointer operations.
7175         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7177 2002-01-17  Andreas Jaeger  <aj@suse.de>
7179         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7180         __uint128_t build-in.
7182         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7183         PowerPC, sync with 2.2 branch.
7185 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7187         * posix/getconf.c: Update copyright year.
7188         * nss/getent.c: Likewise.
7189         * nscd/nscd_nischeck.c: Likewise.
7190         * iconv/iconvconfig.c: Likewise.
7191         * iconv/iconv_prog.c: Likewise.
7192         * elf/ldconfig.c: Likewise.
7193         * catgets/gencat.c: Likewise.
7194         * csu/version.c: Likewise.
7195         * elf/ldd.bash.in: Likewise.
7196         * elf/sprof.c (print_version): Likewise.
7197         * locale/programs/locale.c: Likewise.
7198         * locale/programs/localedef.c: Likewise.
7199         * nscd/nscd.c (print_version): Likewise.
7200         * debug/xtrace.sh: Likewise.
7201         * malloc/memusage.sh: Likewise.
7202         * malloc/mtrace.pl: Likewise.
7204 2002-01-16  Andreas Schwab  <schwab@suse.de>
7206         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7207         reliably remove "-ia64" from rtld name.
7209 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7211         * iconvdata/gb18030.c: Bug fixes and support for more characters.
7212         Patch by Yu Shao <yshao@redhat.com>.
7214 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7216         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7217         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7218         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7220 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7222         * sysdeps/s390/fpu/libm-test-ulps: Update.
7224 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
7226         * elf/elf.h: Update x86 relocations.
7228 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7230         * locale/programs/charmap.c (new_width): Check whether byte
7231         sequences for both ends of range have the same length.
7233 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7235         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7237 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7239         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7240         string literals.
7241         (__full_ieee754_sqrt): Add __attribute_used__.
7243 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7245         * sysdeps/generic/group_member.c (__group_member): Also check
7246         groups[0] [PR libc/2781].
7248 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
7250         * Makefile (distribute): Add scripts/cpp.
7251         * elf/Makefile (distribute): Add reldep6mod[01234].c,
7252         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7253         unwind-dw2-fde.h, and dwarf2.h.
7254         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7255         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7256         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7257         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7259 2002-01-07  Roland McGrath  <roland@frob.com>
7261         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7262         volatile on type of ARGC so the compiler doesn't get clever.
7264 2002-01-07  Andreas Jaeger  <aj@suse.de>
7266         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7267         * sysdeps/i386/bits/byteswap.h: Likewise.
7268         * sysdeps/ia64/bits/byteswap.h: Likewise.
7269         * sysdeps/m68k/bits/byteswap.h: Likewise.
7270         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7271         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7273 2002-01-02  Bruno Haible  <bruno@clisp.org>
7275         * intl/plural.y: Fix %expect count.
7277 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
7279         * elf/Makefile (routines, shared-only-routines): Add
7280         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7281         * elf/elf.h (PT_GNU_EH_FRAME): Define.
7282         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7283         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7284         Optimize if .eh_frame section contains no FDEs.
7285         (__register_frame, __deregister_frame_info_bases,
7286         __deregister_frame): Likewise.
7287         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7288         DW_CFA_restore handling.
7290 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
7292         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7294         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7295         for x < 0.25 and restore original range reduction method.
7296         (__ieee754_lgammal_r): Make sure signgam is set before returning.
7298 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
7300         * libio/fileops.c (_IO_file_underflow_mmap): New function.
7301         (_IO_file_close_mmap): New function.
7302         (_IO_file_jumps_mmap): New variable.
7303         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7304         trying to convert rest of byte buffer.
7305         (_IO_wfile_underflow_mmap): New function.
7306         (_IO_wfile_jumps_mmap): New variable.
7307         * libio/iofopen.c (__fopen_maybe_mmap): New function.
7308         (__fopen_internal): New function.  Split out from _IO_new_fopen.
7309         (_IO_new_fopen): Call __fopen_internal.
7310         * libio/iofopen64.c: Just call __fopen_internal.
7311         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7312         successfully.
7313         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7314         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7315         _IO_file_close_mmap.
7317         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7318         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7320         * stdio-common/Makefile (tests): Add tst-rndseek.
7321         * stdio-common/tst-rndseek.c: New file.
7323 2002-01-05  Roland McGrath  <roland@frob.com>
7325         * config.h.in (HAVE_MIG_RETCODE): New #undef.
7326         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7327         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7328         * sysdeps/mach/hurd/configure: Regenerated.
7330 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
7332         * elf/elf.h: Add more TLS definitions.
7334 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
7336         * include/features.h (__GLIBC_MINOR__): Bump to 3.
7338 2002-01-02  Roland McGrath  <roland@frob.com>
7340         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7341         __sigisemptyset.  Don't use MASK uninitialized.
7343         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7344         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7345         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7346         __sigdelset, __sigaddset, __sigorset.
7348         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7349         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7351         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7352         _hurd_ports is null.
7354         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7355         for old CMU and new OSF Mach interface flavors.
7356         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7357         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7359         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7361         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7362         Pass extra arguments to task_create for OSF variant.
7363         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7365         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7366         conditional on [HAVE_AUX_VECTOR].
7368         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7369         mach_msg_timeout_t as type of final argument.
7371         * hurd/privports.c (__get_privileged_ports):
7372         Change host_priv_t to mach_port_t in argument type.
7373         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7374         Update decls.
7376         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7377         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
7378         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7379         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7380         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7381         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7383 2002-01-01  Roland McGrath  <roland@frob.com>
7385         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7387 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
7389         * include/stdlib.h: Define inlines for the _l variants of the strto*
7390         functions.
7392 2002-01-01  Roland McGrath  <roland@frob.com>
7394         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
7396         * mach/Machrules (MIG): Set CPP as well as CC.
7398 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
7400         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
7401         locale to parse /proc/loadavg [PR libc/2760].
7403 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
7405         * elf/dl-conflict.c: Include sys/param.h.
7406         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
7407         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
7408         warning.
7409         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
7410         literals to avoid warnings.
7412 2001-12-31  Andreas Jaeger  <aj@suse.de>
7414         * configure.in: Don't check for gsed since we do not use it anywhere.
7416 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
7418         * io/fts.c: Update from BSD to fix memory leaks.
7420 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
7422         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
7423         * elf/chroot_canon.c: Likewise.
7424         * elf/dl-object.c: Likewise.
7425         * iconv/iconv_charmap.c: Likewise.
7426         * iconv/iconv_prog.c: Likewise.
7427         * libio/iogetdelim.c: Likewise.
7428         * locale/lc-time.c: Likewise.
7429         * stdlib/canonicalize.c: Likewise.
7430         * sunrpc/svc.c: Likewise.
7431         * sysdeps/generic/glob.c: Likewise.
7433 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7435         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
7436         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
7437         remove high order bit from the program counter.
7438         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
7440 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7442         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
7443         unnecessary code and add missing reloc types.
7444         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
7445         case for reloc type R_390_NONE.
7447 2001-12-28  Andreas Jaeger  <aj@suse.de>
7449         * io/bug-ftw3.c: Include string.h for prototypes.
7451         * crypt/md5test.c (main): Remove unused variable.
7453         * dlfcn/modstatic.c: Add prototype to avoid warning.
7455 2001-12-26  Roland McGrath  <roland@frob.com>
7457         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
7458         check only (SS->pending & MASK) for the signal to return.
7459         From Jeroen Dekkers <jeroen@dekkers.cx>.
7461 2001-12-22  Roland McGrath  <roland@frob.com>
7463         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
7464         Use preprocessor #if conditionals instead of `if' to avoid
7465         warnings about divide by zero in dead code.
7467         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
7468         _hurd_port_init, and __hurd_self_sigstate.
7470         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
7472 2001-12-21  Andreas Jaeger  <aj@suse.de>
7474         * elf/dblloadmod1.c: Add prototype to avoid warning.
7475         * elf/dblloadmod2.c: Likewise.
7476         * elf/dblloadmod3.c: Likewise.
7477         * elf/reldepmod5.c: Likewise.
7478         * elf/reldepmod6.c: Likewise.
7480         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
7481         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
7482         used on all architectures.
7484         * sunrpc/svc_tcp.c: Add noreturn attribute for
7485         svctcp_rendezvous_abort.
7486         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
7488         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
7489         to avoid warning.
7491 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
7493         * manual/llio.texi (aio_fsync): Fix a typo.
7494         Patch by Tammy Fox <tfox@redhat.com>.
7496 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
7498         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
7499         stack bias from child stack pointer before passing it to clone syscall.
7501 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
7503         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
7504         _SC_TZNAME_MAX.
7505         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
7506         Reported by Thorsten Kukuk <kukuk@suse.de>.
7508         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
7509         add some casts.
7511         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
7513 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
7515         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
7516         conforming: return EBADF if file descriptor is invalid and EINVAL
7517         if file descriptor is no valid tty.
7518         * login/tst-grantpt.c: New file.
7519         * login/Makefile (tests): Add tst-grantpt.
7521 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
7523         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
7524         different than implemented in last patch.
7525         * io/bug-ftw3.c: Adjust test for changed handling of
7526         inaccessibility of toplevel dir.
7528 2001-12-16  Roland McGrath  <roland@frob.com>
7530         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
7531         * grp/initgroups.c (internal_getgrouplist): Likewise.
7533         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
7534         `default:' to silence new GCC warning.
7535         Rewrite cast of lvalue to silence new GCC warning.
7537         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
7539         * sysdeps/mach/hurd/spawni.c: New file, by me with a
7540         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
7542 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
7544         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
7545         Patch by Stephen R. van den Berg.
7547         * crypt/md5.h: Define md5_uintptr.
7549 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
7551         * libio/tst_swprintf.c (main): Add test for string argument with
7552         zero precision.
7553         * stdio-common/Makefile (tests): Add tst-sprintf.
7554         * stdio-common/tst-sprintf.c: New file.
7556 2001-12-13  Andreas Schwab  <schwab@suse.de>
7558         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
7559         zero precision with wide character string format.
7561 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
7563         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
7564         but have a user supplied buffer, return the empty buffer, not NULL.
7566 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
7568         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
7569         Patch by Eric Sharkey <sharkey@netrics.com>.
7571         * crypt/md5test.c (main): Add test for multiple calls to
7572         __md5_process_bytes to itererate over input string.
7574 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
7576         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
7577         from __nis_findfastest.  Take timeout value from parameter.
7578         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7579         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
7580         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
7582 2001-12-12  Andreas Jaeger  <aj@suse.de>
7584         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
7585         combreloc test so that it works in this case.
7587         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
7589 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
7591         * sysdeps/sh/Makefile: New file.
7592         * sysdeps/sh/_mcount.S: New file.
7593         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
7594         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
7596 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
7598         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
7599         limitation [PR libc/2564].
7601 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
7603         * elf/Makefile (dl-routines): Add conflict.
7604         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
7605         (ld.so): Add _begin local symbol.
7606         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
7607         Define.
7608         * elf/dl-deps.c (_dl_build_local_scope): New.
7609         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
7610         of all libraries.
7611         * elf/do-rel.h (VALIDX): Define.
7612         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
7613         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
7614         can be skipped.
7615         * elf/dl-conflict.c: New file.
7616         * elf/dl-lookup.c (_dl_debug_bindings): New.
7617         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
7618         non-NULL.
7619         (_dl_lookup_symbol_skip): Likewise.
7620         (_dl_lookup_versioned_symbol): Likewise.
7621         (_dl_lookup_versioned_symbol_skip): Likewise.
7622         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
7623         define to ElfW(Rel).
7624         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
7625         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
7626         ranges.
7627         Don't adjust address dynamic tags if l_addr is 0.
7628         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
7629         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
7630         (VALIDX, ADDRIDX): Define.
7631         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
7632         (dl_main): Print library list for LD_TRACE_PRELINKING.
7633         If prelinking information can be used, skip relocating libraries and
7634         call _dl_resolve_conflicts instead.
7635         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
7636         * elf/dl-load.c (_dl_map_object): Don't create fake libs
7637         if LD_TRACE_PRELINKING.
7638         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
7639         + DT_ADDRNUM.
7640         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
7641         (DL_DEBUG_PRELINK): Define.
7642         (_dl_resolve_conflicts): Add prototype.
7644         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
7645         .plt for prelinked libraries where prelinking info cannot be used.
7646         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
7647         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
7648         * sysdeps/arm/bits/link.h: New file.
7649         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
7650         content of .got[1].
7651         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7652         (ELF_MACHINE_PLT_REL): Define.
7653         (elf_machine_rela, elf_machine_rela_relative): New.
7654         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
7655         of adjusting it if prelinked and prelinking cannot be used.
7656         * sysdeps/i386/bits/link.h: New file.
7657         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
7658         content of .got[1].
7659         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7660         (ELF_MACHINE_PLT_REL): Define.
7661         (elf_machine_rela, elf_machine_rela_relative): New.
7662         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
7663         of adjusting it if prelinked and prelinking cannot be used.
7664         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
7665         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
7666         to find out map for R_PPC_JMP_SLOT relocs.
7667         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
7668         (OPCODE_BA): Define.
7669         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7670         libraries where prelinking info cannot be used.
7671         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
7672         (elf_machine_fixup_plt): Call sparc_fixup_plt.
7673         (elf_machine_rela): Set value to 0 if relocating conflicts.
7674         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
7675         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
7676         (sparc64_fixup_plt): Fix a typo.
7677         (elf_machine_rela): Set value to 0 if relocating conflicts.
7678         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
7679         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7680         libraries where prelinking info cannot be used.
7681         * sysdeps/sh/bits/link.h: New file.
7682         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
7683         content of .got[1].
7684         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
7685         of adjusting it if prelinked and prelinking cannot be used.
7686         * sysdeps/s390/s390-32/bits/link.h: New file.
7687         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7688         Save original content of .got[1].
7689         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7690         of adjusting it if prelinked and prelinking cannot be used.
7691         * sysdeps/s390/s390-64/bits/link.h: New file.
7692         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
7693         Save original content of .got[1].
7694         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7695         of adjusting it if prelinked and prelinking cannot be used.
7696         * sysdeps/x86_64/bits/link.h: New file.
7697         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
7698         Save original content of .got[1].
7699         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
7700         of adjusting it if prelinked and prelinking cannot be used.
7702 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
7704         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
7705         where appropriate instead of numbers.  Little optimizations.
7707 2001-12-10  Roland McGrath  <roland@frob.com>
7709         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
7710         set it.
7712         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
7713         set to GLIBC_2.2.5, not GLIBC_2.2.4.
7715         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
7716         Fix conditionals so this is set by default for stdio and not for libio.
7717         * sysdeps/mach/hurd/configure: Regenerated.
7719 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
7721         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
7723 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
7725         * io/Makefile (tests): Add bug-ftw3.
7726         * io/bug-ftw3.c: New file.
7728         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
7729         matches and GLOB_NOCHECK is set.
7730         * posix/globtest.sh: Correct expected result for NOCHECK test.
7732         * po/ca.po: Update from translation team.
7734 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
7736         Implement transliteration of characters in strings of the locale
7737         definitions.
7738         * locale/programs/linereader.c: Adjust for additional parameter to
7739         lr_token.
7740         (get_string): If character <Uxxxx> is not found try to transliterate
7741         it.
7742         * locale/programs/ld-ctype.c: Adjust for additional parameter to
7743         lr_token.  Add const to charmap parameter of all functions.
7744         (find_translit, find_translit2): New functions.
7745         * locale/programs/charmap.c: Adjust for additional parameter to
7746         lr_token.
7747         * locale/programs/repertoire.c: Likewise.
7748         * locale/programs/linereader.h: Likewise.
7749         * locale/programs/ld-address.c: Likewise.  Add const to charmap
7750         parameter of all functions.
7751         * locale/programs/ld-collate.c: Likewise.
7752         * locale/programs/ld-identification.c: Likewise.
7753         * locale/programs/ld-measurement.c: Likewise.
7754         * locale/programs/ld-messages.c: Likewise.
7755         * locale/programs/ld-monetary.c: Likewise.
7756         * locale/programs/ld-name.c: Likewise.
7757         * locale/programs/ld-numeric.c: Likewise.
7758         * locale/programs/ld-paper.c: Likewise.
7759         * locale/programs/ld-paper.c: Likewise.
7760         * locale/programs/ld-telephone.c: Likewise.
7761         * locale/programs/ld-time.c: Likewise.
7762         * locale/programs/locfile.c: Likewise.
7763         * locale/programs/localedef.c: Likewise.
7764         * locale/programs/localedef.h: Likewise.
7765         * locale/programs/locfile.h: Likewise.  Add declaration for
7766         find_translit.
7767         * locale/programs/simple-hash.c: Add const to first parameter of
7768         find_entry, iterate_table, and lookup.
7769         * locale/programs/simple-hash.h: Likewise.
7770         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
7771         instead.
7772         * include/locale.h: Define __LC_LAST.
7773         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
7775 2001-12-07  Geoff Keating  <geoffk@redhat.com>
7777         * sysdeps/powerpc/Dist: Update for recent FP changes.
7778         * sysdeps/powerpc/fpu/Dist: Likewise.
7780 2001-12-07  Andreas Schwab  <schwab@suse.de>
7782         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
7784 2001-12-06  Geoff Keating  <geoffk@redhat.com>
7786         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
7787         save/restore functions here.
7788         (libm-support): Don't define these functions here.
7789         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
7790         functions here.
7791         * sysdeps/powerpc/fe_nomask.c: Move to...
7792         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
7793         * sysdeps/powerpc/fprrest.S: Move to...
7794         * sysdeps/powerpc/fpu/fprrest.S: ... here.
7795         * sysdeps/powerpc/fprsave.S: Move to...
7796         * sysdeps/powerpc/fpu/fprsave.S: ... here.
7798 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
7800         * sysdeps/unix/sysv/linux/opensock.c: New file.
7802 2001-12-06  Geoff Keating  <geoffk@redhat.com>
7804         * config.make.in (with-fp): Define from configure.
7805         * configure.in: Substitute with_fp.
7806         * configure: Regenerate.
7807         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
7808         specified, and don't change FPU environment.
7810 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
7812         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
7813         * assert/assert.c: Check result of __asprintf call and don't use
7814         string if it failed.
7815         * assert/assert-perr.c: Likewise.
7816         * inet/rcmd.c: Likewise.
7817         * locale/programs/localedef.c (main): Check result of
7818         construct_output_path and exit if it failed.
7819         (construct_output_path): Check result of asprintf and mkdir calls and
7820         fail if they failed.
7821         * posix/getopt.c: Check result of __asprintf calls and fail if
7822         they failed.
7823         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
7825 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
7827         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
7828         patch.
7829         * sysdeps/generic/strncase.c: Likewise.
7830         * string/tester.c: Add tests for strcasecmp and strncasecmp.
7832 2001-12-05  Geoff Keating  <geoffk@redhat.com>
7834         * scripts/cpp: Test the exit status from 'type', not 'awk'.
7836         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
7837         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
7838         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
7839         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
7840         * sysdeps/powerpc/fclrexcpt.c: Move to...
7841         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
7842         * sysdeps/powerpc/fpu_control.h: Move to...
7843         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
7845 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
7847         * iconvdata/ibm1129.h: Remove duplicate mappings.
7848         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
7849         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
7850         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7852         * timezone/zic.c: Fix handling of turnaround times.
7853         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
7855 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
7857         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
7858         overflow problem.
7860 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
7862         * posix/regex.c: For use outside glibc defined bounded pointer
7863         macros here.  Patch by Jim Meyering <jim@meyering.net>.
7865         * iconvdata/Makefile (modules): Add TCVN5712-1.
7866         * iconvdata/TESTS: Add TCVN5712-1.
7867         * iconvdata/gconv-modules: Likewise.
7868         * iconvdata/tcvn5712-1.c: New file.
7869         * iconvdata/testdata/TCVN-5712: New file.
7870         * iconvdata/testdata/TCVN-5712..UTF8: New file.
7872 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
7874         * iconvdata/cp1258.c: Optimize conversion from UCS4.
7876 2001-12-02  Roland McGrath  <roland@frob.com>
7878         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
7880         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
7881         Reported by Jeff Bailey <jbailey@nisa.net>.
7883         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
7884         Reported by Jeff Bailey <jbailey@nisa.net>.
7886         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
7887         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
7888         Reported by Jeff Bailey <jbailey@nisa.net>.
7890 2001-12-01  Roland McGrath  <roland@frob.com>
7892         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
7893         missing backslash in test arguments.
7894         * sysdeps/mach/hurd/configure: Regenerated.
7896 2001-11-26  Roland McGrath  <roland@frob.com>
7898         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
7899         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
7901 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
7903         * iconvdata/Makefile (modules): Add ARMSCII-8.
7904         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
7905         * iconvdata/armscii-8.c: New file.
7907 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
7909         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
7910         don't match, fix {{a,b},c} globbing, clean up.
7911         Patch by Flavio Veloso <flaviovs@magnux.com>.
7912         * posix/globtest.sh: Add new tests.
7914 2001-11-29  Andreas Jaeger  <aj@suse.de>
7916         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
7917         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
7919         * sysdeps/generic/abort.c: Include libioP.h for
7920         _IO_flush_all_lockp prototype.
7922 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
7924         * posix/regex.h: Define __restrict_arr correctly.
7926 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
7928         * iconvdata/ibm1163.c: New file.
7929         * iconvdata/ibm1163.h: New file.
7930         * iconvdata/ibm1164.c: New file.
7931         * iconvdata/ibm1164.h: New file.
7932         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
7933         * iconvdata/Makefile: Likewise.
7934         * iconvdata/testdata/IBM1163: New file.
7935         * iconvdata/testdata/IBM1163..UTF8: New file.
7936         * iconvdata/testdata/IBM1164: New file.
7937         * iconvdata/testdata/IBM1164..UTF8: New file.
7938         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7940         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
7941         * iconvdata/ibm1124.h: Likewise.
7942         * iconvdata/ibm1132.h: Likewise.
7943         * iconvdata/ibm1133.h: Likewise.
7944         * iconvdata/ibm1160.h: Likewise.
7945         * iconvdata/ibm1161.h: Likewise.
7946         * iconvdata/ibm1162.h: Likewise.
7947         * iconvdata/ibm856.h: Likewise.
7948         * iconvdata/ibm922.h: Likewise.
7949         * iconvdata/ibm930.h: Likewise.
7950         * iconvdata/ibm932.h: Likewise.
7951         * iconvdata/ibm933.h: Likewise.
7952         * iconvdata/ibm935.h: Likewise.
7953         * iconvdata/ibm937.h: Likewise.
7954         * iconvdata/ibm939.h: Likewise.
7955         * iconvdata/ibm943.h: Likewise.
7956         * iconvdata/ibm930.c: Pretty printing.
7957         * iconvdata/ibm937.c: Avoid access accross array boundary.
7959         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
7960         the current locale's codeset.
7961         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
7962         empty input string.
7963         * iconv/iconv_prog.c: Pass empty strings as default value for to-
7964         and from-charset.  Don't determine locale's charset here.
7966         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
7967         as the old _IO_flush_all but lock only if parameter is nonzero.
7968         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
7969         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
7970         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
7971         if libio is used [PR libc/2575].
7973 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
7975         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
7976         __signbitl): Only define for ISO C99.
7978 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
7980         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
7981         herrnop to NETDB_INTERNAL if we run out of buffer space.
7983 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
7985         * nss/nss_files/files-XXX.c (internal_getent): Correct input
7986         overflow test for platforms with signed char.
7987         Reported by Andrew Haley <aph@cambridge.redhat.com>.
7989 2001-11-28  Bruno Haible  <bruno@clisp.org>
7991         * locale/programs/simple-hash.c (lookup_2): Remove function.
7992         (insert_entry_2): Call lookup instead of lookup_2.
7994 2001-03-04  Bruno Haible  <bruno@clisp.org>
7996         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
7998 2001-10-31  Bruno Haible  <bruno@clisp.org>
8000         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8002 2001-03-21  Bruno Haible  <bruno@clisp.org>
8004         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8005         chokes on empty macro arguments.
8006         * intl/plural.y: Add #pragma for alloca on AIX 3.
8008 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8010         * intl/dcigettext.c (guess_category_value): Only implement for
8011         glibc.  Otherwise rely on function _nl_locale_name which isn't
8012         present in the glibc sources.
8014 2001-09-24  Bruno Haible  <bruno@clisp.org>
8016         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8017         transliteration when building on a glibc system but outside glibc.
8019 2001-09-22  Bruno Haible  <bruno@clisp.org>
8021         * intl/plural-eval.c: New file, extracted from dcigettext.c.
8022         * intl/dcigettext.c (plural_eval): Remove function, moved to
8023         intl/plural-eval.c.
8024         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8025         Include plural-eval.c.
8027 2001-09-22  Bruno Haible  <bruno@clisp.org>
8029         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8030         don't start with a digit; nplurals must be positive.
8032 2001-09-02  Bruno Haible  <bruno@clisp.org>
8034         * intl/plural-exp.h: New file, extracted from gettextP.h.
8035         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8036         * intl/gettextP.h (struct expression, struct parse_args,
8037         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8038         * intl/loadmsgcat.c: Include plural-exp.h.
8039         (PLURAL_PARSE): Move macro to plural-exp.h.
8040         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8041         plural-exp.c.
8042         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
8043         EXTRACT_PLURAL_EXPRESSION.
8044         (_nl_unload_domain): Update.
8045         * intl/dcigettext.c: Include plural-exp.h.
8046         * intl/plural.y: Include plural-exp.h, not gettextP.h.
8047         (FREE_EXPRESSION): Move macro to plural-exp.h.
8048         * intl/Makefile (routines): Add plural-exp.
8049         (distribute): Add plural-exp.h.
8051 2001-07-28  Bruno Haible  <bruno@clisp.org>
8053         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8054         isdigit, tolower argument to 'unsigned char'.
8055         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8056         'unsigned char'.
8057         * intl/localealias.c (read_alias_file): Cast isspace argument to
8058         'unsigned char'.
8060 2001-10-20  Bruno Haible  <bruno@clisp.org>
8062         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8063         anyway.)
8064         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8065         with the variable 'index' in plural_lookup.
8066         * intl/l10nflist.c (strchr): Likewise.
8067         * intl/localealias.c (strchr): Likewise.
8069         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8070         * intl/bindtextdom.c: Likewise.
8071         * intl/dcigettext.c: Likewise.
8072         * intl/dgettext.c: Likewise.
8073         * intl/dngettext.c: Likewise.
8074         * intl/explodename.c: Likewise.
8075         * intl/finddomain.c: Likewise.
8076         * intl/gettext.c: Likewise.
8077         * intl/l10nflist.c: Likewise.
8078         * intl/loadmsgcat.c: Likewise.
8079         * intl/localealias.c: Likewise.
8080         * intl/ngettext.c: Likewise.
8081         * intl/textdomain.c: Likewise.
8082         * intl/gettext.h: Assume <limits.h> exists.
8084 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8086         * stdio-common/Makefile (tests): Add scanf11.
8087         * stdio-common/scanf11.c: New file.
8089 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8091         * version.h (RELEASE): Define as development.
8092         (VERSION): Set to 2.2.90.
8094 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8096         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8097         * nis/nss_nis/nis-grp.c: Likewise.
8098         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8100         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8101         * nis/nss_nis/nis-pwd.c: Likewise.
8102         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8104         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8105         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8106         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8108         * nscd/grpcache.c: Use strtoul instead of atol.
8109         * nscd/pwdcache.c: Likewise.
8110         * nss/getent.c: Likewise.
8112 2001-11-27  Paul Eggert  <eggert@twinsun.com>
8114         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8115         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8117 2001-11-19  Bruno Haible  <bruno@clisp.org>
8119         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8120         90%.
8121         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8122         improves the quality of the hash function, especially for short
8123         strings.
8125 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8127         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8128         are found call conv_error and not input_error [PR libc/2669].
8130         * math/bits/mathcalls.h: Mark ceil and floor as const.
8131         Reported by David Mosberger.
8133 2001-11-21  Jim Meyering  <meyering@lucent.com>
8135         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8136         Define to be __-prefixed.
8137         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8139 2001-11-26  Andreas Jaeger  <aj@suse.de>
8141         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8142         avoid warning.
8144 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
8146         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8147         initialization.
8149         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8150         unused variables.  Fix threshold for returning 1.0.
8152         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8153         argument.
8155         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8156         remove unused variables.
8158         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8160         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8161         include local math header files.
8163 2001-11-22  Andreas Jaeger  <aj@suse.de>
8165         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8166         avoid warning.
8168 2001-11-21  Andreas Jaeger  <aj@suse.de>
8170         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8172         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8173         sys/debugreg.h
8175 2001-11-15  Andreas Jaeger  <aj@suse.de>
8177         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8178         compilers that support it.
8180         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8181         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8182         * stdlib/stdlib.h: Likewise.
8184 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
8186         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8187         statement with gotos.
8188         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8190 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
8192         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8194 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
8196         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8198 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
8199             H.J. Lu  <hjl@gnu.org>
8201         * Versions.def (libc): Add GCC_3.0.
8202         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8203         if gcc supports this flag.
8204         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8205         (gcc3): Allow glibc to be compiled with gcc 3.x.
8206         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8207         * config.make.in (static-libgcc, unwind-find-fde): Add.
8208         * Makerules (build-shlib-helper, build-module-helper): Use it.
8209         * scripts/versions.awk: Make sure GLIBC_ versions come first.
8210         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8211         necessary.
8212         (_fini): Call __deregister_frame_info_bases if
8213         __register_frame_info_bases was used to register.
8214         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8215         for GLIBC_2.0.
8216         (__register_frame_info_bases, __register_frame_info_table_bases,
8217         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8218         * elf/Makefile (routines): Add unwind-dw2-fde.
8219         (shared-only-routines): Add unwind-dw2-fde.
8220         * sysdeps/alpha/gccframe.h: New file.
8221         * sysdeps/arm/gccframe.h: New file.
8222         * sysdeps/generic/framestate.c: New file.
8223         * sysdeps/generic/dwarf2.h: New file.
8224         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8225         * sysdeps/generic/unwind-dw2-fde.c: New file.
8226         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8227         * sysdeps/generic/unwind-dw2-fde.h: New file.
8228         * sysdeps/generic/unwind-dw2.c: New file.
8229         * sysdeps/generic/unwind-pe.h: New file.
8230         * sysdeps/generic/unwind.h: New file.
8231         * sysdeps/hppa/gccframe.h: New file.
8232         * sysdeps/i386/gccframe.h: New file.
8233         * sysdeps/m68k/gccframe.h: New file.
8234         * sysdeps/mips/gccframe.h: New file.
8235         * sysdeps/powerpc/gccframe.h: New file.
8236         * sysdeps/s390/gccframe.h: New file.
8237         * sysdeps/sh/gccframe.h: New file.
8238         * sysdeps/sparc/gccframe.h: New file.
8239         * sysdeps/vax/gccframe.h: New file.
8240         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8241         Set on all architectures except ia64.
8242         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8243         for i386.
8244         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8245         __deregister_frame_info): Move to elf/Versions.
8246         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8247         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8248         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8249         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8250         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8251         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8252         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8253         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8254         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8255         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8256         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8257         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8258         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8259         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8260         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8261         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8262         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8263         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8265 2001-11-15  Jeff Law  <law@redhat.com>
8267         * posix/regex.c (uintptr_t): Do not provide a definition if the
8268         system provided one.
8270 2001-11-13  Roland McGrath  <roland@frob.com>
8272         * stdio-common/tmpfile.c: Moved to ...
8273         * sysdeps/generic/tmpfile.c: ... here.
8274         * sysdeps/mach/hurd/tmpfile.c: New file.
8276         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8277         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8278         (fopenport): Define as weak alias.
8280         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8281         * libio/libioP.h: ... to here.
8283 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
8285         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8286         program header twice.  Construct list with the needed information.
8288 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
8290         * po/ca.po: Update from translation team.
8292         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8293         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
8294         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8295         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8297 2001-11-10  Andreas Jaeger  <aj@suse.de>
8299         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8300         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8301         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8303 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8305         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8306         correctly.
8307         * elf/dl-load.c (is_dst): New function.
8308         (_dl_dst_count): Use is_dst to check for DST variable.
8309         (_dl_dst_substitute): Likewise.
8311 2001-11-09  Roland McGrath  <roland@frob.com>
8313         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8314         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8315         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8316         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8317         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8318         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8319         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8320         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8321         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8322         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8323         * sysdeps/mach/hurd/powerpc/Dist: New file.
8325         * hurd/privports.c (__get_privileged_ports):
8326         Only contact the proc server if necessary for this call.
8327         Suggested by Neal H Walfield <neal@cs.uml.edu>.
8328         Check error return for mach_port_mod_refs.
8330 2001-11-09  Andreas Schwab  <schwab@suse.de>
8332         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8334 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8336         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
8337         object is always the last in the list.
8338         (_dl_map_object_from_fd): Delete code to remove from object list
8339         when DF_1_NOOPEN is seen.  This is done in lose.
8341 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
8343         * elf/dl-object.c (_dl_new_object): Various small optimizations.
8345 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
8347         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8348         HWCAP_CHECK macro code.
8350         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8351         Now returns MAP_FAILED on error.
8352         * elf/rtld.c: Adjust caller.
8353         * sysdeps/generic/dl-cache.c: Likewise.
8354         * sysdeps/generic/ldsodefs.h: Adjust description.
8356         * elf/dl-version.c (match_symbol): Optimize error handling for size.
8357         (_dl_check_map_versions): Likewise.
8359 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8361         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8362         _dl_signal_error directly, always use lose.  Set fd to -1 after
8363         file is closed.
8364         (lose): Don't call close if fd == -1.
8366 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
8368         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
8369          Also fix typo @code {mbsinit} to @code{mbsinit}.
8371 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8373         * elf/dl-profile.c: Replace state variable with simple flag named
8374         running.  Remove commented-out code.
8376         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8377         (_dl_init_paths): Likewise.
8378         (_dl_map_object_from_fd): Likewise.
8379         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8381 2001-11-06  Roland McGrath  <roland@frob.com>
8383         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8384         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8386         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8387         sysdeps/powerpc/elf/sysdep.h.
8388         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8390 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
8392         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
8393         speed.
8394         (process_envvars): Some more optimizations.
8395         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
8397         * elf/elf.h: Add dynamic tag definitions for prelinking.
8399         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
8400         Rewrite code to remove environment varables for SUID binaries.
8401         Small optimization in LD_PROFILE handling.
8402         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
8403         changes.
8404         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8406         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
8408         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
8409         strings.  Change type of second parameter.
8410         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
8411         for last change.
8413         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
8415 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8417         * manual/string.texi: Fix typos.
8418         * manual/examples/argp-ex2.c: Likewise.
8420 2001-11-05  Roland McGrath  <roland@frob.com>
8422         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
8423         the more-specific unix/sysv/linux/powerpc file and breaks everything.
8424         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
8425         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
8426         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
8427         here, put under [__ELF__].
8429 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
8431         * manual/charset.texi: Extensive editing work.
8432         * manual/nss.texi: Likewise.
8433         Changes by Dennis Grace <dgrace@us.ibm.com>.
8435 2001-11-04  Roland McGrath  <roland@frob.com>
8437         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
8438         parameter to dir_mkfile.
8440 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
8442         * string/bits/string2.h (__strndup): If n is smaller than len, set
8443         len to n + 1.
8444         * string/tester.c (test_strndup): New function.
8445         (main): Call it.
8447 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
8449         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
8451         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
8452         * scripts/cpp: New file.
8454         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
8455         for rtld_search_dirs content.  Minor optimizations.
8457 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
8459         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
8460         avoiding unnecessary duplication.
8462 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
8464         * elf/dl-load.c (_dl_map_object): If library was found using
8465         LD_LIBRARY_PATH, don't try RUNPATH list.
8467 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8469         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
8470         Correct second argument of register_dump call.
8471         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
8472         Likewise.
8474 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
8476         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
8477         modules.
8478         * iconvdata/TESTS: Likewise.
8479         * iconvdata/gconv-modules: Likewise.
8480         * iconvdata/ibm1132.c: New file.
8481         * iconvdata/ibm1132.h: New file.
8482         * iconvdata/ibm1133.c: New file.
8483         * iconvdata/ibm1133.h: New file.
8484         * iconvdata/ibm1162.c: New file.
8485         * iconvdata/ibm1162.h: New file.
8486         * iconvdata/testdata/IBM1132: New file.
8487         * iconvdata/testdata/IBM1132..UTF8: New file.
8488         * iconvdata/testdata/IBM1133: New file.
8489         * iconvdata/testdata/IBM1133..UTF8: New file.
8490         * iconvdata/testdata/IBM1162: New file.
8491         * iconvdata/testdata/IBM1162..UTF8: New file.
8492         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
8494         * string/string.h: Fix typo in comment.
8495         * wcsmbs/wchar.h: Likewise.
8497 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
8499         * manual/getopt.texi (getopt_long, getopt_long_only): Include
8500         const in type of longopts parameter.
8502 2001-10-29  Andreas Jaeger  <aj@suse.de>
8504         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
8506 2001-10-29  Kevin Ryde  <user42@zip.com.au>
8508         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
8509         output, clarify `#' behaviour on 0.
8510         (Floating-Point Conversions): Clarify that %g only uses %e when
8511         the exponent would be greater than 1.
8513 2001-10-28  Roland McGrath  <roland@frob.com>
8515         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
8516         * sysdeps/mach/powerpc/machine-sp.h: New file.
8517         * sysdeps/mach/powerpc/sysdep.h: New file.
8518         * sysdeps/mach/powerpc/thread_state.h: New file.
8520         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
8521         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
8522         expect to need the same thing on every platform.
8524         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
8525         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
8527         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
8528         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
8529         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
8530         Move all these assembly-related definitions to ...
8531         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
8533         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
8534         by Peter Bruin <pjbruin@dds.nl>.
8536         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
8537         packing results for a `poll' call.
8539 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
8541         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
8542         correctly.
8543         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
8544         bracket expression.
8546         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8547         nrules value.
8548         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
8550 2001-10-24  H.J. Lu  <hjl@gnu.org>
8552         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
8553         Use __BEGIN_DECLS/__END_DECLS around prototypes.
8554         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
8556 2001-10-21  Jim Meyering  <meyering@lucent.com>
8558         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
8559         this code would end up calling gettext even in packages built
8560         with --disable-nls.
8561         * posix/getopt.c (_): Likewise.
8562         * posix/regex.c (_): Likewise.
8564 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
8566         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
8567         lookup not ip6.int.
8568         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
8569         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
8571 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
8573         * misc/sys/cdefs.h (__attribute_used__): Define.
8574         * elf/rtld.c (_dl_start): Add __attribute_used__.
8575         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
8577 2001-10-25  Andreas Schwab  <schwab@suse.de>
8579         * stdlib/a64l.c: Expect least significant digit first.
8580         * stdlib/l64a.c: Produce least significant digit first.
8581         * stdlib/Makefile (tests): Add test-a64l.
8582         * stdlib/test-a64l.c: New file.
8583         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
8585 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
8587         * po/sk.po: Update from translation team.
8589 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
8591         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
8593 2001-10-18  Andreas Schwab  <schwab@suse.de>
8595         * math/libm-test.inc (print_ulps): Print ulp values rounded to
8596         next whole number.
8597         (print_function_ulps): Likewise.
8598         (print_complex_function_ulps): Likewise.
8599         (print_max_error): Likewise.
8600         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
8602 2001-10-16  Andreas Schwab  <schwab@suse.de>
8604         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
8605         implementation.
8607         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
8608         BSD_SETJMP or BSD__SETJMP is defined, resp.
8609         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
8610         a tail call to __sigsetjmp that would require extending the
8611         caller's frame.
8612         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8613         * sysdeps/m68k/bsd-setjmp.S: Deleted.
8614         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
8615         Reported by Jes Sorensen <jes@trained-monkey.org>.
8617 2001-10-16  Andreas Jaeger  <aj@suse.de>
8619         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
8620         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
8621         close PR libc/2589.
8623 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
8625         * po/ca.po: New file.  Contributed by the translation team.
8627 2001-10-15  Ralf Baechle  <ralf@gnu.org>
8629         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
8630         a varargs prototype.  Remove dependency from kernel header files.
8632         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
8633         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
8635 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
8637         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
8638         to generate hexadecimal identifier.
8639         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
8641 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
8643         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
8645 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
8647         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
8648         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
8649         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8651         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
8652         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8653         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
8654         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
8655         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
8656         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
8658         * timezone/africa: Update from tzdata2001d.
8659         * timezone/asia: Likewise.
8660         * timezone/australasia: Likewise.
8661         * timezone/backward: Likewise.
8662         * timezone/europe: Likewise.
8663         * timezone/leapseconds: Likewise.
8664         * timezone/northamerica: Likewise.
8665         * timezone/southamerica: Likewise.
8666         * timezone/zone.tab: Likewise.
8668 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8670         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
8671         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
8673 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
8675         * elf/elf.h (PT_TLS): New definition.
8677 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
8679         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
8680         bits/errno.h
8682 2001-10-07  Roland McGrath  <roland@frob.com>
8684         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
8686 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
8688         * elf/elf.h: Add more ELFOSABI_* constants.
8690 2001-10-04  Ben Collins  <bcollins@debian.org>
8692         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
8693         decleration of __need_wchar_t.
8695 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
8697         * string/bits/string2.h (__strsep_g): Add prototype.
8698         (__strsep): Use it.
8699         * string/Versions (__strsep): Remove.
8700         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
8702 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
8704         * manua/llio.texi: Clarify file references added by mmap.
8705         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8707 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
8709         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
8710         Add sc_loadrs and sc_rbs_bas to match current kernel.
8712 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
8714         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8716         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
8718 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
8720         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
8721         object has been bumped because of relocation dependency, avoid
8722         duplicates in l_scope.
8723         (show_scope): Fix typos.
8724         * elf/Makefile: Add rules to build and run reldep6.
8725         * elf/reldep6.c: New file.
8726         * elf/reldep6mod0.c: New file.
8727         * elf/reldep6mod1.c: New file.
8728         * elf/reldep6mod2.c: New file.
8729         * elf/reldep6mod3.c: New file.
8730         * elf/reldep6mod4.c: New file.
8732 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
8734         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
8735         sparc64_fixup_plt.
8736         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
8737         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
8738         for non-lazy binding. Fix .plt[32768+] handling.
8739         (elf_machine_plt_value): Don't add addend.
8740         (elf_machine_rela): Call sparc64_fixup_plt instead of
8741         elf_machine_fixup_plt.
8742         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
8743         dynamic linker at 0xfffff800XXXXXXXX.
8745         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
8747 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
8749         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
8751 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
8753         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
8754         declare __cmsg_data field if its size would be bigger than 0.
8755         (CMSG_DATA): Adjust accordingly.
8756         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
8757         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
8758         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
8759         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
8760         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8761         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
8762         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8764 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
8766         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
8767         * iconvdata/testdata/IBM1160: New file.
8768         * iconvdata/testdata/IBM1160..UTF8: New file.
8769         * iconvdata/testdata/IBM1161: New file.
8770         * iconvdata/testdata/IBM1161..UTF8: New file.
8771         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8773 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
8775         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
8776         UL_SETFSIZE computations better.
8778         * rt/Makefile: Remove use of filter for librt again.
8780         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
8781         UL_SETFSIZE computations better.
8783         * string/Versions: Export __strsep for GLIBC_2.2.5.
8784         * string/bits/string2.h: Define all __STRING_INLINE functions if
8785         _FORCE_INLINES is defined.
8786         Use int instead of char of parameter types.
8787         (__strsep): Don't use __strsep_g.  Don't define it.
8788         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
8789         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
8790         __strcpy_small.
8791         (__stpcpy_a_small): Renamed from __stpcpy_small.
8792         (__strcspn_c1): Don't define if _FORCE_INLINES.
8793         (__strspn_c1): Likewise.
8795 2001-09-22  Ben Collins  <bcollins@debian.org>
8797         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
8798         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
8799         * sysdeps/ia64/bits/sigaction.h: Likewise.
8800         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
8802 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
8804         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
8806 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
8808         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
8810 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
8812         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
8814 2001-09-20  H.J. Lu  <hjl@gnu.org>
8816         * include/dlfcn.h (__RTLD_SPROF): New definiton.
8817         * elf/dl-open.c (dl_open_worker): Return immediately after loading
8818         for __RTLD_SPROF.
8819         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
8820         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
8822 2001-09-20  H.J. Lu  <hjl@gnu.org>
8824         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
8825         don't add 1.
8827 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
8829         * nss/getent.c: Accept -s parameter to overwrite rules in
8830         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
8832         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
8833         with as many ".0" as necessary to form a complete address
8834         inet_network understands.
8836         * nss/getent.c: Various cleanups.  Use simpler and fewer function
8837         calls.
8839 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8841         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
8842         _JMPBUF_UNWINDS.
8843         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
8845 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
8847         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
8848         IBM1161.
8849         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
8850         * iconvdata/ibm1160.c: New file.
8851         * iconvdata/ibm1160.h: New file.
8852         * iconvdata/ibm1161.c: New file.
8853         * iconvdata/ibm1161.h: New file.
8854         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8856 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
8858         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
8859         difference between base address and first PT_LOAD's virtual address,
8860         not the base address.
8862 2001-09-11  Tom Rix  <trix@redhat.com>
8864         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
8865         ifdef for __getopt_clean_environment.
8866         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
8868 2001-09-22  Andreas Jaeger  <aj@suse.de>
8870         * elf/reldep4.c (main): Add proper prototype to fix warning.
8872         * elf/reldep5.c (main): Remove unused variable.
8874         * math/math_private.h: Add prototypes.
8876 2001-09-21  Andreas Jaeger  <aj@suse.de>
8878         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
8879         * sysdeps/x86_64/Dist: New file.
8880         * sysdeps/x86_64/soft-fp/Dist: New file.
8882         * sysdeps/gnu/Dist: Remove eval.c.
8884 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
8886         * malloc/memusage.c (realloc): Don't count already allocated
8887         memory in the sums.
8888         (me): Always use dlsym() to find the real implementations.
8890         * malloc/memusage.sh: Make -n option actually do something.
8892 2001-09-20  Andreas Jaeger  <aj@suse.de>
8894         * elf/elf.h (R_390_NUM): Correct value.
8896         * Versions.def: Add missing versions 2.2.3 for libthread_db and
8897         libpthread.
8899         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
8900         for x86-64, install x86-64 into */lib64.
8902         * shlib-versions: Add x86-64.
8904         * elf/elf.h: Add x86-64 relocations.
8906 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
8908         * po/fr.po: Update from translation team.
8910 2001-09-19  Andreas Jaeger  <aj@suse.de>
8912         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
8913         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
8914         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
8915         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
8916         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
8917         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
8918         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
8919         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
8920         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
8921         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
8922         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
8923         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
8924         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
8925         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
8926         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
8927         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
8928         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
8929         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8930         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
8931         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
8932         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
8933         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
8934         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
8935         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
8936         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
8937         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
8938         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
8939         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
8940         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
8941         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
8942         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
8943         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
8944         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
8945         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
8946         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
8947         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
8948         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
8949         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
8950         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
8951         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
8952         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
8953         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
8954         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
8955         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
8956         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
8957         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
8958         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
8959         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
8960         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8961         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
8962         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
8963         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
8964         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
8965         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
8966         * sysdeps/unix/x86_64/sysdep.S: New file.
8967         * sysdeps/unix/x86_64/sysdep.h: New file.
8968         * sysdeps/x86_64/Implies: New file.
8969         * sysdeps/x86_64/Makefile: New file.
8970         * sysdeps/x86_64/Versions: New file.
8971         * sysdeps/x86_64/__longjmp.S: New file.
8972         * sysdeps/x86_64/abort-instr.h: New file.
8973         * sysdeps/x86_64/atomicity.h: New file.
8974         * sysdeps/x86_64/bits/endian.h: New file.
8975         * sysdeps/x86_64/bits/setjmp.h: New file.
8976         * sysdeps/x86_64/bits/string.h: New file.
8977         * sysdeps/x86_64/bp-asm.h: New file.
8978         * sysdeps/x86_64/bsd-_setjmp.S: New file.
8979         * sysdeps/x86_64/bsd-setjmp.S: New file.
8980         * sysdeps/x86_64/dl-machine.h: New file.
8981         * sysdeps/x86_64/elf/initfini.c: New file.
8982         * sysdeps/x86_64/elf/start.S: New file.
8983         * sysdeps/x86_64/ffs.c: New file.
8984         * sysdeps/x86_64/ffsll.c: New file.
8985         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
8986         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
8987         * sysdeps/x86_64/fpu/e_acosl.c: New file.
8988         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
8989         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
8990         * sysdeps/x86_64/fpu/e_expl.c: New file.
8991         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
8992         * sysdeps/x86_64/fpu/e_log10l.S: New file.
8993         * sysdeps/x86_64/fpu/e_log2l.S: New file.
8994         * sysdeps/x86_64/fpu/e_logl.S: New file.
8995         * sysdeps/x86_64/fpu/e_powl.S: New file.
8996         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
8997         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
8998         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
8999         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9000         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9001         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9002         * sysdeps/x86_64/fpu/fegetenv.c: New file.
9003         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9004         * sysdeps/x86_64/fpu/fegetround.c: New file.
9005         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9006         * sysdeps/x86_64/fpu/fesetenv.c: New file.
9007         * sysdeps/x86_64/fpu/fesetround.c: New file.
9008         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9009         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9010         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9011         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9012         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9013         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9014         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9015         * sysdeps/x86_64/fpu/s_atanl.c: New file.
9016         * sysdeps/x86_64/fpu/s_cosl.S: New file.
9017         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9018         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9019         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9020         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9021         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9022         * sysdeps/x86_64/fpu/s_logbl.c: New file.
9023         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9024         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9025         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9026         * sysdeps/x86_64/fpu/s_rintl.c: New file.
9027         * sysdeps/x86_64/fpu/s_significandl.c: New file.
9028         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9029         * sysdeps/x86_64/fpu/s_sinl.S: New file.
9030         * sysdeps/x86_64/fpu/s_tanl.S: New file.
9031         * sysdeps/x86_64/gmp-mparam.h: New file.
9032         * sysdeps/x86_64/hp-timing.c: New file.
9033         * sysdeps/x86_64/hp-timing.h: New file.
9034         * sysdeps/x86_64/htonl.S: New file.
9035         * sysdeps/x86_64/memusage.h: New file.
9036         * sysdeps/x86_64/setjmp.S: New file.
9037         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9038         * sysdeps/x86_64/stackinfo.h: New file.
9039         * sysdeps/x86_64/sysdep.h: New file.
9040         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9042         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9043         L Moshier.
9045 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9047         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9048         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9050 2001-09-18  Andreas Schwab  <schwab@suse.de>
9052         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9053         list, now that l_scope is a pointer.
9055         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9056         scope list.
9058 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9060         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9061         (elf_machine_rela_relative): Add a missing declaration.
9063 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
9065         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9066         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9067         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9068         ldd-rewrite scripts.
9070 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9072         * elf/ldd.bash.in: Update copyright message.
9074 2001-09-17  H.J. Lu  <hjl@gnu.org>
9076         * hurd/hurdmalloc.c (bcopy): Removed.
9077         (realloc): Replace bcopy with memcpy.
9078         * hurd/path-lookup.c (file_name_path_scan): Likewise.
9079         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9080         * sunrpc/rpcinfo.c (pmapdump): Likewise.
9082         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9083         (gethostbyaddr): Likewise.
9084         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9086 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9088         * sysdeps/gnu/eval.c: Removed.
9090 2001-09-18  Andreas Jaeger  <aj@suse.de>
9092         * sysdeps/i386/fpu/s_logbl.S: Move to ...
9093         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9095         * sysdeps/i386/fpu/s_rintl.S: Move to ...
9096         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9098         * sysdeps/i386/fpu/s_significandl.S: Move to ...
9099         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9101 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
9103         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9104         nrules value.
9106 2001-09-14  H.J. Lu  <hjl@gnu.org>
9108         * sysdeps/mips/fpu/libm-test-ulps: Updated.
9110 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
9112         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9113         Patch by Florian La Roche <laroche@redhat.com>.
9115         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9117         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9118         ETHER_CRC_LEN.
9120 2001-09-14  Andreas Schwab  <schwab@suse.de>
9122         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
9123         Sumner <bls@sgi.com>.
9124         * posix/execlp.c: Likewise.
9126 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9128         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9129         is already found earlier in the search scope.
9131 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9133         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9134         filter.
9136 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
9138         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9140 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
9142         * config.h.in: Enforce optimization to be used.
9143         * Makeconfig (preprocess-versions): Define ASSEMBLER.
9144         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9145         * posix/Makefile (annexc-CFLAGS): Define to -O.
9146         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9148 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
9150         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9151         Patch by Stephan Kulow.
9153 2001-09-08  Ben Collins  <bcollins@debian.org>
9155         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9156         usage of RESOLVE() (r_type, not reloc->r_type).
9158 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9160         * elf/dl-object.c: Avoid allocating extra memory block for name.
9161         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9162         allocated separately.
9163         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9165 2001-09-08  H.J. Lu  <hjl@gnu.org>
9167         * po/zh_TW.po: Fix a typo.
9169 2001-09-07  Tom Rix  <trix@redhat.com>
9171         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9173 2001-08-26  Tom Rix  <trix@redhat.com>
9175         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9176         command line options.
9177         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9178         * sysdeps/unix/sysv/aix/start.c: Removed.
9179         * sysdeps/unix/sysv/aix/start-libc.c: New file.
9180         * sysdeps/unix/sysv/aix/init-first.c: New file.
9181         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9183 2001-09-08  Ben Collins  <bcollins@debian.org>
9185         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9186         * sysdeps/generic/dl-machine.h: Likewise.
9187         * sysdeps/hppa/dl-fptr.c: Likewise.
9188         * sysdeps/ia64/dl-fptr.c: Likewise.
9189         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9190         * sysdeps/mips/dl-machine.h: Likewise.
9191         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9192         * sysdeps/powerpc/dl-machine.c: Likewise.
9194 2001-09-07  Ben Collins  <bcollins@debian.org>
9196         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9198         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9200 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9202         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9203         dependencies if necessary.
9205         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9206         loaded directly) determine length if l_initfini list by iterating
9207         over its elements.  Minor optimizations.
9208         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9209         for dependency objects.
9210         If object was already loaded check whether any of the dependencies
9211         is already on the relocation dependency list.  If yes, remove the
9212         latter.  Minor optimizations.
9213         * elf/dl-lookup.c (add_dependency): Add check for self reference of
9214         maps here.  Search l_initfini list only if the object was loaded
9215         directly and not only as a dependency.
9216         (_dl_lookup_symbol): Add relocation dependency also if object
9217         is not in global scope.  Remove test for self-reference here.
9218         (_dl_lookup_versioned_symbol): Likewise.
9219         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
9220         element of first name record.
9221         * elf/loadtest.c: Add some more test to recognize early if an object
9222         wasn't unloaded.
9223         * elf/Makefile: Add rules to build and run reldep5.
9224         * elf/reldep5.c: New file.
9225         * elf/reldepmod5.c: New file.
9226         * elf/reldepmod6.c: New file.
9228         * elf/reldep2.c: Fix typo.
9230 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
9232         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9233         elements.  Change l_scope to be a pointer only.
9234         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9235         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9236         here add searchlist of newly open file to the dependency's scope.
9237         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9238         only searchlist from its scope.  Free own scope array if necessary.
9239         * elf/Makefile (tests): Add dblload and dblunload now.
9241 2001-09-06  Andreas Jaeger  <aj@suse.de>
9243         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9244         Stephen L Moshier.
9246 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
9248         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
9249         they both fail.
9250         * elf/dblload.c: New file.
9251         * elf/dblloadmod1.c: New file.
9252         * elf/dblloadmod2.c: New file.
9253         * elf/dblloadmod3.c: New file.
9254         * elf/dblunload.c: New file.
9256 2001-09-04  Richard Henderson  <rth@redhat.com>
9258         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9259         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9261 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9263         Correct very misleading message for error in failed runtime relocation.
9264         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9265         place of the error.
9266         (_dl_signal_cerror): Likewise.
9267         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9268         * elf/dl-close.c: Likewise.
9269         * elf/dl-deps.c: Likewise.
9270         * elf/dl-load.c: Likewise.
9271         * elf/dl-lookup.c: Likewise.
9272         * elf/dl-open.c: Likewise.
9273         * elf/dl-reloc.c: Likewise.
9274         * elf/dl-sym.c: Likewise.
9275         * elf/dl-version.c: Likewise.
9276         * sysdeps/generic/dl-sysdep.c: Likewise.
9278 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9280         * iconv/strtab.c (strtabinit): Initialize null Strent.
9281         (newstring): Move len == 0 handling...
9282         (strtabadd): ...here.
9283         If len == 1, return null Strent.
9284         When inserting a suffix of an existing string, check if
9285         it is not equal to some suffix already recorded.
9286         Copy left and right members over if adding longer string.
9288 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9290         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9292         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9293         (__syscall_gethostname): Add prototype.
9295 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9297         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9299 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
9301         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9303 2001-08-27  Roland McGrath  <roland@frob.com>
9305         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9306         short, copy that much into NAME anyway before returning error.
9308 2001-09-01  Richard Henderson  <rth@redhat.com>
9310         * sysdeps/alpha/elf/Dist: Remove file.
9311         * sysdeps/alpha/elf/Makefile: Remove file.
9312         * sysdeps/alpha/elf/crtbegin.S: Remove file.
9313         * sysdeps/alpha/elf/crtend.S: Remove file.
9314         * sysdeps/alpha/elf/initfini.c: New file.
9316 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
9318         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9319         * iconv/tst-iconv3.c: Likewise.
9321 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
9323         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9325 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
9327         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9328         export it.
9329         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9330         * iconv/iconv_prog.c (insert_cache): New function.
9331         (print_known_names): If cache is used call insert_cache to use the
9332         information from the cache [PR libc/2509].
9334 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
9336         * time/strptime.c (strptime_internal): Recognize 'l' format and
9337         handle it like 'I' for symmetry with strftime.
9339 2001-08-31  Richard Henderson  <rth@redhat.com>
9341         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9342         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9343         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9344         (print_statistics): Make scalar unsigned long long.
9345         * sysdeps/alpha/hp-timing.h: New file.
9347 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9349         * stdio-common/perror.c (perror): Save errno early, pass it
9350         down to perror_internal.
9351         (perror_internal): Add errnum argument.
9353 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9355         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9356         Don't add old memory content for R_ALPHA_REFQUAD.
9358 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9360         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9361         memory correctly.
9363         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9364         instead of open, __close instead of close, __getpagesize instead
9365         of getpagesize.
9367         * string/argz-stringify.c (__argz_stringify): Use __strnlen
9368         instead of strnlen.
9369         * include/string.h (strndupa): Redefine here to use __strnlen
9370         instead of strnlen.
9371         * string/strndup.c (__strndup): Use __strnlen not strnlen.
9373         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9374         connected).
9376 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9378         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9379         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
9380         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9381         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9382         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9383         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9384         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9386 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9388         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9390 2001-08-30  Andreas Jaeger  <aj@suse.de>
9392         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
9393         contributed Stephen L Moshier.
9395 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9397         * sunrpc/etc.rpc (sgi_fam): Add.
9399 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9401         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
9403 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
9405         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
9406         first is from a previous call.
9407         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
9409 2001-08-29  Andreas Schwab  <schwab@suse.de>
9411         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
9413 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9415         * config.make.in (INSTALL_SCRIPT): Define.
9416         * Makeconfig (INSTALL_SCRIPT): Define.
9417         * Makerules (do-install-script): New macro to install scripts using
9418         INSTALL_SCRIPT.
9419         (install-bin-script): New rule to install scripts with
9420         do-install-script.
9421         (install-bin-script-nosubdir): New rule.
9422         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
9423         (distinfo-vars): Add $(install-bin-script).
9424         * Rules (others): Likewise.
9425         * Makefile (glibcbug): Install with install-bin-script.
9426         * debug/Makefile (xtrace): Likewise.
9427         (catchsegv): Likewise.
9428         * elf/Makefile (ldd): Likewise.
9429         * malloc/Makefile (mtrace): Likewise.
9430         * timezone/Makefile (tzselect): Likewise.
9432 2001-08-29  H.J. Lu  <hjl@gnu.org>
9434         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
9435         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
9436         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
9438 2001-08-29  Andreas Schwab  <schwab@suse.de>
9440         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
9442 2001-08-28  H.J. Lu  <hjl@gnu.org>
9444         * Makeconfig (combreloc-LDFLAGS): New variable.
9445         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
9446         * config.make.in (have-z-combreloc): New variable.
9447         * configure.in: Substitute libc_cv_z_combreloc.
9449 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
9451         * po/sv.po: Update from translation team.
9452         * po/fr.po: Likewise.
9453         * po/da.po: Likewise.
9455 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9457         * Makerules: Fix a typo: MD% -> MD5.
9459 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
9461         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
9462         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
9464 2001-08-28  Andreas Jaeger  <aj@suse.de>
9466         * manual/libc-texinfo.sh: Add entry about free manuals.
9468         * manual/contrib.texi (Contributors): Fix cross reference.
9470         * manual/libc.texinfo (Copying): Include freemanuals.
9472         * manual/Makefile (appendices): Add freemanuals.
9474         * manual/freemanuals.texi: New file.
9475         Patch by Brian Youmans <3diff@gnu.org>.
9477         * manual/libm-err-tab.pl: Pretty print more platforms, print a
9478         smaller table.
9480         * manual/math.texi (Errors in Math Functions): Fix grammar, start
9481         table on separate page.
9482         Patch by Brian Youmans <3diff@gnu.org>.
9484 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
9486         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
9487         the connection went down after we first used it try to connect
9488         again and resend the message before printing to the console.
9489         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
9491 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
9493         * string/tst-strlen.c (main): Test strnlen (, -1) too.
9494         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
9495         bit set.
9497 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
9499         * iconv/strtab.c (searchstring): Use correct length for comparison.
9500         (strtabadd): Account total size correct if new string has old string as
9501         substring.
9503 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
9505         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
9507 2001-08-27  Andreas Jaeger  <aj@suse.de>
9509         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
9511         * math/libm-test.inc (j0_test): Add extra tests.
9512         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
9513         not x, in Hankel approximation.
9514         Patches by Stephen L Moshier.
9516 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9518         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
9519         link_map.
9521         * configure.in: Fix test for .rela.dyn section.
9523         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
9525 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9527         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
9528         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
9529         Pass type_class to _dl_lookup_*.
9530         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
9531         Pass around just type_class instead of noexec, noplt pair.
9532         (_dl_lookup_versioned_symbol): Likewise.
9533         (_dl_lookup_symbol_skip): Pass around just type_class instead of
9534         noexec, noplt pair.
9535         (_dl_lookup_versioned_symbol_skip): Likewise.
9536         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
9537         * elf/do-lookup.h (do_lookup): Likewise.
9538         * include/link.h (struct link_map): Replace noexec and noplt fields
9539         in l_lookup_cache with type_class field.
9540         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
9541         ELF_RTYPE_CLASS_COPY): Define.
9542         Adjust prototypes for _dl_lookup_symbol and
9543         _dl_lookup_versioned_symbol.
9544         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
9545         elf_machine_lookup_noexec_p): Remove.
9546         (elf_machine_type_class): Define.
9547         * sysdeps/arm/dl-machine.h: Likewise.
9548         * sysdeps/hppa/dl-machine.h: Likewise.
9549         * sysdeps/cris/dl-machine.h: Likewise.
9550         * sysdeps/i386/dl-machine.h: Likewise.
9551         * sysdeps/ia64/dl-machine.h: Likewise.
9552         * sysdeps/m68k/dl-machine.h: Likewise.
9553         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9554         * sysdeps/mips/dl-machine.h: Likewise.
9555         * sysdeps/powerpc/dl-machine.h: Likewise.
9556         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9557         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9558         * sysdeps/sh/dl-machine.h: Likewise.
9559         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9560         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9562 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9564         * manual/message.texi (Advanced gettext functions): Change
9565         description of plural forms for Slovak.
9566         Reported by Marcel Telka <marcel@telka.sk>.
9568         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
9569         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
9571 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9573         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
9574         typo.  Patch by Florian La Roche <laroche@redhat.com>.
9576 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9578         * include/link.h (struct link_map): Add l_lookup_cache element.
9579         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
9580         (RESOLVE_MAP): Likewise.
9581         (_dl_relocate_object): Remove cache initialization.
9582         * elf/dl-lookup.c: Rip out cache handling code.
9583         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
9584         declarations.
9586         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
9587         remove some __builtin_expect.
9588         (_dl_lookup_versioned_symbol): Likewise.
9590         * config.h.in: Add HAVE_Z_COMBRELOC.
9591         * configure.in: Add test for -z combreloc.
9593         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
9594         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
9595         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
9596         case to almost no code.
9598 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
9600         * po/tr.po: Update from translation team.
9602 2001-08-24  Andreas Jaeger  <aj@suse.de>
9604         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
9605         make clean works.
9607 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9609         * elf/rtld.c (print_statistics): Printf % after percent values.
9610         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
9612         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
9613         don't have to compute the hash value and initialize current_value.
9614         Move reference_name variable to where it is needed.
9615         (_dl_lookup_versioned_symbol): Likewise.
9617 2001-08-24  Roland McGrath  <roland@frob.com>
9619         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
9620         Just test that strerror returns non-null for a few errno codes.
9622 2001-08-23  Roland McGrath  <roland@frob.com>
9624         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
9625         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
9627         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
9629         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
9630         __mach_reply_port.
9632 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9634         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
9635         returns NULL.
9637         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
9638         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
9639         doesn't do it.
9640         * elf/rtld.c: Include <sys/param.h>.
9641         * elf/dl-reloc.c: Likewise.
9643 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9645         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
9646         empty to prevent junk from being generated.
9647         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
9649 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
9651         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
9652         records.  Rename endrel to relative, initialize it to r, and use it
9653         in elf_machine_rel_relative calls.  Point r after relative relocs.
9655 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9657         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
9658         of R_386_NONE.
9660 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
9662         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
9663         necessary.  Undefine newly defined macros at the end.
9664         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
9665         Rename from elf_machine_rel_relative.
9666         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
9667         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
9668         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
9669         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
9670         Likewise.
9671         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
9672         Likewise.
9673         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
9674         Fix argument types.
9675         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
9676         Fix argument types.
9677         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
9678         Likewise.  Fix argument types.
9679         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
9680         Likewise.  Fix argument types.
9681         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
9682         Fix argument types.
9683         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
9684         ElfW(Rel) in argument.
9685         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
9686         function.
9688 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
9690         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
9692 2001-08-24  Andreas Jaeger  <aj@suse.de>
9694         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
9695         Stephen L Moshier <moshier@mediaone.net>.
9697 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9699         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
9700         first if RELCOUNT is set.
9702         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
9703         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
9704         elf_machine_rel_relative.
9705         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
9706         Minor optimizations.
9707         * sysdeps/arm/dl-machine.h: Likewise.
9708         * sysdeps/cris/dl-machine.h: Likewise.
9709         * sysdeps/hppa/dl-machine.h: Likewise.
9710         * sysdeps/i386/dl-machine.h: Likewise.
9711         * sysdeps/ia64/dl-machine.h: Likewise.
9712         * sysdeps/m68k/dl-machine.h: Likewise.
9713         * sysdeps/mips/dl-machine.h: Likewise.
9714         * sysdeps/powerpc/dl-machine.h: Likewise.
9715         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9716         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9717         * sysdeps/sh/dl-machine.h: Likewise.
9718         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9719         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9721 2001-08-23  Roland McGrath  <roland@frob.com>
9723         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
9725         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
9726         sysdeps/mach version.  Implement counting ("recursive") mutexes
9727         on top of cthreads mutexes.
9728         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
9730         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
9731         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
9732         (__libc_cleanup_region_start, __libc_cleanup_region_end,
9733         __libc_clean_end): Define these to call the cleanup function after
9734         normal exit when they're supposed to.
9736         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
9737         Take new first arg DOIT, a boolean saying whether to really install
9738         any cleanup handler.
9739         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
9740         (__libc_cleanup_end): Likewise.
9741         * sysdeps/generic/bits/libc-lock.h: Same changes.
9742         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
9743         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
9744         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
9745         Likewise.
9746         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
9747         * sysdeps/generic/bits/stdio-lock.h
9748         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
9750 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
9752         * elf/ldconfig.c (search_dir): Remove stale symlinks.
9754 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
9756         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
9757         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
9758         lookups in cache.
9759         (_dl_lookup_versioned_symbol): Likewise.
9760         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
9761         relocation lookup.
9762         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
9763         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
9764         (lookup_cache, lookup_cache_versioned): Add declarations.
9766 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
9768         * stdlib/tst-random.c (main): Swap parameters in fail call.
9769         Patch by Pete Bevin <pete@petebevin.com>.
9771 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
9773         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
9775 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
9777         * malloc/obstack.c: Indent preprocessor directives.
9778         Patch by Jim Meyering <meyering@ascend.com>.
9780         * po/ja.po: Update from translation team.
9782 2001-08-23  Roland McGrath  <roland@frob.com>
9784         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
9786         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
9787         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
9789 2001-08-22  Roland McGrath  <roland@frob.com>
9791         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
9792         __libc_lock_define_recursive.
9793         * elf/dl-open.c: Don't declare it here any more.
9794         * elf/dl-close.c: Likewise.
9795         * elf/dl-lookup.c: Likewise.
9796         * elf/dl-iteratephdr.c: Likewise.
9797         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
9798         __libc_lock_unlock_recursive.
9799         * elf/dl-close.c (_dl_close): Likewise
9800         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
9801         * elf/dl-open.c (_dl_open): Likewise
9803         * sysdeps/generic/bits/libc-lock.h
9804         (__libc_lock_define_recursive): New macro.
9805         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
9806         (_IO_lock_lock): Use __libc_lock_lock_recursive.
9807         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
9809         * conform/conformtest.pl (checknamespace): Sort the output list.
9811         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
9812         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
9813         definitions conditional on [__USE_XOPEN].
9815         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
9816         these unconditionally, not only use [__USE_BSD], so as to match
9817         the sysdeps/unix/sysv/linux files.
9819 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
9821         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
9822         avoid warnings.
9824         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
9825         DL_LOOKUP_ADDRESS.
9827 2001-08-22  Roland McGrath  <roland@frob.com>
9829         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
9830         conditionalization of sa_handler/sa_sigaction member types to
9831         match the sysdeps/unix/sysv/linux file.
9833 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
9835         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
9836         symbol sizes a bit better.
9838         * sysdeps/ia64/strncpy.S: Complete rewrite.
9839         Contributed by Jakub Jelinek <jakub@redhat.com>.
9841         * string/stratcliff.c (main): Add strncpy test.
9843 2001-08-22  Roland McGrath  <roland@frob.com>
9845         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
9846         and don't declare unsetenv or _environ directly.
9847         (unsetenv): Return int, not void.  Use __environ instead of _environ.
9849 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
9851         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
9852         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
9853         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
9854         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
9855         test for cmsg struct size.
9857 2001-04-23  Paul Eggert  <eggert@twinsun.com>
9859         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
9860         Rename __argc to ___argc in prototypes to avoid compatibility
9861         problems with systems that reserve the identifier "__argc".
9862         Similarly for __argv.
9864 2001-08-21  Roland McGrath  <roland@frob.com>
9866         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
9868         * mach/Makefile (tests): Removed.
9869         * mach/hello.c: File removed.
9871 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
9873         * po/sv.po: Update from translation team.
9875         * stdio-common/vfscanf.c: Fix handling of %l[].
9876         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
9878         * libio/Makefile (tests): Add tst-sscanf.
9879         * libio/tst-sscanf.c: New file.
9881         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
9882         * malloc/mtrace.c (tr_where): dli_sname always points to a
9883         non-empty string if != NULL.
9884         Reported by Tim Janik <timj@gtk.org>.
9886 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
9888         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
9889         buf.  Free resources on failure.
9890         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
9891         (makefd_xprt): Likewise.
9892         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
9893         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
9894         * sunrpc/auth_unix.c (authunix_create): Likewise.
9896 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
9898         * string/strnlen.c: Remove.
9899         * sysdeps/generic/strnlen.c: New file.
9900         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
9902 2001-08-21  Roland McGrath  <roland@frob.com>
9904         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
9905         as a macro, not an extern inline function.
9907         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
9908         * Versions.def (libc): Add GLIBC_2.2.5 set.
9909         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
9910         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
9912 2001-08-20  Roland McGrath  <roland@frob.com>
9914         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
9915         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
9917 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
9919         * string/bits/string2.h: Remove strnlen optimization here.
9920         * sysdeps/i386/i486/bits/string.h: Add it here.
9922 2001-08-21  Wolfram Gloger  <wg@malloc.de>
9924         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
9926 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
9928         * po/gl.po: Update from translation team.
9930 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
9932         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
9933         * misc/err.c (convert_and_print): Likewise.
9935         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
9936         function calls.
9938 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9940         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
9941         change of the gregset_t type.
9942         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9944 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9946         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
9948 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
9950         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
9952         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
9954 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
9956         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
9957         before calling the cthreads initialization code.
9959 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
9961         * argp/argp-help.c: Fix two problems introduced in last change.
9963         * include/dirent.h: Include <dirstream.h> first.
9965 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
9967         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
9969         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
9970         * sunrpc/xdr_rec.c: Likewise.
9971         * sunrpc/xdr_mem.c: Likewise.
9972         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
9973         * sunrpc/rpc_cmsg.c: Likewise.
9974         * sunrpc/getrpcport.c (getrpcport): Likewise.
9975         * sunrpc/clnt_simp.c (callrpc): Likewise.
9976         * sunrpc/clnt_gen.c (clnt_create): Likewise.
9977         * string/envz.c: Likewise.
9979         * po/ko.po: Update from translation team.
9981         * argp/argp-help.c: Handle wide oriented stderr stream.
9983 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
9985         * sysdeps/generic/strtol.c: Little optimizations.  Add some
9986         __builtin_expect.
9988         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
9990         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
9991         * wcsmbs/wcwidth.c (wcwdith): Likewise.
9992         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
9994         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
9996         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
9998         * time/time.h (struct timespec): Use __time_t for tv_sec element.
10000         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
10001         wchar_t for function declarations and defintions.
10003         * misc/sys/select.h: Define __need_time_t before including <time.h>.
10004         Define suseconds_t if it hasn't happened yet.
10006         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10008         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10010         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10011         <stddef.h>.
10013         * conform/data/stddef.h-data: Remove wint_t.
10015         * conform/conformtest.pl: Change namespace test to take #undef
10016         lines into account.
10018         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10020         * conform/data/sys/socket.h-data: Add sockatmark.
10022 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10024         * io/fts.c: Update from recent BSD source.
10026 2001-08-17  Roland McGrath  <roland@frob.com>
10028         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10029         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10030         Likewise.
10032 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10034         * locale/duplocale.c (__duplocale): Also initialize the special
10035         __ctype_* elements.
10037         * conform/data/netdb.h-data: Adjust gai_strerror return type.
10039 2001-08-17  Andreas Jaeger  <aj@suse.de>
10041         * misc/getpass.c: Include wchar.h for prototypes.
10042         * malloc/obstack.c: Likewise.
10044 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10046         * sunrpc/svc_simple.c (universal): Use __write instead of write.
10048         * wcsmbs/wcscoll.c: Also define __wcscoll.
10049         * include/wchar.h: Declare __wcscoll.
10051         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10052         * libio/vwprintf.c: Likewise.
10053         * libio/wprintf.c: Likewise.
10055         * iconv/gconv_cache.c: Use __munmap instead of munmap.
10057 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
10059         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10060         instead of mbrtowc.
10061         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10062         wcslen, and __wcscoll instead of wcscoll.
10064         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10066         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10067         __getuid instead of getuid.
10069         * stdio-common/perror.c (perror): Use __close instead of close.
10070         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10071         * libio/freopen.c (freopen): Likewise.
10072         * libio/freopen64.c (freopen64): Likewise.
10074         * libio/tst-ungetwc2.c (main): Define str const.
10076         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10077         * libio/fwprintf.c: Also define __fwprintf.
10078         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10079         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10080         * assert/assert-perr.c: Likewise.
10081         * assert/assert.c: Likewise.
10082         * gmon/gmon.c: Likewise.
10083         * inet/rcmd.c: Likewise.
10084         * malloc/obstack.c: Likewise.
10085         * misc/err.c: Likewise.
10086         * misc/error.c: Likewise.
10087         * misc/getpass.c: Likewise.
10088         * posix/getopt.c: Likewise.
10089         * resolv/res_hconf.c: Likewise.
10090         * stdio-common/perror.c: Likewise.
10091         * stdio-common/psignal.c: Likewise.
10092         * stdlib/fmtmsg.c: Likewise.
10093         * sunrpc/auth_unix.c: Likewise.
10094         * sunrpc/clnt_perr.c: Likewise.
10095         * sunrpc/clnt_tcp.c: Likewise.
10096         * sunrpc/clnt_udp.c: Likewise.
10097         * sunrpc/clnt_unix.c: Likewise.
10098         * sunrpc/svc_simple.c: Likewise.
10099         * sunrpc/svc_tcp.c: Likewise.
10100         * sunrpc/svc_udp.c: Likewise.
10101         * sunrpc/svc_unix.c: Likewise.
10102         * sunrpc/xdr.c: Likewise.
10103         * sunrpc/xdr_array.c: Likewise.
10104         * sunrpc/xdr_rec.c: Likewise.
10105         * sunrpc/xdr_ref.c: Likewise.
10106         * sysdeps/generic/wordexp.c: Likewise.
10108         * po/it.po: Update from translation team.
10110         * misc/err.c: Handle wide oriented stderr stream.
10112 2001-08-14  Tom Rix  <trix@redhat.com>
10114         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10115         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10117 2001-08-13  Tom Rix  <trix@redhat.com>
10119         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10120         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10121         and __intptr_t.
10123 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10125         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10126         Store the access registers to the ucontext structure.
10127         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10128         Likewise.
10130         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10131         Load the access registers from the ucontext structure.
10132         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10133         Likewise.
10135         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10136         offsets to the new ucontext layout.
10137         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10139         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10140         of the ucontext structure.
10141         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10143 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
10145         * misc/error.c (error): Handle wide oriented stderr stream correctly.
10146         (error_at_line): Likewise.
10148         * stdio-common/perror.c (perror): Implement according to standard.
10149         The stream orientation must not be changed if the stream was not
10150         oriented before the call.
10151         * stdio-common/Makefile (tests): Add tst-perror.
10152         * stdio-common/tst-perror.c: New file.
10155 See ChangeLog.12 for earlier changes.