1 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3 * elf/rtld.c: Include <errno.h>.
4 * sysdeps/generic/libc-tls.c: Likewise.
6 2002-08-07 Roland McGrath <roland@redhat.com>
8 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
10 (precsize_aton): Likewise.
12 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
13 the static symbols added in the last change (doofus is me).
15 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
16 loop to notice missing categories in a composite name.
18 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
19 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
20 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
21 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
23 2002-08-07 Ulrich Drepper <drepper@redhat.com>
25 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
27 2002-08-07 Roland McGrath <roland@redhat.com>
29 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
30 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
31 Reported by Jakub Jelinek <jakub@redhat.com>.
33 2002-08-07 Jakub Jelinek <jakub@redhat.com>
35 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
38 2002-08-06 Roland McGrath <roland@redhat.com>
40 * include/getopt.h: Put private decls inside [_GETOPT_H].
41 Use libc_hidden_proto for getopt_long, getopt_long_only.
42 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
45 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
46 Define as a macro for __dl_iterate_phdr.
48 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
49 made static. Add __ name as a strong alias.
50 (internal_endnetgrent): Likewise.
51 (internal_getnetgrent_r): Likewise.
53 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
55 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
56 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
57 all *_l functions with no __ prefix.
58 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
59 * ctype/ctype_l.c: Likewise.
60 * locale/nl_langinfo.c: Likewise.
61 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
62 * stdlib/stdlib.h [__USE_GNU]: Likewise.
63 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
64 * wctype/wctype.h [__USE_GNU]: Likewise.
65 * string/strcoll_l.c (strcoll_l): Define as weak alias.
66 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
67 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
68 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
69 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
70 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
71 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
72 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
73 (__wcscasecmp_l): Add libc_hidden_def.
74 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
75 (__wcsncasecmp_l): Add libc_hidden_def.
76 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
77 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
78 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
79 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
80 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
81 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
82 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
83 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
84 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
85 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
86 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
87 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
88 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
89 * wctype/wctype_l.c (wctype_l) Define as weak alias.
91 2002-08-05 Roland McGrath <roland@redhat.com>
93 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
94 netname2user, host2netname, user2netname, key_gendes.
95 * sunrpc/netname.c: Add libc_hidden_def.
96 * sunrpc/key_call.c: Likewise.
98 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
100 * inet/getnameinfo.c: Add libc_hidden_def.
101 * sysdeps/generic/getaddrinfo.c: Likewise.
102 * sysdeps/posix/getaddrinfo.c: Likewise.
104 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
105 * wcsmbs/wmemchr.c: Add libc_hidden_def.
106 * wcsmbs/wmemset.c: Add libc_hidden_def.
108 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
109 (index, rindex): Define as macros for strchr, strrchr.
111 * string/envz.c (envz_strip): index -> strchr
113 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
114 * sunrpc/rpc_prot.c: Add libc_hidden_def.
116 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
117 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
119 * include/stdlib.h: Use libc_hidden_proto for wctomb.
120 * stdlib/wctomb.c: Add libc_hidden_def.
122 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
123 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
124 * resolv/herror.c: Likewise.
125 * inet/rcmd.c: Add libc_hidden_def.
126 * inet/ruserpass.c: Likewise.
127 * inet/getnetgrent_r.c: Likewise.
129 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
130 svc_unregister, remove *_internal decls. Use libc_hidden_proto
131 for svcerr_auth, svcerr_noprog, svcerr_progvers.
132 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
134 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
135 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
137 * sysdeps/posix/system.c (do_system): New function, guts broken out of
139 (__libc_system): Call it, putting just the line == NULL test here.
141 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
142 variables work right.
144 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
145 * elf/dl-close.c (_dl_close): Likewise.
147 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
148 in6addr_any, in6addr_loopback. Remove decls for
149 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
150 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
151 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
152 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
153 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
154 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
155 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
157 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
159 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
161 * inet/ether_aton_r.c: Add libc_hidden_def.
162 * inet/ether_ntoa_r.c: Likewise.
164 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
166 * sunrpc/svc.c: Add libc_hidden_def.
167 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
168 pmap_set, pmap_unset.
169 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
170 * sunrpc/pm_getport.c: Likewise.
171 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
172 * sunrpc/publickey.c: Add libc_hidden_def.
174 2002-08-05 Ulrich Drepper <drepper@redhat.com>
176 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
177 the other memset call in this function.
179 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
180 at correct index. Clear BSS region now that memalign is used.
182 2002-08-05 Roland McGrath <roland@redhat.com>
184 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
185 * sysdeps/generic/uname.c: Add libc_hidden_def.
186 * sysdeps/mach/hurd/uname.c: Likewise.
188 2002-08-05 Jakub Jelinek <jakub@redhat.com>
190 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
191 wcspbrk): Add libc_hidden_proto.
192 * time/strftime.c (my_strftime): Add libc_hidden_def.
193 (strftime): Remove libc_hidden_def.
194 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
195 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
196 * wcsmbs/wcsspn.c (wcsspn): Likewise.
197 * wcsmbs/wcscmp.c (wcscmp): Likewise.
198 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
199 * wcsmbs/wcscoll.c (wcscoll): Likewise.
201 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
202 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
203 __rpc_thread_createerr): Add libc_hidden_proto.
204 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
205 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
206 __rpc_thread_createerr): Add libc_hidden_def.
208 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
209 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
210 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
211 clnt_perror, clnt_sperror): Add libc_hidden_def.
212 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
214 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
216 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
217 * sunrpc/des_soft.c (des_setparity): Likewise.
219 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
220 Add libc_hidden_proto.
221 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
224 2002-08-05 Roland McGrath <roland@redhat.com>
226 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
227 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
228 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
229 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
230 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
231 old data, abandoning the original memory allocated by rtld at startup,
232 instead of calling realloc normally.
234 2002-08-05 Ulrich Drepper <drepper@redhat.com>
236 * po/fr.po: Update from translation team.
238 2002-08-04 Roland McGrath <roland@redhat.com>
240 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
241 then generate a dummy module under the given name, obeying the
242 normal rules for the "caller" field.
244 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
245 actually iterate over the elements. Fix typo p_type -> p_vaddr.
247 * include/pthread.h: Don't declare __pthread_initialize_minimal as
248 weak here; we declare it weak or strong in the one place we use it.
249 * sysdeps/generic/libc-start.c: ... which is here.
250 Don't make the decl weak if [USE_TLS], since static programs need TLS
251 setup even when single-threaded.
253 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
255 * elf/Makefile (test-srcs): Add $(modules-names) to it.
256 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
257 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
260 2002-08-04 Ulrich Drepper <drepper@redhat.com>
262 * include/stdio.h: Don't define macro magic to redirect function
263 calls if _ISOMAC is defined.
265 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
268 2002-08-04 Roland McGrath <roland@redhat.com>
270 * stdlib/lrand48_r.c: Add libc_hidden_def.
272 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
273 TCB with __libc_memalign instead of mmap.
274 (_dl_deallocate_tls): Free it with free instead of munmap.
276 * Makerules (cpp-srcs-left): When setting this to run
277 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
278 words. Combine the two loops into one on the concatenated list,
279 including those as well as $(test-srcs).
281 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
282 since we align here with optimally minimal waste anyway.
283 (malloc): Just call that.
285 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
288 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
289 to compute memory location for l_tls_initimage.
290 * elf/rtld.c (_dl_start): Likewise.
291 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
293 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
294 because the .d file is generated in the non-shared case and
295 so fails to catch them otherwise.
297 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
298 split out of _dl_allocate_tls.
299 (_dl_allocate_tls_init): Likewise.
300 (_dl_allocate_tls): Call those.
301 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
302 * elf/rtld.c (dl_main): Call them separately instead of calling
303 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
304 is finished, so that the initializer data has been relocated before we
305 copy it into the main thread's TLS block.
307 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
308 loop conditions, prevented the last used module from being initialized.
310 2002-08-04 Jakub Jelinek <jakub@redhat.com>
312 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
313 if glob resp. globfree are not macros.
314 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
315 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
317 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
319 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
320 instead of libc_hidden_weak.
321 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
322 libc_hidden_ver instead of libc_hidden_def.
323 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
324 libc_hidden_ver instead of libc_hidden_def.
325 (wcstoll, wcstoq): Remove libc_hidden_weak.
326 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
328 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
330 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
332 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
335 2002-08-04 Ulrich Drepper <drepper@redhat.com>
337 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
338 to access _sys_siglist.
339 * string/strsignal.c: Likewise.
340 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
341 * sysdeps/gnu/siglist.c: Likewise.
342 * sysdeps/unix/siglist.c: Likewise.
343 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
345 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
347 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
349 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
351 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
353 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
354 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
355 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
357 * include/time.h: Add libc_hidden_proto for __gmtime_r.
358 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
360 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
361 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
362 and __gconv_get_cache respectively.
363 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
364 defined static. Change all users.
365 (__gconv_get_cache): New function.
366 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
367 (__gconv_get_alias_db): New function.
368 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
369 (__conv_modules_db): Likewise.
370 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
371 and __gconv_get_alias_db.
372 * iconv/iconv_prog.c: Use the new functions instead of accessing the
375 * include/stdlib.h: Add prototype and libc_hidden_proto for
377 * sysdeps/generic/morecore.c: Include <stdlib.h>.
379 * malloc/obstack.c: Remove fputs macro.
381 * malloc/mtrace.c: Remove fopen macro.
383 2002-08-04 Jakub Jelinek <jakub@redhat.com>
385 * manual/debug.texi: Fix spelling to programmatically.
386 Reported by <hayastan132@hotmail.com>.
388 2002-08-04 Ulrich Drepper <drepper@redhat.com>
390 * include/libio.h: Add libc_hidden_proto for __uflow.
391 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
392 fgetpos to _IO_* names.
393 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
394 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
395 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
396 putwc_unlocked, vswscanf.
397 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
398 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
399 * libio/fseek.c: Likewise.
400 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
402 * libio/genops.c (__uflow): Add libc_hidden_def.
403 * libio/iofflush_u.c (fflush_unlocked): Likewise.
404 * libio/iofgets_u.c (fgets_unlocked): Likewise.
405 * libio/iofputs_u.c (fputs_unlocked): Likewise.
406 * libio/iofputws_u.c (fputws_unlocked): Likewise.
407 * libio/iofread_u.c (fread_unlocked): Likewise.
408 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
409 * libio/iovswscanf.c (vswscanf): Likewise.
410 * libio/putwc_u.c (putwc_unlocked): Likewise.
411 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
412 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
413 * malloc/mtrace.c: Likewise.
415 * sunrpc/clnt_perr.c: Remove fputs macro.
416 * sunrpc/svc_simple.c: Likewise.
417 * sunrpc/svc_tcp.c: Likewise.
418 * sunrpc/svc_udp.c: Likewise.
419 * sunrpc/xdr_rec.c: Likewise.
420 * sunrpc/xdr_ref.c: Likewise.
422 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
423 iconv_prog, linereader, and charmap-dir.
424 * locale/Makefile: Likewise for locale and charmap-dir.
425 * malloc/Makefile: Likewise for memusagestat.
426 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
427 * sunrpc/Makefile: Likewise for rpc_main.
428 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
429 * timezone/Makefile: Likewise for zic.
431 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
433 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
434 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
435 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
436 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
439 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
441 * libio/genops.c (__underflow): Add libc_hidden_def.
442 * libio/wgenops.c (__wuflow): Likewise.
443 (__wunderflow): Likewise.
445 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
446 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
448 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
449 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
451 * include/string.h: Add libc_hidden_proto for __strverscmp.
452 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
454 * include/unistd.h: Add libc_hidden_proto for __sysconf.
455 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
456 * sysdeps/posix/sysconf.c: Likewise.
457 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
458 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
460 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
461 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
462 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
463 __iswxdigit_l, __towlower_l, __towupper_l.
464 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
465 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
467 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
468 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
469 * sysdeps/mach/hurd/xmknod.c: Likewise.
470 * sysdeps/unix/xmknod.c: Likewise.
471 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
472 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
473 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
475 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
477 2002-08-03 Roland McGrath <roland@redhat.com>
479 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
481 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
482 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
483 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
484 * sysdeps/mach/hurd/setpriority.c: Likewise.
485 * sysdeps/mach/hurd/getpriority.c: Likewise.
486 * sysdeps/generic/setpriority.c: Likewise.
487 * sysdeps/generic/getpriority.c: Likewise.
489 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
490 * malloc/mcheck.c: Add libc_hidden_def.
492 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
493 * misc/hsearch_r.c: Add libc_hidden_def.
495 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
496 * posix/fnmatch.c: Add libc_hidden_weak.
498 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
499 execl, execle, execlp, execvp, getpid, getsid.
500 * sysdeps/generic/alarm.c: Add libc_hidden_def.
501 * sysdeps/unix/alarm.c: Likewise.
502 * posix/confstr.c: Likewise.
503 * posix/execvp.c: Likewise.
504 * posix/execlp.c: Likewise.
505 * posix/execle.c: Likewise.
506 * posix/execl.c: Likewise.
507 * sysdeps/generic/getsid.c: Likewise.
508 * sysdeps/mach/hurd/getsid.c: Likewise.
509 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
510 * sysdeps/mach/hurd/getpid.c: Likewise.
512 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
513 qecvt_r, qfcvt_r, lrand48_r.
514 * misc/efgcvt_r.c: Add libc_hidden_def.
516 * include/wordexp.h: Use libc_hidden_proto for wordfree.
517 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
519 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
520 * locale/nl_langinfo.c: Add libc_hidden_def.
522 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
523 * sysdeps/generic/glob.c: Add libc_hidden_def.
524 * sysdeps/generic/glob64.c: Likewise.
525 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
527 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
529 * elf/Makefile (CFLAGS-vismod2.c): New variable.
531 * locale/setlocale.c (_nl_current_names): Variable moved ...
532 * locale/localename.c (_nl_current_names): ... here, new file.
533 Make it global, with attribute_hidden.
534 * locale/localeinfo.h: Declare it.
535 * locale/Makefile (aux): Add localename.
536 * locale/localename.c (__current_locale_name): New function.
537 * include/locale.h (__current_locale_name): Declare it.
538 * intl/dcigettext.c (guess_category_value): Use that instead of
541 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
542 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
543 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
544 * locale/newlocale.c: Add alias to __ name.
545 * locale/duplocale.c: Likewise.
546 * locale/freelocale.c: Likewise.
547 * locale/uselocale.c: New file.
548 * locale/Makefile (routines): Add it.
549 * locale/Versions (libc: GLIBC_2.3): New set.
550 Add newlocale, duplocale, freelocale, uselocale.
551 (libc: GLIBC_PRIVATE): Add __uselocale.
553 * locale/localeinfo.h [SHARED]
554 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
555 (_NL_CURRENT_DATA): Define using that.
556 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
557 (_NL_CURRENT_DEFINE): Define to empty.
558 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
559 conditionalized on this.
560 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
561 taking initializer of _nl_C_locobj.
562 [SHARED] (_nl_global_locale): New variable, using that initializer.
563 (_nl_C_locobj): Use new macro for initialzier.
564 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
565 [! SHARED] (CATEGORY_USED): New macro.
566 [SHARED] (CATEGORY_USED, _nl_C): New macros.
567 (setdata, setlocale): Use that macro instead of examining _nl_current.
568 (setdata): Set the slot in _nl_global_locale.
569 Conditionalize setting of _nl_current on [! SHARED].
570 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
571 declaration as an extern.
572 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
574 * include/locale.h: Use libc_hidden_proto for setlocale.
575 * locale/setlocale.c: Add libc_hidden_def.
577 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
579 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
580 * misc/hsearch_r.c: Add libc_hidden_def.
581 * misc/lsearch.c: Likewise.
583 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
585 * misc/getttyent.c: Add libc_hidden_def.
587 * include/mcheck.h: Use libc_hidden_proto for mcheck.
588 * malloc/mcheck.c: Add libc_hidden_def.
590 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
591 * include/argz.h: Use libc_hidden_proto for argz_delete.
592 * string/argz-delete.c: Add libc_hidden_def.
593 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
595 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
596 HIDDEN_JUMPTARGET for _exit.
597 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
598 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
599 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
600 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
602 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
603 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
604 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
605 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
607 * include/stdlib.h: Use libc_hidden_proto for abort,
608 __strtof_internal, __strtod_internal, __strtold_internal,
609 __strtol_internal, __strtoll_internal, __strtoul_internal,
610 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
611 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
612 __strtoul_l_internal, __strtoull_l_internal.
613 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
614 __wcstod_internal, __wcstold_internal, __wcstol_internal,
615 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
616 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
617 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
619 * sysdeps/generic/abort.c: Add libc_hidden_def.
620 * stdlib/strtod.c: Likewise.
621 * sysdeps/generic/strtol.c: Likewise.
622 * sysdeps/wordsize-64/strtol.c: Likewise.
623 * sysdeps/wordsize-64/wcstol.c: Likewise.
624 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
626 * include/stdlib.h: Use libc_hidden_proto for qsort.
627 * stdlib/msort.c: Add libc_hidden_def.
629 * include/utime.h: Use libc_hidden_proto for utime.
630 * sysdeps/generic/utime.c: Add libc_hidden_def.
631 * sysdeps/unix/utime.c: Likewise.
633 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
634 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
635 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
636 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
637 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
639 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
640 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
641 and __libc_current_sigrtmax.
642 * signal/sigismem.c: Add libc_hidden_def.
643 * signal/sigfillset.c: Likewise.
644 * signal/sigempty.c: Likewise.
645 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
646 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
647 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
648 * sysdeps/posix/raise.c: Likewise.
649 * sysdeps/generic/raise.c: Likewise.
651 2002-08-03 Ulrich Drepper <drepper@redhat.com>
653 * include/string.h: Use libc_hidden_proto for __stpcpy.
654 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
655 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
656 * sysdeps/generic/stpcpy.c: Likewise.
657 * sysdeps/i386/stpcpy.S: Likewise.
658 * sysdeps/i386/i586/stpcpy.S: Likewise.
659 * sysdeps/powerpc/stpcpy.S: Likewise.
660 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
661 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
663 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
664 __strncasecmp_l, __strdup, __strndup, __strerror_r.
665 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
667 * string/strdup.c (__strdup): Likewise.
668 * string/strndup.c (__strndup): Likewise.
669 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
670 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
672 2002-08-03 Jakub Jelinek <jakub@redhat.com>
674 * include/libio.h: New file.
675 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
676 * libio/iolibio.h: #include <libio.h>, not "libio.h".
677 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
678 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
679 * sysdeps/unix/common/syscalls.list: Likewise.
680 * sysdeps/unix/inet/syscalls.list: Likewise.
681 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
682 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
683 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
684 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
685 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
686 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
687 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
688 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
689 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
690 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
691 * sysdeps/unix/syscalls.list: Likewise.
693 2002-08-03 Jakub Jelinek <jakub@redhat.com>
694 Ulrich Drepper <drepper@redhat.com>
696 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
697 the arguments is big enough to cause an overflow.
699 2002-08-03 Ulrich Drepper <drepper@redhat.com>
701 * assert/assert.c: Use hidden_def not INTDEF.
703 2002-08-03 Jakub Jelinek <jakub@redhat.com>
705 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
708 2002-08-03 Roland McGrath <roland@redhat.com>
710 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
711 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
713 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
714 * misc/syslog.c: Add libc_hidden_def.
715 * misc/err.c: Likewise.
716 * stdlib/exit.c: Likewise.
717 * stdlib/bsearch.c: Likewise.
718 * sysdeps/generic/getenv.c: Likewise.
720 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
722 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
723 libc_hidden_weak for every system call symbol defined.
725 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
726 timelocal, localtime, strftime.
727 * time/asctime.c: Add libc_hidden_def.
728 * time/mktime.c: Likewise.
729 * time/localtime.c: Likewise.
730 * time/strftime.c: Likewise.
731 * time/strptime.c: Likewise.
732 * sysdeps/generic/time.c: Likewise.
733 * sysdeps/unix/time.c: Likewise.
734 * sysdeps/unix/sysv/i386/time.S: Likewise.
735 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
737 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
738 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
739 * resolv/inet_ntop.c: Likewise.
740 * resolv/inet_pton.c: Likewise.
741 * inet/inet_mkadr.c: Add libc_hidden_def.
742 * inet/inet_netof.c: Likewise.
743 * resolv/inet_addr.c: Likewise.
745 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
746 clauses from conditionals for now. Will have to be fixed later
749 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
751 2002-08-02 Ulrich Drepper <drepper@redhat.com>
753 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
754 broken alias attribute handling.
755 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
757 2002-08-02 Roland McGrath <roland@frob.com>
759 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
760 since it sets the variables we use in a -D switch.
762 2002-08-02 Roland McGrath <roland@redhat.com>
764 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
765 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
766 matches long int, not int.
768 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
769 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
770 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
771 * wctype/wctrans.c (wctrans): Likewise.
772 * wctype/wctype.c (__wctype): Likewise.
773 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
775 2002-08-02 Ulrich Drepper <drepper@redhat.com>
777 * assert/assert.c (__assert_fail): Fix typo in comment.
779 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
780 * sunrpc/rpc_thread.c: Define it without static.
781 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
783 2002-08-02 Jakub Jelinek <jakub@redhat.com>
785 * assert/assert.c (__assert_fail): Remove undef.
786 Replace INTDEF with libc_hidden_def.
787 * assert/__assert.c (__assert): Remove INTUSE.
788 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
790 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
791 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
792 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
793 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
794 libm_hiden_ver): Define.
795 * include/assert.h (__assert_fail_internal): Remove.
796 (__assert_fail): Add prototype. Add hidden_proto.
797 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
799 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
800 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
801 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
802 Add libc_hidden_proto.
803 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
804 __fcntl): Add libc_hidden_proto. Remove macros.
805 (__open_internal, __fcntl_internal): Remove.
806 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
807 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
808 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
810 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
812 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
814 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
815 * sysdeps/generic/open.c (__open): Remove undef.
816 Add libc_hidden_def. Remove INTDEF.
817 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
819 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
820 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
821 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
822 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
823 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
824 (__libc_fcntl): Add libc_hidden_def.
825 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
826 (__open): Remove INTDEF2. Add libc_hidden_weak.
827 (__libc_open): Add libc_hidden_def.
828 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
829 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
830 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
832 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
834 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
836 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
837 (__libc_fcntl): Add libc_hidden_def.
838 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
839 __getpgid_internal, __chown_internal): Remove.
840 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
841 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
843 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
844 __getpid_internal, __open_internal, __write_internal): Remove.
845 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
846 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
847 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
848 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
849 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
850 Replace INTDEF with libc_hidden_def.
851 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
852 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
853 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
854 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
855 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
856 Add libc_hidden_proto.
857 * include/sys/poll.h (__poll): Add libc_hidden_proto.
858 * include/sys/select.h (__select): Likewise.
859 * include/sys/socket.h (__send): Likewise.
860 * include/sys/statfs.h (__statfs): Likewise.
861 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
862 __getpid, __getpgid, __setpgid, __close, __read, __write,
863 __getpagesize, __sbrk): Likewise.
864 (__chown_internal, __dup2_internal, __getpid_internal,
865 __getpgid_internal, __close_internal, __write_internal,
866 __getpagesize_internal): Remove.
867 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
869 * include/printf.h (__printf_fp): Add libc_hidden_proto.
870 * include/sched.h (__sched_setscheduler): Likewise.
871 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
872 * include/stdlib.h (__secure_getenv): Likewise.
873 * include/signal.h (__sigaction, __sigsuspend): Likewise.
874 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
875 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
876 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
877 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
878 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
879 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
880 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
881 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
882 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
883 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
884 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
885 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
886 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
887 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
888 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
889 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
890 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
891 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
892 * libio/genops.c (__overflow): Add libc_hidden_def.
893 * libio/iovdprintf.c: Remove libio.h include.
894 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
895 libc_hidden_weak): Define to nothing if not defined.
896 (__overflow, __woverflow): Add libc_hidden_proto.
897 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
898 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
899 (DB_LOOKUP_FCT): Add libc_hidden_proto.
900 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
901 (DB_LOOKUP_FCT): Add libc_hidden_proto.
902 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
904 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
905 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
906 (__getpgid): Add libc_hidden_proto.
907 (__bsd_getpgrp): Remove INTUSE.
908 * resolv/res_init.c (__res_ninit, __res_randomid): Add
910 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
911 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
912 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
913 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
914 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
915 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
916 __rpc_thread_createerr): Add libc_hidden_def.
917 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
919 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
920 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
921 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
922 * sysdeps/generic/chown.c (__chown): Likewise.
923 * sysdeps/generic/close.c (__close): Likewise.
924 * sysdeps/generic/dup2.c (__dup2): Likewise.
925 * sysdeps/generic/pipe.c (__pipe): Likewise.
926 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
927 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
928 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
929 * sysdeps/generic/read.c (__libc_read): Likewise.
930 (__read): Add libc_hidden_weak.
931 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
932 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
933 * sysdeps/generic/select.c (__select): Likewise.
934 * sysdeps/generic/send.c (__send): Likewise.
935 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
936 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
937 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
938 * sysdeps/generic/statfs.c (__statfs): Likewise.
939 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
940 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
941 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
942 Remove undef and INTDEF.
943 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
944 * sysdeps/generic/getpid.c (__getpid): Likewise.
945 * sysdeps/generic/write.c (__libc_write): Likewise.
946 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
947 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
948 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
949 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
950 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
951 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
952 Remove undef and INTDEF.
953 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
954 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
955 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
956 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
957 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
958 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
959 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
960 (__pipe): Add libc_hidden_def.
961 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
963 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
964 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
965 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
966 (__read): Add libc_hidden_weak.
967 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
968 (__libc_pwrite64): Add libc_hidden_def.
969 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
970 * sysdeps/mach/hurd/select.c (__select): Likewise.
971 * sysdeps/mach/hurd/send.c (__send): Likewise.
972 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
973 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
974 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
975 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
976 * sysdeps/posix/dup2.c: Likewise.
977 Remove undef and INTDEF.
978 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
979 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
980 (__pwrite64): Add libc_hidden_weak.
981 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
982 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
983 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
984 * sysdeps/standalone/close.c (__close): Likewise.
985 * sysdeps/standalone/write.c (__libc_write): Likewise.
986 (__write): Add libc_hidden_weak.
987 * sysdeps/standalone/read.c (__read): Likewise.
988 (__libc_read): Add libc_hidden_def.
989 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
990 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
991 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
992 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
993 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
994 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
995 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
996 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
997 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
998 __GI___sigaction): Add.
999 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1000 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1001 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1002 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1003 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1004 __GI___setpgid): Add.
1005 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1006 Remove undef and INTDEF.
1007 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1008 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1009 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1010 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1011 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1012 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1013 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1014 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1015 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1016 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1017 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1018 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1019 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1020 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1021 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1022 __GI___statfs, __GI___send): Add.
1023 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1024 libc_hidden_ver resp. libc_hidden_def.
1025 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1027 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1028 Likewise. Remove undef and INTDEF.
1029 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1030 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1031 __GI___statfs, __GI___send): Add.
1032 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1034 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1036 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1037 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1038 libc_hidden_ver resp. libc_hidden_def.
1039 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1041 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1042 Add libc_hidden_weak.
1043 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1044 Add libc_hidden_def.
1045 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1046 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1048 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1049 resp. libc_hidden_def.
1050 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1052 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
1054 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1055 Likewise. Remove undef.
1056 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1058 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1059 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1061 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1063 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1064 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1065 Likewise. Remove undef and INTDEF.
1066 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1068 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1070 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1072 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1073 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1074 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1076 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1077 Add libc_hidden_def.
1078 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1079 __GI___statfs): Add.
1080 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1082 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1083 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1084 Remove undef and INTDEF.
1085 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1086 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1088 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1089 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1091 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1093 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1094 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1095 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1097 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1098 libc_hidden_def. Remove undef and INTDEF.
1099 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1100 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1102 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1103 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1104 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1105 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1106 Remove undef and INTDEF.
1107 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1108 broken visibility attribute handling.
1109 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1111 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1113 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1114 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1116 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1119 2002-06-29 Todd Fries <todd@openbsd.org>
1121 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1123 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1125 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1127 2002-07-30 Roland McGrath <roland@redhat.com>
1129 * resolv/resolv.h (_res): Define macro unconditionally.
1130 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1131 * include/resolv.h: ... here.
1132 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1133 as a __thread variable.
1134 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1135 a __thread variable instead of a global.
1136 * resolv/res_data.c [_LIBC]: Don't #undef _res.
1138 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1141 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1143 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1144 decls of memset and memcpy.
1146 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1147 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1149 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1151 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1152 (__libc_tsd_define): Define using __thread.
1154 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1155 (__rpc_thread_variables): Use __libc_tsd_get.
1156 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1157 __rpc_thread_variables, which might allocate what we're about to free.
1159 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1160 thread-local variable.
1161 * resolv/netdb.h (h_errno): Define macro unconditionally.
1162 [_LIBC] (__set_h_errno): Macro moved to ...
1163 * include/netdb.h: ... here.
1164 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1165 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1166 [! _LIBC_REENTRANT]: #undef h_errno here.
1168 * include/errno.h: Protect from multiple inclusion.
1170 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1171 before defining them, since Linux's <linux/posix_types.h> might have
1174 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1176 * malloc/malloc.c (public_cALLOc): Check for overflow on
1178 * sunrpc/xdr_array.c (xdr_array): Likewise.
1179 * sunrpc/rpc/types.h (mem_free): Add comment.
1180 Patch by Solar Designer <solar@openwall.com>.
1182 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1184 * sysdeps/unix/sysv/linux/kernel-features.h
1185 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1187 2002-08-01 Roland McGrath <roland@redhat.com>
1189 * libio/fileops.c (_IO_file_sync_mmap): New function.
1190 (_IO_file_jumps_mmap): Use it.
1191 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
1192 repeat the stat check and resize the mapped buffer as necessary.
1194 2002-07-31 Roland McGrath <roland@redhat.com>
1196 * libio/fileops.c (decide_maybe_mmap): New static function.
1197 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1198 mmap the file contents. Then switch the jump tables to the mmap
1199 tables if it worked, or the vanilla file tables if not.
1200 (_IO_file_underflow_maybe_mmap): New function.
1201 (_IO_file_seekoff_maybe_mmap): New function.
1202 (_IO_file_xsgetn_maybe_mmap): New function.
1203 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1204 * libio/libioP.h: Declare those.
1205 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1206 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1207 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1208 If the stream is read-only, set its jump tables to those new ones.
1209 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1210 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1211 We need the tables set before _IO_file_attach.
1213 * libio/tst-mmap-eofsync.c: New file.
1214 * libio/tst-mmap-fflushsync.c: New file.
1215 * libio/bug-mmap-fflush.c: New file.
1216 * libio/tst-mmap2-eofsync.c: New file.
1217 * libio/Makefile (tests): Add them.
1219 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
1220 _IO_file_underflow_mmap fails, it already set the appropriate bit.
1222 2002-07-31 Jeff Bailey <jbailey@gnu.org>
1224 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
1225 Declarations moved to <bits/sys_errlist.h>. Include that file.
1226 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
1227 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
1228 declare sys_errlist and sys_nerr.
1229 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
1230 provide declarations.
1232 2002-07-31 Roland McGrath <roland@redhat.com>
1234 * elf/rtld.c (dl_main): Fix typo in error message.
1236 2002-07-31 Roland McGrath <roland@frob.com>
1238 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
1239 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
1240 sysdeps/mach/hurd/dl-sysdep.c change.
1242 2002-07-28 Ulrich Drepper <drepper@redhat.com>
1244 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
1245 -r`/build/include for kernel headers.
1247 * po/fi.po: New file.
1249 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
1251 * configure.in (static_nss): Set to `yes' if --disable-shared.
1253 2002-07-23 Bruno Haible <bruno@clisp.org>
1255 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
1258 2002-07-25 Jakub Jelinek <jakub@redhat.com>
1260 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
1261 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
1264 2002-07-25 Jakub Jelinek <jakub@redhat.com>
1266 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
1269 2002-07-21 Bruno Haible <bruno@clisp.org>
1271 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
1272 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
1273 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1274 trans_sysdep_tab_offset.
1275 (struct sysdep_segment): New type.
1276 (struct sysdep_string): New type.
1277 (SEGMENTS_END): New macro.
1278 * intl/gettextP.h (struct sysdep_string_desc): New type.
1279 (struct loaded_domain): New fields malloced, n_sysdep_strings,
1280 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1281 orig_tab, trans_tab, hash_tab to const pointers because they point
1282 into read-only memory.
1283 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1284 (PRI*): Define fallback values.
1285 (get_sysdep_segment_value): New function.
1286 (_nl_load_domain): Distinguish major and minor revision parts. Add
1287 support for minor revision 1 with system dependent strings.
1288 (_nl_unload_domain): Also free the 'malloced' field.
1289 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1290 now done in loadmsgcat.c. Add support for system dependent strings.
1292 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
1294 * posix/bug-regex7.c: New file.
1295 * posix/bug-regex8.c: New file.
1296 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1298 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
1300 * posix/bug-regex4.c (main): Fix typos.
1301 * posix/bug-regex6.c (main): Likewise.
1303 2002-07-27 Ulrich Drepper <drepper@redhat.com>
1305 * posix/bug-regex6.c (main): Fix warnings.
1307 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1309 * iconv/iconv_prog.c (main): Improve error message for the cases
1310 where -t and/or -f parameter are missing.
1312 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
1314 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1315 (re_search): Likewise.
1316 (re_match_2): Likewise.
1317 (re_search_2): Likewise.
1318 (re_search_stub): New function.
1319 (re_search_2_stub): New function.
1320 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1322 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
1324 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1325 (re_string_eoi): Use STOP instead of LEN.
1326 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1327 (re_string_construct): Likewise.
1328 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1329 * posix/regexec.c (re_search_internal): Add a new argument STOP
1330 so that it can handle the argument STOP of re_search_2 and re_match_2
1332 (regexec): Adapt to new I/F of re_search_internal.
1333 (re_search_stub): Likewise.
1335 2002-07-25 Ulrich Drepper <drepper@redhat.com>
1337 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1339 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1341 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1342 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1345 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1346 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1347 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1348 alias for adjtimex syscall.
1350 * elf/dl-minimal.c: Define __assert_fail_internal.
1351 * assert/assert.c: Likewise.
1352 * include/assert.h: Define __assert_file macro if !SHARED and not
1355 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1357 * locale/Makefile: Likewise.
1358 * nscd/Makefile: Likewise.
1359 * catgets/Makefile: Likewise.
1361 2002-07-24 Ulrich Drepper <drepper@redhat.com>
1363 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1364 compute current position.
1366 * stdio-common/tst-fseek.c (main): Improve error messages.
1368 * libio/tst-freopen.c (main): Remove unused variable.
1370 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1371 succesful seek call. Simplify error checking.
1373 2002-07-25 Jakub Jelinek <jakub@redhat.com>
1375 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1376 * sysdeps/ia64/fpu/libm_support.h: Likewise.
1378 2002-07-19 Roland McGrath <roland@frob.com>
1380 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1381 __libc_enable_secure is set.
1383 2002-07-24 Roland McGrath <roland@frob.com>
1385 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1386 This implementation supports only IPv4.
1387 * inet/ifaddrs.h: New file.
1388 * sysdeps/generic/ifaddrs.c: New file.
1389 * sysdeps/gnu/ifaddrs.c: New file.
1390 * inet/test-ifaddrs.c: New file.
1391 * inet/Makefile (routines): Add ifaddrs.
1392 (headers): Add ifaddrs.h here.
1393 (tests): Add test-ifaddrs.
1394 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1396 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1397 socket call to get an AF_INET socket, instead of using __opensock.
1398 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1400 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1401 if not -1 use it instead of calling __opensock.
1402 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1403 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1404 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1406 * sysdeps/mach/hurd/ifreq.h: New file.
1407 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1408 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1409 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1411 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1412 which gets moved around. Calculate size of mmap'd buffer instead.
1414 2002-07-24 Philip Blundell <philb@gnu.org>
1416 * sysdeps/unix/arm/brk.S: Improve schedule.
1417 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1418 efficient instruction.
1419 (__socket): Optimize return sequence.
1421 2002-07-24 Ulrich Drepper <drepper@redhat.com>
1423 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1424 sockets on old kernels.
1426 2002-07-22 Philip Blundell <philb@gnu.org>
1428 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1429 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
1432 2002-07-24 Ulrich Drepper <drepper@redhat.com>
1434 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1435 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1437 * locale/programs/locarchive.c (add_locale_to_archive): Correct
1438 test to detect duplicate locales.
1440 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1441 position would be before beginning of file.
1442 (_IO_file_seekoff_mmap): Likewise.
1443 * libio/Makefile (tests): Add bug-fseek.
1444 * libio/bug-fseek.c: New file.
1446 * intl/explodename.c: Remove support for CEN-style locale variables.
1447 It was never used and shouldn't be since it's not portable.
1448 * intl/finddomain.c: Likewise.
1449 * intl/l10nflist.c: Likewise.
1450 * intl/loadinfo.h: Likewise.
1451 * locale/findlocale.c: Likewise.
1453 2002-07-24 Roland McGrath <roland@frob.com>
1455 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1456 position, calculate it to take into account an active pushback buffer.
1458 * libio/Makefile (tests): Add bug-ungetc.
1459 * libio/bug-ungetc.c: New file.
1461 2002-07-23 Ulrich Drepper <drepper@redhat.com>
1463 * sysdeps/generic/libc-tls.c: New file.
1464 * csu/Makefile (routines): Add libc-tls.
1465 (static-only-routines): Add libc-tls.
1466 * elf/dl-support.c (_dl_phdr): New variable.
1467 (_dl_phnum): New variable.
1468 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1469 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1470 for !SHARED. First look through auxiliary vector. If TLS always
1471 call __pthread_initialize_minimal.
1473 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1474 in mmap call is never zero.
1476 2002-07-23 Andreas Jaeger <aj@suse.de>
1478 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1479 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1481 2002-07-22 Ulrich Drepper <drepper@redhat.com>
1483 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1484 creation and removal of the temp file.
1486 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
1488 * test-skeleton.c (create_temp_file): New function.
1490 2002-07-22 Andreas Jaeger <aj@suse.de>
1492 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1495 2002-07-21 Roland McGrath <roland@frob.com>
1497 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1498 put -I../include before -I../stdlib so we get the right errno.h et al.
1499 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1500 (CFLAGS-wcstof.c): Likewise.
1501 (CFLAGS-wcstold.c): Likewise.
1502 (CFLAGS-wcstod_l.c): Likewise.
1503 (CFLAGS-wcstof_l.c): Likewise.
1504 (CFLAGS-wcstold_l.c): Likewise.
1506 2002-07-19 Roland McGrath <roland@frob.com>
1508 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1510 2002-07-20 Ulrich Drepper <drepper@redhat.com>
1512 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1513 __ASSUME_AT_XID is defined.
1514 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1516 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1517 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1519 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1520 (CFLAGS-wcstof.c): Likewise.
1521 (CFLAGS-wcstold.c): Likewise.
1522 (CFLAGS-wcstod_l.c): Likewise.
1523 (CFLAGS-wcstof_l.c): Likewise.
1524 (CFLAGS-wcstold_l.c): Likewise.
1526 2002-07-18 Jakub Jelinek <jakub@redhat.com>
1528 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1529 __priority_which_t): Always typedef to int for C++.
1531 2002-07-19 Ulrich Drepper <drepper@redhat.com>
1533 * configure.in: Add test for __thread support in compiler.
1534 * config.h.in: Add HAVE___THREAD.
1535 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1536 * include/sys/errno.h: Moved to...
1537 * stdlib/sys/errno.h: ...here. New file.
1538 * stdlib/errno.h: New file. Moved from...
1539 * include/errno.h: ...here. Changed into an internal header defining
1540 libc-local things like __set_errno.
1541 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1543 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
1544 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
1546 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
1548 (_dl_start_final): ...here. Add code to initialize tls elements from
1550 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
1551 if USE_TLS && HAVE___THREAD.
1552 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
1553 * sysdeps/mach/hurd/bits/errno.h: Likewise.
1554 * sysdeps/standalone/arm/bits/errno.h: Likewise.
1555 * sysdeps/standalone/bits/errno.h: Likewise.
1556 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
1557 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
1558 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
1559 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
1560 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
1561 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
1562 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
1563 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
1564 use GL(dl_rtld_map), use map parameter.
1565 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1566 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
1567 USE_TLS && HAVE___THREAD.
1568 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
1569 definitions. If USE_TLS && HAVE___THREAD store errooor value using
1571 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1573 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
1574 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
1575 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1576 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1577 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1578 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1580 2002-07-17 Ulrich Drepper <drepper@redhat.com>
1582 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
1583 MS_INVALIDATE values.
1585 2002-07-17 Andreas Schwab <schwab@suse.de>
1586 Ulrich Drepper <drepper@redhat.com>
1588 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
1589 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1590 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1591 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1593 2002-07-01 H.J. Lu <hjl@gnu.org>
1595 * elf/circleload1.c (load_dso): Call "circlemod1" and check
1598 * elf/circlemod1.c (circlemod1): Return int.
1599 * elf/circlemod2.c (circlemod2): Likewise.
1600 * elf/circlemod2a.c (circlemod2): Likewise.
1601 * elf/circlemod3.c (circlemod3): Likewise.
1602 (circlemod3a): A new function.
1604 2002-07-16 Ulrich Drepper <drepper@redhat.com>
1606 * catgets/tst-catgets.c (main): Don't expect results for
1607 untranslated messages.
1609 * glibcbug.in: Fix little typo. Remove STDIO.
1611 * config.h.in: Fail if __FAST_MATH__ is defined.
1612 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
1613 (CPPFLAGS-test-idouble.c): Likewise.
1614 (CPPFLAGS-test-ildouble.c): Likewise.
1616 2002-07-15 Ulrich Drepper <drepper@redhat.com>
1618 * intl/tst-gettext.sh: Pass -f option to msgfmt.
1619 * intl/tst-gettext.c: Correctly handle untranslated messages in
1622 * po/de.po: Update from translation team.
1624 2002-07-02 H.J. Lu <hjl@gnu.org>
1626 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
1628 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1630 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
1633 2002-07-15 Ulrich Drepper <drepper@redhat.com>
1635 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
1636 TLS fail if USE_TLS is not defined.
1638 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
1639 and adjust state for seek position. [PR libc/4070]
1640 * libio/Makefile (tests): Add bug-rewind.
1641 * libio/bug-rewind.c: New file.
1643 2002-07-12 Philip Blundell <philb@gnu.org>
1645 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
1646 (__backtrace): Use it.
1647 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
1649 2002-07-12 Philip Blundell <philb@gnu.org>
1651 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
1652 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1653 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1654 (elf_machine_rela): Remove unused variable.
1656 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1657 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1660 2002-07-12 Ulrich Drepper <drepper@redhat.com>
1662 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1664 2002-07-14 Andreas Jaeger <aj@suse.de>
1666 * sysdeps/x86_64/bits/link.h: Add biarch support.
1668 2002-07-13 Andreas Jaeger <aj@suse.de>
1670 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1671 Use correct indices.
1672 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1674 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1676 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1677 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1678 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1679 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1680 * sysdeps/s390/s390-32/bits/link.h: Remove.
1681 * sysdeps/s390/s390-64/bits/link.h: Remove.
1682 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1683 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1684 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1685 * sysdeps/s390/bits/wordsize.h: New file.
1686 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1688 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1689 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1690 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1691 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1692 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1693 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1694 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1695 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1696 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1697 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1698 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1699 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1701 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1702 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1703 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1704 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1705 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1706 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1707 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1709 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1710 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1712 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1713 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1714 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1716 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1717 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1718 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1719 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1720 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1721 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1722 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1723 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1725 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1726 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1727 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1729 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1730 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1732 2002-07-11 Ulrich Drepper <drepper@redhat.com>
1734 * Versions.def (libc): Add GLIBC_2.3.
1735 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1736 * stdlib/canonicalize.c: Add compatibility version for realpath
1737 and make new code available in GLIBC_2.3.
1739 2002-07-06 Bruno Haible <bruno@clisp.org>
1741 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1743 2002-07-11 Ulrich Drepper <drepper@redhat.com>
1745 * resolv/res_hconf.c (_res_hconf_init): Move code into new
1746 function do_init. Use __libc_once.
1747 (do_init): New function.
1749 * iconvdata/iso8859-11.h: Removed.
1750 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1751 (distribute): Remove iso8859-11.h.
1752 * iconvdata/tst-tables.sh: Add ISO-8859-11.
1754 * stdio-common/vfscanf.c (inchar): Restore errno from previous
1755 underflow operation if c == (W)EOF.
1757 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1759 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1760 non-zero, adjust exponent.
1761 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1762 Remove NO_LONG_DOUBLE aliases.
1763 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1764 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1765 (__log1pl): Raise divide by zero and invalid exceptions when needed.
1766 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1768 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1769 Fix BITS_PER_MP_LIMB 32 extraction.
1770 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1771 exceptions for qNaNs.
1772 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1773 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1774 Raise exceptions when needed. Don't recurse unnecessarily.
1775 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1776 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1777 exceptions for qNaNs.
1778 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1779 to fix *quo return value sign.
1780 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1782 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1784 2002-07-01 Jakub Jelinek <jakub@redhat.com>
1786 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1787 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1790 2002-07-10 Ulrich Drepper <drepper@redhat.com>
1792 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1795 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1796 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
1798 * Versions.def (libthread_db): Add GLIBC_2.3.
1800 2002-07-09 Jakub Jelinek <jakub@redhat.com>
1802 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1803 new stream if possible.
1804 * libio/freopen64.c (freopen64): Likewise.
1805 * libio/Makefile (tests): Add tst-freopen.
1806 * libio/tst-freopen.c: New file.
1808 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1810 * libio/stdio.h (obstack_printf): Add format attribute.
1811 (obstack_vprintf): Likewise.
1813 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1815 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1816 resp. 16 bytes on 32-bit resp. 64-bit platforms.
1817 (re_charset_t, re_string_t): Reorder structure members for 64-bit
1820 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1822 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1823 (init_dfa): ...here.
1825 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1827 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1828 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1829 nodes in parse trees.
1830 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1831 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1832 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1833 nodes which can epsilon transit.
1834 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1835 to IS_EPSILON_NODE macro.
1836 * posix/regexec.c (update_regs): New function to update registers
1837 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1838 (proceed_next_node): Use the entities of the nodes to determine
1839 whether the node can transit to.
1840 (set_regs): Use update_regs function to update registers.
1842 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1844 * posix/bug-regex4.c (main): Remove duplicate setlocale.
1845 * posix/bug-regex6.c: New file.
1846 * posix/Makefile (tests): Add bug-regex6.
1847 (bug-regex6-ENV): Set LOCPATH.
1849 2002-07-10 Ulrich Drepper <drepper@redhat.com>
1851 * Versions.def [libpthread]: Add GLIBC_2.2.6.
1852 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1854 2002-07-06 Bruno Haible <bruno@clisp.org>
1856 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
1858 2002-07-06 Bruno Haible <bruno@clisp.org>
1860 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1863 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1865 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1867 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1869 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1871 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1872 * sysdeps/generic/bits/ustat.h: Likewise.
1874 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
1876 2002-07-08 Andreas Jaeger <aj@suse.de>
1878 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1880 2002-07-08 Andreas Jaeger <aj@suse.de>
1882 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1884 2002-07-06 Andreas Jaeger <aj@suse.de>
1886 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1887 * sysdeps/x86_64/fpu/s_copysign.S: New.
1888 * sysdeps/x86_64/fpu/s_copysignf.S: New.
1889 * sysdeps/x86_64/fpu/s_copysignl.S: New.
1890 * sysdeps/x86_64/fpu/s_finitel.S: New.
1891 * sysdeps/x86_64/fpu/s_fmax.S: New.
1892 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1893 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1894 * sysdeps/x86_64/fpu/s_fmin.S: New.
1895 * sysdeps/x86_64/fpu/s_fminf.S: New.
1896 * sysdeps/x86_64/fpu/s_fminl.S: New.
1898 2002-06-05 Brian Youmans <3diff@gnu.org>
1900 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1901 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1902 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1903 * sysdeps/ia64/fpu/e_asin.S: Likewise.
1904 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1905 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1906 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1907 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1908 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1909 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1910 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1911 * sysdeps/ia64/fpu/e_exp.S: Likewise.
1912 * sysdeps/ia64/fpu/e_expf.S: Likewise.
1913 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1914 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1915 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1916 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1917 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1918 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1919 * sysdeps/ia64/fpu/e_log.S: Likewise.
1920 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1921 * sysdeps/ia64/fpu/e_pow.S: Likewise.
1922 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1923 * sysdeps/ia64/fpu/e_powl.S: Likewise.
1924 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1925 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1926 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1927 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1928 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1929 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1930 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1931 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1932 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1933 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1934 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1935 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1936 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1937 * sysdeps/ia64/fpu/libm_error.c: Likewise.
1938 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1939 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1940 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1941 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1942 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1943 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1944 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1945 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1946 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1947 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1948 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1949 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1950 * sysdeps/ia64/fpu/s_logb.S: Likewise.
1951 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1952 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1953 * sysdeps/ia64/fpu/s_modf.S: Likewise.
1954 * sysdeps/ia64/fpu/s_modff.S: Likewise.
1955 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1956 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1957 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1958 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1959 * sysdeps/ia64/fpu/s_rint.S: Likewise.
1960 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1961 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1962 * sysdeps/ia64/fpu/s_round.S: Likewise.
1963 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1964 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1965 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1966 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1967 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1968 * sysdeps/ia64/fpu/s_significand.S: Likewise.
1969 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1970 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1971 * sysdeps/ia64/fpu/s_tan.S: Likewise.
1972 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1973 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1974 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1975 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1976 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1977 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1978 reflect IBM donation of math library to FSF
1979 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1980 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1981 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1982 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1983 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1984 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1985 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1986 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1987 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1988 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1989 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1990 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1991 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1992 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1993 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1994 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1995 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1996 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1997 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1998 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1999 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2000 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2001 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2002 * sysdeps/vax/__longjmp.c: Likewise.
2003 * sysdeps/vax/setjmp.c: Likewise.
2004 * libio/filedoalloc.c: Fixed BSD copying permission notice to
2005 remove advertising clause
2006 * sysdeps/vax/htonl.s: Likewise.
2007 * sysdeps/vax/htons.s: Likewise.
2008 * libio/wfiledoalloc.c: Likewise.
2009 * stdlib/random.c: Likewise.
2010 * stdlib/random_r.c: Likewise.
2011 * sysdeps/mach/sys/reboot.h: Likewise.
2012 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2013 * sysdeps/posix/getaddrinfo.c: Likewise.
2014 * sunrpc/des_impl.c: Updated license permission notice to Lesser
2015 GPL and corrected pointer to point to the correct license.
2017 2002-07-04 Andreas Jaeger <aj@suse.de>
2019 * scripts/config.guess: New upstream version.
2020 * scripts/config.sub: Likewise.
2022 2002-07-02 Andreas Schwab <schwab@suse.de>
2024 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2025 in parallel to bumping up the buffer pointer.
2027 2002-07-01 Jakub Jelinek <jakub@redhat.com>
2029 * math/libm-test.inc (acos_test): Add missing L suffix for
2031 (cpow_test): Likewise.
2032 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2033 error for acos (0.0625).
2035 2002-06-30 Ulrich Drepper <drepper@redhat.com>
2037 * locale/iso-639.def: Add entry for Ganda.
2038 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2040 (address_finish): Handle entries with two letter ISO 639 code.
2042 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2043 directory if it existed before.
2044 * iconv/iconvconfig.c: Implement --prefix option.
2046 * math/libm-test.inc (cexp_test): Add missing L suffix for
2047 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
2048 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2051 2002-05-29 H.J. Lu <hjl@gnu.org>
2053 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2056 2002-05-28 H.J. Lu <hjl@gnu.org>
2058 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2059 are not dlopened on the dependency list of a dlopened object.
2061 2002-06-30 Ulrich Drepper <drepper@redhat.com>
2063 * elf/dl-lookup.c (add_dependency): It is not necessary to add
2064 dependencies if they are created between objects which are created
2065 while processing RTLD_NOW for objects loaded as part of the same
2068 2002-06-14 H.J. Lu <hjl@gnu.org>
2070 * elf/Makefile (tests): Add circleload1.
2071 (modules-names): Add circlemod1, circlemod2, circlemod3,
2072 circlemod1a, circlemod2a and circlemod3a.
2073 ($(objpfx)circleload1): New target.
2074 ($(objpfx)circleload1.out): Likewise.
2075 ($(objpfx)circlemod1.so): Likewise.
2076 ($(objpfx)circlemod2.so): Likewise.
2077 ($(objpfx)circlemod1a.so): Likewise.
2078 ($(objpfx)circlemod2a.so): Likewise.
2079 * elf/circleload1.c: New file.
2080 * elf/circlemod1.c: New file.
2081 * elf/circlemod1a.c: New file.
2082 * elf/circlemod2.c: New file.
2083 * elf/circlemod2a.c: New file.
2084 * elf/circlemod3.c: New file.
2085 * elf/circlemod3a.c: New file.
2087 2002-06-18 Amos Waterland <apw@us.ibm.com>
2089 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2091 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2092 add check for fd not open for writing.
2094 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2095 completed element(s) and do not suspend thread if so. Patch
2096 heavily modified by drepper.
2098 * rt/tst-aio7.c: New file. Regression test for problems which the
2099 above three changes fix.
2100 * rt/Makefile (tests): Add tst-aio7.
2102 2002-06-29 Ulrich Drepper <drepper@redhat.com>
2104 * rt/tst-aio6.c: Fix comment.
2106 * catgets/gencat.c (read_input_file): Handle more than one slash
2107 at end of line correctly [PR libc/3926].
2108 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2110 * catgets/sample.SJIS: Add test case for above bug.
2111 * catgets/test-gencat.c: Adjust test code.
2112 * catgets/test-gencat.sh: Adjust expected results.
2114 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2115 to skip relative relocations.
2116 Patch by Geoff Keating <geoffk@redhat.com>.
2118 2002-05-26 Bruno Haible <bruno@clisp.org>
2120 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2121 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2122 All callers changed.
2123 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2124 STANDARD_FROM_LOOP_ERR_HANDLER.
2125 (utf8_internal_loop): Likewise.
2126 (ucs2_internal_loop): Likewise.
2127 (internal_ucs2_loop): Perform error handling like in
2128 STANDARD_FROM_LOOP_ERR_HANDLER.
2129 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2130 in STANDARD_FROM_LOOP_ERR_HANDLER.
2131 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2133 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2134 in STANDARD_FROM_LOOP_ERR_HANDLER.
2135 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2137 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2138 in STANDARD_FROM_LOOP_ERR_HANDLER.
2139 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2141 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2142 STANDARD_FROM_LOOP_ERR_HANDLER.
2143 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2144 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2145 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2146 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2147 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2148 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2149 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2150 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2151 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2152 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2153 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2154 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2155 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2156 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2157 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2158 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2159 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2160 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2161 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2162 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2163 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2164 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2165 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2166 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2167 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2168 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2169 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2170 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2171 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
2172 an error, still set result = __GCONV_ILLEGAL_INPUT.
2173 (BODY for TO_LOOP): Likewise.
2174 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2175 STANDARD_FROM_LOOP_ERR_HANDLER.
2176 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2177 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2178 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2180 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2181 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2182 STANDARD_FROM_LOOP_ERR_HANDLER.
2183 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2184 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2185 STANDARD_FROM_LOOP_ERR_HANDLER.
2186 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2187 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2188 STANDARD_FROM_LOOP_ERR_HANDLER.
2189 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2190 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2191 STANDARD_FROM_LOOP_ERR_HANDLER.
2192 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2193 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2194 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2196 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2197 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2198 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2199 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2201 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2203 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2204 labels in assembler instructions.
2206 2002-06-25 Ulrich Drepper <drepper@redhat.com>
2208 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2209 not enough content is available.
2210 * libio/tst-eof.c: New file.
2211 * libio/Makefile (tests): Add tst-eof.
2213 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
2215 * libio/tst-atime.c: New file.
2216 * libio/Makefile (tests): Add tst-atime.
2218 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
2219 handling of overly long words.
2221 2002-06-25 Andreas Jaeger <aj@suse.de>
2223 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
2224 to not use 32-bit pc relative relocations.
2225 (elf_machine_dynamic): Likewise.
2227 2002-06-21 Ulrich Drepper <drepper@redhat.com>
2229 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
2230 (__GETDENTS): Check for failed getdents64 syscall.
2231 * dirent/Makefile (tests): Add bug-readdir1.
2232 * dirent/bug-readdir1.c: New file.
2234 2002-06-17 Jakub Jelinek <jakub@redhat.com>
2236 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
2238 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
2239 code. Print TLS modid and offset for modules containing PT_TLS
2242 2002-06-09 Jakub Jelinek <jakub@redhat.com>
2244 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2245 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2246 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2247 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2249 2002-06-07 Jakub Jelinek <jakub@redhat.com>
2251 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
2252 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
2253 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
2254 * nss/getXXent_r.c (NEW, NEW1): Define.
2255 (NEW (REENTRANT_GETNAME)): Strong alias to
2256 INTERNAL (REENTRANT_GETNAME).
2257 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
2259 2002-06-21 Ulrich Drepper <drepper@redhat.com>
2261 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
2262 (_IO_file_jumps_mmap): Use it.
2263 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
2264 * libio/libioP.h: Remove _IO_wdefault_setbuf and
2265 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
2267 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
2268 (_IO_wfile_jumps_mmap): Don't use it anymore.
2269 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
2270 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
2271 _IO_wdefault_setbuf.
2272 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
2273 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2274 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2276 2002-06-05 Jakub Jelinek <jakub@redhat.com>
2278 * libio/Makefile (tests): Add tst-mmap-setvbuf.
2279 * libio/tst-mmap-setvbuf.c: New test.
2281 2002-06-21 Andreas Jaeger <aj@suse.de>
2283 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2285 2002-06-18 Jakub Jelinek <jakub@redhat.com>
2287 * include/unistd.h (__fork_internal): Remove.
2288 (__fork): Don't define to __fork_internal.
2289 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2290 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2291 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2292 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2293 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2295 2002-06-20 Ulrich Drepper <drepper@redhat.com>
2297 * po/hr.po: New file.
2299 2002-06-11 Wolfram Gloger <wg@malloc.de>
2301 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2302 Reported by Michael Meissner <meissner@redhat.com>.
2304 2002-06-20 Ulrich Drepper <drepper@redhat.com>
2306 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2307 Patch by Hans Boehm <hans_boehm@hp.com>.
2309 2002-06-20 Andreas Jaeger <aj@suse.de>
2311 * math/libm-test.inc: Use exact values as input parameters,
2312 compute output parameters with 36 digits for 128-bit long doubles.
2313 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2314 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2315 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2317 2002-06-13 Stephen L Moshier <steve@moshier.net>
2319 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2320 argument or result is subnormal.
2322 2002-06-19 Ulrich Drepper <drepper@redhat.com>
2324 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2326 * sysdeps/i386/fpu/s_remquof.S: Likewise.
2327 * sysdeps/i386/fpu/s_remquol.S: Likewise.
2329 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2331 2002-06-17 David Mosberger <davidm@hpl.hp.com>
2333 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2334 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2335 Reported by Peter A. Buhr.
2337 2002-06-15 Roland McGrath <roland@frob.com>
2339 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2342 * sysdeps/mach/hurd/getcwd.c
2343 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2345 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2346 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2348 * sysdeps/alpha/divrem.h: Use local label instead of global one for
2349 jump to local subroutine.
2351 2002-06-14 Roland McGrath <roland@frob.com>
2353 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2354 * sysdeps/mach/hurd/Makeconfig: ... here.
2356 2002-06-13 Andreas Schwab <schwab@suse.de>
2358 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2359 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2360 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2362 2002-06-13 Roland McGrath <roland@frob.com>
2364 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2365 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2366 Use intptr_t instead of int for argc in stack layout.
2367 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2368 (_dl_init_first): Likewise.
2369 (_hurd_stack_setup): Likewise.
2370 (init1): Add a cast.
2371 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2373 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2374 argument to pfinet_siocgifconf RPC.
2376 2002-06-13 Andreas Schwab <schwab@suse.de>
2378 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2381 2002-06-12 Roland McGrath <roland@frob.com>
2383 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2385 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2386 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2388 2002-06-11 Roland McGrath <roland@frob.com>
2390 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2391 file on [!RTLD_STAT64].
2392 * sysdeps/mach/hurd/fxstat64.c: Likewise.
2394 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2395 (__fdopen): Use INTUSE.
2396 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2398 * stdio-common/tmpfile64.c: File removed.
2399 * sysdeps/generic/tmpfile64.c: New file.
2400 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2401 if not already defined.
2402 (tmpfile): Use it in place of __GT_FILE.
2404 * include/unistd.h: Declare __chown_internal.
2406 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2407 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2409 2002-06-09 Roland McGrath <roland@frob.com>
2411 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2412 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2413 value of HURD_INTERFACE_VERSION >= 20020609.
2414 * sysdeps/mach/hurd/configure: Regenerated.
2415 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2416 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2417 convert a struct stat64 into a struct stat and return 0 or -1
2418 with errno set to EOVERFLOW.
2419 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2420 for struct statfs64 to struct statfs.
2421 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2422 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2423 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2424 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2425 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2426 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2427 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2428 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2429 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2430 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2431 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2432 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2433 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2434 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2435 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2436 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2437 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2438 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2439 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2440 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2441 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2442 Use struct stat64 for io_stat argument.
2443 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2444 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2446 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2447 * hurd/fd-write.c (_hurd_fd_write): Likewise.
2448 * hurd/hurd/fd.h: Update decls.
2449 * sysdeps/mach/hurd/getcwd.c
2450 (_hurd_canonicalize_directory_name_internal): Use ino64_t
2451 and struct dirent64.
2452 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2453 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2454 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2455 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2457 2002-06-08 Roland McGrath <roland@frob.com>
2459 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2460 instead of unsigned long int for __allocation and __size members.
2462 2002-06-09 Jakub Jelinek <jakub@redhat.com>
2464 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2465 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2466 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2467 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2469 2002-06-07 Roland McGrath <roland@frob.com>
2471 * sysdeps/mach/hurd/bits/environments.h: File removed.
2473 2002-06-07 Jakub Jelinek <jakub@redhat.com>
2475 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2476 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2477 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2478 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2479 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2480 (sendfile64): Likewise.
2481 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2482 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2483 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2485 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2487 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2490 2002-06-04 Bruno Haible <bruno@clisp.org>
2492 * sysdeps/cris/stackinfo.h: New file.
2494 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2495 to an integer type before performing bit operations on it.
2497 2002-06-05 Roland McGrath <roland@frob.com>
2499 * sysdeps/generic/sendfile.c: Include <errno.h>.
2500 * sysdeps/generic/sendfile64.c: Likewise.
2502 * io/Makefile (routines): Add sendfile and sendfile64.
2503 (headers): Add sys/sendfile.h to the list.
2504 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2505 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2506 * io/sys/sendfile.h: ... here.
2507 * sysdeps/generic/sendfile.c: New file.
2508 * sysdeps/generic/sendfile64.c: New file.
2510 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2511 Move sendfile, sendfile64 to ...
2512 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2513 * sysdeps/mach/hurd/sendfile.c: New file.
2514 * sysdeps/mach/hurd/sendfile64.c: New file.
2516 * sysdeps/mach/nanosleep.c: New file.
2518 2002-06-04 Roland McGrath <roland@frob.com>
2520 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
2521 * sysdeps/alpha/elf/configure: New file (generated).
2523 2002-06-02 Roland McGrath <roland@frob.com>
2525 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2527 2002-06-01 Roland McGrath <roland@frob.com>
2529 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2530 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2532 2002-05-19 Ulrich Drepper <drepper@redhat.com>
2534 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2536 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2537 Remove nstimes setting.
2538 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2539 * resolv/res_send.c (res_nsend): Don't close unconditionally if
2540 there is mix of IPv6 and IPv4 nameservers.
2541 Use nsmap array to find free slots and preserve nameserver ordering.
2544 2002-05-30 Ulrich Drepper <drepper@redhat.com>
2546 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
2547 use this header with LFS.
2549 * po/sk.po: Update from translation team.
2551 2002-05-28 Andreas Schwab <schwab@suse.de>
2553 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
2554 message when finding object of wrong class.
2556 2002-05-28 Jakub Jelinek <jakub@redhat.com>
2558 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
2559 Patch by <radu@netsoft.ro>.
2561 2002-05-30 Ulrich Drepper <drepper@redhat.com>
2563 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
2565 * sysdeps/unix/sysv/linux/readahead.c: New file.
2566 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
2567 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
2568 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
2569 Add sendfile64 alias to sendfile syscall.
2570 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2571 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2572 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2573 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
2576 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
2577 special section for PIC register loading.
2578 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2580 * config.h.in: Define HAVE_HIDDEN.
2581 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
2583 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
2585 2002-05-28 Roland McGrath <roland@frob.com>
2587 * sysdeps/mach/alpha/setfpucw.c: New file.
2589 2002-05-26 Roland McGrath <roland@frob.com>
2591 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
2592 Use integer_t instead of int for IOC_VOID case.
2594 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
2596 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
2598 2002-05-26 Bruno Haible <bruno@clisp.org>
2600 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
2601 end of the ISO-8859-7 from idx table.
2603 2002-05-27 Ulrich Drepper <drepper@redhat.com>
2605 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
2607 2002-05-24 David S. Miller <davem@redhat.com>
2609 * string/bits/string2.h (memset): Do not try to optimize when
2610 not _STRING_ARCH_unaligned if GCC will do the right thing.
2612 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
2614 * posix/regex.c: Define `inline' as a macro into nothing for the
2615 compilers which lack the keyword.
2616 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
2617 for the compatibility of gawk.
2618 * posix/regcomp.c: Add fake implementation of isblank() for the
2619 environments which lack the function.
2620 Don't use free_charset() in case of non-i18n envs.
2621 (build_range_exp): Don't use i18n related code in case of non-i18n
2623 (build_collating_symbol): Likewise.
2624 (build_equiv_class): Likewise.
2625 (build_charclass): Likewise.
2626 (re_compile_fastmap_iter): Likewise.
2627 (parse_bracket_exp): Likewise.
2628 (build_word_op): Likewise.
2629 (regfree): Don't use free_charset() in case of non-i18n envs.
2630 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
2631 re_token_type_t in case of non-i18n envs.
2632 Don't define re_charset_t in case of non-i18n envs.
2633 Change the type of wcs of re_string_t from wchar_t to wint_t,
2634 since we store also WEOF.
2635 * posix/regex_internal.c: (re_string_realloc_buffers): Change
2636 the type of wcs of re_string_t from wchar_t to wint_t.
2637 (re_string_reconstruct): Likewise.
2638 (create_ci_newstate): Don't use i18n related code in case of
2640 (create_cd_newstate): Likewise.
2642 2002-05-24 Ulrich Drepper <drepper@redhat.com>
2644 * iconv/loop.c: Fix typo.
2646 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2648 * inet/ether_line.c (ether_line): Fix a typo causing only
2649 lower 4 bits of each ethernet address byte being assigned.
2650 Don't modify what line points to.
2651 * inet/tst-ether_aton.c (main): Add ether_line tests.
2653 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
2655 * manual/filesys.texi: Don't make readlink example leak memory
2656 when readlink fails.
2658 2002-05-20 Ulrich Drepper <drepper@redhat.com>
2660 * iconv/loop.c: Fix condition for defining unaligned loop. Add
2661 some more security checks.
2663 2002-05-17 David S. Miller <davem@redhat.com>
2665 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2667 2002-05-16 David S. Miller <davem@redhat.com>
2669 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2670 (elf_machine_dynamic): Use it to force PIC register to be loaded.
2671 (elf_machine_load_address): Likewise.
2672 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2674 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2675 is unaligned, do not forget to fully initialize %g1 magic value.
2677 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2678 register definitions and provide 32-bit variants of structures
2679 during 64-bit builds.
2681 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2682 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2683 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2684 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2685 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2686 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2687 Do not clear implicit one bit here, it must be done post-rounding.
2688 Only pad to the left using left shift if value uses less than the
2689 available fractional bits.
2691 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2693 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2694 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2695 (shared-only-routines): Likewise.
2696 * sysdeps/powerpc/libgcc-compat.c: New file.
2697 * sysdeps/wordsize-32/cmpdi2.c: Removed.
2698 * sysdeps/wordsize-32/fixdfdi.c: Removed.
2699 * sysdeps/wordsize-32/fixsfdi.c: Removed.
2700 * sysdeps/wordsize-32/shdi3.c: Removed.
2702 2002-05-16 Bruno Haible <bruno@clisp.org>
2704 * MakeTAGS (libc.pot): Don't sort the output.
2705 * po/header.pot: Update to match xgettext 0.11 output.
2707 2002-05-16 Bruno Haible <bruno@clisp.org>
2709 * MakeTAGS (subdirs): Remove duplicates.
2711 2002-05-19 Ulrich Drepper <drepper@redhat.com>
2713 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2714 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2717 2002-05-19 Andreas Jaeger <aj@suse.de>
2719 * sysdeps/unix/sysv/linux/configure.in: Warn against an
2720 installation in /usr/local.
2722 2002-05-16 Bruno Haible <bruno@clisp.org>
2724 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2725 string as argument of #error.
2727 2002-05-15 Ulrich Drepper <drepper@redhat.com>
2729 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2730 don't define static. Remove old __realpath function. TC1 of
2731 POSIX 2001 will allow the second parameter to be NULL.
2732 * stdlib/test-canon.c: Comment out test for NULL as second
2733 parameter of realpath.
2735 * time/offtime.c (__offtime): Set errno if overflow is detected.
2737 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2738 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2741 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2744 2002-05-15 Roland McGrath <roland@frob.com>
2746 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2748 2002-05-12 Bruno Haible <bruno@clisp.org>
2750 * iconvdata/testdata/EUC-JISX0213: New file.
2751 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2752 * iconvdata/testdata/SHIFT_JISX0213: New file.
2753 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2754 * iconvdata/testdata/ISO-2022-JP-3: New file.
2755 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2756 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2757 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2758 contains comments indicating precomposed characters.
2760 2002-04-21 Bruno Haible <bruno@clisp.org>
2762 * iconvdata/iso-2022-jp-3.c: New file.
2763 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2764 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2765 (LDFLAGS-ISO-2022-JP-3.so): New variable.
2766 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2767 (distribute): Add iso-2022-jp-3.c.
2769 2002-05-12 Bruno Haible <bruno@clisp.org>
2771 * iconvdata/tst-table-to.c (main): Restore handling of
2772 transliterations, broken by last patch.
2774 2002-05-12 Bruno Haible <bruno@clisp.org>
2776 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2778 2002-05-12 Bruno Haible <bruno@clisp.org>
2780 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2781 when there is not enough room in the output buffer.
2782 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2784 2002-04-20 Bruno Haible <bruno@clisp.org>
2786 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2788 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2789 Also make this macro work if FROM_DIRECTION evaluates to 0.
2790 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2791 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2792 of consume_incomplete.
2793 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2794 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2796 * iconvdata/cp1258.c: Likewise.
2797 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2798 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2800 * iconvdata/ibm933.c: Likewise.
2801 * iconvdata/ibm935.c: Likewise.
2802 * iconvdata/ibm937.c: Likewise.
2803 * iconvdata/ibm939.c: Likewise.
2804 * iconvdata/iso-2022-cn.c: Define
2805 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2806 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2807 * iconvdata/iso-2022-cn-ext.c: Likewise.
2808 * iconvdata/iso-2022-jp.c: Define
2809 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2810 {MIN,MAX}_NEEDED_{FROM,TO}.
2811 * iconvdata/tcvn5712-1.c: Define
2812 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2813 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2814 * iconvdata/euc-jisx0213.c: Define
2815 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2816 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2817 * iconvdata/shift_jisx0213.c: Likewise.
2819 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2821 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2822 shdi3, fixdfdi, fixsfdi in csu dir.
2823 (shared-only-routines): Likewise.
2824 * sysdeps/wordsize-32/cmpdi2.c: New file.
2825 * sysdeps/wordsize-32/shdi3.c: New file.
2826 * sysdeps/wordsize-32/fixdfdi.c: New file.
2827 * sysdeps/wordsize-32/fixsfdi.c: New file.
2828 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2829 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2830 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2832 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2833 Only use va_arg if the argument will be used [PR libc/3259].
2835 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
2837 * catgets/catgets.c (catopen): Free buffer if internal catalog
2840 2002-05-14 Ulrich Drepper <drepper@redhat.com>
2842 * debug/xtrace.sh: Make more robust. For realtime tracking use
2843 non-buffering methods.
2844 * debug/pcprofiledump.c: Implement -u option.
2845 Patch by Roger Luethi <rl@hellgate.ch>.
2847 2002-05-11 Jakub Jelinek <jakub@redhat.com>
2849 * include/netinet/in.h (bindresvport_internal): Add prototype.
2850 * include/rpc/auth.h (authunix_create_internal,
2851 authunix_create_default_internal, authnone_create_internal,
2852 authdes_pk_create_internal): Add prototypes.
2853 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2854 clntudp_create_internal, clntudp_bufcreate_internal,
2855 clntunix_create_internal): Add prototypes.
2856 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2857 svc_getreq_internal, svc_getreq_common_internal,
2858 svc_getreqset_internal, svc_getreq_poll_internal,
2859 svc_register_internal, svc_unregister_internal,
2860 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2861 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2862 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2863 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2864 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2865 * inet/rcmd.c (rcmd_af): Use __listen.
2866 (rresvport_af): Use __bind.
2867 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2868 authunix_create, authunix_create_default, authnone_create,
2869 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2870 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2871 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2872 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2873 _authenticate, add INTDEF after such function definitions.
2874 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2875 __setsockopt, __getsockname instead of non-__ variants.
2876 * sunrpc/pmap_rmt.c: Likewise.
2877 * sunrpc/rtime.c: Likewise.
2878 * sunrpc/svc_udp.c: Likewise.
2879 * sunrpc/clnt_unix.c: Likewise.
2880 * sunrpc/svc_unix.c: Likewise.
2881 * sunrpc/bindrsvprt.c: Likewise.
2882 * sunrpc/svc_tcp.c: Likewise.
2883 * sunrpc/auth_none.c: Likewise.
2884 * sunrpc/clnt_raw.c: Likewise.
2885 * sunrpc/clnt_tcp.c: Likewise.
2886 * sunrpc/auth_unix.c: Likewise.
2887 * sunrpc/key_call.c: Likewise.
2888 * sunrpc/clnt_gen.c: Likewise.
2889 * sunrpc/pm_getmaps.c: Likewise.
2890 * sunrpc/clnt_simp.c: Likewise.
2891 * sunrpc/pmap_clnt.c: Likewise.
2892 * sunrpc/svc_run.c: Likewise.
2893 * sunrpc/svc.c: Likewise.
2894 * sunrpc/svc_simple.c: Likewise.
2895 * sunrpc/pm_getport.c: Likewise.
2896 * sunrpc/auth_des.c: Likewise.
2897 * sunrpc/svc_auth.c: Likewise.
2898 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2899 __register_frame_info_table_bases, __deregister_frame_info_bases):
2901 (__register_frame_info_bases_internal,
2902 __register_frame_info_table_bases_internal,
2903 __deregister_frame_info_bases_internal): Add prototypes.
2904 (__register_frame_info, __register_frame): Use INTUSE in call to
2905 __register_frame_info_bases.
2906 (__register_frame_info_table): Similarly.
2907 (__deregister_frame_info, __deregister_frame): Similarly.
2908 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2909 sendto as weak alias.
2910 * sysdeps/mach/hurd/sendto.c: Likewise.
2911 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2912 recvfrom as weak alias.
2913 * sysdeps/mach/hurd/recvfrom.c: Likewise.
2914 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2915 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2916 recvmsg as weak alias.
2917 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2918 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2919 sendmsg as weak alias.
2920 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2921 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2922 setsockopt, add setsockopt as weak alias.
2923 * sysdeps/mach/hurd/setsockopt.c: Likewise.
2924 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2926 * sysdeps/mach/hurd/bind.c: Likewise.
2927 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2929 * sysdeps/mach/hurd/listen.c: Likewise.
2930 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2931 getsockname, add getsockname as weak alias.
2932 * sysdeps/mach/hurd/getsockname.c: Likewise.
2933 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2934 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2935 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2936 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2937 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2938 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2940 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2941 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2942 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2943 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2944 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2945 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2946 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2947 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2948 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2949 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2950 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2951 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2953 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2955 * locale/programs/localedef.h (show_archive_content): Add verbose
2957 * locale/programs/localedef.c (main): Adjust caller.
2958 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2959 (nameentcmp, dataentcmp): New functions.
2961 (show_archive_content): Print verbose listing with --list-archive -v.
2963 2002-05-14 Ulrich Drepper <drepper@redhat.com>
2965 * locale/programs/locarchive.c (open_archive): Take extra argument
2966 readonly. If true open file with O_RDONLY and don't create the
2967 archive if it doesn't exist.
2969 (close_archive): Don't do anything if fd element is -1.
2970 * locale/programs/localedef.h (open_archive): Adjust prototype.
2971 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2974 * malloc/malloc.c (__posix_memalign): Correct check for size of
2975 alignment value [PR libc/3444].
2977 * include/stdio.h: Remove references to old stdio implementation.
2979 * libio/Makefile (bug-ungetwc2-ENV): Define.
2981 2002-05-13 Roland McGrath <roland@frob.com>
2983 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2985 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2987 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
2989 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2990 Allocate three, not two, more than LEN when appending '/.'.
2991 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
2992 if NAME ends with '/.' if it is shorter than 2 chars.
2994 2002-05-12 Roland McGrath <roland@frob.com>
2996 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2997 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2999 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3000 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3002 2002-05-10 Jakub Jelinek <jakub@redhat.com>
3004 * sysdeps/ia64/Makefile: Remove extra endif.
3005 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3007 2002-05-10 Andreas Schwab <schwab@suse.de>
3009 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3011 2002-05-09 Andreas Jaeger <aj@suse.de>
3013 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3014 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3015 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3017 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3018 * sysdeps/wordsize-64/glob.c: ...here.
3019 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3020 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3021 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3023 2002-05-08 Roland McGrath <roland@frob.com>
3025 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3026 O_NOTRANS flag in "." lookup.
3028 2002-05-05 Ulrich Drepper <drepper@redhat.com>
3030 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3032 2002-05-04 Ulrich Drepper <drepper@redhat.com>
3034 * locale/duplocale.c (__duplocale): Update special members only
3035 when allocation succeeded.
3037 2002-05-03 Roland McGrath <roland@frob.com>
3039 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3040 we can only build libc.so.0.3(GLIBC_2.2.6) now.
3042 2002-05-02 Jakub Jelinek <jakub@redhat.com>
3044 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3045 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3046 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3047 * sysdeps/ia64/ia64libgcc.S: New file.
3049 2002-05-02 Ulrich Drepper <drepper@redhat.com>
3051 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3053 * malloc/memusage.c: Distinguish anonymous mmap.
3055 2002-05-01 Roland McGrath <roland@frob.com>
3057 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3058 and use INTDEF on it.
3059 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3061 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3063 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3065 2002-05-01 Ulrich Drepper <drepper@redhat.com>
3067 * malloc/memusage.c: Add support for tracking mmap & friends.
3068 * malloc/memusage.sh: Implement -m/--mmap option.
3070 2002-04-30 Jakub Jelinek <jakub@redhat.com>
3072 * locale/programs/locarchive.c (create_archive): Add archivefname
3073 argument, create fname from it.
3074 (enlarge_archive): Honour output_prefix.
3075 (open_archive): Likewise.
3077 2002-04-30 Jakub Jelinek <jakub@redhat.com>
3079 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3080 too many stpcpy macros.
3082 2002-04-26 Bruno Haible <bruno@clisp.org>
3084 * locale/programs/ld-collate.c (collate_read): Cast first argument
3087 2002-04-26 Bruno Haible <bruno@clisp.org>
3089 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3090 __dcngettext_internal): New declarations.
3091 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3092 attribute declarations.
3094 2002-04-30 Roland McGrath <roland@frob.com>
3096 Removed old GNU stdio implementation; GNU libio is now the only option.
3097 * configure.in: Removed --enable-libio option and @stdio@ subst var.
3098 Define USE_IN_LIBIO unconditionally.
3099 * configure: Regenerated.
3100 * Makeconfig (stdio): Set to libio by default.
3101 * config.make.in (stdio): Variable removed.
3102 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3103 * sysdeps/unix/sysv/linux/configure: Regenerated.
3104 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3105 * sysdeps/mach/hurd/configure: Regenerated.
3106 * stdio/.cvsignore: File removed.
3107 * stdio/Makefile: File removed.
3108 * stdio/Versions: File removed.
3109 * stdio/__fbufsize.c: File removed.
3110 * stdio/__flbf.c: File removed.
3111 * stdio/__fpending.c: File removed.
3112 * stdio/__fpurge.c: File removed.
3113 * stdio/__freadable.c: File removed.
3114 * stdio/__freading.c: File removed.
3115 * stdio/__fsetlocking.c: File removed.
3116 * stdio/__fwritable.c: File removed.
3117 * stdio/__fwriting.c: File removed.
3118 * stdio/clearerr.c: File removed.
3119 * stdio/fclose.c: File removed.
3120 * stdio/fcloseall.c: File removed.
3121 * stdio/feof.c: File removed.
3122 * stdio/ferror.c: File removed.
3123 * stdio/fflush.c: File removed.
3124 * stdio/fgetc.c: File removed.
3125 * stdio/fgetpos.c: File removed.
3126 * stdio/fgets.c: File removed.
3127 * stdio/fileno.c: File removed.
3128 * stdio/fmemopen.c: File removed.
3129 * stdio/fopen.c: File removed.
3130 * stdio/fopncook.c: File removed.
3131 * stdio/fputc.c: File removed.
3132 * stdio/fputs.c: File removed.
3133 * stdio/fread.c: File removed.
3134 * stdio/freopen.c: File removed.
3135 * stdio/fseek.c: File removed.
3136 * stdio/fsetpos.c: File removed.
3137 * stdio/ftell.c: File removed.
3138 * stdio/fwrite.c: File removed.
3139 * stdio/getc.c: File removed.
3140 * stdio/getchar.c: File removed.
3141 * stdio/getdelim.c: File removed.
3142 * stdio/gets.c: File removed.
3143 * stdio/glue.c: File removed.
3144 * stdio/internals.c: File removed.
3145 * stdio/linewrap.c: File removed.
3146 * stdio/linewrap.h: File removed.
3147 * stdio/memstream.c: File removed.
3148 * stdio/newstream.c: File removed.
3149 * stdio/obstream.c: File removed.
3150 * stdio/putc.c: File removed.
3151 * stdio/putchar.c: File removed.
3152 * stdio/puts.c: File removed.
3153 * stdio/rewind.c: File removed.
3154 * stdio/setbuf.c: File removed.
3155 * stdio/setbuffer.c: File removed.
3156 * stdio/setlinebuf.c: File removed.
3157 * stdio/setvbuf.c: File removed.
3158 * stdio/stdio.h: File removed.
3159 * stdio/ungetc.c: File removed.
3160 * stdio/vasprintf.c: File removed.
3161 * stdio/vscanf.c: File removed.
3162 * stdio/vsnprintf.c: File removed.
3163 * stdio/vsprintf.c: File removed.
3164 * stdio/vsscanf.c: File removed.
3165 * sysdeps/generic/defs.c: File removed.
3166 * sysdeps/generic/fdopen.c: File removed.
3167 * sysdeps/generic/pipestream.c: File removed.
3168 * sysdeps/generic/stdio_init.c: File removed.
3169 * sysdeps/generic/sysd-stdio.c: File removed.
3170 * sysdeps/generic/vdprintf.c: File removed.
3171 * sysdeps/mach/hurd/defs.c: File removed.
3172 * sysdeps/mach/hurd/fdopen.c: File removed.
3173 * sysdeps/mach/hurd/pipestream.c: File removed.
3174 * sysdeps/mach/hurd/stdio_init.c: File removed.
3175 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3176 * sysdeps/mach/hurd/vdprintf.c: File removed.
3177 * sysdeps/posix/defs.c: File removed.
3178 * sysdeps/posix/fdopen.c: File removed.
3179 * sysdeps/posix/pipestream.c: File removed.
3180 * sysdeps/posix/stdio_init.c: File removed.
3181 * sysdeps/posix/vdprintf.c: File removed.
3182 * sysdeps/unix/pipestream.c: File removed.
3183 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3184 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3185 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3187 2002-04-29 Roland McGrath <roland@frob.com>
3189 * include/libc-symbols.h (link_warning): Use `unused' attribute.
3191 2002-04-28 Ulrich Drepper <drepper@redhat.com>
3193 * sysdeps/generic/tls.h: Describe what must be defined.
3195 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3196 glob_in_dir [PR libc/3385].
3197 * posix/globtest.sh: Add test case.
3199 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3202 2002-04-27 Ulrich Drepper <drepper@redhat.com>
3204 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3205 _internal symbol handling.
3206 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3208 2002-04-26 Ulrich Drepper <drepper@redhat.com>
3210 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3211 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3213 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
3215 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
3216 not _LIBC and RE_ENABLE_I18N.
3217 (build_range_exp): Implement for not _LIBC.
3218 (build_collating_symbol): Likewise.
3219 (parse_bracket_exp): Unify redundant error handlings.
3220 Don't erase mbcset for non matching list in multibyte envs.
3221 (build_word_op): Add '_' to matching list for \w operator.
3222 * posix/regex_internal.c (re_string_construct): Invoke
3223 build_upper_buffer in case of not RE_ENABLE_I18N.
3224 (re_string_reconstruct): Don't touch cur_state in case of not
3226 * posix/regex_internal.h (attribute_hidden): New macro in case of
3228 (re_charset_t): Define range_starts/ends in case of not _LIBC.
3229 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
3231 (transit_state_mb): Likewise.
3232 (check_node_accept_bytes): Implement the code evaluating range
3233 expression in case of not _LIBC.
3234 (find_collation_sequence_value): Hide in case of not _LIBC.
3236 2002-04-26 Jakub Jelinek <jakub@redhat.com>
3238 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
3240 (__old_semctl, __new_semctl): Only use va_arg if the argument will
3243 2002-04-26 Ulrich Drepper <drepper@redhat.com>
3245 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
3247 * sysdeps/ia64/strncpy.S: Fix recovery code.
3248 Patch by David Mosberger <davidm@hpl.hp.com>.
3250 2002-04-24 Ulrich Drepper <drepper@redhat.com>
3252 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
3255 2002-04-14 Bruno Haible <bruno@clisp.org>
3257 * posix/regex.c (re_max_failures): Add back symbol for binary
3260 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
3262 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
3263 of buffer building functions.
3264 * posix/regex_internal.c (re_string_allocate): New function.
3265 (re_string_realloc_buffers): New function.
3266 (re_string_skip_chars): New function.
3267 (re_string_reconstruct): New function.
3268 (re_string_construct): Adapt it to new interface of buffer building
3270 (re_string_construct_common): Likewise.
3271 (build_wcs_buffer): Likewise.
3272 (build_wcs_upper_buffer): Likewise.
3273 (build_upper_buffer): Likewise.
3274 (re_string_translate_buffer): Likewise.
3275 (re_string_context_at): Adapt it to variable length buffers.
3276 * posix/regex_internal.h (re_string_t): Add new fields to handle
3277 variable length buffers.
3278 (re_match_context_t): Likewise.
3279 * posix/regexec.c (re_search_internal): Adapt it to new interface
3280 of re_string_t and re_match_context_t.
3281 (acquire_init_state_context): Likewise.
3282 (check_matching): Likewise.
3283 (check_halt_state_context): Likewise.
3284 (proceed_next_node): Likewise.
3285 (set_regs): Likewise.
3286 (sift_states_backward): Likewise.
3287 (clean_state_log_if_need): Likewise.
3288 (sift_states_iter_mb): Likewise.
3289 (sift_states_iter_bkref): Likewise.
3290 (add_epsilon_backreference): Likewise.
3291 (transit_state): Likewise.
3292 (transit_state_sb): Likewise.
3293 (transit_state_mb): Likewise.
3294 (transit_state_bkref): Likewise.
3295 (transit_state_bkref_loop): Likewise.
3296 (check_node_accept): Likewise.
3297 (match_ctx_init): Likewise.
3298 (extend_buffers): New function.
3300 2002-04-21 Bruno Haible <bruno@clisp.org>
3302 * iconvdata/tst-table.sh: For the second check, use the truncated
3303 GB18030 charmap table, like for the first check.
3305 2002-04-24 Ulrich Drepper <drepper@redhat.com>
3307 * elf/dl-load.c (open_verify): Correct __lseek parameters.
3308 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3310 2002-04-23 H.J. Lu <hjl@gnu.org>
3312 * include/math.h (isfinite): Fix a typo.
3314 2002-04-24 Ulrich Drepper <drepper@redhat.com>
3316 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3317 which is created by the test suite.
3319 2002-04-20 Bruno Haible <bruno@clisp.org>
3321 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3322 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3324 2002-04-20 Bruno Haible <bruno@clisp.org>
3326 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3327 to avoid gcc warning.
3329 2002-04-20 Bruno Haible <bruno@clisp.org>
3331 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3332 of data->__statep->__count.
3334 2002-04-20 Bruno Haible <bruno@clisp.org>
3336 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3338 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3340 2002-04-24 Roland McGrath <roland@frob.com>
3342 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3343 use END macro instead of our own .end directive.
3344 Use `callsys' insn mnemonic instead of `call_pal'.
3346 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3348 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3349 macro; we need this for Hurd.
3351 Log entry was missing for 2002/03/24 commit of rev 1.8,
3352 goes with 2002-03-17 changes.
3353 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3354 (sysdep_routines): Append ioperm here.
3355 (sysdep_headers): Append sys/io.h here.
3357 2002-04-23 Roland McGrath <roland@frob.com>
3359 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3360 * sysdeps/mach/hurd/sendto.c: Likewise.
3361 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3362 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3363 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3365 2002-04-22 Roland McGrath <roland@frob.com>
3367 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3368 failure from i386_io_perm_* RPCs to ENOSYS.
3370 2002-04-22 Andreas Jaeger <aj@suse.de>
3372 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3374 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3376 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3377 register instead of destroying %rbx.
3379 2002-04-21 Ulrich Drepper <drepper@redhat.com>
3381 * string/string.h: Declare strerror_r also for XPG6.
3383 2002-04-19 Roland McGrath <roland@frob.com>
3385 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3387 2002-04-20 Ulrich Drepper <drepper@redhat.com>
3389 * Makefile: Add handling of xtests and xcheck targets.
3390 * MakeTAGS: Likewise.
3391 * Makeconfig: Likewise.
3392 * Makerules: Likewise.
3394 * manual/Makefile: Likewise.
3395 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3396 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
3398 2002-04-11 Zack Weinberg <zack@codesourcery.com>
3400 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3402 * sunrpc/auth_none.c: Include bits/libc-lock.h.
3403 Delete #ifdef _RPC_THREAD_SAFE_ block.
3404 (authnone_private): Make a struct, not a pointer to struct.
3405 (authnone_private_guard): New once-control variable.
3406 (authnone_create_once): New function, split out of
3407 authnone_create. No need to allocate memory.
3408 (authnone_create): Just call authnone_create_once via
3409 __libc_once, then return &authnone_private->no_client.
3410 (authnone_marshal): Access private data via CLIENT argument,
3411 not authnone_private pointer.
3412 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3413 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3416 2002-04-12 H.J. Lu <hjl@gnu.org>
3418 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3420 2002-04-18 Bruno Haible <bruno@clisp.org>
3422 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3423 FROM_DIRECTION): Make the FROM direction stateless.
3424 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3425 FROM_DIRECTION): Likewise.
3427 2002-04-15 Bruno Haible <bruno@clisp.org>
3429 * iconvdata/JISX0213.TXT: New file.
3430 * iconvdata/jisx0213.h: New file.
3431 * iconvdata/jisx0213.c: New file.
3432 * iconvdata/euc-jisx0213.c: New file.
3433 * iconvdata/shift_jisx0213.c: New file.
3434 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3435 * iconvdata/EUC-JISX0213.precomposed: New file.
3436 * iconvdata/SHIFT_JISX0213.precomposed: New file.
3437 * iconvdata/SHIFT_JISX0213.irreversible: New file.
3438 * iconvdata/tst-table-to.c (main): Make it work for encodings for
3439 which the "to" direction is stateful.
3440 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3441 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3443 (libJISX0213-routines): New variable.
3444 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3445 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3446 (LDFLAGS-libJISX0213.so): New variable.
3447 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3448 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3449 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3451 2002-04-15 Bruno Haible <bruno@clisp.org>
3453 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3454 uint32_t. Update to Unicode 3.2.
3455 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3456 (BODY for TO_LOOP): Handle the ASCII range specially.
3457 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3458 * iconvdata/testdata/BIG5HKSCS: Remove a character.
3459 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3461 2002-04-15 Bruno Haible <bruno@clisp.org>
3463 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3464 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3466 2002-04-15 Bruno Haible <bruno@clisp.org>
3468 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3469 (ucs4_to_cns11643): Update.
3470 * iconvdata/cns11643.c: Update to Unicode 3.2.
3471 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3472 __cns11643_from_ucs4p2_tab): Regenerated.
3473 (__cns11643_from_ucs4p2c_tab): New array.
3474 * iconvdata/cvs11643l1.c: Update comments.
3475 * iconvdata/EUC-TW.irreversible: Remove two entries.
3477 2002-04-15 Bruno Haible <bruno@clisp.org>
3479 * locale/C-translit.h.in: Update to Unicode 3.2.
3480 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3481 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3483 2002-04-15 Bruno Haible <bruno@clisp.org>
3485 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3486 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3488 2002-04-15 Bruno Haible <bruno@clisp.org>
3490 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3491 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3492 always one byte, not 0 bytes in some cases and 2 bytes in others.
3494 * iconvdata/tst-table-from.c (main): Correct the usage message.
3496 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
3498 * posix/regcomp.c (parse_expression): Fix incorrect error code.
3499 (parse_dup_op): Fix error handling like "a{}".
3500 (parse_bracket_exp): Add error handling.
3501 (fetch_number): Add error handling for "a{<very_large_number>}".
3503 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
3505 * posix/regcomp.c (parse_bracket_symbol): Add error handling
3506 in case that the symbol name is too long.
3507 (build_charclass): Handle [:lower:]/[:uppper:] correctly
3508 in case of REG_ICASE.
3510 2002-04-19 Andreas Jaeger <aj@suse.de>
3512 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3513 <hartvige@mips.com>.
3515 2002-04-15 H.J. Lu <hjl@gnu.org>
3517 * include/math.h (__finitel_internal): Declare only if
3518 __NO_LONG_DOUBLE_MATH is not defined.
3519 (__isinfl_internal): Likewise.
3520 (__isnanl_internal): Likewise.
3522 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3523 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3524 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3525 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3526 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3527 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3528 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3530 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3533 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3534 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3536 2002-04-15 Bruno Haible <bruno@clisp.org>
3538 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3539 (BODY for TO_LOOP): Likewise.
3540 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3541 * iconvdata/tst-table.sh: Add support for encodings which contain
3542 precomposed Unicode characters, known to the iconv converter in both
3543 directions but not listed in the charmap.
3544 * iconvdata/IBM856.irreversible: New file.
3545 * iconvdata/IBM922.irreversible: New file.
3546 * iconvdata/IBM1132.irreversible: New file.
3547 * iconvdata/IBM1133.irreversible: New file.
3548 * iconvdata/IBM1160.irreversible: New file.
3549 * iconvdata/IBM1161.irreversible: New file.
3550 * iconvdata/IBM1163.irreversible: New file.
3551 * iconvdata/IBM1164.irreversible: New file.
3552 * iconvdata/ARMSCII-8.irreversible: New file.
3553 * iconvdata/TCVN5712-1.precomposed: New file.
3554 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
3555 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
3556 ARMSCII-8, TCVN5712-1.
3557 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
3558 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
3559 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
3560 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
3562 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3564 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
3565 for EVENING69. Include offsets in TZ environment variable.
3567 2002-04-18 Ulrich Drepper <drepper@redhat.com>
3569 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
3570 avoid compiler warnings.
3572 * locale/programs/localedef.c (main): Always call
3573 construct_output_path.
3575 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
3577 * locale/programs/locfile.c (to_archive): New variable. To collect
3578 data which has to be added to the locale archive.
3579 (write_all_categories): Take new third parameter with locale name.
3580 Unless no_archive flag set add new locale data to the archive
3581 (write_locale_data): Unless no-archive flag set store generated data
3582 in to_archive data structure instead of generation output file.
3583 Add new parameter with locale category index.
3584 * locale/programs/locfile.h: Add new parameters in declaractions of
3585 write_all_categories and write_locale_data.
3586 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
3587 --add-to-archive, and --delete-from-archive options. Pass extra
3588 parameter to write_all_categories.
3589 * locale/programs/localedef.h: Add prototypes for functions in
3591 * locale/locarchive.h: New file.
3592 * locale/programs/locarchive.c: New file.
3593 * locale/Makefile (distribute): Add programs/locarchive.c and
3595 (localedef-modules): Add md5 and locarchive.
3596 Add vpath to crypt subdir for md5.c.
3598 * locale/programs/ld-address.c: Pass locale category ID as new second
3599 parameter to write_locale_data.
3600 * locale/programs/ld-collate.c: Likewise.
3601 * locale/programs/ld-ctype.c: Likewise.
3602 * locale/programs/ld-identification.c: Likewise.
3603 * locale/programs/ld-measurement.c: Likewise.
3604 * locale/programs/ld-messages.c: Likewise.
3605 * locale/programs/ld-monetary.c: Likewise.
3606 * locale/programs/ld-name.c: Likewise.
3607 * locale/programs/ld-numeric.c: Likewise.
3608 * locale/programs/ld-paper.c: Likewise.
3609 * locale/programs/ld-telephone.c: Likewise.
3610 * locale/programs/ld-time.c: Likewise.
3612 * locale/simple-hash.c: Move compute_hashval function from here...
3613 * locale/hashval.h: ...to here. New file.
3614 * locale/simple-hash.h: Add prototype for compute_hashval.
3616 * include/libintl.h: Minor cleanups.
3618 2002-04-16 Ulrich Drepper <drepper@redhat.com>
3620 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
3622 2002-04-15 Ulrich Drepper <drepper@redhat.com>
3624 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
3626 2002-04-14 Bruno Haible <bruno@clisp.org>
3628 * locale/programs/charmap.c (charmap_read): Don't access result if
3631 2002-02-17 Andreas Schwab <schwab@suse.de>
3633 * elf/reldep7.c: New file.
3634 * elf/reldep7mod1.c: New file.
3635 * elf/reldep7mod2.c: New file.
3636 * elf/Makefile: Add rules to build and run reldep7.
3638 2002-04-14 Jakub Jelinek <jakub@redhat.com>
3640 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
3641 the end of the function. Pass original flags to recursive call if
3642 add_dependency failed.
3643 (_dl_lookup_versioned_symbol): Likewise.
3645 2002-04-13 Jakub Jelinek <jakub@redhat.com>
3647 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
3648 early, but check whether it overflowed afterwards.
3649 * time/tst-mktime.c (main): Add new tests.
3651 2002-04-14 Ulrich Drepper <drepper@redhat.com>
3653 * debug/xtrace.sh: Fix program name in help message.
3654 Patch by Roger Luethi <rl@hellgate.ch>.
3656 * include/sys/stat.h: Add prototypes for __lxstat_internal and
3657 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
3659 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
3660 * sysdeps/mach/hurd/lxstat.c: Likewise.
3661 * sysdeps/unix/common/lxstat.c: Likewise.
3662 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
3663 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3664 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3665 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3666 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3667 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
3668 * sysdeps/mach/hurd/lxstat64.c: Likewise.
3669 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
3670 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3672 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
3673 prototypes. Add __mbrlen and __mbrtowc macros.
3674 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
3675 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
3677 * include/unistd.h: Add prototype for __write_internal and add
3678 __libc_write macro is SHARED.
3679 * sysdeps/generic/write.c: Use INTDEF for __write.
3680 * sysdeps/mach/hurd/write.c: Likewise.
3681 * sysdeps/unix/sysv/aix/write.c: Likewise.
3682 * sysdeps/unix/syscalls.list: Add __libc_write alias.
3684 * assert/assert.c: Replace STR_N_SIZE with something usable in
3686 * assert/assert-perr.c: Likewise.
3688 * include/sys/socket.h: Declare __libc_sa_len_internal and define
3689 SA_LEN macro to use it if not NOT_IN_libc.
3690 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
3692 * include/fcntl.h: Declare __open_internal and define __open and
3693 __libc_open macros if not NOT_IN_libc.
3694 * sysdeps/generic/open.c: Use INTDEF for __open.
3695 * sysdeps/mach/hurd/open.c: Likewise.
3696 * sysdeps/unix/sysv/aix/open.c: Likewise.
3697 * sysdeps/unix/syscalls.list: Add __open_internal alias.
3699 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
3702 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
3703 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
3704 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3705 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3707 * include/wctype.h: Declare __iswalpha_l_internal,
3708 __iswdigit_l_internal, __iswspace_l_internal,
3709 __iswxdigit_l_internal, and __iswctype_internal. Define
3710 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
3711 __iswxdigit_l macros if not NOT_IN_libc.
3712 * wctype/iswctype.c: Use INTDEF for __iswctype.
3713 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
3715 * include/math.h: Declare __isinf_internal, __isinfl_internal,
3716 __isnan_internal, and __isnanl_internal.
3717 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
3718 __isnan, and __isnanl.
3719 * stdio-common/printf_size.c: Likewise.
3720 * sysdeps/generic/printf_fphex.c: Likewise.
3721 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
3722 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3723 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
3724 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
3725 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3726 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3727 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3728 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3729 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3730 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3731 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3732 * sysdeps/m68k/s_isinfl.c: Likewise.
3733 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3734 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3736 * include/sys/time.h: Declare __gettimeofday_internal and define
3737 __gettimeofday macro if not NOT_IN_libc.
3738 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
3739 * sysdeps/mach/gettimeofday.c: Likewise.
3740 * sysdeps/posix/gettimeofday.c: Likewise.
3741 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
3742 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3743 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3744 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
3746 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
3747 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
3748 Remove __lstat and __fstat inline functions.
3749 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
3750 * sysdeps/mach/hurd/fxstat.c: Likewise.
3751 * sysdeps/unix/fxstat.c: Likewise.
3752 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
3753 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
3754 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3755 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3756 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3757 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
3758 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3759 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
3760 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3762 * include/unistd.h: Declare __getpid_internal and define
3763 __getpid macro if not NOT_IN_libc.
3764 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
3765 * sysdeps/generic/getpid.c: Likewise.
3766 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
3767 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
3769 * include/unistd.h: Declare __getpgid_internal and define
3770 __getpgid macro if not NOT_IN_libc.
3771 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
3772 * sysdeps/mach/hurd/getpgid.c: Likewise.
3773 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
3774 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3775 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3776 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
3778 * include/unistd.h: Declare __getpagesize_internal and define
3779 __getpagesize macro if not NOT_IN_libc.
3780 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
3782 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
3783 * sysdeps/mach/getpagesize.c: Likewise.
3784 * sysdeps/posix/getpagesize.c: Likewise.
3785 * sysdeps/unix/getpagesize.c: Likewise.
3786 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3787 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3788 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
3789 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
3791 2002-04-13 Andreas Jaeger <aj@suse.de>
3793 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
3794 as clobber to reduce register pressure.
3795 (__strpbrk_cg): Likewise.
3796 (__mempcpy_by4): Likewise.
3797 (__strstr_cg): Likewise.
3798 Add prototype for __memrchr.
3800 2002-04-13 Andreas Schwab <schwab@suse.de>
3802 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
3803 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3804 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3806 2002-04-13 Ulrich Drepper <drepper@redhat.com>
3808 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
3809 check whether the caller prefers getting the most recent version of
3810 a symbol of the earliest version.
3811 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
3812 _dl_do_lookup to also take the new parameter and pass it on.
3813 Change 'explicit' parameter of _dl_lookup_symbol and
3814 _dl_lookup_versioned_symbol to flags. Adjust tests.
3815 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3816 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
3817 _dl_lookup_versioned_symbol.
3818 * elf/dl-reloc.c: Likewise.
3819 * elf/dl-runtime.c: Likewise.
3820 * elf/dl-sym.c: Likewise.
3821 * sysdeps/mips/dl-machine.h: Likewise.
3823 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3825 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
3827 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
3829 2002-04-10 Andreas Jaeger <aj@suse.de>
3831 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
3833 * include/argz.h: Remove extra char from last patch.
3835 2002-04-09 Ulrich Drepper <drepper@redhat.com>
3837 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
3838 * sysdeps/unix/sysv/aix/chown.c: Likewise.
3839 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
3840 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3841 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3842 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
3844 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3846 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
3847 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
3848 * intl/ngettext.c: Likewise.
3850 * include/sys/socket.h: Declare __connect_internal and define
3851 __connect macro if not NOT_IN_libc.
3852 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
3853 * sysdeps/unix/sysv/aix/connect.c: Likewise.
3854 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
3856 * include/unistd.h: Declare __close_internal and define __close macro
3858 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
3859 WJUMP3): Add extra parenthesis to avoid expanding element names with
3860 macors like __close.
3861 * sysdeps/unix/syscalls.list: Add __close_internal alias.
3863 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
3865 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
3866 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
3867 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
3869 * include/unistd.h: Declare __fork_internal and define __fork macro
3871 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
3872 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3873 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
3875 * include/stdio_ext.h: Declare __fsetlocking_internal and define
3876 __fsetlocking macro to use it if not NOT_IN_libc.
3877 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
3879 * libio/__fbufsize.c: Correct copyright.
3880 * libio/__flbf.c: Likewise.
3881 * libio/__fpending.c: Likewise.
3882 * libio/__fpurge.c: Likewise.
3883 * libio/__freadable.c: Likewise.
3884 * libio/__freading.c: Likewise.
3885 * libio/__fsetlocking.c: Likewise.
3886 * libio/__fwritable.c: Likewise.
3887 * libio/__fwriting.c: Likewise.
3889 * include/stdio.h: Declare __asprintf_internal and define __asprintf
3890 macro to use it if not NOT_IN_libc.
3891 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
3893 * include/mntent.h: Declare __setmntent_internal,
3894 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
3895 __getmntent_r, and __endmntent macros to use these functions if not
3897 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
3900 * include/math.h: Declare __finite_internal, __finitef_internal, and
3901 __finitel_internal. Redefine isfinite macro if in libc or libm using
3903 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
3904 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
3905 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
3906 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
3907 * sysdeps/i386/fpu/s_finitef.S: Likewise.
3908 * sysdeps/i386/fpu/s_finitel.S: Likewise.
3909 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3910 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3911 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3912 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3914 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
3915 to use this function if not NOT_IN_libc.
3916 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
3917 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
3918 * sysdeps/mach/hurd/fcntl.c: Likewise.
3919 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3920 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3922 * include/argz.h: Declare __argz_count_internal and
3923 __argz_stringify_internal.
3924 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
3926 * string/argz-count.c: Use INTDEF for __argz_count.
3927 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
3929 * include/stdlib.h: Declare __cxa_atexit_internal and define
3930 __cxa_atexit macro if not NOT_IN_libc.
3931 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
3932 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
3934 * assert/assert.c: Use INTDEF for __assert_fail.
3935 * assert/__assert.c: Use INTUSE for call to __assert_fail.
3936 * include/assert.h: Declare __assert_fail_internal.
3938 * extra-lib.mk: Mark assignment to lib with override.
3940 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3942 * Makerules: Use cppflags-iterator.mk to add defines for all test
3945 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
3947 * elf/elf.h: Define R_SH_TLS_xxx macros.
3948 * elf/rtld.c: Remove an extra parenthesis.
3949 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
3951 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
3952 * sysdeps/sh/dl-lookupcfg.h: New file.
3953 * sysdeps/sh/dl-tls.h: New file.
3954 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
3955 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
3956 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
3957 R_SH_TLS_TPOFF32 relocations.
3959 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3961 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
3963 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
3964 * include/stdlib.h: Likewise.
3966 2002-04-08 Jakub Jelinek <jakub@redhat.com>
3968 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
3969 instead of _RTLD_LOCAL.
3970 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
3971 * include/unistd.h: Likewise.
3972 * sysdeps/generic/ldsodefs.h: Likewise.
3974 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
3975 if in libc or ld.so.
3977 2002-04-08 Andreas Jaeger <aj@suse.de>
3979 * elf/cache.c (print_entry): Support x86-64.
3981 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3983 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
3984 with one accessing the locale data structures directly.
3985 * stdio-common/printf-prs.c: Include localeinfo.h for new
3986 MB_CUR_MAX definition.
3988 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
3989 is the name of the source file without extension.
3990 * Makefile (distribute): Add cppflags-iterator.mk.
3991 * cppflags-iterator.mk: New file.
3992 * extra-lib.mk: For the sources of the library run
3993 cppflags-iterator.mk.
3995 * include/libintl.h: Declare __dcgettext_internal and
3996 _libc_intl_domainname_internal. Define __dcgettext using these
3997 two symbols if used in libc itself.
3998 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
3999 _libc_intl_domainname_internal.
4000 * argp/argp-parse.c: Likewise.
4001 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4002 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4003 * intl/gettext.c: Likewise.
4004 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4006 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4008 * posix/regex_internal.c (gettext): Likewise.
4010 2002-04-08 Andreas Jaeger <aj@suse.de>
4012 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4014 * sysdeps/x86_64/fpu/s_llrint.S: New.
4015 * sysdeps/x86_64/fpu/s_llrintf.S: New.
4016 * sysdeps/x86_64/fpu/s_llrintl.S: New.
4017 * sysdeps/x86_64/fpu/s_lrint.S: New.
4018 * sysdeps/x86_64/fpu/s_lrintf.S: New
4019 * sysdeps/x86_64/fpu/s_lrintl.S: New.
4021 2002-04-08 Roland McGrath <roland@frob.com>
4023 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4024 widening __hurd_fail value.
4026 2002-04-07 Roland McGrath <roland@frob.com>
4028 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4029 <mach/machine/alpha_instruction.h>.
4030 (_hurd_setup_sighandler): Take proper arguments for current decls.
4031 Update code to use _hurdsig_catch_fault.
4032 Use `callsys' instruction instead of `call_pal'.
4033 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4035 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4036 (ALIGN, at, AT, fp): New macros.
4038 2002-04-06 Roland McGrath <roland@frob.com>
4040 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4042 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4043 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4045 * sysdeps/mach/hurd/bind.c: Use prototype definition.
4046 * sysdeps/mach/hurd/connect.c: Likewise.
4047 * sysdeps/mach/hurd/getsockopt.c: Likewise.
4048 * sysdeps/mach/hurd/setsockopt.c: Likewise.
4050 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4053 * hurd/catch-exc.c: Use integer_t instead of int.
4054 * hurd/hurdfault.c: Likewise.
4056 * sysdeps/mach/hurd/alpha/exc2signal.c
4057 (_hurd_exception2signal): Rewritten.
4058 * sysdeps/mach/hurd/alpha/longjmp-ts.c
4059 (_hurd_longjmp_thread_state): Rewritten.
4061 2002-04-07 Ulrich Drepper <drepper@redhat.com>
4063 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4064 DB_LOOKUP_FCT prototype.
4065 * nss/getXXent_r.c: Likewise.
4066 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4067 * inet/getaliasname_r.c: Likewise.
4068 * inet/getnetbyad_r.c: Likewise.
4069 * inet/getnetbynm_r.c: Likewise.
4070 * inet/getnetent_r.c: Likewise.
4071 * inet/getproto_r.c: Likewise.
4072 * inet/getprtent_r.c: Likewise.
4073 * inet/getprtname_r.c: Likewise.
4074 * inet/getrpcbyname_r.c: Likewise.
4075 * inet/getrpcbynumber_r.c: Likewise.
4076 * inet/getrpcent_r.c: Likewise.
4077 * inet/getservent_r.c: Likewise.
4078 * inet/getsrvbynm_r.c: Likewise.
4079 * inet/getsrvbypt_r.c: Likewise.
4080 * shadow/getspent_r.c: Likewise.
4081 * shadow/getspnam_r.c: Likewise.
4083 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4085 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4086 Use i686-friendly PIC code.
4087 * sysdeps/i386/elf/setjmp.S: Likewise.
4089 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4091 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4093 * elf/Versions: Remove it here.
4095 2002-04-06 Ulrich Drepper <drepper@redhat.com>
4097 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4098 direction. Reported by H . J . Lu <hjl@lucon.org>.
4100 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4102 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4103 test just before the test runs.
4104 * intl/tst-translit.sh: Likewise.
4105 * intl/tst-codeset.sh: Likewise.
4107 * timezone/zic.c: Update from tzcode2002c.
4108 * timezone/asia: Update from tzdata2002c.
4109 * timezone/backward: Likewise.
4110 * timezone/europe: Likewise.
4111 * timezone/northamerica: Likewise.
4112 * timezone/northamerica: Likewise.
4113 * timezone/northamerica: Likewise.
4114 * timezone/southamerica: Likewise.
4115 * timezone/zone.tab: Likewise.
4117 2002-03-23 Jakub Jelinek <jakub@redhat.com>
4119 * sysdeps/generic/brk.c (__curbrk): Declare.
4120 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4121 * sysdeps/generic/dl-sbrk.c: Likewise.
4122 * sysdeps/unix/arm/dl-brk.S: New file.
4123 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4124 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4125 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4126 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4127 * sysdeps/unix/i386/dl-brk.S: New file.
4128 * sysdeps/unix/mips/dl-brk.S: New file.
4129 * sysdeps/unix/sparc/dl-brk.S: New file.
4130 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4131 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4132 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4133 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4135 2002-04-03 Andreas Schwab <schwab@suse.de>
4137 * Makefile (headers): Add gnu/lib-names.h here instead of
4139 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4141 (install-headers): Add dependency on install-headers-nosubdir.
4142 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4143 instead of install-others.
4144 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4147 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4149 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4150 Reported by Sam Roberts <sroberts@uniserve.com>.
4152 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4154 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4155 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4156 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4157 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4159 2002-04-03 David Mosberger <davidm@hpl.hp.com>
4161 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4162 (RTLD_START): Ditto.
4163 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4164 dependency violation.
4166 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4168 * time/mktime.c (__mktime_internal): Move check for year < 70 below
4169 all variable declarations.
4171 2002-04-04 Andreas Schwab <schwab@suse.de>
4173 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4175 2002-04-04 Andreas Jaeger <aj@suse.de>
4177 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4178 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4180 * sysdeps/x86_64/fpu/s_fabs.c: New file.
4181 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4182 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4184 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4186 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4188 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4189 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4191 * configure.in: Handle all mips entries the same.
4193 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4194 * sysdeps/mips/mips3/*: Likewise.
4195 * sysdeps/mips/p40/bits/endian.h: Likewise.
4197 2002-04-04 Ulrich Drepper <drepper@redhat.com>
4199 * misc/dirname.c (dirname): Ignore trailing slashes at end of
4200 non-null result [PR libc/2600].
4202 * misc/tst-dirname.c: Add more tests.
4204 2002-04-03 Ulrich Drepper <drepper@redhat.com>
4206 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
4207 define a code_set_name provide one based on the filename.
4209 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
4211 2001-12-28 Andreas Jaeger <aj@suse.de>
4213 * time/mktime.c (__mktime_internal): Check for year < 70
4216 2002-04-03 Andreas Jaeger <aj@suse.de>
4218 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
4220 Reported by Andi Kleen <ak@suse.de>.
4222 2002-04-03 Ulrich Drepper <drepper@redhat.com>
4224 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
4225 * sysdeps/generic/w_lgammaf.c: Likewise.
4226 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
4228 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
4229 Adjust for new output format of the backtrace functions.
4231 * misc/syslog.c (vsyslog): Only use cleanup handler if
4232 _LIBC_REENTRANT is defined [PR libc/2924].
4234 * libio/Makefile (tests): Add bug-ungetwc2.
4235 * libio/bug-ungetwc2.c: New file.
4237 * manual/install.texi: Typographical and grammatical cleanup.
4238 Patch by Dennis Grace <dgrace@us.ibm.com>.
4240 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
4241 parameter if mtflag. Patch by <jeongyun@innovay.com>.
4243 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
4244 always "&". Adjust callers.
4245 Add "_" prefix to several generated definitions.
4246 Patch by paul@serice.net [PR libc/3158].
4248 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4250 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
4251 size of _dl_arm_cap_flags.
4252 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
4254 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
4257 2002-03-22 H.J. Lu <hjl@gnu.org>
4259 * scripts/firstversions.awk: Check the first version.
4261 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4263 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
4264 dependencies must be stable to work correctly.
4265 Reported by martin.lubich@datacon.at.
4267 * libio/bug-ungetwc1.c: New file.
4268 * libio/Makefile (tests): Add bug-ungetwc1.
4270 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
4271 if stream was last used for writing.
4273 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
4274 number [PR libc/3111].
4276 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
4278 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
4280 2002-04-02 Jakub Jelinek <jakub@redhat.com>
4282 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
4283 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
4284 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
4285 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
4286 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
4288 2002-03-30 Jakub Jelinek <jakub@redhat.com>
4290 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
4293 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4295 * sysdeps/i386/fpu/s_fabs.S: New file.
4296 * sysdeps/i386/fpu/s_fabsf.S: New file.
4297 * sysdeps/i386/fpu/s_fabsl.S: New file.
4298 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
4299 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
4300 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
4302 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4304 * rt/tst-shm.c (do_test): Add one more test for size of shared
4307 2002-03-29 Wolfram Gloger <wg@malloc.de>
4309 * malloc/malloc.c: Add short description and prototypes for
4310 malloc_get_state, malloc_set_state and posix_memalign, for
4311 consistency and to avoid warnings with -Wstrict-prototypes.
4312 Reported by Andreas Jaeger <aj@suse.de>.
4314 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4316 * po/gl.po: Update from translation team.
4318 2002-03-31 Roland McGrath <roland@frob.com>
4320 * hurd/hurdselect.c (_hurd_select): Fix
4321 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
4322 Use a union rather than casts to compare mach_msg_type_t as int.
4324 2002-03-25 Roland McGrath <roland@frob.com>
4326 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
4327 check off the end of NAME when it's shorter than 2 chars.
4328 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
4330 2002-03-17 Roland McGrath <roland@frob.com>
4332 * sysdeps/mach/hurd/i386/sys/io.h: New file.
4333 * sysdeps/mach/hurd/i386/ioperm.c: New file.
4334 * sysdeps/mach/hurd/i386/Dist: Add them.
4335 * sysdeps/mach/hurd/i386/Versions
4336 (libc: GLIBC_2.2.6): New set, add ioperm.
4337 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
4338 (mach_interface_list): Check for mach_i386.defs.
4339 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
4340 * sysdeps/mach/configure: Regenerated.
4342 2002-03-22 Ulrich Drepper <drepper@redhat.com>
4344 * po/fr.po: Update from translation team.
4346 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
4348 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
4349 getpriority from syscalls list.
4351 2002-03-28 Andreas Jaeger <aj@suse.de>
4353 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
4354 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
4355 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
4356 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
4358 2002-03-27 Andreas Jaeger <aj@suse.de>
4360 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4361 sigcontext): Follow further kernel change.
4363 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
4366 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
4367 Change for struct sigcontext change.
4369 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4370 Follow changes in struct sigcontext.
4372 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
4373 sysycall, use wrapper instead.
4375 2002-03-26 Andreas Jaeger <aj@suse.de>
4377 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
4378 read and write accesses as detailed as possible.
4379 (__memcpy_by2): Likewise.
4380 (__memcpy_g): Likewise.
4381 (memmove): Likewise.
4383 (__memset_ccn_by4): Likewise.
4384 (__memset_ccn_by2): Likewise.
4385 (__memset_gcn_by4): Likewise.
4386 (__memset_gcn_by2): Likewise.
4388 (__memrchr): Likewise.
4389 (rawmemchr): Likewise.
4390 (__strlen_g): Likewise.
4391 (__strcpy_g): Likewise.
4392 (__mempcpy_by4): Likewise.
4393 (__mempcpy_by2): Likewise.
4394 (__mempcpy_byn): Likewise.
4395 (__stpcpy_g): Likewise.
4396 (__strncpy_by4): Likewise.
4397 (__strncpy_by2): Likewise.
4398 (__strncpy_byn): Likewise.
4399 (__strncpy_gg): Likewise.
4400 (__strcat_c): Likewise.
4401 (__strcat_g): Likewise.
4402 (__strncat_g): Likewise.
4403 (__strcmp_gg): Likewise.
4404 (__strncmp_g): Likewise.
4405 (__strchr_c): Likewise.
4406 (__strchr_g): Likewise.
4407 (__strchrnul_c): Likewise.
4408 (__strchrnul_g): Likewise.
4409 (__strrchr_c): Likewise.
4410 (__strrchr_g): Likewise.
4411 (__strrchr_c): Likewise.
4412 (__strrchr_g): Likewise.
4413 (__strcspn_c1): Likewise.
4414 (__strcspn_cg): Likewise.
4415 (__strcspn_g): Likewise.
4416 (__strcspn_g): Likewise.
4417 (__strspn_c1): Likewise.
4418 (__strspn_cg): Likewise.
4419 (__strspn_g): Likewise.
4420 (__strspn_g): Likewise.
4421 (__strpbrk_cg): Likewise.
4422 (__strpbrk_g): Likewise.
4423 (__strstr_cg): Likewise.
4424 (__strstr_g): Likewise.
4426 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
4427 Michal Ludvig <mludvig@suse.cz>.
4429 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
4430 compatibilty, adjust for kernel changes.
4432 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4433 sigcontext): Adjust for kernel changes.
4435 2002-03-25 Andreas Jaeger <aj@suse.de>
4437 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
4439 Reported by Artur Zaprzala <zybi@talex.com.pl>.
4441 2002-03-24 Andreas Jaeger <aj@suse.de>
4443 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
4445 * stdio-common/tst-fdopen.c (main): Remove unused variable.
4447 * iconv/tst-iconv3.c (main): Use correct printf strings.
4449 2002-03-18 Roland McGrath <roland@frob.com>
4451 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
4452 (CMGROUP_MAX): New macro.
4454 2002-03-23 Roland McGrath <roland@frob.com>
4456 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
4457 * sysdeps/posix/shm_unlink.c: Likewise.
4459 2002-03-22 Roland McGrath <roland@frob.com>
4461 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
4462 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
4463 under --enable-libio.
4464 * sysdeps/mach/hurd/configure: Regenerated.
4466 2002-03-23 Roland McGrath <roland@frob.com>
4468 * sysdeps/mach/hurd/i386/Makefile
4469 (sysdep_routines, shared-only-routines): Don't add framestate,
4470 reverting 2001-10-02 change.
4471 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4472 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4473 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4474 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4475 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4476 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4477 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4478 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4479 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
4480 Do it here instead, only if [$(unwind-find-fde) = yes].
4482 2002-03-23 Andreas Jaeger <aj@suse.de>
4484 * signal/signal.h: Fix typo. Patch by Steve Kemp
4485 <skx@tardis.ed.ac.uk>.
4487 2002-03-22 Andreas Jaeger <aj@suse.de>
4489 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
4492 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4493 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
4494 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4495 user_fpregs_struct): Rename fwd.
4497 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4498 Follow sigcontext changes.
4500 2002-03-22 Andreas Jaeger <aj@suse.de>
4502 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
4503 changes for NaNs on MIPS.
4504 Patch by Hartvig Ekner <hartvige@mips.com>.
4506 2002-03-21 Ulrich Drepper <drepper@redhat.com>
4508 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
4509 Use realloc if too large.
4510 (addgrbyid): Likewise.
4511 * nscd/hstcache.c (addhstbyname): Likewise.
4512 (addhstbyaddr): Likewise.
4513 (addhstbynamev6): Likewise.
4514 (addhstbyaddrv6): Likewise.
4515 * nscd/pwdcache.c (addpwbyname): Likewise.
4516 (addpwbyuid): Likewise.
4518 2002-03-21 Andreas Jaeger <aj@suse.de>
4520 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4521 _fpstate): Add separate struct for x86-64.
4523 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4524 user_fpregs_struct): Change member names to follow kernel.
4526 2002-03-20 Ulrich Drepper <drepper@redhat.com>
4528 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
4529 Correctly close the UDP connection right away [PR libc/3120].
4531 2002-03-20 Andreas Jaeger <aj@suse.de>
4533 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4534 user_fpregs_struct): Fix for changed kernel struct.
4535 (struct user_regs_struct): Likewise.
4536 (struct user): Likewise.
4537 Add 32-bit x86 compatibility.
4539 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
4541 2002-03-19 Andreas Jaeger <aj@suse.de>
4543 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
4545 2002-03-18 Andreas Jaeger <aj@suse.de>
4547 * iconvdata/Makefile: Only run tests when shared libs are
4550 2002-03-17 Andreas Jaeger <aj@suse.de>
4552 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
4554 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
4556 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
4559 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
4561 Patch by Hartvig Ekner <hartvige@mips.com>.
4563 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
4564 * sysdeps/generic/unwind-pe.h: Likewise.
4566 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
4569 * libio/stdio.c (AL2): Define variant when visibility attribute is
4572 * include/libc-symbols.h (_INTVARDEF): Define variant when
4573 visibility attribute is not supported.
4575 2002-03-16 Ulrich Drepper <drepper@redhat.com>
4577 * po/fr.po: Update from translation team.
4579 2002-02-25 Bruno Haible <bruno@clisp.org>
4581 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
4583 2002-03-15 Ulrich Drepper <drepper@redhat.com>
4585 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
4586 buffers if _IO_file_attach failed.
4588 * libio/fileops.c (_IO_file_open): Close file descriptor if
4589 _IO_SEEKOFF call failed.
4591 2002-03-15 H.J. Lu <hjl@gnu.org>
4592 Ulrich Drepper <drepper@redhat.com>
4594 * configure.in: Check for availability of
4595 init_array/fini_array/preinit_array handling in binutils.
4596 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
4597 * config.make.in (have-initfini-array): New variable.
4599 2002-03-15 Ulrich Drepper <drepper@redhat.com>
4601 * stdio-common/tst-printf.c (main): Comment out one test which
4602 checked the compiler's ability to fold floating-point constants
4603 but not really printf.
4604 (rfg3): Make s const.
4605 * stdio-common/tst-printf.sh: Adjust for removed test.
4607 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
4608 internal function. Adjust for internal_function calling convention.
4609 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
4610 as internal_function.
4612 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
4615 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
4616 declaration and definition.
4617 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
4619 * nss/getXXent_r.c: Likewise.
4620 * nss/nsswitch.h (db_lookup_function): Add internal_function to
4623 * include/time.h: Declare __localtime_r as hidden.
4625 * include/aliases.h: Declare __getaliasent_r as hidden.
4626 * include/grp.h: Declare __getgrent_r as hidden.
4627 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
4628 __getservent_r, and __getprotoent_r as hidden.
4629 * include/pwd.h: Declare __getpwent_r as hidden.
4630 * include/shadow.h: Declare __getspent_r as hidden.
4631 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
4633 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
4634 and __gconv_transliterate as hidden.
4635 Add internal_function to __gconv_get_path declaration.
4636 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
4637 definition. Add attribute_hidden to __gconv_read_conf definition.
4639 2002-03-14 Ulrich Drepper <drepper@redhat.com>
4641 * elf/rtld.c: Declare _environ as hidden.
4642 * sysdeps/generic/dl-environ.c: Likewise.
4643 * sysdeps/generic/dl-sysdep.c: Likewise.
4645 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
4646 _dl_mcount_internal as hidden.
4648 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
4649 * sysdeps/generic/dl-brk.c: New file.
4650 * sysdeps/generic/dl-sbrk.c: New file.
4651 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
4652 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
4654 * elf/dl-minimal.c (malloc): Declare _end as hidden.
4655 (__errno_location): New function. Declare errno as hidden.
4656 * elf/rtld.c (_dl_argc): Define as hidden.
4657 (_dl_skip_args): Define as hidden.
4658 (_begin, _end): Declare as hidden.
4659 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
4660 * sysdeps/generic/entry.h (_start): Declare as hidden.
4661 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
4662 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
4663 _dl_runtime_resolve and _dl_runtime_profile as hidden.
4664 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
4666 2002-03-14 Roland McGrath <roland@frob.com>
4668 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
4670 * Makeconfig (%.v.i, %.v): New implicit rules.
4671 (preprocess-versions): Variable removed.
4672 ($(common-objpfx)shlib-versions.v.i): New target giving just the
4673 shlib-versions input files as dependencies.
4674 ($(common-objpfx)soversions.i): Depend on that instead of the input
4675 files. Use it as input instead of using a pipeline.
4676 (postclean-generated): Append soversions.i, shlib-versions.v, and
4677 shlib-versions.v.i here.
4678 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
4679 the Versions.def input files as dependencies.
4680 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
4681 ($(common-objpfx)Versions.all): Depend on that instead of the input
4682 files. Use it as input instead of using a pipeline.
4683 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
4684 (postclean-generated): Append those .v and .v.i files here.
4686 2002-03-14 Jakub Jelinek <jakub@redhat.com>
4688 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
4689 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
4692 2002-03-14 Jakub Jelinek <jakub@redhat.com>
4694 * sysdeps/generic/mp_clz_tab.c: New file.
4695 * sysdeps/i386/mp_clz_tab.c: New file.
4696 * sysdeps/hppa/mp_clz_tab.c: New file.
4697 * sysdeps/powerpc/mp_clz_tab.c: New file.
4698 * stdlib/Makefile (aux): Revert last patch.
4699 * math/Makefile (gmp-objs): Likewise.
4701 2002-03-13 Paul Eggert <eggert@twinsun.com>
4703 * time/strftime.c: Comment fixes for references to obsolescent
4704 standards, In most cases the simplest fix is to remove the
4705 confusing comments. Cross-referencing all the standards properly
4706 is a bit of a pain, and it should be enough to put that info in
4707 the documentation as I did in my recent time.texi patch.
4709 2002-03-13 Paul Eggert <eggert@twinsun.com>
4711 * manual/time.texi (Formatting Calendar Time):
4712 ISO C99 also specifies the E and O modifiers.
4713 %P is a GNU extension, and is not in ISO C99.
4714 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
4715 %T is also in ISO C99.
4716 The RFC 822 example is not valid in arbitrary locales.
4717 Reword the POSIX.2 wording slightly, to make it a bit clearer
4718 that POSIX.2 formats are also supported by later POSIX versions.
4719 If a format was introduced in ISO C99 it is also required by
4722 2002-03-13 Ulrich Drepper <drepper@redhat.com>
4724 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
4725 _sys_nerr_internal with INTVARDEF2.
4726 * include/libc-symbols.h (INTVARDEF2): New macro.
4727 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
4728 (_sys_nerr_internal): Library.
4730 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
4731 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
4733 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
4735 2002-03-13 Wolfram Gloger <wg@malloc.de>
4737 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
4739 2002-03-02 Andreas Schwab <schwab@suse.de>
4741 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
4742 'h' flag and positional arg.
4743 * stdio-common/tst-printf.c (rfg3): New function to test
4744 positional arguments.
4745 (main): Fix some warnings.
4747 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4749 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
4750 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4752 2002-03-13 Ulrich Drepper <drepper@redhat.com>
4754 * grp/initgroups.c (__nss_group_data): Declare as hidden.
4756 * include/locale.h (_nl_C_locobj): Declare as hidden.
4758 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
4759 * time/strptime.c (_nl_C_LC_TIME): Likewise.
4761 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
4763 * include/sys/gmon.h: Declare _gmonparam as hidden.
4765 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
4766 (__ctype32_wctrans): Likewise.
4767 (__ctype32_width): Likewise.
4769 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
4772 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
4774 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
4775 hidden. Change all users of these variables.
4777 * posix/regex_internal.h (__re_error_msgid): Renamed from
4778 re_error_msgid. Declare as hidden.
4779 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
4782 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
4783 (__printf_function_table): Likewise.
4784 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
4786 (__printf_function_table): Likewise.
4788 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
4789 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
4791 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
4792 * nss/nsswitch.c: Declare _nss_*_database as hidden.
4794 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
4795 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
4797 2002-03-12 Ulrich Drepper <drepper@redhat.com>
4799 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
4800 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4801 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4802 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4803 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4804 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4805 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4806 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4807 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
4808 _nl_C_LC_CTYPE_width: Declare as hidden.
4809 * include/locale.h: Declare _nl_locale_file_list.
4810 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
4811 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
4812 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
4813 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
4814 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
4815 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
4816 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
4817 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
4818 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
4819 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
4820 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
4821 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
4822 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4823 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4824 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4825 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4826 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4827 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4828 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4829 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
4830 _nl_C_LC_CTYPE_width, and as hidden.
4831 * locale/findlocale.c: Declare _nl_C as hidden.
4832 * locale/newlocale.c: Likewise.
4833 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
4834 _nl_locale_file_list.
4835 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
4836 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
4837 Define _nl_C_locobj as hidden.
4839 * malloc/mtrace.c (_mtrace_file): Define as hidden.
4840 (_mtrace_line): Likewise.
4842 * include/time.h: Declare __mon_yday as hidden.
4843 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
4845 * libio/libioP.h: Declare __libio_codecvt as hidden.
4846 * libio/fileops.c: Declare __libio_translit as hidden.
4847 * libio/iofwide.c: Define __libio_translit as hidden.
4849 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
4850 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
4851 * login/getutline_r.c: Likewise.
4852 * login/utmpname.c: Likewise.
4854 * login/utmp-private.h: Declare __libc_utmp_file_functions,
4855 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
4856 __libc_utmp_file_name as hidden.
4858 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
4859 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
4860 * locale/freelocale.c: Likewise.
4861 * locale/lc-time.c: Likewise.
4863 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
4864 (__libc_ptyname2): Likewise.
4865 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
4867 (__libc_ptyname2): Likewise.
4869 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
4870 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
4871 * sysdeps/generic/init-first.c: Likewise.
4872 * sysdeps/i386/init-first.c: Likewise.
4873 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4874 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4875 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4876 * sysdeps/sh/init-first.c: Likewise.
4877 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4878 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4880 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
4881 (_itowa_upper_digits): Likewise.
4883 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
4884 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
4887 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
4888 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
4889 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
4890 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
4892 * gmon/gmon.c (__bb_head): Define as hidden.
4893 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
4895 * argp/argp-parse.c (_argp_hang): Define as static.
4897 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
4898 handling in latest compilers.
4900 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
4902 * libio/fileops.c (_IO_file_jumps): Likewise.
4903 * libio/stdfiles.c (_IO_list_all): Likewise.
4904 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
4906 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
4908 * include/malloc.h: Add __libc_malloc_initialized declaration
4909 here. Mark variable hidden.
4910 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
4912 * elf/dl-open.c (__libc_argc): Declare as hidden.
4913 (__libc_argv): Likewise.
4914 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
4915 (__libc_argv): Likewise.
4916 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
4917 __libc_argv as hidden.
4918 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4919 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4920 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4921 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4923 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
4924 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
4925 * stdlib/erand48.c: Likewise.
4926 * stdlib/jrand48.c: Likewise.
4927 * stdlib/lcong48.c: Likewise.
4928 * stdlib/lrand48.c: Likewise.
4929 * stdlib/mrand48.c: Likewise.
4930 * stdlib/nrand48.c: Likewise.
4931 * stdlib/seed48.c: Likewise.
4932 * stdlib/srand48.c: Likewise.
4934 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
4935 (_itoa_lower_digits_internal): New declaration.
4936 (_itoa_upper_digits_internal): New declaration.
4937 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
4938 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
4939 (_itoa_upper_digits_internal): New declaration.
4940 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
4942 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
4943 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
4945 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
4946 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4948 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
4949 (_itowa_lower_digits): Likewise.
4950 (_itowa_upper_digits): Likewise.
4951 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
4952 (_itowa_upper_digits): Likewise.
4954 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
4955 not already defined.
4956 (GERMANIC_PLURAL): Declare as hidden.
4958 * posix/getopt.c (__getopt_initialized): Declare as hidden.
4959 (attribute_hidden): Define as empty macro if not already defined.
4961 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
4962 (__gconv_max_path_elem_len): Likewise.
4963 (__gconv_path_envvar): Likewise.
4965 * math/Makefile (gmp-objs): Remove mp_clz_tab.
4966 * stdlib/Makefile (aux): Remove mp_clz_tab.
4967 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
4969 * stdlib/exit.h (__exit_funcs): Declare as hidden.
4971 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
4973 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
4974 _nl_category_names, _nl_category_name_sizes, _nl_current,
4975 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
4977 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
4978 (_nl_current_default_domain): Likewise
4979 (_nl_state_lock): Likewise.
4980 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
4981 (_nl_current_default_domain): Likewise
4982 (_nl_state_lock): Likewise.
4983 * intl/bindtextdom.c (_nl_state_lock): Likewise.
4985 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
4986 (_fpioconst_pow10): Likewise.
4988 * include/time.h (_tmbuf): Add attribute_hidden.
4990 * time/tzset.c (tzstring_list): Define as static.
4992 * include/time.h: Add attribute_hidden to __tzname_cur_max and
4993 __use_tzfile declaration.
4995 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
4996 and __wcsmbs_last_locale declaration.
4998 2002-02-25 Paul Eggert <eggert@twinsun.com>
5000 * timezone/Makefile (tzbases): Move systemv from here...
5001 (tzlinks): to here, since the entries in systemv were all changed
5002 from Zone to Link lines in tz-2001a. Bug reported (and patch
5003 tested) by Peter Breitenlohner.
5005 2002-03-07 Jakub Jelinek <jakub@redhat.com>
5007 * time/tst-posixtz.c (tests): Add new tests.
5008 (main): Test whether tzset() sets daylight properly.
5010 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5012 * time/tzset.c (tz_compute): Move __daylight, __tzname and
5013 __tzname_cur_max setting...
5014 (tzset_internal): ...here.
5016 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5018 * time/tzset.c (compute_change): Don't return any value.
5019 (tz_compute): Likewise. Don't handle southern hemisphere here.
5020 (__tz_convert): But here.
5022 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5024 * manual/examples/mkfsock.c: Include <string.h> as well.
5025 Patch by Alain De Carolis <alaind@wseurope.com>.
5027 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
5029 * posix/regexec.c (re_match): Fix incorrect register sizes.
5030 (re_search): Likewise.
5032 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5034 * posix/regcomp.c (regfree): Remove a disused condition.
5035 * posix/regex_internal.c (re_acquire_state): Likewise.
5036 (re_acquire_state_context): Likewise.
5037 (register_state): Remove a redundant malloc invocation.
5038 * posix/regex_internal.h: (re_state_table_entry): Simplify
5041 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5043 * posix/regcomp.c (regcomp): Add __builtin_expect to error
5044 handling conditions.
5045 (regerror): Likewise.
5046 (regfree): Likewise.
5047 (re_compile_internal): Likewise.
5048 (init_dfa): Likewise.
5049 (init_word_char): Likewise.
5050 (create_initial_state): Likewise.
5051 (analyze): Likewise.
5052 (analyze_tree): Likewise.
5053 (duplicate_node): Likewise.
5054 (calc_eclosure): Likewise.
5055 (calc_eclosure_iter): Likewise.
5057 (parse_reg_exp): Likewise.
5058 (parse_branch): Likewise.
5059 (parse_expression): Likewise.
5060 (parse_subexp): Likewise.
5061 (parse_dup_op): Likewise.
5062 (parse_bracket_exp): Likewise.
5063 (build_equiv_class): Likewise.
5064 (build_charclass): Likewise.
5065 (build_word_op): Likewise.
5066 (fetch_number): Likewise.
5067 (create_tree): Likewise.
5068 (duplicate_tree): Likewise.
5069 * posix/regex.c (BE): New macro.
5070 * posix/regexec.c (re_match): Add __builtin_expect to error
5071 handling conditions.
5072 (re_match_2): Likewise.
5073 (re_search): Likewise.
5074 (re_search_internal): Likewise.
5075 (check_matching): Likewise.
5076 (proceed_next_node): Likewise.
5077 (set_regs): Likewise.
5078 (sift_states_backward): Likewise.
5079 (add_epsilon_backreference): Likewise.
5080 (transit_state): Likewise.
5081 (transit_state_sb): Likewise.
5082 (transit_state_mb): Likewise.
5083 (transit_state_bkref): Likewise.
5084 (transit_state_bkref_loop): Likewise.
5085 (build_trtable): Likewise.
5086 (group_nodes_into_DFAstates): Likewise.
5087 (match_ctx_init): Likewise.
5088 (match_ctx_add_entry): Likewise.
5089 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5090 to error handling conditions.
5091 (re_string_construct_toupper): Likewise.
5092 (build_wcs_buffer): Likewise.
5093 (build_wcs_upper_buffer): Likewise.
5094 (build_upper_buffer): Likewise.
5095 (re_string_translate_buffer): Likewise.
5096 (re_node_set_alloc): Likewise.
5097 (re_node_set_init_1): Likewise.
5098 (re_node_set_init_2): Likewise.
5099 (re_node_set_init_copy): Likewise.
5100 (re_node_set_intersect): Likewise.
5101 (re_node_set_init_union): Likewise.
5102 (re_node_set_merge): Likewise.
5103 (re_node_set_insert): Likewise.
5104 (re_dfa_add_node): Likewise.
5105 (re_acquire_state): Likewise.
5106 (re_acquire_state_context): Likewise.
5107 (create_new_state_common): Likewise.
5108 (register_state): Likewise.
5109 (create_ci_new_state): Likewise.
5110 (create_cd_new_state): Likewise.
5111 (re_string_context_at): Remove redundant condition.
5113 2002-01-16 Roger Sayle <roger@eyesopen.com>
5115 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5117 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5119 2002-03-11 Jakub Jelinek <jakub@redhat.com>
5121 * sysdeps/i386/elf/configure.in: Fix comment.
5123 * sysdeps/sparc/sparc64/configure.in: New.
5124 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5125 if .dynamic comes before .got.
5126 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5128 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5129 HP_TIMING_ACCUM): Fix typos.
5131 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5133 * string/strfry.c: Add some more randomness to the seed.
5134 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5136 * po/es.po: Update from translation team.
5137 * po/fr.po: Likewise.
5139 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5141 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5142 when determining type of format.
5143 Patch by James Antill <james@anqd.org> [PR libc/2787].
5145 2002-03-04 Jakub Jelinek <jakub@redhat.com>
5147 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5149 2002-03-11 Roland McGrath <roland@frob.com>
5151 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5153 * Versions.def (libc): Add GLIBC_2.2.6.
5154 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5155 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5156 __errno_location instead of __hurd_errno_location, and don't inline it.
5157 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5158 * hurd/errno.c: New file.
5159 * hurd/Makefile (routines): Add errno.
5161 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5163 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5164 ridiculously large widths and precisions [PR libc/3026].
5166 2002-03-11 Andreas Jaeger <aj@suse.de>
5168 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5170 Patch by Susanne Oberhauser <froh@SuSE.de>.
5172 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5174 * inet/rexec.c (ahostbuf): Define as static.
5176 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5177 (__ctype32_wctrans): Likewise.
5178 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5179 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5180 (__ctype32_wctrans): Likewise.
5181 (__ctype32_width): Likewise.
5183 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5184 They were never exported anyway.
5186 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5187 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
5189 * include/sys/gmon.h: Declare _gmonparam.
5191 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5192 symbols for getdents64. They were never exported.
5194 2002-03-09 Roland McGrath <roland@frob.com>
5196 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
5197 Reported by Jon Arney <jarney1@cox.net>.
5199 2002-02-23 Roland McGrath <roland@frob.com>
5201 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
5203 (__hurd_errno_location): Function removed.
5205 2002-03-06 Andreas Jaeger <aj@suse.de>
5207 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
5210 2002-03-04 Andreas Jaeger <aj@suse.de>
5212 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
5214 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
5217 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
5219 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
5221 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
5223 * sysdeps/x86_64/bits/setjmp.h: New.
5225 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
5227 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
5229 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
5231 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
5232 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
5234 2002-02-28 Bo Thorsen <bo@suse.de>
5236 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
5239 2002-03-03 Andreas Jaeger <aj@suse.de>
5241 * sysdeps/x86_64/bits/wordsize.h: New file.
5243 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
5244 * elf/tst-tlsmod1.c: Likewise.
5246 * posix/regcomp.c: Get regex.h from include dir for internal
5249 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
5250 to libc-internal.h and include it.
5251 * include/libc-internal.h: Add __init_misc.
5253 * misc/init-misc.c: Include libc-internal.h for prototypes.
5255 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
5257 * misc/error.c [_LIBC]: Include libioP.h for prototype of
5260 2002-03-03 Ulrich Drepper <drepper@redhat.com>
5262 * posix/regcomp.c: Compatibility changes to allow using the code
5265 2002-02-28 Hartvig Ekner <hartvige@mips.com>
5267 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
5270 2002-03-02 Ulrich Drepper <drepper@redhat.com>
5272 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
5273 of .str elements in the returned data structure.
5275 * elf/elf.h: Add Alpha TLS bits.
5277 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5279 * sysdeps/unix/sysv/linux/nice.c: New file.
5281 2002-03-01 Ulrich Drepper <drepper@redhat.com>
5283 * elf/Makefile (dl-routines): Add dl-origin.
5284 (elide-routines.os): Add dl-origin.
5285 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
5286 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
5288 * include/libc-symbols.c: Define attribute_hidden depending on
5289 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
5291 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
5292 * elf/dl-load.c: Likewise.
5293 * elf/rtld.c: Likewise.
5294 * include/unistd.h: Declare __libc_enable_secure_internal.
5295 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
5296 Use INTUSE with __libc_enable_secure.
5297 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5299 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
5300 * elf/dl-error.c: Likewise,
5301 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
5303 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
5304 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
5305 function definition. Use INTDEF with _dl_get_origin.
5306 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5308 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
5309 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
5311 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
5312 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
5313 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
5315 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
5316 * elf/dl-deps.c: Likewise.
5317 * elf/dl-error.c: Likewise.
5318 * elf/dl-fini.c: Likewise.
5319 * elf/dl-init.c: Likewise.
5320 * elf/dl-load.c: Likewise.
5321 * elf/dl-lookup.c: Likewise.
5322 * elf/dl-reloc.c: Likewise.
5323 * elf/dl-version.c: Likewise.
5324 * elf/do-lookup.h: Likewise.
5325 * sysdeps/arm/dl-machine.h: Likewise.
5326 * sysdeps/cris/dl-machine.h: Likewise.
5327 * sysdeps/hppa/dl-machine.h: Likewise.
5328 * sysdeps/i386/dl-machine.h: Likewise.
5329 * sysdeps/m68k/dl-machine.h: Likewise.
5330 * sysdeps/powerpc/dl-machine.h: Likewise.
5331 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5332 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5333 * sysdeps/sh/dl-machine.h: Likewise.
5334 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
5335 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
5336 * sysdeps/x86_64/dl-machine.h: Likewise.
5337 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
5338 _dl_argv[0]. Use INTUSE with _dl_argv.
5339 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
5340 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
5342 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5344 * elf/rtld.c (_rtld_global): Remove .protected.
5345 (_rtld_local): Strong alias to _rtld_global.
5346 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
5348 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
5349 _rtld_local instead of _rtld_global.
5350 (_rtld_local): Add hidden extern, possibly in .sdata section.
5351 * configure.in: Add tests for visibility attribute and .sdata.
5352 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
5353 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
5354 * sysdeps/arm/dl-machine.h: Likewise.
5355 * sysdeps/generic/ldsodefs.h: Likewise.
5356 * sysdeps/hppa/dl-machine.h: Likewise.
5357 * sysdeps/cris/dl-machine.h: Likewise.
5358 * sysdeps/i386/dl-machine.h: Likewise.
5359 * sysdeps/ia64/dl-machine.h: Likewise.
5360 * sysdeps/m68k/dl-machine.h: Likewise.
5361 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5362 * sysdeps/mips/dl-machine.h: Likewise.
5363 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5364 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5365 * sysdeps/sh/dl-machine.h: Likewise.
5366 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5367 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5368 * sysdeps/x86_64/dl-machine.h: Likewise.
5370 2002-02-28 Ulrich Drepper <drepper@redhat.com>
5372 * login/login.c (login): Always initialize ut_line field
5375 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5377 * sysdeps/i386/Makefile (sysdep_routines): Add
5379 (shared-only-routines): Likewise.
5380 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
5381 (shared-only-routines): Likewise.
5382 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
5383 (shared-only-routines): Likewise.
5384 * sysdeps/wordsize-32/divdi3.c: New file.
5386 2002-02-28 Ulrich Drepper <drepper@redhat.com>
5388 * locale/iso-4217.def: Remove obsolete currencies for countries
5391 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5393 * posix/regcomp.c (regcomp): Remove a redundant condition.
5394 (init_word_char): Add a check on malloc failure.
5395 (create_initial_state): Likewise.
5396 (duplicate_node): Likewise.
5397 (calc_eclosure): Likewise.
5398 (calc_eclosure_iter): Likewise.
5399 (parse_expression): Likewise.
5400 (parse_bracket_exp): Remove unnecessary malloc invocations.
5401 (build_equiv_class): Likewise.
5402 (build_charclass): Likewise.
5403 * posix/regex_internal.c (re_node_set_intersect): Add a check
5405 (re_node_set_add_intersect): Likewise.
5406 (re_node_set_merge): Likewise.
5407 (re_acquire_state): Likewise.
5408 (re_acquire_state_context): Likewise.
5409 (create_newstate_common): Likewise.
5410 (register_state): Likewise.
5411 (create_ci_newstate): Likewise.
5412 (create_cd_newstate): Likewise.
5413 * posix/regex_internal.h: Fix prototypes of re_acquire_state
5414 and re_acquire_state_context.
5415 * posix/regexec.c (regexec): Suit it to the error handling of
5417 (re_match): Likewise.
5418 (re_search): Likewise.
5419 (re_search_internal): Add a check on malloc failure.
5420 (acquire_init_state_context): Likewise.
5421 (check_matching): Likewise.
5422 (proceed_next_node): Likewise.
5423 (set_regs): Likewise.
5424 (sift_states_backward): Likewise.
5425 (sift_states_iter_bkref): Likewise.
5426 (add_epsilon_backreference): Likewise.
5427 (transit_state): Likewise.
5428 (transit_state_sb): Likewise.
5429 (transit_state_mb): Likewise.
5430 (transit_state_bkref_loop): Likewise.
5431 (build_trtable): Likewise.
5432 (group_nodes_into_DFAstates): Likewise.
5433 (match_ctx_init): Likewise.
5434 (match_ctx_add_entry): Likewise.
5436 2002-02-27 Ulrich Drepper <drepper@redhat.com>
5438 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
5439 l_libname if profiling is enabled [PR libc/2916].
5441 * sysdeps/ia64/dl-tls.h: New file.
5443 2002-02-27 Jakub Jelinek <jakub@redhat.com>
5445 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
5446 Work around an Alpha gas bug.
5448 2002-02-27 Ulrich Drepper <drepper@redhat.com>
5450 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
5451 uses read to load the catalog.
5452 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
5454 2002-02-26 Ulrich Drepper <drepper@redhat.com>
5456 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
5457 regex_internal.c, and regex_internal.h.
5458 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
5459 * posix/regex.c: Complete rewrite.
5460 * posix/regexec.c: New file.
5461 * posix/regcomp.c: New file.
5462 * posix/regex_internal.c: New file.
5463 * posix/regex_internal.h: New file.
5464 * posix/regex.h (RE_ICASE): New macro.
5465 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5467 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
5468 ungetwc. It's a macro.
5469 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
5471 Reported by Jason Merrill <jason@redhat.com>.
5473 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5475 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
5476 position to fp->_offset if it is set.
5477 * stdio-common/Makefile (tests): Add tst-fdopen.
5478 * stdio-common/tst-fdopen.c: New test.
5480 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5482 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
5483 * stdio-common/tst-ungetc.c (main): Add another test.
5485 2002-02-25 Ulrich Drepper <drepper@redhat.com>
5487 * assert/assert-perr.c: Use INTUSE to reference functions and variables
5488 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
5489 aliases. Add prototypes for the new aliases.
5490 * assert/assert.c: Likewise.
5491 * include/libc-symbols.h: Likewise.
5492 * include/stdio.h: Likewise.
5493 * include/netinet/in.h: Likewise.
5494 * include/rpc/auth.h: Likewise.
5495 * include/rpc/auth_unix.h: Likewise.
5496 * include/rpc/key_prot.h: Likewise.
5497 * include/rpc/pmap_prot.h: Likewise.
5498 * include/rpc/pmap_rmt.h: Likewise.
5499 * include/rpc/rpc_msg.h: Likewise.
5500 * include/rpc/xdr.h: Likewise.
5501 * inet/gethstbyad_r.c: Likewise.
5502 * inet/gethstbynm2_r.c: Likewise.
5503 * inet/gethstbynm_r.c: Likewise.
5504 * inet/gethstent_r.c: Likewise.
5505 * inet/in6_addr.c: Likewise.
5506 * libio/__fpurge.c: Likewise.
5507 * libio/filedoalloc.c: Likewise.
5508 * libio/fileops.c: Likewise.
5509 * libio/ftello.c: Likewise.
5510 * libio/ftello64.c: Likewise.
5511 * libio/genops.c: Likewise.
5512 * libio/iofclose.c: Likewise.
5513 * libio/iofdopen.c: Likewise.
5514 * libio/iofflush.c: Likewise.
5515 * libio/iofflush_u.c: Likewise.
5516 * libio/iofgetpos.c: Likewise.
5517 * libio/iofgetpos64.c: Likewise.
5518 * libio/iofgets.c: Likewise.
5519 * libio/iofgets_u.c: Likewise.
5520 * libio/iofopen.c: Likewise.
5521 * libio/iofopncook.c: Likewise.
5522 * libio/iofputs.c: Likewise.
5523 * libio/iofread.c: Likewise.
5524 * libio/iofread_u.c: Likewise.
5525 * libio/iofsetpos.c: Likewise.
5526 * libio/iofsetpos64.c: Likewise.
5527 * libio/ioftell.c: Likewise.
5528 * libio/iofwrite.c: Likewise.
5529 * libio/iogetline.c: Likewise.
5530 * libio/iogets.c: Likewise.
5531 * libio/iogetwline.c: Likewise.
5532 * libio/iolibio.h: Likewise.
5533 * libio/iopadn.c: Likewise.
5534 * libio/iopopen.c: Likewise.
5535 * libio/ioseekoff.c: Likewise.
5536 * libio/ioseekpos.c: Likewise.
5537 * libio/iosetbuffer.c: Likewise.
5538 * libio/iosetvbuf.c: Likewise.
5539 * libio/ioungetc.c: Likewise.
5540 * libio/ioungetwc.c: Likewise.
5541 * libio/iovdprintf.c: Likewise.
5542 * libio/iovsprintf.c: Likewise.
5543 * libio/iovsscanf.c: Likewise.
5544 * libio/libioP.h: Likewise.
5545 * libio/memstream.c: Likewise.
5546 * libio/obprintf.c: Likewise.
5547 * libio/oldfileops.c: Likewise.
5548 * libio/oldiofclose.c: Likewise.
5549 * libio/oldiofdopen.c: Likewise.
5550 * libio/oldiofgetpos.c: Likewise.
5551 * libio/oldiofgetpos64.c: Likewise.
5552 * libio/oldiofopen.c: Likewise.
5553 * libio/oldiofsetpos.c: Likewise.
5554 * libio/oldiofsetpos64.c: Likewise.
5555 * libio/oldiopopen.c: Likewise.
5556 * libio/oldstdfiles.c: Likewise.
5557 * libio/putc.c: Likewise.
5558 * libio/setbuf.c: Likewise.
5559 * libio/setlinebuf.c: Likewise.
5560 * libio/stdfiles.c: Likewise.
5561 * libio/stdio.c: Likewise.
5562 * libio/strops.c: Likewise.
5563 * libio/vasprintf.c: Likewise.
5564 * libio/vscanf.c: Likewise.
5565 * libio/vsnprintf.c: Likewise.
5566 * libio/vswprintf.c: Likewise.
5567 * libio/wfiledoalloc.c: Likewise.
5568 * libio/wfileops.c: Likewise.
5569 * libio/wgenops.c: Likewise.
5570 * libio/wstrops.c: Likewise.
5571 * malloc/mtrace.c: Likewise.
5572 * misc/error.c: Likewise.
5573 * misc/syslog.c: Likewise.
5574 * nss/getXXbyYY_r.c: Likewise.
5575 * nss/getXXent_r.c: Likewise.
5576 * nss/hosts-lookup.c: Likewise.
5577 * stdio-common/getw.c
5578 * stdio-common/printf-prs.c: Likewise.
5579 * stdio-common/printf_fp.c: Likewise.
5580 * stdio-common/printf_size.c: Likewise.
5581 * stdio-common/putw.c: Likewise.
5582 * stdio-common/scanf.c: Likewise.
5583 * stdio-common/sprintf.c: Likewise.
5584 * stdio-common/tmpfile64.c: Likewise.
5585 * stdio-common/vfprintf.c: Likewise.
5586 * stdio-common/vfscanf.c: Likewise.
5587 * stdlib/strfmon.c: Likewise.
5588 * sunrpc/auth_des.c: Likewise.
5589 * sunrpc/auth_none.c: Likewise.
5590 * sunrpc/auth_unix.c: Likewise.
5591 * sunrpc/authdes_prot.c: Likewise.
5592 * sunrpc/authuxprot.c: Likewise.
5593 * sunrpc/clnt_perr.c: Likewise.
5594 * sunrpc/clnt_raw.c: Likewise.
5595 * sunrpc/clnt_tcp.c: Likewise.
5596 * sunrpc/clnt_udp.c: Likewise.
5597 * sunrpc/clnt_unix.c: Likewise.
5598 * sunrpc/key_call.c: Likewise.
5599 * sunrpc/key_prot.c: Likewise.
5600 * sunrpc/openchild.c: Likewise.
5601 * sunrpc/pm_getmaps.c: Likewise.
5602 * sunrpc/pm_getport.c: Likewise.
5603 * sunrpc/pmap_clnt.c: Likewise.
5604 * sunrpc/pmap_prot.c: Likewise.
5605 * sunrpc/pmap_prot2.c: Likewise.
5606 * sunrpc/pmap_rmt.c: Likewise.
5607 * sunrpc/rpc_cmsg.c: Likewise.
5608 * sunrpc/rpc_prot.c: Likewise.
5609 * sunrpc/svc_authux.c: Likewise.
5610 * sunrpc/svc_raw.c: Likewise.
5611 * sunrpc/svc_simple.c: Likewise.
5612 * sunrpc/svc_tcp.c: Likewise.
5613 * sunrpc/svc_udp.c: Likewise.
5614 * sunrpc/svc_unix.c: Likewise.
5615 * sunrpc/xdr.c: Likewise.
5616 * sunrpc/xdr_array.c: Likewise.
5617 * sunrpc/xdr_mem.c: Likewise.
5618 * sunrpc/xdr_rec.c: Likewise.
5619 * sunrpc/xdr_ref.c: Likewise.
5620 * sunrpc/xdr_stdio.c: Likewise.
5621 * sysdeps/generic/_strerror.c: Likewise.
5622 * sysdeps/generic/printf_fphex.c: Likewise.
5623 * sysdeps/generic/tmpfile.c: Likewise.
5624 * sysdeps/gnu/errlist.awk: Likewise.
5625 * sysdeps/gnu/errlist.c: Likewise.
5627 * libio/Makefile (routines): Remove iosprint.
5628 * libio/iosprintf.c: Removed
5631 2002-02-24 Ulrich Drepper <drepper@redhat.com>
5633 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
5634 non_dynamic_init and exported now.
5635 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
5636 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
5638 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5639 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5640 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5642 2002-02-23 Ulrich Drepper <drepper@redhat.com>
5644 * elf/dl-close.c (free_slotinfo): Check for end of list and return
5647 * locale/iso-639.def: Add language codes for Walloon.
5649 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
5650 total number of relocations performed.
5652 * elf/sprof.c (load_profdata): If do_test provide information as
5653 to why loading failed.
5654 * elf/dl-profile.c (_dl_start_profile): Initialize all of
5657 * csu/set-init.c: Moved to...
5658 * sysdeps/mach/hurd/set-init.c: ...here. New file.
5659 * csu/Makefile: Don't compile set-init.
5660 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
5661 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
5663 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5664 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5665 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
5667 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
5670 2002-02-22 Ulrich Drepper <drepper@redhat.com>
5672 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
5673 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
5674 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
5675 (_dl_deallocate_tls): New function.
5676 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
5679 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5681 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
5682 * stdio-common/tst-fseek.c (main): Add test for this.
5684 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
5686 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
5688 2002-02-19 Jakub Jelinek <jakub@redhat.com>
5690 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
5691 pointer before dereferencing.
5693 2002-02-18 Roland McGrath <roland@frob.com>
5695 * sysdeps/mach/hurd/times.c: Fix typo in last change.
5697 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
5698 Use task_policy in place of task_priority.
5700 * sysdeps/generic/bits/mman.h
5701 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
5702 * sysdeps/mach/msync.c: New file.
5704 * sysdeps/mach/powerpc/syscall.S: New file.
5706 * mach/msg.c [MACH_MSG_OVERWRITE]
5707 (__mach_msg_trap, __mach_msg_overwrite): New functions.
5708 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
5710 * sysdeps/mach/configure.in: Check for clock.defs to put into
5711 mach_interface_list.
5712 * sysdeps/mach/configure: Regenerated.
5714 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
5715 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
5716 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
5717 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
5718 (mach-shortcuts): Add device_read_overwrite_request,
5719 device_read_overwrite, vm_read_overwrite, thread_switch.
5721 * configure.in (base_machine): Set to $machine by default.
5722 * configure: Regenerated.
5724 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
5725 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
5726 * sysdeps/mach/configure: Regenerated.
5727 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
5729 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
5731 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
5733 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
5734 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
5736 2002-02-17 Roland McGrath <roland@frob.com>
5738 * sysdeps/mach/hurd/times.c
5739 [NO_CREATION_TIME] (startup_time): New static variable.
5740 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
5741 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
5742 creation_time from task_basic_info.
5743 (__times): Use __gettimeofday instead of __host_get_time.
5745 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
5746 Use untyped Mach IPC message format.
5748 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
5750 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
5751 _S_catch_exception_raise_state_identity,
5752 _hurdsig_fault_catch_exception_raise_state,
5753 _hurdsig_fault_catch_exception_raise_state_identity.
5755 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
5757 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
5758 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
5760 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
5761 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
5763 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
5764 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
5765 them as no-op macros.
5766 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
5767 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
5769 * sysdeps/powerpc/dl-machine.h
5770 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
5772 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
5773 Use untyped Mach IPC message format.
5775 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
5776 Handle untyped Mach IPC message formats.
5778 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
5779 Expect different argument conventions when this is defined.
5780 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
5781 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
5782 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
5783 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
5784 for OSF Mach variant.
5785 (faulted): Use mig_reply_error_t for REPLY.
5786 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
5787 in __thread_set_exception_ports call.
5788 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
5789 __mach_port_set_attributes in place of __mach_port_set_qlimit.
5791 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
5792 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
5793 on Darwin, which includes bogons.
5795 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
5796 variable LOADBASE so it's not declared when it's not used.
5798 2002-02-16 Roland McGrath <roland@frob.com>
5800 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
5801 to use BI.creation_time.
5803 * mach/Machrules (MIG): Add -x c to CPP value passed down.
5805 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
5806 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
5807 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
5808 host_page_size instead of vm_statistics.
5810 * sysdeps/mach/Makefile (mach-before-compile): Don't include
5811 mach_interface.h here, since not all variants use that name.
5813 * sysdeps/mach/configure.in: Add some checks for Mach headers
5814 to ensure a sane installation.
5815 (mach_interface_list): Define this variable by checking for .defs
5816 files found in various variants.
5817 * configure.in (mach_interface_list): AC_SUBST this.
5818 * config.make.in (mach-interface-list): New substituted variable.
5819 * mach/Makefile (user-interfaces): Define this using the value
5820 of $(mach-interface-list) instead of mach, mach4.
5821 Updated other references to mach_interface to use it as well.
5823 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
5825 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
5826 mig_reply_error_t for OSF Mach variant.
5828 * mach/Makefile (routines): Remove bootprivport.
5829 * mach/bootprivport.c: File removed. It has never been used.
5831 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
5832 Grok the OSF flavor of message format.
5833 (mach_msg_destroy_port): For MAKE_SEND and
5834 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
5835 no-senders notification.
5837 2002-02-06 Roland McGrath <roland@frob.com>
5839 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
5840 to here if 2.0 compatibility enabled ...
5841 (libc: GLIBC_2.1.3): ... from here.
5843 2002-02-15 Ulrich Drepper <drepper@redhat.com>
5845 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
5847 * elf/dl-close.c (_dl_close): Likewise.
5849 2002-02-14 Ulrich Drepper <drepper@redhat.com>
5851 * elf/Makefile: Add rules to build and run tst-tls8.
5852 * elf/tst-tls8.c: New file.
5853 * elf/tst-tlsmod4.c: New file.
5855 * stdlib/test-a64l.c (tests): Add more test cases.
5857 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
5858 Reported by Walter Harms <WHarms@bfs.de>.
5860 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
5862 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
5863 definitions for struct sigcontext.
5864 Suggested by David Mosberger-Tang.
5866 2002-02-13 Ulrich Drepper <drepper@redhat.com>
5868 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
5869 for removing reference of module in slotinfo list.
5870 (_dl_close): Use remove_slotinfo.
5871 * sysdeps/generic/dl-tls.c: General pretty printing.
5872 (oom): Define only if SHARED.
5873 (_dl_next_tls_modid): Correct starting point for the case we assume
5874 there is a gap. Add missing instruction grouping (doh!). Correct
5875 tests for reaching maximum index.
5876 * elf/Makefile: Add rules to build and run tst-tls7.
5877 * elf/tst-tls7.c: New file.
5878 * elf/tst-tlsmod3.c: New file.
5880 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
5882 * elf/tst-tlsmod2.c: Likewise.
5884 * elf/dl-close.c (_dl_close): When closing an object using TLS
5885 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
5886 true. Increment dl_tls_generation only if we closed any TLS-using
5888 * elf/tst-tls6.c: New file.
5889 * elf/Makefile: Add rules to build and run tst-tls6.
5891 * po/da.po: Update from translation team.
5893 * locale/categories.def: Fix typo [PR libc/2948].
5894 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
5896 * locale/iso-4217.def: Update from official version [PR libc/2950].
5897 * glibcbug.in: Honor TMPDIR [PR libc/2951].
5898 * locale/programs/ld-collate.c (collate_finish): Bail out with a
5899 message if input is too confusion instead of using assert.
5900 (collate_read): Don't crash on unknown symbol [PR libc/2952].
5901 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
5903 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
5904 * elf/tst-tls2.c: Likewise.
5905 * elf/tst-tls3.c: Likewise.
5907 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5909 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
5911 2002-02-13 Ulrich Drepper <drepper@redhat.com>
5913 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
5914 if this is really necessary.
5916 * elf/dl-close.c (_dl_close): Implement freeing entries in the
5918 (free_mem): Free memory for the slotinfo array if possible.
5920 2002-02-12 Andreas Schwab <schwab@suse.de>
5922 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
5924 2002-02-12 Ulrich Drepper <drepper@redhat.com>
5926 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
5928 (oom): New function.
5929 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
5930 (_dl_determine_tlsoffset): Likewise.
5931 (_dl_allocate_tls): Likewise.
5932 (__TLS_GET_ADDR): Define if not already defined.
5933 (_dl_tls_symaddr): New function.
5934 (allocate_and_init): New function.
5935 (__tls_get_addr): Actually implement handling of generation counter
5936 and deferred allocation.
5937 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
5938 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5940 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
5941 Declare _dl_tls_symaddr.
5942 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
5944 * include/link.h (struct link_map): Remove l_tls_nextimage and
5946 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
5947 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
5948 (_dl_vsym): Likewise.
5949 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
5951 (dl_main): Allow PT_TLS be present for empty segment. Remove
5952 nextimage list handling. Instead add all modules using TLS to
5953 dl_tls_dtv_slotinfo_list.
5954 * elf/dl-open.c (dl_open_worker): After successfully loading all
5955 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
5956 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
5957 empty segment don't do anything. Remove handling of initimage list.
5958 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
5959 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
5960 * elf/dl-minimal.c: Define __libc_memalign.
5961 * elf/dl-support.c: Remove _dl_initimage_list. Add
5962 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5964 * include/stdlib.h: Declare __libc_memalign.
5966 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
5967 * elf/tst-tls4.c: New file.
5968 * elf/tst-tls5.c: New file.
5969 * elf/tst-tlsmod2.c: New file.
5971 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
5973 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
5975 * elf/tst-tls1.c: Use test-skeleton.c.
5976 * elf/tst-tls2.c: Likewise.
5977 * elf/tst-tls3.c: Likewise.
5979 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
5981 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5983 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
5985 2002-02-10 Ulrich Drepper <drepper@redhat.com>
5987 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
5989 * elf/tst-tls3.c: New file.
5990 * elf/tst-tlsmod1.c: New file.
5991 * elf/Makefile: Add rules to build and run tst-tls3.
5993 * sysdeps/i386/dl-machine.h: Include <tls.h>.
5994 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
5997 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
5999 * po/fr.po: Update from translation team.
6001 * elf/tls-macros.h: Add alternative macros for use in PIC.
6003 * elf/dl-lookup.c: Include <tls.h>.
6004 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6006 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6007 required by passing pointer to last element of the list.
6009 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6010 l_tls_initimage to a place where it actually is performed.
6012 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6013 after globfree() calls.
6015 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6016 (openaux): Pass open_mode as new last argument to _dl_map_object.
6017 (_dl_map_object_deps): Add new argument open_mode. Initialize
6018 open_mode element of args variable with it.
6019 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6020 _dl_map_object_deps.
6021 * elf/rtld.c (dl_main): Add zero as last parameter to
6022 _dl_map_object_deps call.
6023 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6024 * elf/nodlopen2.c: New file.
6025 * elf/nodlopenmod2.c: New file.
6026 * elf/Makefile: Add rules to build and run nodlopen2.
6028 * elf/tst-tls1.c: Move TLS helper macros to...
6029 * elf/tls-macros.h: ...here. New file.
6030 * elf/tst-tls2.c: New file.
6031 * elf/Makefile (tests): Add tst-tls2.
6032 (distribute): Add tls-macros.h.
6034 * po/sv.po: Update from translation team.
6036 * elf/tst-tls1.c (main): Add complete set of tests. Split
6037 architecture specific definitions from the actual test code.
6039 * po/tr.po: Update from translation team.
6041 2002-02-09 Ulrich Drepper <drepper@redhat.com>
6043 * elf/Makefile (tests): Add tst-tls1.
6044 * elf/tst-tls1.c: New file.
6046 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6047 alignment of TCB for now.
6049 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6050 initialization image for the application itself.
6052 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6053 loop to initialize TLS block.
6055 2002-02-08 Richard Henderson <rth@redhat.com>
6057 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6058 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6060 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6062 2002-02-09 Jakub Jelinek <jakub@redhat.com>
6064 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6066 2002-02-08 Ulrich Drepper <drepper@redhat.com>
6068 * po/ca.po: Update from translation team.
6069 * po/sk.po: Likewise.
6071 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6072 (dl_main): Move dtv/static TLS handling before relocation.
6073 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
6074 TLS_INIT_TP to allocate and install the dtv/static TLS block.
6075 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6076 so far uses TLS initialize GL(dl_tls_static_size) and
6077 GL(dl_tls_static_align) to account for the TCB.
6078 (_dl_allocate_tls): New function.
6079 * sysdeps/generic/ldsodefs.h (rtld_global): Add
6080 _dl_initial_dtv_malloced.
6082 * configure.in: Test for __builtin_memset more realistically.
6084 * csu/version.c (banner): If TLS support is available say so.
6086 2002-02-04 H.J. Lu <hjl@gnu.org>
6088 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6090 (__dl_runtime_resolve): Likewise.
6092 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6095 2001-11-15 H.J. Lu <hjl@gnu.org>
6097 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6098 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6100 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6102 2002-02-07 H.J. Lu <hjl@gnu.org>
6104 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6106 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6109 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6111 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6113 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6114 ___tls_get_addr_internal.
6115 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6117 * po/ko.po: Update from translation team.
6119 2002-02-07 Jakub Jelinek <jakub@redhat.com>
6121 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6122 attribute, change __pad{1,2} type to unsigned int.
6123 (struct stat64): Remove packed attribute.
6125 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6127 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6129 2002-02-07 Andreas Schwab <schwab@suse.de>
6131 * configure.in: Fix check for -zcombreloc.
6133 2002-02-06 H.J. Lu <hjl@gnu.org>
6135 * config.h.in (HAVE_BUILTIN_MEMSET): New.
6136 * configure.in: Check if __builtin_memset really works.
6137 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6138 __GNUC_PREREQ (2, 96) before using __builtin_memset.
6140 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6142 * io/bug-ftw3.c (main): Don't try the test if root.
6144 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
6146 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6148 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6149 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6150 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6152 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6153 a weak alias for __clone.
6154 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6155 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6156 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6157 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6158 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6159 a weak alias for __mmap64.
6161 2002-02-05 H.J. Lu <hjl@gnu.org>
6163 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6164 (atomic_add): Likewise.
6165 (compare_and_swap): Likewise.
6166 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6168 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6170 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6172 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6173 alignment of the TCB and store total size and alignment of static
6174 TLS block in _dl_tls_static_size and _dl_tls_static_align.
6175 tls_index is a typedef.
6176 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6177 _dl_tls_static_align.
6178 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6179 * elf/dl-support.c: Define _dl_tls_static_size and
6180 _dl_tls_static_align.
6182 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6184 * configure.in: Add --without-tls option.
6185 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6186 --without-tls is given.
6188 * sysdeps/generic/dl-tls.c: Include <tls.h>.
6190 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6192 2002-02-06 Roland McGrath <roland@frob.com>
6194 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6195 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6197 * scripts/versions.awk: Improve error message for missing version.
6198 Each version inherits from the last one only if they have the same
6199 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
6200 but not GLIBC_x and FOO_y.
6202 * scripts/firstversions.awk: Handle libraries that don't have each
6203 particular version named in the third column of shlib-versions.
6205 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
6207 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6209 * Versions.def [ld]: Add GLIBC_2.3.
6210 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
6211 * elf/Makefile (dl-routines): Add dl-tls.
6212 (distribute): Add dl-tls.h.
6213 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6214 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6215 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
6216 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
6217 along with the other info in the link map. Change queueing of init
6218 images for double linked list. Use _dl_next_tls_modid to compute
6220 * elf/rtld.c (_dl_start_final): Store alignment requirement
6221 along with the other info in rtld map and executable map.
6222 (dl_main): Add ld.so to the init image list if necessary. Compute
6223 final module ID with _dl_next_tls_modid.
6224 * include/link.h (struct link_map): Add l_tls_previmage and
6226 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6227 * sysdeps/i386/elf/Versions: New file.
6228 * sysdeps/generic/dl-tls.c: New file.
6229 * sysdeps/generic/dl-tls.h: New file.
6230 * sysdeps/i386/dl-tls.h: New file.
6232 2002-02-06 Roland McGrath <roland@frob.com>
6234 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
6235 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
6237 2002-01-05 Roland McGrath <roland@frob.com>
6239 * sysdeps/mach/configure.in: New file.
6240 * sysdeps/mach/configure: New generated file.
6242 * mach/Makefile (user-interfaces): Remove default_pager_helper.
6243 It has never been used by anything.
6245 2002-02-06 H.J. Lu <hjl@gnu.org>
6247 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
6250 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6252 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
6253 attribute((packed)) to counter stupid people misusing gcc options.
6254 (struct stat64): Likewise.
6256 2002-02-05 Ulrich Drepper <drepper@redhat.com>
6258 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
6259 the variables which are used as booleans.
6261 2002-02-06 Andreas Jaeger <aj@suse.de>
6263 * include/libc-symbols.h (INTUSE): Renamed from INT.
6264 * elf/dl-deps.c: Change users.
6265 * sysdeps/generic/dl-sysdep.c: Likewise.
6266 * sysdeps/generic/dl-cache.c: Likewise.
6267 * elf/dl-reloc.c: Likewise.
6268 * elf/rtld.c: Likewise.
6269 * elf/dl-version.c: Likewise.
6270 * elf/dl-load.c: Likewise.
6271 * elf/dl-dst.h: Likewise.
6272 * elf/dl-init.c: Likewise.
6273 * elf/dl-error.c: Likewise.
6274 * elf/dl-fini.c: Likewise.
6275 * elf/dl-runtime.c: Likewise.
6276 * elf/do-lookup.h: Likewise.
6278 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
6280 * stdio-common/_itowa.h: Likewise.
6282 2002-02-05 Ulrich Drepper <drepper@redhat.com>
6284 * elf/dl-minimal.c: Define _itoa_lower_digits.
6286 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
6289 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
6290 loading modules with the DF_STATIC_TLS flag set.
6291 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
6293 * include/link.h (struct link_map): Add l_flags field.
6294 * elf/elf.h (DF_STATIC_TLS): New definition.
6296 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
6297 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
6299 * elf/rtld.c (process_dl_debug): Correct printing help message.
6300 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
6303 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
6304 definition and pass &errno in use of this variable.
6305 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
6307 2002-02-04 Andreas Schwab <schwab@suse.de>
6309 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
6310 * locale/programs/charmap-dir.c: Wrap calls that output messages
6311 with WITH_CUR_LOCALE. Include "localedef.h" first.
6312 * locale/programs/charmap.c: Likewise.
6313 * locale/programs/ld-address.c: Likewise.
6314 * locale/programs/ld-collate.c: Likewise.
6315 * locale/programs/ld-ctype.c: Likewise.
6316 * locale/programs/ld-identification.c: Likewise.
6317 * locale/programs/ld-measurement.c: Likewise.
6318 * locale/programs/ld-messages.c: Likewise.
6319 * locale/programs/ld-monetary.c: Likewise.
6320 * locale/programs/ld-name.c: Likewise.
6321 * locale/programs/ld-numeric.c: Likewise.
6322 * locale/programs/ld-paper.c: Likewise.
6323 * locale/programs/ld-telephone.c: Likewise.
6324 * locale/programs/ld-time.c: Likewise.
6325 * locale/programs/linereader.c: Likewise.
6326 * locale/programs/linereader.h: Likewise.
6327 * locale/programs/localedef.c: Likewise.
6328 * locale/programs/locfile.c: Likewise.
6329 * locale/programs/repertoire.c: Likewise.
6331 2002-02-05 Ulrich Drepper <drepper@redhat.com>
6333 * elf/rtld.c (_dl_start_final): Determine load address to locate
6334 ehdr with GL(dl_rtld_map).l_map_start.
6336 * po/ca.po: Update from translation team.
6338 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
6339 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
6341 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6343 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
6345 2002-02-04 Ulrich Drepper <drepper@redhat.com>
6347 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
6348 * include/link.h (struct link_map): Add various members for TLS
6350 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6351 _rtld_tlsoffset, add _dl_initimage_list.
6352 * sysdeps/i386/dl-lookupcfg.h: New file.
6353 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
6354 TLS relocation. When using TLS we now use RESOLVE_MAP.
6355 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
6358 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
6361 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
6362 thread-pointer as soon as possible.
6363 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
6364 elements in rtld_global.
6365 * sysdeps/generic/tls.h: New file.
6366 * elf/Makefile (distribute): Add tls.h.
6367 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
6368 relocations. Not complete yet.
6370 * resolv/resolv.h: Allow user to define __need_res_state and only
6371 define __res_start structure then.
6372 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
6374 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
6375 dl_cpuclock_offset initialization to _dl_start_final.
6376 (_dl_show_auxv): Avoid unnecessary sign extension.
6377 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
6379 2002-02-03 Ulrich Drepper <drepper@redhat.com>
6381 * config.h.in: Add HAVE_TLS_SUPPORT.
6382 * sysdeps/i386/elf/configure.in: New file.
6384 2002-02-03 Andreas Schwab <schwab@suse.de>
6386 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
6387 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
6389 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
6391 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
6392 alloca if the memory reqirements are too high.
6394 2002-02-03 Ulrich Drepper <drepper@redhat.com>
6396 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
6397 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
6398 the former is available anyway and speed isn't important here.
6399 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
6400 * elf/dl-version.c (match_symbol): Likewise.
6401 (_dl_check_map_versions): Likewise.
6402 * elf/rtld.c (process_envvars): Likewise.
6403 (print_statistics): Likewise.
6404 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
6405 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
6406 bases. Add assert to catch uses of unimplemented features.
6407 (__strsep): Add assert to catch uses of unimplemented features.
6408 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
6409 and avoid inline optimization.
6410 * elf/rtld.c (process_envvars): Likewise.
6411 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
6412 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
6413 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
6415 2002-02-02 Ulrich Drepper <drepper@redhat.com>
6417 * stdio-common/_itoa.h: Minor simplifications of the code.
6418 * stdio-common/_itoa.c: Likewise.
6420 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
6421 instead of _dl_printf for debugging info output.
6423 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
6424 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
6426 2002-02-01 H.J. Lu <hjl@gnu.org>
6428 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
6429 (atomic_add): Likewise.
6430 (compare_and_swap): Return 0 only when failed to compare. Use
6433 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
6436 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
6438 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
6440 2002-02-02 Ulrich Drepper <drepper@redhat.com>
6442 * elf/dl-minimal.c (__strsep): New minimal implementation.
6444 2002-02-02 Paul Eggert <eggert@twinsun.com>
6446 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
6447 (__mktime_internal): If no tm_isdst is requested, prefer solutions
6448 with tm_isdst > 0 when the requested time falls within a
6449 spring-forward gap [PR libc/2894].
6451 2002-02-03 Andreas Schwab <schwab@suse.de>
6453 * stdio-common/tst-rndseek.c: Increase timeout.
6455 2002-02-02 Ulrich Drepper <drepper@redhat.com>
6457 Change ld.so to not use functions which are exported. One cannot
6458 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
6460 * include/libc-symbols.h: Define INT and INTDEF.
6461 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
6462 _dl_signal_error_internal, _dl_map_object_internal,
6463 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
6464 _dl_lookup_versioned_symbol_internal,
6465 _dl_relocate_object_internal, _dl_debug_state_internal,
6466 _dl_start_profile_internal, and _dl_unload_cache_internal.
6467 * include/dlfcn.h: Declare _dl_catch_error_internal.
6468 * elf/rtld.c: Use INT for calls to any of the *_internal functions
6469 above. Add INTDEF to function definitions.
6470 * elf/dl-debug.c: Likewise.
6471 * elf/dl-deps.c: Likewise.
6472 * elf/dl-dst.h: Likewise.
6473 * elf/dl-error.c: Likewise.
6474 * elf/dl-fini.c: Likewise.
6475 * elf/dl-init.c: Likewise.
6476 * elf/dl-load.c: Likewise.
6477 * elf/dl-lookup.c: Likewise.
6478 * elf/dl-misc.c: Likewise.
6479 * elf/dl-open.c: Likewise.
6480 * elf/dl-profile.c: Likewise.
6481 * elf/dl-reloc.c: Likewise.
6482 * elf/dl-runtime.c: Likewise.
6483 * elf/dl-version.c: Likewise.
6484 * elf/do-lookup.h: Likewise.
6485 * sysdeps/generic/dl-cache.c: Likewise.
6486 * sysdeps/generic/dl-sysdep.c: Likewise.
6487 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
6488 instead of _dl_init.
6489 * sysdeps/arm/dl-machine.h: Likewise.
6490 * sysdeps/cris/dl-machine.h: Likewise.
6491 * sysdeps/hppa/dl-machine.h: Likewise.
6492 * sysdeps/i386/dl-machine.h: Likewise.
6493 * sysdeps/ia64/dl-machine.h: Likewise.
6494 * sysdeps/m68k/dl-machine.h: Likewise.
6495 * sysdeps/mips/dl-machine.h: Likewise.
6496 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6497 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6498 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6499 * sysdeps/sh/dl-machine.h: Likewise.
6500 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6501 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6502 * sysdeps/x86_64/dl-machine.h: Likewise.
6503 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
6505 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
6506 and _dl_debug_initialize.
6508 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
6510 * elf/rtld.c (dl_main): Avoid strrchr.
6511 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
6512 result of readlink. Search from the back for '/'.
6514 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
6515 strncpy if possible.
6517 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
6519 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
6520 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
6521 strspn, and strcspn.
6522 (process_envvars): Don't use strcspn.
6524 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
6525 (_dl_dst_substitute): Likewise.
6527 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6529 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
6530 code which is never used when relocating ld.so itself.
6532 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
6533 starting ld.so itself. Move l_addr variable initialization closer
6535 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
6537 2002-02-01 Jakub Jelinek <jakub@redhat.com>
6539 * Versions.def (libc): Add GLIBC_PRIVATE.
6540 (libdb, libnss_db, libdb1): Remove.
6541 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
6542 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
6543 (libpthread): Add GLIBC_PRIVATE.
6544 (libresolv): Likewise, remove GLIBC_2.1.
6545 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
6546 GLIBC_2.2.3, GLIBC_2.3.
6547 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
6548 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
6549 _dl_sym, _dl_vsym): Likewise.
6550 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
6551 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
6552 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
6553 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
6554 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
6555 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
6556 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
6557 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
6559 (_dl_object_relocation_scope): Remove.
6560 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
6561 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
6562 __gconv_cache): Move to GLIBC_PRIVATE.
6563 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
6564 __internal_setnetgrent): Likewise.
6565 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
6566 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
6567 * locale/Versions (__collate_element_hash, __collate_element_strings,
6568 __collate_symbol_classes, __collate_symbol_hash,
6569 __collate_symbol_strings, _nl_current_LC_COLLATE,
6570 _nl_current_LC_CTYPE): Likewise.
6571 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
6572 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
6573 (libnss_nis, libnss_nisplus): Likewise.
6574 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
6575 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
6576 (libnss_files): Move all symbols to GLIBC_PRIVATE.
6577 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
6578 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
6579 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
6580 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
6581 __ns_get16, __ns_samename): Likewise.
6582 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
6583 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
6585 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
6586 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
6587 __libc_connect): Likewise.
6588 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
6590 * stdlib/Versions (__libc_system): Likewise.
6591 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
6592 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
6593 * sysdeps/ia64/fpu/Versions: Likewise.
6594 * sysdeps/ia64/Versions: Likewise.
6595 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
6596 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
6598 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
6599 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
6600 __libc_sigaction): Likewise.
6601 * termios/Versions (__libc_tcdrain): Likewise.
6603 * misc/sys/cdefs (__attribute_noinline__): Define.
6604 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
6605 __attribute_noinline__.
6607 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
6608 * elf/dl-xstat64.c: New file.
6609 * elf/dl-fxstat64.c: New file.
6610 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
6611 don't export __fxstat64 at multiple versions.
6612 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
6613 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
6615 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
6617 * locale/program/ld-collate.c (collate_finish): Assign a wide
6618 char collation sequence value to multi character collating
6619 elements, and avoid over writing by non-character elements.
6621 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6623 * elf/Makefile (distribute): Add dl-procinfo.c.
6624 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
6625 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6627 2002-02-01 Jakub Jelinek <jakub@redhat.com>
6629 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
6631 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
6632 _rtld_global struct.
6633 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6634 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
6635 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6636 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
6637 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
6638 _dl_fpu_control_set): Remove unused externs.
6639 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
6640 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
6641 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
6642 related variables in _rtld_global struct.
6643 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
6644 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
6647 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6649 * sysdeps/generic/dl-procinfo.c: New file.
6651 2002-02-01 Andreas Schwab <schwab@suse.de>
6653 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
6655 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6657 * elf/rtld.c (_dl_start): Mark as internal_function.
6658 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
6660 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
6661 General pretty printing.
6663 2002-01-31 Ulrich Drepper <drepper@redhat.com>
6665 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
6666 * elf/dl-reloc.c: Pretty printing.
6667 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
6668 procinfo-related variables in rtld_global struct.
6669 * elf/dl-support.c: Likewise.
6670 * elf/rtld.c: Likewise.
6671 * sysdeps/i386/i686/Makefile: Likewise.
6672 * sysdeps/i386/i686/hp-timing.c: Likewise.
6673 * sysdeps/i386/i686/hp-timing.h: Likewise.
6674 * sysdeps/ia64/Makefile: Likewise.
6675 * sysdeps/ia64/hp-timing.c: Likewise.
6676 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
6677 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
6678 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
6679 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
6680 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6681 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
6682 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6683 * sysdeps/x86_64/Makefile: Likewise.
6685 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
6686 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
6687 _dl_debug_fd to rtld_global.
6688 * elf/Versions: Likewise.
6689 * elf/dl-close.c: Likewise.
6690 * elf/dl-iteratephdr.c: Likewise.
6691 * elf/dl-lookup.c: Likewise.
6692 * elf/dl-misc.c: Likewise.
6693 * elf/dl-open.c: Likewise.
6694 * elf/dl-support.c: Likewise.
6695 * elf/do-lookup.h: Likewise.
6696 * elf/rtld.c: Likewise.
6697 * sysdeps/generic/dl-cache.c: Likewise.
6698 * sysdeps/generic/dl-sysdep.c: Likewise.
6699 * sysdeps/ia64/Versions: Likewise.
6700 * sysdeps/unix/clock_gettime.c: Likewise.
6701 * sysdeps/unix/clock_settime.c: Likewise.
6702 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6703 * sysdeps/sparc/Versions: Removed.
6704 * sysdeps/i386/i686/Versions : Removed.
6705 * sysdeps/x86_64/Versions: Removed.
6706 * configure.in: Define HAVE_PROTECTED if .protected is available.
6707 * config.h.in: Add entry for HAVE_PROTECTED.
6709 2002-01-31 Jakub Jelinek <jakub@redhat.com.
6711 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
6712 code in struct _rtld_global. Export this struct, remove all
6713 exports for the signal variables.
6714 * sysdeps/arm/dl-machine: Likewise.
6715 * sysdeps/generic/dl-origin: Likewise.
6716 * sysdeps/generic/dl-sysdep: Likewise.
6717 * sysdeps/generic/dl-cache: Likewise.
6718 * sysdeps/hppa/dl-fptr: Likewise.
6719 * sysdeps/hppa/dl-machine: Likewise.
6720 * sysdeps/cris/dl-machine: Likewise.
6721 * sysdeps/i386/dl-machine: Likewise.
6722 * sysdeps/ia64/dl-machine: Likewise.
6723 * sysdeps/m68k/dl-machine: Likewise.
6724 * sysdeps/mach/hurd/dl-sysdep: Likewise.
6725 * sysdeps/mips/mips64/dl-machine: Likewise.
6726 * sysdeps/mips/dl-machine: Likewise.
6727 * sysdeps/powerpc/elf/libc-start: Likewise.
6728 * sysdeps/powerpc/dl-machine: Likewise.
6729 * sysdeps/powerpc/dl-start: Likewise.
6730 * sysdeps/sparc/sparc32/dl-machine: Likewise.
6731 * sysdeps/sparc/sparc64/dl-machine: Likewise.
6732 * sysdeps/sh/dl-machine: Likewise.
6733 * sysdeps/s390/s390-32/dl-machine: Likewise.
6734 * sysdeps/s390/s390-64/dl-machine: Likewise.
6735 * sysdeps/unix/sysv/aix/libc-start: Likewise.
6736 * sysdeps/unix/sysv/aix/start-libc: Likewise.
6737 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
6738 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
6739 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
6740 * sysdeps/x86_64/dl-machine: Likewise.
6742 2002-01-31 Ulrich Drepper <drepper@redhat.com>
6744 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
6747 2002-01-31 Andreas Schwab <schwab@suse.de>
6749 * sysdeps/posix/readv.c: Check for ssize_t overflow.
6751 2002-01-31 Andreas Schwab <schwab@suse.de>
6753 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
6754 reference to _dl_pagesize.
6756 2002-01-30 Ulrich Drepper <drepper@redhat.com>
6758 * Versions.def [ld]: Add GLIBC_2.3.
6759 * elf/dl-addr.c: Move global variables for SHARED code in struct
6760 _rtld_global. Export this struct, remove all exports for the
6762 * elf/dl-close.c: Likewise.
6763 * elf/dl-conflict.c: Likewise.
6764 * elf/dl-debug.c: Likewise.
6765 * elf/dl-deps.c: Likewise.
6766 * elf/dl-dst.h: Likewise.
6767 * elf/dl-error.c: Likewise.
6768 * elf/dl-fini.c: Likewise.
6769 * elf/dl-init.c: Likewise.
6770 * elf/dl-iteratephdr.c: Likewise.
6771 * elf/dl-libc.c: Likewise.
6772 * elf/dl-load.c: Likewise.
6773 * elf/dl-lookup.c: Likewise.
6774 * elf/dl-minimal.c: Likewise.
6775 * elf/dl-object.c: Likewise.
6776 * elf/dl-open.c: Likewise.
6777 * elf/dl-profile.c: Likewise.
6778 * elf/dl-profstub.c: Likewise.
6779 * elf/dl-reloc.c: Likewise.
6780 * elf/dl-runtime.c: Likewise.
6781 * elf/dl-support.c: Likewise.
6782 * elf/dl-sym.c: Likewise.
6783 * elf/dl-version.c: Likewise.
6784 * elf/do-lookup.h: Likewise.
6785 * elf/do-rel.h: Likewise.
6786 * elf/dynamic-link.h: Likewise.
6787 * elf/rtld.c: Likewise.
6788 * sysdeps/generic/dl-cache.c: Likewise.
6789 * sysdeps/generic/dl-sysdep.c: Likewise.
6790 * sysdeps/generic/ldsodefs.h: Likewise.
6791 * sysdeps/generic/libc-start.c: Likewise.
6792 * sysdeps/i386/dl-machine.h: Likewise.
6793 * sysdeps/ia64/dl-fptr.c: Likewise.
6794 * sysdeps/ia64/dl-machine.h: Likewise.
6795 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
6796 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6797 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
6798 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
6799 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6800 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6801 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
6802 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6804 2002-01-29 Ulrich Drepper <drepper@redhat.com>
6806 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
6808 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
6810 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
6812 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
6814 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
6816 2002-01-29 Ben Collins <bcollins@debian.org>
6818 * string/bits/string2.h (__mempcpy): Protect size arg for
6819 addition when using __builtin_memcpy.
6821 2002-01-29 Ulrich Drepper <drepper@redhat.com>
6823 * stdlib/Makefile (tests): Add tst-qsort.
6824 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
6826 * manual/signal.texi (Process Signal Mask): Document that
6827 pthread_sigmask, not sigprocmask, must be used in MT programs.
6828 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
6830 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
6832 * misc/Makefile (tests): Add tst-hsearch.
6833 * misc/tst-hsearch.c: New file.
6835 2002-01-18 Wolfram Gloger <wg@malloc.de>
6837 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
6838 * malloc/malloc.h: Likewise.
6839 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
6840 * malloc/arena.c: New file.
6841 * malloc/hooks.c: New file.
6842 * malloc/tst-mallocstate.c: New file.
6843 * malloc/Makefile: Add new testcase tst-mallocstate.
6844 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
6846 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6848 * stdlib/msort.c: Remove last patch. The optimization violates the
6849 same rule which qsort.c had problems with.
6851 2002-01-27 Paul Eggert <eggert@twinsun.com>
6853 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
6854 to a pivot element that lies outside the array to be sorted, as
6855 ISO C99 requires that the comparison function be called only with
6856 addresses of array elements [PR libc/2880].
6858 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6860 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
6861 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
6863 * timezone/asia: Update from tzdata2002b.
6864 * timezone/australasia: Likewise.
6865 * timezone/backward: Likewise.
6866 * timezone/europe: Likewise.
6867 * timezone/leapseconds: Likewise.
6868 * timezone/iso3166.tab: Likewise.
6869 * timezone/zone.tab: Likewise.
6871 2002-01-23 Richard Henderson <rth@redhat.com>
6873 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
6875 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6877 * string/strxfrm.c: Allocate one more byte for rulearr and clear
6878 this element [PR libc/2855].
6880 * string/strcoll.c: Handle zero-length arguments specially
6883 2002-01-23 Jakub Jelinek <jakub@redhat.com>
6885 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
6886 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
6887 short lengths and constant src.
6888 (strcpy): Don't optimize for gcc 3.0+.
6889 (__stpcpy): For gcc 3.0+, don't use
6890 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
6891 for short string literal src.
6893 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6895 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6898 2001-01-22 Paul Eggert <eggert@twinsun.com>
6900 * manual/llio.texi (Linked Channels, Cleaning Streams):
6901 Make it clearer that a just-opened input stream might need cleaning.
6903 2002-01-21 H.J. Lu <hjl@gnu.org>
6905 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6906 Don't use label at end of compound statement.
6908 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
6910 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
6911 Remove test for negative integer arg; sin_pi does it correctly.
6913 2002-01-20 Ulrich Drepper <drepper@redhat.com>
6915 * nscd/Makefile (distribute): Filter out xmalloc.c.
6917 2002-01-19 Ulrich Drepper <drepper@redhat.com>
6919 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
6920 Set offset if read end wasn't the buffer end.
6921 (_IO_file_seekoff_mmap): New function.
6922 (_IO_file_xsgetn_mmap): New function.
6923 (_IO_file_jumps_mmap): Use the two new functions.
6924 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
6926 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
6927 _IO_file_underflow_mmap.
6928 * libio/iofopen.c: Don't position file descriptor at end of file.
6929 * libio/tst-widetext.c: Improve error messages.
6930 * stdio-common/tst-rndseek.c: Likewise.
6932 2002-01-18 Ulrich Drepper <drepper@redhat.com>
6934 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
6935 end of enum for !_GNU_SOURCE.
6936 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
6937 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
6938 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
6939 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
6940 values unless _GNU_SOURCE.
6942 * iconvdata/tcvn5712-1.c: Minor cleanups.
6944 2002-01-18 Andreas Schwab <schwab@suse.de>
6946 * sysdeps/unix/sysv/linux/configure.in
6947 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
6949 2002-01-16 Roger Sayle <roger@eyesopen.com>
6951 * stdlib/msort.c (msort_with_tmp): Replace implementation with
6952 more efficient "Towers of Hanoi" mergesort.
6953 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
6954 for generic, sizeof(int) and sizeof(long) variants respectively.
6956 2002-01-17 Ulrich Drepper <drepper@redhat.com>
6958 * manual/syslog.texi (openlog): Describe possible problems with
6960 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6962 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
6963 * nscd/connections.c (begin_drop_privileges): New function.
6964 (finish_drop_privileges): New function.
6965 (nscd_init): Call the new functions which also install all groups
6966 for the server user.
6967 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
6968 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6970 2002-01-17 H.J. Lu <hjl@gnu.org>
6972 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
6975 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
6977 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
6978 instructions for pointer operations.
6979 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6981 2002-01-17 Andreas Jaeger <aj@suse.de>
6983 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
6984 __uint128_t build-in.
6986 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
6987 PowerPC, sync with 2.2 branch.
6989 2002-01-16 Ulrich Drepper <drepper@redhat.com>
6991 * posix/getconf.c: Update copyright year.
6992 * nss/getent.c: Likewise.
6993 * nscd/nscd_nischeck.c: Likewise.
6994 * iconv/iconvconfig.c: Likewise.
6995 * iconv/iconv_prog.c: Likewise.
6996 * elf/ldconfig.c: Likewise.
6997 * catgets/gencat.c: Likewise.
6998 * csu/version.c: Likewise.
6999 * elf/ldd.bash.in: Likewise.
7000 * elf/sprof.c (print_version): Likewise.
7001 * locale/programs/locale.c: Likewise.
7002 * locale/programs/localedef.c: Likewise.
7003 * nscd/nscd.c (print_version): Likewise.
7004 * debug/xtrace.sh: Likewise.
7005 * malloc/memusage.sh: Likewise.
7006 * malloc/mtrace.pl: Likewise.
7008 2002-01-16 Andreas Schwab <schwab@suse.de>
7010 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7011 reliably remove "-ia64" from rtld name.
7013 2002-01-16 Ulrich Drepper <drepper@redhat.com>
7015 * iconvdata/gb18030.c: Bug fixes and support for more characters.
7016 Patch by Yu Shao <yshao@redhat.com>.
7018 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
7020 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7021 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7022 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7024 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
7026 * sysdeps/s390/fpu/libm-test-ulps: Update.
7028 2002-01-11 Ulrich Drepper <drepper@redhat.com>
7030 * elf/elf.h: Update x86 relocations.
7032 2002-01-10 Ulrich Drepper <drepper@redhat.com>
7034 * locale/programs/charmap.c (new_width): Check whether byte
7035 sequences for both ends of range have the same length.
7037 2002-01-09 Jakub Jelinek <jakub@redhat.com>
7039 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7041 2002-01-09 Jakub Jelinek <jakub@redhat.com>
7043 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7045 (__full_ieee754_sqrt): Add __attribute_used__.
7047 2002-01-10 Ulrich Drepper <drepper@redhat.com>
7049 * sysdeps/generic/group_member.c (__group_member): Also check
7050 groups[0] [PR libc/2781].
7052 2002-01-08 Ulrich Drepper <drepper@redhat.com>
7054 * Makefile (distribute): Add scripts/cpp.
7055 * elf/Makefile (distribute): Add reldep6mod[01234].c,
7056 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7057 unwind-dw2-fde.h, and dwarf2.h.
7058 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7059 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7060 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7061 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7063 2002-01-07 Roland McGrath <roland@frob.com>
7065 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7066 volatile on type of ARGC so the compiler doesn't get clever.
7068 2002-01-07 Andreas Jaeger <aj@suse.de>
7070 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7071 * sysdeps/i386/bits/byteswap.h: Likewise.
7072 * sysdeps/ia64/bits/byteswap.h: Likewise.
7073 * sysdeps/m68k/bits/byteswap.h: Likewise.
7074 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7075 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7077 2002-01-02 Bruno Haible <bruno@clisp.org>
7079 * intl/plural.y: Fix %expect count.
7081 2002-01-03 Jakub Jelinek <jakub@redhat.com>
7083 * elf/Makefile (routines, shared-only-routines): Add
7084 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7085 * elf/elf.h (PT_GNU_EH_FRAME): Define.
7086 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7087 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7088 Optimize if .eh_frame section contains no FDEs.
7089 (__register_frame, __deregister_frame_info_bases,
7090 __deregister_frame): Likewise.
7091 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7092 DW_CFA_restore handling.
7094 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
7096 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7098 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7099 for x < 0.25 and restore original range reduction method.
7100 (__ieee754_lgammal_r): Make sure signgam is set before returning.
7102 2002-01-07 Ulrich Drepper <drepper@redhat.com>
7104 * libio/fileops.c (_IO_file_underflow_mmap): New function.
7105 (_IO_file_close_mmap): New function.
7106 (_IO_file_jumps_mmap): New variable.
7107 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7108 trying to convert rest of byte buffer.
7109 (_IO_wfile_underflow_mmap): New function.
7110 (_IO_wfile_jumps_mmap): New variable.
7111 * libio/iofopen.c (__fopen_maybe_mmap): New function.
7112 (__fopen_internal): New function. Split out from _IO_new_fopen.
7113 (_IO_new_fopen): Call __fopen_internal.
7114 * libio/iofopen64.c: Just call __fopen_internal.
7115 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7117 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7118 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7119 _IO_file_close_mmap.
7121 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7122 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7124 * stdio-common/Makefile (tests): Add tst-rndseek.
7125 * stdio-common/tst-rndseek.c: New file.
7127 2002-01-05 Roland McGrath <roland@frob.com>
7129 * config.h.in (HAVE_MIG_RETCODE): New #undef.
7130 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7131 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7132 * sysdeps/mach/hurd/configure: Regenerated.
7134 2002-01-03 Ulrich Drepper <drepper@redhat.com>
7136 * elf/elf.h: Add more TLS definitions.
7138 2002-01-02 Ulrich Drepper <drepper@redhat.com>
7140 * include/features.h (__GLIBC_MINOR__): Bump to 3.
7142 2002-01-02 Roland McGrath <roland@frob.com>
7144 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7145 __sigisemptyset. Don't use MASK uninitialized.
7147 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7148 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7149 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7150 __sigdelset, __sigaddset, __sigorset.
7152 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7153 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7155 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7156 _hurd_ports is null.
7158 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7159 for old CMU and new OSF Mach interface flavors.
7160 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7161 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7163 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7165 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7166 Pass extra arguments to task_create for OSF variant.
7167 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7169 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7170 conditional on [HAVE_AUX_VECTOR].
7172 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7173 mach_msg_timeout_t as type of final argument.
7175 * hurd/privports.c (__get_privileged_ports):
7176 Change host_priv_t to mach_port_t in argument type.
7177 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7180 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7181 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
7182 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7183 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7184 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7185 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7187 2002-01-01 Roland McGrath <roland@frob.com>
7189 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7191 2002-01-01 Ulrich Drepper <drepper@redhat.com>
7193 * include/stdlib.h: Define inlines for the _l variants of the strto*
7196 2002-01-01 Roland McGrath <roland@frob.com>
7198 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
7200 * mach/Machrules (MIG): Set CPP as well as CC.
7202 2001-12-31 Ulrich Drepper <drepper@redhat.com>
7204 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
7205 locale to parse /proc/loadavg [PR libc/2760].
7207 2001-12-31 Jakub Jelinek <jakub@redhat.com>
7209 * elf/dl-conflict.c: Include sys/param.h.
7210 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
7211 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
7213 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
7214 literals to avoid warnings.
7216 2001-12-31 Andreas Jaeger <aj@suse.de>
7218 * configure.in: Don't check for gsed since we do not use it anywhere.
7220 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
7222 * io/fts.c: Update from BSD to fix memory leaks.
7224 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
7226 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
7227 * elf/chroot_canon.c: Likewise.
7228 * elf/dl-object.c: Likewise.
7229 * iconv/iconv_charmap.c: Likewise.
7230 * iconv/iconv_prog.c: Likewise.
7231 * libio/iogetdelim.c: Likewise.
7232 * locale/lc-time.c: Likewise.
7233 * stdlib/canonicalize.c: Likewise.
7234 * sunrpc/svc.c: Likewise.
7235 * sysdeps/generic/glob.c: Likewise.
7237 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
7239 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
7240 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
7241 remove high order bit from the program counter.
7242 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
7244 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
7246 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
7247 unnecessary code and add missing reloc types.
7248 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
7249 case for reloc type R_390_NONE.
7251 2001-12-28 Andreas Jaeger <aj@suse.de>
7253 * io/bug-ftw3.c: Include string.h for prototypes.
7255 * crypt/md5test.c (main): Remove unused variable.
7257 * dlfcn/modstatic.c: Add prototype to avoid warning.
7259 2001-12-26 Roland McGrath <roland@frob.com>
7261 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
7262 check only (SS->pending & MASK) for the signal to return.
7263 From Jeroen Dekkers <jeroen@dekkers.cx>.
7265 2001-12-22 Roland McGrath <roland@frob.com>
7267 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
7268 Use preprocessor #if conditionals instead of `if' to avoid
7269 warnings about divide by zero in dead code.
7271 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
7272 _hurd_port_init, and __hurd_self_sigstate.
7274 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
7276 2001-12-21 Andreas Jaeger <aj@suse.de>
7278 * elf/dblloadmod1.c: Add prototype to avoid warning.
7279 * elf/dblloadmod2.c: Likewise.
7280 * elf/dblloadmod3.c: Likewise.
7281 * elf/reldepmod5.c: Likewise.
7282 * elf/reldepmod6.c: Likewise.
7284 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
7285 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
7286 used on all architectures.
7288 * sunrpc/svc_tcp.c: Add noreturn attribute for
7289 svctcp_rendezvous_abort.
7290 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
7292 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
7295 2001-12-19 Jakub Jelinek <jakub@redhat.com>
7297 * manual/llio.texi (aio_fsync): Fix a typo.
7298 Patch by Tammy Fox <tfox@redhat.com>.
7300 2001-12-18 Jakub Jelinek <jakub@redhat.com>
7302 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
7303 stack bias from child stack pointer before passing it to clone syscall.
7305 2001-12-18 Ulrich Drepper <drepper@redhat.com>
7307 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
7309 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
7310 Reported by Thorsten Kukuk <kukuk@suse.de>.
7312 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
7315 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
7317 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
7319 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
7320 conforming: return EBADF if file descriptor is invalid and EINVAL
7321 if file descriptor is no valid tty.
7322 * login/tst-grantpt.c: New file.
7323 * login/Makefile (tests): Add tst-grantpt.
7325 2001-12-17 Ulrich Drepper <drepper@redhat.com>
7327 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
7328 different than implemented in last patch.
7329 * io/bug-ftw3.c: Adjust test for changed handling of
7330 inaccessibility of toplevel dir.
7332 2001-12-16 Roland McGrath <roland@frob.com>
7334 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
7335 * grp/initgroups.c (internal_getgrouplist): Likewise.
7337 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
7338 `default:' to silence new GCC warning.
7339 Rewrite cast of lvalue to silence new GCC warning.
7341 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
7343 * sysdeps/mach/hurd/spawni.c: New file, by me with a
7344 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
7346 2001-12-14 Ulrich Drepper <drepper@redhat.com>
7348 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
7349 Patch by Stephen R. van den Berg.
7351 * crypt/md5.h: Define md5_uintptr.
7353 2001-12-13 Ulrich Drepper <drepper@redhat.com>
7355 * libio/tst_swprintf.c (main): Add test for string argument with
7357 * stdio-common/Makefile (tests): Add tst-sprintf.
7358 * stdio-common/tst-sprintf.c: New file.
7360 2001-12-13 Andreas Schwab <schwab@suse.de>
7362 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
7363 zero precision with wide character string format.
7365 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
7367 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
7368 but have a user supplied buffer, return the empty buffer, not NULL.
7370 2001-12-13 Ulrich Drepper <drepper@redhat.com>
7372 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
7373 Patch by Eric Sharkey <sharkey@netrics.com>.
7375 * crypt/md5test.c (main): Add test for multiple calls to
7376 __md5_process_bytes to itererate over input string.
7378 2001-12-12 Ulrich Drepper <drepper@redhat.com>
7380 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
7381 from __nis_findfastest. Take timeout value from parameter.
7382 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7383 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
7384 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
7386 2001-12-12 Andreas Jaeger <aj@suse.de>
7388 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
7389 combreloc test so that it works in this case.
7391 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
7393 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
7395 * sysdeps/sh/Makefile: New file.
7396 * sysdeps/sh/_mcount.S: New file.
7397 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
7398 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
7400 2001-12-11 Ulrich Drepper <drepper@redhat.com>
7402 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
7403 limitation [PR libc/2564].
7405 2001-12-11 Jakub Jelinek <jakub@redhat.com>
7407 * elf/Makefile (dl-routines): Add conflict.
7408 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
7409 (ld.so): Add _begin local symbol.
7410 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
7412 * elf/dl-deps.c (_dl_build_local_scope): New.
7413 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
7415 * elf/do-rel.h (VALIDX): Define.
7416 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
7417 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
7419 * elf/dl-conflict.c: New file.
7420 * elf/dl-lookup.c (_dl_debug_bindings): New.
7421 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
7423 (_dl_lookup_symbol_skip): Likewise.
7424 (_dl_lookup_versioned_symbol): Likewise.
7425 (_dl_lookup_versioned_symbol_skip): Likewise.
7426 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
7427 define to ElfW(Rel).
7428 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
7429 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
7431 Don't adjust address dynamic tags if l_addr is 0.
7432 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
7433 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
7434 (VALIDX, ADDRIDX): Define.
7435 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
7436 (dl_main): Print library list for LD_TRACE_PRELINKING.
7437 If prelinking information can be used, skip relocating libraries and
7438 call _dl_resolve_conflicts instead.
7439 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
7440 * elf/dl-load.c (_dl_map_object): Don't create fake libs
7441 if LD_TRACE_PRELINKING.
7442 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
7444 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
7445 (DL_DEBUG_PRELINK): Define.
7446 (_dl_resolve_conflicts): Add prototype.
7448 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
7449 .plt for prelinked libraries where prelinking info cannot be used.
7450 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
7451 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
7452 * sysdeps/arm/bits/link.h: New file.
7453 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
7455 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7456 (ELF_MACHINE_PLT_REL): Define.
7457 (elf_machine_rela, elf_machine_rela_relative): New.
7458 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
7459 of adjusting it if prelinked and prelinking cannot be used.
7460 * sysdeps/i386/bits/link.h: New file.
7461 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
7463 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7464 (ELF_MACHINE_PLT_REL): Define.
7465 (elf_machine_rela, elf_machine_rela_relative): New.
7466 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
7467 of adjusting it if prelinked and prelinking cannot be used.
7468 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
7469 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
7470 to find out map for R_PPC_JMP_SLOT relocs.
7471 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
7472 (OPCODE_BA): Define.
7473 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7474 libraries where prelinking info cannot be used.
7475 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
7476 (elf_machine_fixup_plt): Call sparc_fixup_plt.
7477 (elf_machine_rela): Set value to 0 if relocating conflicts.
7478 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
7479 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
7480 (sparc64_fixup_plt): Fix a typo.
7481 (elf_machine_rela): Set value to 0 if relocating conflicts.
7482 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
7483 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7484 libraries where prelinking info cannot be used.
7485 * sysdeps/sh/bits/link.h: New file.
7486 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
7488 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
7489 of adjusting it if prelinked and prelinking cannot be used.
7490 * sysdeps/s390/s390-32/bits/link.h: New file.
7491 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7492 Save original content of .got[1].
7493 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7494 of adjusting it if prelinked and prelinking cannot be used.
7495 * sysdeps/s390/s390-64/bits/link.h: New file.
7496 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
7497 Save original content of .got[1].
7498 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7499 of adjusting it if prelinked and prelinking cannot be used.
7500 * sysdeps/x86_64/bits/link.h: New file.
7501 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
7502 Save original content of .got[1].
7503 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
7504 of adjusting it if prelinked and prelinking cannot be used.
7506 2001-12-11 Ulrich Drepper <drepper@redhat.com>
7508 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
7509 where appropriate instead of numbers. Little optimizations.
7511 2001-12-10 Roland McGrath <roland@frob.com>
7513 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
7516 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
7517 set to GLIBC_2.2.5, not GLIBC_2.2.4.
7519 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
7520 Fix conditionals so this is set by default for stdio and not for libio.
7521 * sysdeps/mach/hurd/configure: Regenerated.
7523 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
7525 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
7527 2001-12-10 Ulrich Drepper <drepper@redhat.com>
7529 * io/Makefile (tests): Add bug-ftw3.
7530 * io/bug-ftw3.c: New file.
7532 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
7533 matches and GLOB_NOCHECK is set.
7534 * posix/globtest.sh: Correct expected result for NOCHECK test.
7536 * po/ca.po: Update from translation team.
7538 2001-12-09 Ulrich Drepper <drepper@redhat.com>
7540 Implement transliteration of characters in strings of the locale
7542 * locale/programs/linereader.c: Adjust for additional parameter to
7544 (get_string): If character <Uxxxx> is not found try to transliterate
7546 * locale/programs/ld-ctype.c: Adjust for additional parameter to
7547 lr_token. Add const to charmap parameter of all functions.
7548 (find_translit, find_translit2): New functions.
7549 * locale/programs/charmap.c: Adjust for additional parameter to
7551 * locale/programs/repertoire.c: Likewise.
7552 * locale/programs/linereader.h: Likewise.
7553 * locale/programs/ld-address.c: Likewise. Add const to charmap
7554 parameter of all functions.
7555 * locale/programs/ld-collate.c: Likewise.
7556 * locale/programs/ld-identification.c: Likewise.
7557 * locale/programs/ld-measurement.c: Likewise.
7558 * locale/programs/ld-messages.c: Likewise.
7559 * locale/programs/ld-monetary.c: Likewise.
7560 * locale/programs/ld-name.c: Likewise.
7561 * locale/programs/ld-numeric.c: Likewise.
7562 * locale/programs/ld-paper.c: Likewise.
7563 * locale/programs/ld-paper.c: Likewise.
7564 * locale/programs/ld-telephone.c: Likewise.
7565 * locale/programs/ld-time.c: Likewise.
7566 * locale/programs/locfile.c: Likewise.
7567 * locale/programs/localedef.c: Likewise.
7568 * locale/programs/localedef.h: Likewise.
7569 * locale/programs/locfile.h: Likewise. Add declaration for
7571 * locale/programs/simple-hash.c: Add const to first parameter of
7572 find_entry, iterate_table, and lookup.
7573 * locale/programs/simple-hash.h: Likewise.
7574 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
7576 * include/locale.h: Define __LC_LAST.
7577 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
7579 2001-12-07 Geoff Keating <geoffk@redhat.com>
7581 * sysdeps/powerpc/Dist: Update for recent FP changes.
7582 * sysdeps/powerpc/fpu/Dist: Likewise.
7584 2001-12-07 Andreas Schwab <schwab@suse.de>
7586 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
7588 2001-12-06 Geoff Keating <geoffk@redhat.com>
7590 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
7591 save/restore functions here.
7592 (libm-support): Don't define these functions here.
7593 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
7595 * sysdeps/powerpc/fe_nomask.c: Move to...
7596 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
7597 * sysdeps/powerpc/fprrest.S: Move to...
7598 * sysdeps/powerpc/fpu/fprrest.S: ... here.
7599 * sysdeps/powerpc/fprsave.S: Move to...
7600 * sysdeps/powerpc/fpu/fprsave.S: ... here.
7602 2001-12-06 Ulrich Drepper <drepper@redhat.com>
7604 * sysdeps/unix/sysv/linux/opensock.c: New file.
7606 2001-12-06 Geoff Keating <geoffk@redhat.com>
7608 * config.make.in (with-fp): Define from configure.
7609 * configure.in: Substitute with_fp.
7610 * configure: Regenerate.
7611 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
7612 specified, and don't change FPU environment.
7614 2001-12-06 Ulrich Drepper <drepper@redhat.com>
7616 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
7617 * assert/assert.c: Check result of __asprintf call and don't use
7618 string if it failed.
7619 * assert/assert-perr.c: Likewise.
7620 * inet/rcmd.c: Likewise.
7621 * locale/programs/localedef.c (main): Check result of
7622 construct_output_path and exit if it failed.
7623 (construct_output_path): Check result of asprintf and mkdir calls and
7624 fail if they failed.
7625 * posix/getopt.c: Check result of __asprintf calls and fail if
7627 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
7629 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7631 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
7633 * sysdeps/generic/strncase.c: Likewise.
7634 * string/tester.c: Add tests for strcasecmp and strncasecmp.
7636 2001-12-05 Geoff Keating <geoffk@redhat.com>
7638 * scripts/cpp: Test the exit status from 'type', not 'awk'.
7640 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
7641 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
7642 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
7643 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
7644 * sysdeps/powerpc/fclrexcpt.c: Move to...
7645 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
7646 * sysdeps/powerpc/fpu_control.h: Move to...
7647 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
7649 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7651 * iconvdata/ibm1129.h: Remove duplicate mappings.
7652 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
7653 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
7654 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7656 * timezone/zic.c: Fix handling of turnaround times.
7657 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
7659 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
7661 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
7664 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7666 * posix/regex.c: For use outside glibc defined bounded pointer
7667 macros here. Patch by Jim Meyering <jim@meyering.net>.
7669 * iconvdata/Makefile (modules): Add TCVN5712-1.
7670 * iconvdata/TESTS: Add TCVN5712-1.
7671 * iconvdata/gconv-modules: Likewise.
7672 * iconvdata/tcvn5712-1.c: New file.
7673 * iconvdata/testdata/TCVN-5712: New file.
7674 * iconvdata/testdata/TCVN-5712..UTF8: New file.
7676 2001-12-04 Ulrich Drepper <drepper@redhat.com>
7678 * iconvdata/cp1258.c: Optimize conversion from UCS4.
7680 2001-12-02 Roland McGrath <roland@frob.com>
7682 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
7684 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
7685 Reported by Jeff Bailey <jbailey@nisa.net>.
7687 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
7688 Reported by Jeff Bailey <jbailey@nisa.net>.
7690 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
7691 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
7692 Reported by Jeff Bailey <jbailey@nisa.net>.
7694 2001-12-01 Roland McGrath <roland@frob.com>
7696 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
7697 missing backslash in test arguments.
7698 * sysdeps/mach/hurd/configure: Regenerated.
7700 2001-11-26 Roland McGrath <roland@frob.com>
7702 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
7703 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
7705 2001-11-30 Ulrich Drepper <drepper@redhat.com>
7707 * iconvdata/Makefile (modules): Add ARMSCII-8.
7708 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
7709 * iconvdata/armscii-8.c: New file.
7711 2001-11-29 Jakub Jelinek <jakub@redhat.com>
7713 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
7714 don't match, fix {{a,b},c} globbing, clean up.
7715 Patch by Flavio Veloso <flaviovs@magnux.com>.
7716 * posix/globtest.sh: Add new tests.
7718 2001-11-29 Andreas Jaeger <aj@suse.de>
7720 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
7721 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
7723 * sysdeps/generic/abort.c: Include libioP.h for
7724 _IO_flush_all_lockp prototype.
7726 2001-11-29 Ulrich Drepper <drepper@redhat.com>
7728 * posix/regex.h: Define __restrict_arr correctly.
7730 2001-11-28 Ulrich Drepper <drepper@redhat.com>
7732 * iconvdata/ibm1163.c: New file.
7733 * iconvdata/ibm1163.h: New file.
7734 * iconvdata/ibm1164.c: New file.
7735 * iconvdata/ibm1164.h: New file.
7736 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
7737 * iconvdata/Makefile: Likewise.
7738 * iconvdata/testdata/IBM1163: New file.
7739 * iconvdata/testdata/IBM1163..UTF8: New file.
7740 * iconvdata/testdata/IBM1164: New file.
7741 * iconvdata/testdata/IBM1164..UTF8: New file.
7742 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7744 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
7745 * iconvdata/ibm1124.h: Likewise.
7746 * iconvdata/ibm1132.h: Likewise.
7747 * iconvdata/ibm1133.h: Likewise.
7748 * iconvdata/ibm1160.h: Likewise.
7749 * iconvdata/ibm1161.h: Likewise.
7750 * iconvdata/ibm1162.h: Likewise.
7751 * iconvdata/ibm856.h: Likewise.
7752 * iconvdata/ibm922.h: Likewise.
7753 * iconvdata/ibm930.h: Likewise.
7754 * iconvdata/ibm932.h: Likewise.
7755 * iconvdata/ibm933.h: Likewise.
7756 * iconvdata/ibm935.h: Likewise.
7757 * iconvdata/ibm937.h: Likewise.
7758 * iconvdata/ibm939.h: Likewise.
7759 * iconvdata/ibm943.h: Likewise.
7760 * iconvdata/ibm930.c: Pretty printing.
7761 * iconvdata/ibm937.c: Avoid access accross array boundary.
7763 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
7764 the current locale's codeset.
7765 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
7767 * iconv/iconv_prog.c: Pass empty strings as default value for to-
7768 and from-charset. Don't determine locale's charset here.
7770 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
7771 as the old _IO_flush_all but lock only if parameter is nonzero.
7772 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
7773 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
7774 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
7775 if libio is used [PR libc/2575].
7777 2001-11-28 Jakub Jelinek <jakub@redhat.com>
7779 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
7780 __signbitl): Only define for ISO C99.
7782 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
7784 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
7785 herrnop to NETDB_INTERNAL if we run out of buffer space.
7787 2001-11-28 Ulrich Drepper <drepper@redhat.com>
7789 * nss/nss_files/files-XXX.c (internal_getent): Correct input
7790 overflow test for platforms with signed char.
7791 Reported by Andrew Haley <aph@cambridge.redhat.com>.
7793 2001-11-28 Bruno Haible <bruno@clisp.org>
7795 * locale/programs/simple-hash.c (lookup_2): Remove function.
7796 (insert_entry_2): Call lookup instead of lookup_2.
7798 2001-03-04 Bruno Haible <bruno@clisp.org>
7800 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
7802 2001-10-31 Bruno Haible <bruno@clisp.org>
7804 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
7806 2001-03-21 Bruno Haible <bruno@clisp.org>
7808 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
7809 chokes on empty macro arguments.
7810 * intl/plural.y: Add #pragma for alloca on AIX 3.
7812 2001-11-27 Ulrich Drepper <drepper@redhat.com>
7814 * intl/dcigettext.c (guess_category_value): Only implement for
7815 glibc. Otherwise rely on function _nl_locale_name which isn't
7816 present in the glibc sources.
7818 2001-09-24 Bruno Haible <bruno@clisp.org>
7820 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
7821 transliteration when building on a glibc system but outside glibc.
7823 2001-09-22 Bruno Haible <bruno@clisp.org>
7825 * intl/plural-eval.c: New file, extracted from dcigettext.c.
7826 * intl/dcigettext.c (plural_eval): Remove function, moved to
7828 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
7829 Include plural-eval.c.
7831 2001-09-22 Bruno Haible <bruno@clisp.org>
7833 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
7834 don't start with a digit; nplurals must be positive.
7836 2001-09-02 Bruno Haible <bruno@clisp.org>
7838 * intl/plural-exp.h: New file, extracted from gettextP.h.
7839 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
7840 * intl/gettextP.h (struct expression, struct parse_args,
7841 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
7842 * intl/loadmsgcat.c: Include plural-exp.h.
7843 (PLURAL_PARSE): Move macro to plural-exp.h.
7844 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
7846 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
7847 EXTRACT_PLURAL_EXPRESSION.
7848 (_nl_unload_domain): Update.
7849 * intl/dcigettext.c: Include plural-exp.h.
7850 * intl/plural.y: Include plural-exp.h, not gettextP.h.
7851 (FREE_EXPRESSION): Move macro to plural-exp.h.
7852 * intl/Makefile (routines): Add plural-exp.
7853 (distribute): Add plural-exp.h.
7855 2001-07-28 Bruno Haible <bruno@clisp.org>
7857 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
7858 isdigit, tolower argument to 'unsigned char'.
7859 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
7861 * intl/localealias.c (read_alias_file): Cast isspace argument to
7864 2001-10-20 Bruno Haible <bruno@clisp.org>
7866 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
7868 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
7869 with the variable 'index' in plural_lookup.
7870 * intl/l10nflist.c (strchr): Likewise.
7871 * intl/localealias.c (strchr): Likewise.
7873 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
7874 * intl/bindtextdom.c: Likewise.
7875 * intl/dcigettext.c: Likewise.
7876 * intl/dgettext.c: Likewise.
7877 * intl/dngettext.c: Likewise.
7878 * intl/explodename.c: Likewise.
7879 * intl/finddomain.c: Likewise.
7880 * intl/gettext.c: Likewise.
7881 * intl/l10nflist.c: Likewise.
7882 * intl/loadmsgcat.c: Likewise.
7883 * intl/localealias.c: Likewise.
7884 * intl/ngettext.c: Likewise.
7885 * intl/textdomain.c: Likewise.
7886 * intl/gettext.h: Assume <limits.h> exists.
7888 2001-11-27 Ulrich Drepper <drepper@redhat.com>
7890 * stdio-common/Makefile (tests): Add scanf11.
7891 * stdio-common/scanf11.c: New file.
7893 2001-11-26 Ulrich Drepper <drepper@redhat.com>
7895 * version.h (RELEASE): Define as development.
7896 (VERSION): Set to 2.2.90.
7898 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
7900 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
7901 * nis/nss_nis/nis-grp.c: Likewise.
7902 * nis/nss_nisplus/nisplus-grp.c: Likewise.
7904 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
7905 * nis/nss_nis/nis-pwd.c: Likewise.
7906 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
7908 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
7909 * nis/nss_nisplus/nisplus-parser.c: Likewise.
7910 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7912 * nscd/grpcache.c: Use strtoul instead of atol.
7913 * nscd/pwdcache.c: Likewise.
7914 * nss/getent.c: Likewise.
7916 2001-11-27 Paul Eggert <eggert@twinsun.com>
7918 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
7919 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
7921 2001-11-19 Bruno Haible <bruno@clisp.org>
7923 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
7925 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
7926 improves the quality of the hash function, especially for short
7929 2001-11-26 Ulrich Drepper <drepper@redhat.com>
7931 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
7932 are found call conv_error and not input_error [PR libc/2669].
7934 * math/bits/mathcalls.h: Mark ceil and floor as const.
7935 Reported by David Mosberger.
7937 2001-11-21 Jim Meyering <meyering@lucent.com>
7939 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
7940 Define to be __-prefixed.
7941 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
7943 2001-11-26 Andreas Jaeger <aj@suse.de>
7945 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
7948 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
7950 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
7953 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
7954 unused variables. Fix threshold for returning 1.0.
7956 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
7959 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
7960 remove unused variables.
7962 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
7964 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
7965 include local math header files.
7967 2001-11-22 Andreas Jaeger <aj@suse.de>
7969 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
7972 2001-11-21 Andreas Jaeger <aj@suse.de>
7974 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
7976 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
7979 2001-11-15 Andreas Jaeger <aj@suse.de>
7981 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
7982 compilers that support it.
7984 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
7985 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
7986 * stdlib/stdlib.h: Likewise.
7988 2001-11-17 Ulrich Drepper <drepper@redhat.com>
7990 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
7991 statement with gotos.
7992 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
7994 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
7996 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
7998 2001-11-15 Ulrich Drepper <drepper@redhat.com>
8000 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8002 2001-10-02 Jakub Jelinek <jakub@redhat.com>
8003 H.J. Lu <hjl@gnu.org>
8005 * Versions.def (libc): Add GCC_3.0.
8006 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8007 if gcc supports this flag.
8008 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8009 (gcc3): Allow glibc to be compiled with gcc 3.x.
8010 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8011 * config.make.in (static-libgcc, unwind-find-fde): Add.
8012 * Makerules (build-shlib-helper, build-module-helper): Use it.
8013 * scripts/versions.awk: Make sure GLIBC_ versions come first.
8014 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8016 (_fini): Call __deregister_frame_info_bases if
8017 __register_frame_info_bases was used to register.
8018 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8020 (__register_frame_info_bases, __register_frame_info_table_bases,
8021 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8022 * elf/Makefile (routines): Add unwind-dw2-fde.
8023 (shared-only-routines): Add unwind-dw2-fde.
8024 * sysdeps/alpha/gccframe.h: New file.
8025 * sysdeps/arm/gccframe.h: New file.
8026 * sysdeps/generic/framestate.c: New file.
8027 * sysdeps/generic/dwarf2.h: New file.
8028 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8029 * sysdeps/generic/unwind-dw2-fde.c: New file.
8030 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8031 * sysdeps/generic/unwind-dw2-fde.h: New file.
8032 * sysdeps/generic/unwind-dw2.c: New file.
8033 * sysdeps/generic/unwind-pe.h: New file.
8034 * sysdeps/generic/unwind.h: New file.
8035 * sysdeps/hppa/gccframe.h: New file.
8036 * sysdeps/i386/gccframe.h: New file.
8037 * sysdeps/m68k/gccframe.h: New file.
8038 * sysdeps/mips/gccframe.h: New file.
8039 * sysdeps/powerpc/gccframe.h: New file.
8040 * sysdeps/s390/gccframe.h: New file.
8041 * sysdeps/sh/gccframe.h: New file.
8042 * sysdeps/sparc/gccframe.h: New file.
8043 * sysdeps/vax/gccframe.h: New file.
8044 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8045 Set on all architectures except ia64.
8046 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8048 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8049 __deregister_frame_info): Move to elf/Versions.
8050 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8051 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8052 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8053 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8054 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8055 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8056 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8057 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8058 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8059 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8060 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8061 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8062 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8063 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8064 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8065 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8066 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8067 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8069 2001-11-15 Jeff Law <law@redhat.com>
8071 * posix/regex.c (uintptr_t): Do not provide a definition if the
8072 system provided one.
8074 2001-11-13 Roland McGrath <roland@frob.com>
8076 * stdio-common/tmpfile.c: Moved to ...
8077 * sysdeps/generic/tmpfile.c: ... here.
8078 * sysdeps/mach/hurd/tmpfile.c: New file.
8080 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8081 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8082 (fopenport): Define as weak alias.
8084 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8085 * libio/libioP.h: ... to here.
8087 2001-11-12 Ulrich Drepper <drepper@redhat.com>
8089 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8090 program header twice. Construct list with the needed information.
8092 2001-11-10 Ulrich Drepper <drepper@redhat.com>
8094 * po/ca.po: Update from translation team.
8096 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8097 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
8098 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8099 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8101 2001-11-10 Andreas Jaeger <aj@suse.de>
8103 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8104 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8105 Contributed by Stephen L Moshier <moshier@mediaone.net>.
8107 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8109 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8111 * elf/dl-load.c (is_dst): New function.
8112 (_dl_dst_count): Use is_dst to check for DST variable.
8113 (_dl_dst_substitute): Likewise.
8115 2001-11-09 Roland McGrath <roland@frob.com>
8117 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8118 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8119 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8120 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8121 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8122 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8123 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8124 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8125 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8126 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8127 * sysdeps/mach/hurd/powerpc/Dist: New file.
8129 * hurd/privports.c (__get_privileged_ports):
8130 Only contact the proc server if necessary for this call.
8131 Suggested by Neal H Walfield <neal@cs.uml.edu>.
8132 Check error return for mach_port_mod_refs.
8134 2001-11-09 Andreas Schwab <schwab@suse.de>
8136 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8138 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8140 * elf/dl-load.c (lose): Remove some unnecessary code. The new
8141 object is always the last in the list.
8142 (_dl_map_object_from_fd): Delete code to remove from object list
8143 when DF_1_NOOPEN is seen. This is done in lose.
8145 2001-11-08 Ulrich Drepper <drepper@redhat.com>
8147 * elf/dl-object.c (_dl_new_object): Various small optimizations.
8149 2001-11-07 Ulrich Drepper <drepper@redhat.com>
8151 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8152 HWCAP_CHECK macro code.
8154 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8155 Now returns MAP_FAILED on error.
8156 * elf/rtld.c: Adjust caller.
8157 * sysdeps/generic/dl-cache.c: Likewise.
8158 * sysdeps/generic/ldsodefs.h: Adjust description.
8160 * elf/dl-version.c (match_symbol): Optimize error handling for size.
8161 (_dl_check_map_versions): Likewise.
8163 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8165 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8166 _dl_signal_error directly, always use lose. Set fd to -1 after
8168 (lose): Don't call close if fd == -1.
8170 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
8172 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
8173 Also fix typo @code {mbsinit} to @code{mbsinit}.
8175 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8177 * elf/dl-profile.c: Replace state variable with simple flag named
8178 running. Remove commented-out code.
8180 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8181 (_dl_init_paths): Likewise.
8182 (_dl_map_object_from_fd): Likewise.
8183 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8185 2001-11-06 Roland McGrath <roland@frob.com>
8187 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8188 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8190 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8191 sysdeps/powerpc/elf/sysdep.h.
8192 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8194 2001-11-05 Ulrich Drepper <drepper@redhat.com>
8196 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
8198 (process_envvars): Some more optimizations.
8199 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
8201 * elf/elf.h: Add dynamic tag definitions for prelinking.
8203 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
8204 Rewrite code to remove environment varables for SUID binaries.
8205 Small optimization in LD_PROFILE handling.
8206 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
8208 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8210 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
8212 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
8213 strings. Change type of second parameter.
8214 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
8217 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
8219 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
8221 * manual/string.texi: Fix typos.
8222 * manual/examples/argp-ex2.c: Likewise.
8224 2001-11-05 Roland McGrath <roland@frob.com>
8226 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
8227 the more-specific unix/sysv/linux/powerpc file and breaks everything.
8228 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
8229 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
8230 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
8231 here, put under [__ELF__].
8233 2001-11-05 Ulrich Drepper <drepper@redhat.com>
8235 * manual/charset.texi: Extensive editing work.
8236 * manual/nss.texi: Likewise.
8237 Changes by Dennis Grace <dgrace@us.ibm.com>.
8239 2001-11-04 Roland McGrath <roland@frob.com>
8241 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
8242 parameter to dir_mkfile.
8244 2001-11-02 Jakub Jelinek <jakub@redhat.com>
8246 * string/bits/string2.h (__strndup): If n is smaller than len, set
8248 * string/tester.c (test_strndup): New function.
8251 2001-11-01 Ulrich Drepper <drepper@redhat.com>
8253 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
8255 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
8256 * scripts/cpp: New file.
8258 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
8259 for rtld_search_dirs content. Minor optimizations.
8261 2001-10-31 Ulrich Drepper <drepper@redhat.com>
8263 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
8264 avoiding unnecessary duplication.
8266 2001-10-31 Jakub Jelinek <jakub@redhat.com>
8268 * elf/dl-load.c (_dl_map_object): If library was found using
8269 LD_LIBRARY_PATH, don't try RUNPATH list.
8271 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
8273 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
8274 Correct second argument of register_dump call.
8275 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
8278 2001-10-31 Ulrich Drepper <drepper@redhat.com>
8280 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
8282 * iconvdata/TESTS: Likewise.
8283 * iconvdata/gconv-modules: Likewise.
8284 * iconvdata/ibm1132.c: New file.
8285 * iconvdata/ibm1132.h: New file.
8286 * iconvdata/ibm1133.c: New file.
8287 * iconvdata/ibm1133.h: New file.
8288 * iconvdata/ibm1162.c: New file.
8289 * iconvdata/ibm1162.h: New file.
8290 * iconvdata/testdata/IBM1132: New file.
8291 * iconvdata/testdata/IBM1132..UTF8: New file.
8292 * iconvdata/testdata/IBM1133: New file.
8293 * iconvdata/testdata/IBM1133..UTF8: New file.
8294 * iconvdata/testdata/IBM1162: New file.
8295 * iconvdata/testdata/IBM1162..UTF8: New file.
8296 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
8298 * string/string.h: Fix typo in comment.
8299 * wcsmbs/wchar.h: Likewise.
8301 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
8303 * manual/getopt.texi (getopt_long, getopt_long_only): Include
8304 const in type of longopts parameter.
8306 2001-10-29 Andreas Jaeger <aj@suse.de>
8308 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
8310 2001-10-29 Kevin Ryde <user42@zip.com.au>
8312 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
8313 output, clarify `#' behaviour on 0.
8314 (Floating-Point Conversions): Clarify that %g only uses %e when
8315 the exponent would be greater than 1.
8317 2001-10-28 Roland McGrath <roland@frob.com>
8319 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
8320 * sysdeps/mach/powerpc/machine-sp.h: New file.
8321 * sysdeps/mach/powerpc/sysdep.h: New file.
8322 * sysdeps/mach/powerpc/thread_state.h: New file.
8324 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
8325 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
8326 expect to need the same thing on every platform.
8328 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
8329 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
8331 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
8332 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
8333 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
8334 Move all these assembly-related definitions to ...
8335 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
8337 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
8338 by Peter Bruin <pjbruin@dds.nl>.
8340 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
8341 packing results for a `poll' call.
8343 2001-10-26 Ulrich Drepper <drepper@redhat.com>
8345 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
8347 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
8350 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8352 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
8354 2001-10-24 H.J. Lu <hjl@gnu.org>
8356 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
8357 Use __BEGIN_DECLS/__END_DECLS around prototypes.
8358 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
8360 2001-10-21 Jim Meyering <meyering@lucent.com>
8362 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
8363 this code would end up calling gettext even in packages built
8365 * posix/getopt.c (_): Likewise.
8366 * posix/regex.c (_): Likewise.
8368 2001-10-26 Ulrich Drepper <drepper@redhat.com>
8370 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
8372 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
8373 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
8375 2001-10-19 Jakub Jelinek <jakub@redhat.com>
8377 * misc/sys/cdefs.h (__attribute_used__): Define.
8378 * elf/rtld.c (_dl_start): Add __attribute_used__.
8379 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
8381 2001-10-25 Andreas Schwab <schwab@suse.de>
8383 * stdlib/a64l.c: Expect least significant digit first.
8384 * stdlib/l64a.c: Produce least significant digit first.
8385 * stdlib/Makefile (tests): Add test-a64l.
8386 * stdlib/test-a64l.c: New file.
8387 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
8389 2001-10-21 Ulrich Drepper <drepper@redhat.com>
8391 * po/sk.po: Update from translation team.
8393 2001-10-18 Ulrich Drepper <drepper@redhat.com>
8395 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
8397 2001-10-18 Andreas Schwab <schwab@suse.de>
8399 * math/libm-test.inc (print_ulps): Print ulp values rounded to
8401 (print_function_ulps): Likewise.
8402 (print_complex_function_ulps): Likewise.
8403 (print_max_error): Likewise.
8404 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
8406 2001-10-16 Andreas Schwab <schwab@suse.de>
8408 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
8411 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
8412 BSD_SETJMP or BSD__SETJMP is defined, resp.
8413 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
8414 a tail call to __sigsetjmp that would require extending the
8416 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8417 * sysdeps/m68k/bsd-setjmp.S: Deleted.
8418 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
8419 Reported by Jes Sorensen <jes@trained-monkey.org>.
8421 2001-10-16 Andreas Jaeger <aj@suse.de>
8423 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
8424 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
8427 2001-10-15 Ulrich Drepper <drepper@redhat.com>
8429 * po/ca.po: New file. Contributed by the translation team.
8431 2001-10-15 Ralf Baechle <ralf@gnu.org>
8433 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
8434 a varargs prototype. Remove dependency from kernel header files.
8436 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
8437 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
8439 2001-10-14 Ulrich Drepper <drepper@redhat.com>
8441 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
8442 to generate hexadecimal identifier.
8443 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
8445 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
8447 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
8449 2001-10-14 Ulrich Drepper <drepper@redhat.com>
8451 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
8452 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
8453 Contributed by Stephen L Moshier <moshier@mediaone.net>.
8455 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
8456 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8457 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
8458 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
8459 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
8460 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
8462 * timezone/africa: Update from tzdata2001d.
8463 * timezone/asia: Likewise.
8464 * timezone/australasia: Likewise.
8465 * timezone/backward: Likewise.
8466 * timezone/europe: Likewise.
8467 * timezone/leapseconds: Likewise.
8468 * timezone/northamerica: Likewise.
8469 * timezone/southamerica: Likewise.
8470 * timezone/zone.tab: Likewise.
8472 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
8474 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
8475 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
8477 2001-10-12 Ulrich Drepper <drepper@redhat.com>
8479 * elf/elf.h (PT_TLS): New definition.
8481 2001-10-10 Jeff Bailey <jbailey@nisa.net>
8483 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
8486 2001-10-07 Roland McGrath <roland@frob.com>
8488 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
8490 2001-10-10 Ulrich Drepper <drepper@redhat.com>
8492 * elf/elf.h: Add more ELFOSABI_* constants.
8494 2001-10-04 Ben Collins <bcollins@debian.org>
8496 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
8497 decleration of __need_wchar_t.
8499 2001-10-03 Jakub Jelinek <jakub@redhat.com>
8501 * string/bits/string2.h (__strsep_g): Add prototype.
8503 * string/Versions (__strsep): Remove.
8504 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
8506 2001-10-07 Ulrich Drepper <drepper@redhat.com>
8508 * manua/llio.texi: Clarify file references added by mmap.
8509 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8511 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
8513 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
8514 Add sc_loadrs and sc_rbs_bas to match current kernel.
8516 2001-09-27 Jakub Jelinek <jakub@redhat.com>
8518 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8520 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
8522 2001-09-27 Jakub Jelinek <jakub@redhat.com>
8524 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
8525 object has been bumped because of relocation dependency, avoid
8526 duplicates in l_scope.
8527 (show_scope): Fix typos.
8528 * elf/Makefile: Add rules to build and run reldep6.
8529 * elf/reldep6.c: New file.
8530 * elf/reldep6mod0.c: New file.
8531 * elf/reldep6mod1.c: New file.
8532 * elf/reldep6mod2.c: New file.
8533 * elf/reldep6mod3.c: New file.
8534 * elf/reldep6mod4.c: New file.
8536 2001-09-26 Jakub Jelinek <jakub@redhat.com>
8538 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
8540 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
8541 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
8542 for non-lazy binding. Fix .plt[32768+] handling.
8543 (elf_machine_plt_value): Don't add addend.
8544 (elf_machine_rela): Call sparc64_fixup_plt instead of
8545 elf_machine_fixup_plt.
8546 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
8547 dynamic linker at 0xfffff800XXXXXXXX.
8549 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
8551 2001-09-28 Ulrich Drepper <drepper@redhat.com>
8553 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
8555 2001-09-25 Jakub Jelinek <jakub@redhat.com>
8557 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
8558 declare __cmsg_data field if its size would be bigger than 0.
8559 (CMSG_DATA): Adjust accordingly.
8560 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
8561 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
8562 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
8563 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
8564 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8565 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
8566 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8568 2001-09-25 Ulrich Drepper <drepper@redhat.com>
8570 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
8571 * iconvdata/testdata/IBM1160: New file.
8572 * iconvdata/testdata/IBM1160..UTF8: New file.
8573 * iconvdata/testdata/IBM1161: New file.
8574 * iconvdata/testdata/IBM1161..UTF8: New file.
8575 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8577 2001-09-24 Ulrich Drepper <drepper@redhat.com>
8579 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
8580 UL_SETFSIZE computations better.
8582 * rt/Makefile: Remove use of filter for librt again.
8584 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
8585 UL_SETFSIZE computations better.
8587 * string/Versions: Export __strsep for GLIBC_2.2.5.
8588 * string/bits/string2.h: Define all __STRING_INLINE functions if
8589 _FORCE_INLINES is defined.
8590 Use int instead of char of parameter types.
8591 (__strsep): Don't use __strsep_g. Don't define it.
8592 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
8593 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
8595 (__stpcpy_a_small): Renamed from __stpcpy_small.
8596 (__strcspn_c1): Don't define if _FORCE_INLINES.
8597 (__strspn_c1): Likewise.
8599 2001-09-22 Ben Collins <bcollins@debian.org>
8601 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
8602 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
8603 * sysdeps/ia64/bits/sigaction.h: Likewise.
8604 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
8606 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
8608 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
8610 2001-09-24 Jakub Jelinek <jakub@redhat.com>
8612 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
8614 2001-09-24 Ulrich Drepper <drepper@redhat.com>
8616 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
8618 2001-09-20 H.J. Lu <hjl@gnu.org>
8620 * include/dlfcn.h (__RTLD_SPROF): New definiton.
8621 * elf/dl-open.c (dl_open_worker): Return immediately after loading
8623 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
8624 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
8626 2001-09-20 H.J. Lu <hjl@gnu.org>
8628 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
8631 2001-09-22 Ulrich Drepper <drepper@redhat.com>
8633 * nss/getent.c: Accept -s parameter to overwrite rules in
8634 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
8636 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
8637 with as many ".0" as necessary to form a complete address
8638 inet_network understands.
8640 * nss/getent.c: Various cleanups. Use simpler and fewer function
8643 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8645 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
8647 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
8649 2001-09-22 Ulrich Drepper <drepper@redhat.com>
8651 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
8653 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
8654 * iconvdata/ibm1160.c: New file.
8655 * iconvdata/ibm1160.h: New file.
8656 * iconvdata/ibm1161.c: New file.
8657 * iconvdata/ibm1161.h: New file.
8658 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8660 2001-09-19 Jakub Jelinek <jakub@redhat.com>
8662 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
8663 difference between base address and first PT_LOAD's virtual address,
8664 not the base address.
8666 2001-09-11 Tom Rix <trix@redhat.com>
8668 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
8669 ifdef for __getopt_clean_environment.
8670 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
8672 2001-09-22 Andreas Jaeger <aj@suse.de>
8674 * elf/reldep4.c (main): Add proper prototype to fix warning.
8676 * elf/reldep5.c (main): Remove unused variable.
8678 * math/math_private.h: Add prototypes.
8680 2001-09-21 Andreas Jaeger <aj@suse.de>
8682 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
8683 * sysdeps/x86_64/Dist: New file.
8684 * sysdeps/x86_64/soft-fp/Dist: New file.
8686 * sysdeps/gnu/Dist: Remove eval.c.
8688 2001-09-20 Ulrich Drepper <drepper@redhat.com>
8690 * malloc/memusage.c (realloc): Don't count already allocated
8692 (me): Always use dlsym() to find the real implementations.
8694 * malloc/memusage.sh: Make -n option actually do something.
8696 2001-09-20 Andreas Jaeger <aj@suse.de>
8698 * elf/elf.h (R_390_NUM): Correct value.
8700 * Versions.def: Add missing versions 2.2.3 for libthread_db and
8703 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
8704 for x86-64, install x86-64 into */lib64.
8706 * shlib-versions: Add x86-64.
8708 * elf/elf.h: Add x86-64 relocations.
8710 2001-09-19 Ulrich Drepper <drepper@redhat.com>
8712 * po/fr.po: Update from translation team.
8714 2001-09-19 Andreas Jaeger <aj@suse.de>
8716 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
8717 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
8718 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
8719 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
8720 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
8721 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
8722 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
8723 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
8724 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
8725 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
8726 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
8727 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
8728 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
8729 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
8730 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
8731 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
8732 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
8733 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8734 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
8735 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
8736 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
8737 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
8738 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
8739 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
8740 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
8741 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
8742 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
8743 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
8744 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
8745 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
8746 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
8747 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
8748 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
8749 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
8750 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
8751 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
8752 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
8753 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
8754 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
8755 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
8756 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
8757 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
8758 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
8759 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
8760 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
8761 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
8762 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
8763 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
8764 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8765 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
8766 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
8767 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
8768 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
8769 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
8770 * sysdeps/unix/x86_64/sysdep.S: New file.
8771 * sysdeps/unix/x86_64/sysdep.h: New file.
8772 * sysdeps/x86_64/Implies: New file.
8773 * sysdeps/x86_64/Makefile: New file.
8774 * sysdeps/x86_64/Versions: New file.
8775 * sysdeps/x86_64/__longjmp.S: New file.
8776 * sysdeps/x86_64/abort-instr.h: New file.
8777 * sysdeps/x86_64/atomicity.h: New file.
8778 * sysdeps/x86_64/bits/endian.h: New file.
8779 * sysdeps/x86_64/bits/setjmp.h: New file.
8780 * sysdeps/x86_64/bits/string.h: New file.
8781 * sysdeps/x86_64/bp-asm.h: New file.
8782 * sysdeps/x86_64/bsd-_setjmp.S: New file.
8783 * sysdeps/x86_64/bsd-setjmp.S: New file.
8784 * sysdeps/x86_64/dl-machine.h: New file.
8785 * sysdeps/x86_64/elf/initfini.c: New file.
8786 * sysdeps/x86_64/elf/start.S: New file.
8787 * sysdeps/x86_64/ffs.c: New file.
8788 * sysdeps/x86_64/ffsll.c: New file.
8789 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
8790 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
8791 * sysdeps/x86_64/fpu/e_acosl.c: New file.
8792 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
8793 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
8794 * sysdeps/x86_64/fpu/e_expl.c: New file.
8795 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
8796 * sysdeps/x86_64/fpu/e_log10l.S: New file.
8797 * sysdeps/x86_64/fpu/e_log2l.S: New file.
8798 * sysdeps/x86_64/fpu/e_logl.S: New file.
8799 * sysdeps/x86_64/fpu/e_powl.S: New file.
8800 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
8801 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
8802 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
8803 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
8804 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
8805 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
8806 * sysdeps/x86_64/fpu/fegetenv.c: New file.
8807 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
8808 * sysdeps/x86_64/fpu/fegetround.c: New file.
8809 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
8810 * sysdeps/x86_64/fpu/fesetenv.c: New file.
8811 * sysdeps/x86_64/fpu/fesetround.c: New file.
8812 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
8813 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
8814 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
8815 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
8816 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
8817 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
8818 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
8819 * sysdeps/x86_64/fpu/s_atanl.c: New file.
8820 * sysdeps/x86_64/fpu/s_cosl.S: New file.
8821 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
8822 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
8823 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
8824 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
8825 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
8826 * sysdeps/x86_64/fpu/s_logbl.c: New file.
8827 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
8828 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
8829 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
8830 * sysdeps/x86_64/fpu/s_rintl.c: New file.
8831 * sysdeps/x86_64/fpu/s_significandl.c: New file.
8832 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
8833 * sysdeps/x86_64/fpu/s_sinl.S: New file.
8834 * sysdeps/x86_64/fpu/s_tanl.S: New file.
8835 * sysdeps/x86_64/gmp-mparam.h: New file.
8836 * sysdeps/x86_64/hp-timing.c: New file.
8837 * sysdeps/x86_64/hp-timing.h: New file.
8838 * sysdeps/x86_64/htonl.S: New file.
8839 * sysdeps/x86_64/memusage.h: New file.
8840 * sysdeps/x86_64/setjmp.S: New file.
8841 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
8842 * sysdeps/x86_64/stackinfo.h: New file.
8843 * sysdeps/x86_64/sysdep.h: New file.
8844 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
8846 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
8849 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8851 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
8852 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
8854 2001-09-18 Andreas Schwab <schwab@suse.de>
8856 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
8857 list, now that l_scope is a pointer.
8859 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
8862 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
8864 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
8865 (elf_machine_rela_relative): Add a missing declaration.
8867 2001-09-18 Jakub Jelinek <jakub@redhat.com>
8869 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
8870 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
8871 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
8872 ldd-rewrite scripts.
8874 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8876 * elf/ldd.bash.in: Update copyright message.
8878 2001-09-17 H.J. Lu <hjl@gnu.org>
8880 * hurd/hurdmalloc.c (bcopy): Removed.
8881 (realloc): Replace bcopy with memcpy.
8882 * hurd/path-lookup.c (file_name_path_scan): Likewise.
8883 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
8884 * sunrpc/rpcinfo.c (pmapdump): Likewise.
8886 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
8887 (gethostbyaddr): Likewise.
8888 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
8890 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8892 * sysdeps/gnu/eval.c: Removed.
8894 2001-09-18 Andreas Jaeger <aj@suse.de>
8896 * sysdeps/i386/fpu/s_logbl.S: Move to ...
8897 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
8899 * sysdeps/i386/fpu/s_rintl.S: Move to ...
8900 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
8902 * sysdeps/i386/fpu/s_significandl.S: Move to ...
8903 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
8905 2001-09-16 Ulrich Drepper <drepper@redhat.com>
8907 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8910 2001-09-14 H.J. Lu <hjl@gnu.org>
8912 * sysdeps/mips/fpu/libm-test-ulps: Updated.
8914 2001-09-14 Ulrich Drepper <drepper@redhat.com>
8916 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
8917 Patch by Florian La Roche <laroche@redhat.com>.
8919 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
8921 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
8924 2001-09-14 Andreas Schwab <schwab@suse.de>
8926 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
8927 Sumner <bls@sgi.com>.
8928 * posix/execlp.c: Likewise.
8930 2001-09-13 Jakub Jelinek <jakub@redhat.com>
8932 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
8933 is already found earlier in the search scope.
8935 2001-09-12 Jakub Jelinek <jakub@redhat.com>
8937 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
8940 2001-09-13 Ulrich Drepper <drepper@redhat.com>
8942 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
8944 2001-09-12 Ulrich Drepper <drepper@redhat.com>
8946 * config.h.in: Enforce optimization to be used.
8947 * Makeconfig (preprocess-versions): Define ASSEMBLER.
8948 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
8949 * posix/Makefile (annexc-CFLAGS): Define to -O.
8950 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
8952 2001-09-11 Ulrich Drepper <drepper@redhat.com>
8954 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
8955 Patch by Stephan Kulow.
8957 2001-09-08 Ben Collins <bcollins@debian.org>
8959 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
8960 usage of RESOLVE() (r_type, not reloc->r_type).
8962 2001-09-08 Ulrich Drepper <drepper@redhat.com>
8964 * elf/dl-object.c: Avoid allocating extra memory block for name.
8965 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
8966 allocated separately.
8967 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8969 2001-09-08 H.J. Lu <hjl@gnu.org>
8971 * po/zh_TW.po: Fix a typo.
8973 2001-09-07 Tom Rix <trix@redhat.com>
8975 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
8977 2001-08-26 Tom Rix <trix@redhat.com>
8979 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
8980 command line options.
8981 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
8982 * sysdeps/unix/sysv/aix/start.c: Removed.
8983 * sysdeps/unix/sysv/aix/start-libc.c: New file.
8984 * sysdeps/unix/sysv/aix/init-first.c: New file.
8985 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
8987 2001-09-08 Ben Collins <bcollins@debian.org>
8989 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
8990 * sysdeps/generic/dl-machine.h: Likewise.
8991 * sysdeps/hppa/dl-fptr.c: Likewise.
8992 * sysdeps/ia64/dl-fptr.c: Likewise.
8993 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8994 * sysdeps/mips/dl-machine.h: Likewise.
8995 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8996 * sysdeps/powerpc/dl-machine.c: Likewise.
8998 2001-09-07 Ben Collins <bcollins@debian.org>
9000 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9002 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9004 2001-09-08 Ulrich Drepper <drepper@redhat.com>
9006 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9007 dependencies if necessary.
9009 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9010 loaded directly) determine length if l_initfini list by iterating
9011 over its elements. Minor optimizations.
9012 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9013 for dependency objects.
9014 If object was already loaded check whether any of the dependencies
9015 is already on the relocation dependency list. If yes, remove the
9016 latter. Minor optimizations.
9017 * elf/dl-lookup.c (add_dependency): Add check for self reference of
9018 maps here. Search l_initfini list only if the object was loaded
9019 directly and not only as a dependency.
9020 (_dl_lookup_symbol): Add relocation dependency also if object
9021 is not in global scope. Remove test for self-reference here.
9022 (_dl_lookup_versioned_symbol): Likewise.
9023 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
9024 element of first name record.
9025 * elf/loadtest.c: Add some more test to recognize early if an object
9027 * elf/Makefile: Add rules to build and run reldep5.
9028 * elf/reldep5.c: New file.
9029 * elf/reldepmod5.c: New file.
9030 * elf/reldepmod6.c: New file.
9032 * elf/reldep2.c: Fix typo.
9034 2001-09-07 Ulrich Drepper <drepper@redhat.com>
9036 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9037 elements. Change l_scope to be a pointer only.
9038 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9039 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9040 here add searchlist of newly open file to the dependency's scope.
9041 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9042 only searchlist from its scope. Free own scope array if necessary.
9043 * elf/Makefile (tests): Add dblload and dblunload now.
9045 2001-09-06 Andreas Jaeger <aj@suse.de>
9047 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9050 2001-09-05 Ulrich Drepper <drepper@redhat.com>
9052 * elf/Makefile: Add rules to build new tests. Don't run them yet since
9054 * elf/dblload.c: New file.
9055 * elf/dblloadmod1.c: New file.
9056 * elf/dblloadmod2.c: New file.
9057 * elf/dblloadmod3.c: New file.
9058 * elf/dblunload.c: New file.
9060 2001-09-04 Richard Henderson <rth@redhat.com>
9062 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9063 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9065 2001-09-04 Ulrich Drepper <drepper@redhat.com>
9067 Correct very misleading message for error in failed runtime relocation.
9068 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9070 (_dl_signal_cerror): Likewise.
9071 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9072 * elf/dl-close.c: Likewise.
9073 * elf/dl-deps.c: Likewise.
9074 * elf/dl-load.c: Likewise.
9075 * elf/dl-lookup.c: Likewise.
9076 * elf/dl-open.c: Likewise.
9077 * elf/dl-reloc.c: Likewise.
9078 * elf/dl-sym.c: Likewise.
9079 * elf/dl-version.c: Likewise.
9080 * sysdeps/generic/dl-sysdep.c: Likewise.
9082 2001-09-04 Jakub Jelinek <jakub@redhat.com>
9084 * iconv/strtab.c (strtabinit): Initialize null Strent.
9085 (newstring): Move len == 0 handling...
9086 (strtabadd): ...here.
9087 If len == 1, return null Strent.
9088 When inserting a suffix of an existing string, check if
9089 it is not equal to some suffix already recorded.
9090 Copy left and right members over if adding longer string.
9092 2001-09-04 Jakub Jelinek <jakub@redhat.com>
9094 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9096 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9097 (__syscall_gethostname): Add prototype.
9099 2001-09-04 Ulrich Drepper <drepper@redhat.com>
9101 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9103 2001-09-02 Ulrich Drepper <drepper@redhat.com>
9105 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9107 2001-08-27 Roland McGrath <roland@frob.com>
9109 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9110 short, copy that much into NAME anyway before returning error.
9112 2001-09-01 Richard Henderson <rth@redhat.com>
9114 * sysdeps/alpha/elf/Dist: Remove file.
9115 * sysdeps/alpha/elf/Makefile: Remove file.
9116 * sysdeps/alpha/elf/crtbegin.S: Remove file.
9117 * sysdeps/alpha/elf/crtend.S: Remove file.
9118 * sysdeps/alpha/elf/initfini.c: New file.
9120 2001-09-01 Mark Kettenis <kettenis@gnu.org>
9122 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9123 * iconv/tst-iconv3.c: Likewise.
9125 2001-09-01 Jakub Jelinek <jakub@redhat.com>
9127 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9129 2001-09-01 Ulrich Drepper <drepper@redhat.com>
9131 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9133 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9134 * iconv/iconv_prog.c (insert_cache): New function.
9135 (print_known_names): If cache is used call insert_cache to use the
9136 information from the cache [PR libc/2509].
9138 2001-08-31 Ulrich Drepper <drepper@redhat.com>
9140 * time/strptime.c (strptime_internal): Recognize 'l' format and
9141 handle it like 'I' for symmetry with strftime.
9143 2001-08-31 Richard Henderson <rth@redhat.com>
9145 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9146 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9147 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9148 (print_statistics): Make scalar unsigned long long.
9149 * sysdeps/alpha/hp-timing.h: New file.
9151 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9153 * stdio-common/perror.c (perror): Save errno early, pass it
9154 down to perror_internal.
9155 (perror_internal): Add errnum argument.
9157 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9159 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9160 Don't add old memory content for R_ALPHA_REFQUAD.
9162 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9164 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9167 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9168 instead of open, __close instead of close, __getpagesize instead
9171 * string/argz-stringify.c (__argz_stringify): Use __strnlen
9173 * include/string.h (strndupa): Redefine here to use __strnlen
9175 * string/strndup.c (__strndup): Use __strnlen not strnlen.
9177 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9180 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9182 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9183 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
9184 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9185 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9186 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9187 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9188 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9190 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9192 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9194 2001-08-30 Andreas Jaeger <aj@suse.de>
9196 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
9197 contributed Stephen L Moshier.
9199 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9201 * sunrpc/etc.rpc (sgi_fam): Add.
9203 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9205 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
9207 2001-08-29 Ulrich Drepper <drepper@redhat.com>
9209 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
9210 first is from a previous call.
9211 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
9213 2001-08-29 Andreas Schwab <schwab@suse.de>
9215 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
9217 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9219 * config.make.in (INSTALL_SCRIPT): Define.
9220 * Makeconfig (INSTALL_SCRIPT): Define.
9221 * Makerules (do-install-script): New macro to install scripts using
9223 (install-bin-script): New rule to install scripts with
9225 (install-bin-script-nosubdir): New rule.
9226 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
9227 (distinfo-vars): Add $(install-bin-script).
9228 * Rules (others): Likewise.
9229 * Makefile (glibcbug): Install with install-bin-script.
9230 * debug/Makefile (xtrace): Likewise.
9231 (catchsegv): Likewise.
9232 * elf/Makefile (ldd): Likewise.
9233 * malloc/Makefile (mtrace): Likewise.
9234 * timezone/Makefile (tzselect): Likewise.
9236 2001-08-29 H.J. Lu <hjl@gnu.org>
9238 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
9239 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
9240 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
9242 2001-08-29 Andreas Schwab <schwab@suse.de>
9244 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
9246 2001-08-28 H.J. Lu <hjl@gnu.org>
9248 * Makeconfig (combreloc-LDFLAGS): New variable.
9249 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
9250 * config.make.in (have-z-combreloc): New variable.
9251 * configure.in: Substitute libc_cv_z_combreloc.
9253 2001-08-29 Ulrich Drepper <drepper@redhat.com>
9255 * po/sv.po: Update from translation team.
9256 * po/fr.po: Likewise.
9257 * po/da.po: Likewise.
9259 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9261 * Makerules: Fix a typo: MD% -> MD5.
9263 2001-08-28 Ulrich Drepper <drepper@redhat.com>
9265 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
9266 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
9268 2001-08-28 Andreas Jaeger <aj@suse.de>
9270 * manual/libc-texinfo.sh: Add entry about free manuals.
9272 * manual/contrib.texi (Contributors): Fix cross reference.
9274 * manual/libc.texinfo (Copying): Include freemanuals.
9276 * manual/Makefile (appendices): Add freemanuals.
9278 * manual/freemanuals.texi: New file.
9279 Patch by Brian Youmans <3diff@gnu.org>.
9281 * manual/libm-err-tab.pl: Pretty print more platforms, print a
9284 * manual/math.texi (Errors in Math Functions): Fix grammar, start
9285 table on separate page.
9286 Patch by Brian Youmans <3diff@gnu.org>.
9288 2001-08-27 Ulrich Drepper <drepper@redhat.com>
9290 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
9291 the connection went down after we first used it try to connect
9292 again and resend the message before printing to the console.
9293 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
9295 2001-08-27 Jakub Jelinek <jakub@redhat.com>
9297 * string/tst-strlen.c (main): Test strnlen (, -1) too.
9298 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
9301 2001-08-27 Ulrich Drepper <drepper@redhat.com>
9303 * iconv/strtab.c (searchstring): Use correct length for comparison.
9304 (strtabadd): Account total size correct if new string has old string as
9307 2001-08-27 Jakub Jelinek <jakub@redhat.com>
9309 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
9311 2001-08-27 Andreas Jaeger <aj@suse.de>
9313 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
9315 * math/libm-test.inc (j0_test): Add extra tests.
9316 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
9317 not x, in Hankel approximation.
9318 Patches by Stephen L Moshier.
9320 2001-08-26 Ulrich Drepper <drepper@redhat.com>
9322 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
9325 * configure.in: Fix test for .rela.dyn section.
9327 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
9329 2001-08-26 Jakub Jelinek <jakub@redhat.com>
9331 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
9332 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
9333 Pass type_class to _dl_lookup_*.
9334 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
9335 Pass around just type_class instead of noexec, noplt pair.
9336 (_dl_lookup_versioned_symbol): Likewise.
9337 (_dl_lookup_symbol_skip): Pass around just type_class instead of
9339 (_dl_lookup_versioned_symbol_skip): Likewise.
9340 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
9341 * elf/do-lookup.h (do_lookup): Likewise.
9342 * include/link.h (struct link_map): Replace noexec and noplt fields
9343 in l_lookup_cache with type_class field.
9344 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
9345 ELF_RTYPE_CLASS_COPY): Define.
9346 Adjust prototypes for _dl_lookup_symbol and
9347 _dl_lookup_versioned_symbol.
9348 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
9349 elf_machine_lookup_noexec_p): Remove.
9350 (elf_machine_type_class): Define.
9351 * sysdeps/arm/dl-machine.h: Likewise.
9352 * sysdeps/hppa/dl-machine.h: Likewise.
9353 * sysdeps/cris/dl-machine.h: Likewise.
9354 * sysdeps/i386/dl-machine.h: Likewise.
9355 * sysdeps/ia64/dl-machine.h: Likewise.
9356 * sysdeps/m68k/dl-machine.h: Likewise.
9357 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9358 * sysdeps/mips/dl-machine.h: Likewise.
9359 * sysdeps/powerpc/dl-machine.h: Likewise.
9360 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9361 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9362 * sysdeps/sh/dl-machine.h: Likewise.
9363 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9364 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9366 2001-08-26 Ulrich Drepper <drepper@redhat.com>
9368 * manual/message.texi (Advanced gettext functions): Change
9369 description of plural forms for Slovak.
9370 Reported by Marcel Telka <marcel@telka.sk>.
9372 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
9373 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
9375 2001-08-26 Jakub Jelinek <jakub@redhat.com>
9377 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
9378 typo. Patch by Florian La Roche <laroche@redhat.com>.
9380 2001-08-26 Ulrich Drepper <drepper@redhat.com>
9382 * include/link.h (struct link_map): Add l_lookup_cache element.
9383 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
9384 (RESOLVE_MAP): Likewise.
9385 (_dl_relocate_object): Remove cache initialization.
9386 * elf/dl-lookup.c: Rip out cache handling code.
9387 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
9390 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
9391 remove some __builtin_expect.
9392 (_dl_lookup_versioned_symbol): Likewise.
9394 * config.h.in: Add HAVE_Z_COMBRELOC.
9395 * configure.in: Add test for -z combreloc.
9397 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
9398 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
9399 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
9400 case to almost no code.
9402 2001-08-25 Ulrich Drepper <drepper@redhat.com>
9404 * po/tr.po: Update from translation team.
9406 2001-08-24 Andreas Jaeger <aj@suse.de>
9408 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
9411 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9413 * elf/rtld.c (print_statistics): Printf % after percent values.
9414 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
9416 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
9417 don't have to compute the hash value and initialize current_value.
9418 Move reference_name variable to where it is needed.
9419 (_dl_lookup_versioned_symbol): Likewise.
9421 2001-08-24 Roland McGrath <roland@frob.com>
9423 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
9424 Just test that strerror returns non-null for a few errno codes.
9426 2001-08-23 Roland McGrath <roland@frob.com>
9428 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
9429 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
9431 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
9433 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
9436 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9438 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
9441 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
9442 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
9444 * elf/rtld.c: Include <sys/param.h>.
9445 * elf/dl-reloc.c: Likewise.
9447 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9449 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
9450 empty to prevent junk from being generated.
9451 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
9453 2001-08-24 Jakub Jelinek <jakub@redhat.com>
9455 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
9456 records. Rename endrel to relative, initialize it to r, and use it
9457 in elf_machine_rel_relative calls. Point r after relative relocs.
9459 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9461 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
9464 2001-08-24 Jakub Jelinek <jakub@redhat.com>
9466 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
9467 necessary. Undefine newly defined macros at the end.
9468 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
9469 Rename from elf_machine_rel_relative.
9470 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
9471 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
9472 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
9473 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
9475 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
9477 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
9479 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
9481 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
9482 Likewise. Fix argument types.
9483 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
9484 Likewise. Fix argument types.
9485 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
9487 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
9488 ElfW(Rel) in argument.
9489 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
9492 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
9494 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
9496 2001-08-24 Andreas Jaeger <aj@suse.de>
9498 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
9499 Stephen L Moshier <moshier@mediaone.net>.
9501 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9503 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
9504 first if RELCOUNT is set.
9506 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
9507 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
9508 elf_machine_rel_relative.
9509 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
9510 Minor optimizations.
9511 * sysdeps/arm/dl-machine.h: Likewise.
9512 * sysdeps/cris/dl-machine.h: Likewise.
9513 * sysdeps/hppa/dl-machine.h: Likewise.
9514 * sysdeps/i386/dl-machine.h: Likewise.
9515 * sysdeps/ia64/dl-machine.h: Likewise.
9516 * sysdeps/m68k/dl-machine.h: Likewise.
9517 * sysdeps/mips/dl-machine.h: Likewise.
9518 * sysdeps/powerpc/dl-machine.h: Likewise.
9519 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9520 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9521 * sysdeps/sh/dl-machine.h: Likewise.
9522 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9523 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9525 2001-08-23 Roland McGrath <roland@frob.com>
9527 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
9529 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
9530 sysdeps/mach version. Implement counting ("recursive") mutexes
9531 on top of cthreads mutexes.
9532 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
9534 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
9535 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
9536 (__libc_cleanup_region_start, __libc_cleanup_region_end,
9537 __libc_clean_end): Define these to call the cleanup function after
9538 normal exit when they're supposed to.
9540 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
9541 Take new first arg DOIT, a boolean saying whether to really install
9542 any cleanup handler.
9543 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
9544 (__libc_cleanup_end): Likewise.
9545 * sysdeps/generic/bits/libc-lock.h: Same changes.
9546 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
9547 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
9548 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
9550 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
9551 * sysdeps/generic/bits/stdio-lock.h
9552 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
9554 2001-08-23 Jakub Jelinek <jakub@redhat.com>
9556 * elf/ldconfig.c (search_dir): Remove stale symlinks.
9558 2001-08-23 Jakub Jelinek <jakub@redhat.com>
9560 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
9561 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
9563 (_dl_lookup_versioned_symbol): Likewise.
9564 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
9566 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
9567 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
9568 (lookup_cache, lookup_cache_versioned): Add declarations.
9570 2001-08-23 Ulrich Drepper <drepper@redhat.com>
9572 * stdlib/tst-random.c (main): Swap parameters in fail call.
9573 Patch by Pete Bevin <pete@petebevin.com>.
9575 2001-08-23 Jakub Jelinek <jakub@redhat.com>
9577 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
9579 2001-08-23 Ulrich Drepper <drepper@redhat.com>
9581 * malloc/obstack.c: Indent preprocessor directives.
9582 Patch by Jim Meyering <meyering@ascend.com>.
9584 * po/ja.po: Update from translation team.
9586 2001-08-23 Roland McGrath <roland@frob.com>
9588 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
9590 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
9591 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
9593 2001-08-22 Roland McGrath <roland@frob.com>
9595 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
9596 __libc_lock_define_recursive.
9597 * elf/dl-open.c: Don't declare it here any more.
9598 * elf/dl-close.c: Likewise.
9599 * elf/dl-lookup.c: Likewise.
9600 * elf/dl-iteratephdr.c: Likewise.
9601 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
9602 __libc_lock_unlock_recursive.
9603 * elf/dl-close.c (_dl_close): Likewise
9604 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
9605 * elf/dl-open.c (_dl_open): Likewise
9607 * sysdeps/generic/bits/libc-lock.h
9608 (__libc_lock_define_recursive): New macro.
9609 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
9610 (_IO_lock_lock): Use __libc_lock_lock_recursive.
9611 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
9613 * conform/conformtest.pl (checknamespace): Sort the output list.
9615 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
9616 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
9617 definitions conditional on [__USE_XOPEN].
9619 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
9620 these unconditionally, not only use [__USE_BSD], so as to match
9621 the sysdeps/unix/sysv/linux files.
9623 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9625 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
9628 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
9631 2001-08-22 Roland McGrath <roland@frob.com>
9633 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
9634 conditionalization of sa_handler/sa_sigaction member types to
9635 match the sysdeps/unix/sysv/linux file.
9637 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9639 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
9640 symbol sizes a bit better.
9642 * sysdeps/ia64/strncpy.S: Complete rewrite.
9643 Contributed by Jakub Jelinek <jakub@redhat.com>.
9645 * string/stratcliff.c (main): Add strncpy test.
9647 2001-08-22 Roland McGrath <roland@frob.com>
9649 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
9650 and don't declare unsetenv or _environ directly.
9651 (unsetenv): Return int, not void. Use __environ instead of _environ.
9653 2001-08-01 Mark Kettenis <kettenis@gnu.org>
9655 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
9656 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
9657 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
9658 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
9659 test for cmsg struct size.
9661 2001-04-23 Paul Eggert <eggert@twinsun.com>
9663 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
9664 Rename __argc to ___argc in prototypes to avoid compatibility
9665 problems with systems that reserve the identifier "__argc".
9666 Similarly for __argv.
9668 2001-08-21 Roland McGrath <roland@frob.com>
9670 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
9672 * mach/Makefile (tests): Removed.
9673 * mach/hello.c: File removed.
9675 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9677 * po/sv.po: Update from translation team.
9679 * stdio-common/vfscanf.c: Fix handling of %l[].
9680 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
9682 * libio/Makefile (tests): Add tst-sscanf.
9683 * libio/tst-sscanf.c: New file.
9685 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
9686 * malloc/mtrace.c (tr_where): dli_sname always points to a
9687 non-empty string if != NULL.
9688 Reported by Tim Janik <timj@gtk.org>.
9690 2001-08-22 Jakub Jelinek <jakub@redhat.com>
9692 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
9693 buf. Free resources on failure.
9694 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
9695 (makefd_xprt): Likewise.
9696 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
9697 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
9698 * sunrpc/auth_unix.c (authunix_create): Likewise.
9700 2001-08-21 Jakub Jelinek <jakub@redhat.com>
9702 * string/strnlen.c: Remove.
9703 * sysdeps/generic/strnlen.c: New file.
9704 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
9706 2001-08-21 Roland McGrath <roland@frob.com>
9708 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
9709 as a macro, not an extern inline function.
9711 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
9712 * Versions.def (libc): Add GLIBC_2.2.5 set.
9713 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
9714 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
9716 2001-08-20 Roland McGrath <roland@frob.com>
9718 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
9719 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
9721 2001-08-21 Ulrich Drepper <drepper@redhat.com>
9723 * string/bits/string2.h: Remove strnlen optimization here.
9724 * sysdeps/i386/i486/bits/string.h: Add it here.
9726 2001-08-21 Wolfram Gloger <wg@malloc.de>
9728 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
9730 2001-08-21 Ulrich Drepper <drepper@redhat.com>
9732 * po/gl.po: Update from translation team.
9734 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9736 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
9737 * misc/err.c (convert_and_print): Likewise.
9739 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
9742 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9744 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
9745 change of the gregset_t type.
9746 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9748 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
9750 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
9752 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9754 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
9756 * string/strnlen.c: Fix the implementation. We cannot use memchr.
9758 2001-08-18 Mark Kettenis <kettenis@gnu.org>
9760 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
9761 before calling the cthreads initialization code.
9763 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9765 * argp/argp-help.c: Fix two problems introduced in last change.
9767 * include/dirent.h: Include <dirstream.h> first.
9769 2001-08-19 Ulrich Drepper <drepper@redhat.com>
9771 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
9773 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
9774 * sunrpc/xdr_rec.c: Likewise.
9775 * sunrpc/xdr_mem.c: Likewise.
9776 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
9777 * sunrpc/rpc_cmsg.c: Likewise.
9778 * sunrpc/getrpcport.c (getrpcport): Likewise.
9779 * sunrpc/clnt_simp.c (callrpc): Likewise.
9780 * sunrpc/clnt_gen.c (clnt_create): Likewise.
9781 * string/envz.c: Likewise.
9783 * po/ko.po: Update from translation team.
9785 * argp/argp-help.c: Handle wide oriented stderr stream.
9787 2001-08-18 Ulrich Drepper <drepper@redhat.com>
9789 * sysdeps/generic/strtol.c: Little optimizations. Add some
9792 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
9794 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
9795 * wcsmbs/wcwidth.c (wcwdith): Likewise.
9796 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
9798 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
9800 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
9802 * time/time.h (struct timespec): Use __time_t for tv_sec element.
9804 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
9805 wchar_t for function declarations and defintions.
9807 * misc/sys/select.h: Define __need_time_t before including <time.h>.
9808 Define suseconds_t if it hasn't happened yet.
9810 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
9812 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
9814 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
9817 * conform/data/stddef.h-data: Remove wint_t.
9819 * conform/conformtest.pl: Change namespace test to take #undef
9822 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
9824 * conform/data/sys/socket.h-data: Add sockatmark.
9826 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9828 * io/fts.c: Update from recent BSD source.
9830 2001-08-17 Roland McGrath <roland@frob.com>
9832 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
9833 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
9836 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9838 * locale/duplocale.c (__duplocale): Also initialize the special
9841 * conform/data/netdb.h-data: Adjust gai_strerror return type.
9843 2001-08-17 Andreas Jaeger <aj@suse.de>
9845 * misc/getpass.c: Include wchar.h for prototypes.
9846 * malloc/obstack.c: Likewise.
9848 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9850 * sunrpc/svc_simple.c (universal): Use __write instead of write.
9852 * wcsmbs/wcscoll.c: Also define __wcscoll.
9853 * include/wchar.h: Declare __wcscoll.
9855 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
9856 * libio/vwprintf.c: Likewise.
9857 * libio/wprintf.c: Likewise.
9859 * iconv/gconv_cache.c: Use __munmap instead of munmap.
9861 2001-08-16 Ulrich Drepper <drepper@redhat.com>
9863 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
9865 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
9866 wcslen, and __wcscoll instead of wcscoll.
9868 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
9870 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
9871 __getuid instead of getuid.
9873 * stdio-common/perror.c (perror): Use __close instead of close.
9874 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9875 * libio/freopen.c (freopen): Likewise.
9876 * libio/freopen64.c (freopen64): Likewise.
9878 * libio/tst-ungetwc2.c (main): Define str const.
9880 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
9881 * libio/fwprintf.c: Also define __fwprintf.
9882 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
9883 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
9884 * assert/assert-perr.c: Likewise.
9885 * assert/assert.c: Likewise.
9886 * gmon/gmon.c: Likewise.
9887 * inet/rcmd.c: Likewise.
9888 * malloc/obstack.c: Likewise.
9889 * misc/err.c: Likewise.
9890 * misc/error.c: Likewise.
9891 * misc/getpass.c: Likewise.
9892 * posix/getopt.c: Likewise.
9893 * resolv/res_hconf.c: Likewise.
9894 * stdio-common/perror.c: Likewise.
9895 * stdio-common/psignal.c: Likewise.
9896 * stdlib/fmtmsg.c: Likewise.
9897 * sunrpc/auth_unix.c: Likewise.
9898 * sunrpc/clnt_perr.c: Likewise.
9899 * sunrpc/clnt_tcp.c: Likewise.
9900 * sunrpc/clnt_udp.c: Likewise.
9901 * sunrpc/clnt_unix.c: Likewise.
9902 * sunrpc/svc_simple.c: Likewise.
9903 * sunrpc/svc_tcp.c: Likewise.
9904 * sunrpc/svc_udp.c: Likewise.
9905 * sunrpc/svc_unix.c: Likewise.
9906 * sunrpc/xdr.c: Likewise.
9907 * sunrpc/xdr_array.c: Likewise.
9908 * sunrpc/xdr_rec.c: Likewise.
9909 * sunrpc/xdr_ref.c: Likewise.
9910 * sysdeps/generic/wordexp.c: Likewise.
9912 * po/it.po: Update from translation team.
9914 * misc/err.c: Handle wide oriented stderr stream.
9916 2001-08-14 Tom Rix <trix@redhat.com>
9918 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
9919 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
9921 2001-08-13 Tom Rix <trix@redhat.com>
9923 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
9924 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
9927 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
9929 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
9930 Store the access registers to the ucontext structure.
9931 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
9934 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
9935 Load the access registers from the ucontext structure.
9936 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
9939 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
9940 offsets to the new ucontext layout.
9941 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
9943 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
9944 of the ucontext structure.
9945 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9947 2001-08-15 Ulrich Drepper <drepper@redhat.com>
9949 * misc/error.c (error): Handle wide oriented stderr stream correctly.
9950 (error_at_line): Likewise.
9952 * stdio-common/perror.c (perror): Implement according to standard.
9953 The stream orientation must not be changed if the stream was not
9954 oriented before the call.
9955 * stdio-common/Makefile (tests): Add tst-perror.
9956 * stdio-common/tst-perror.c: New file.
9959 See ChangeLog.12 for earlier changes.