e0d348379a98d2acd992887cda43eeaa891ea283
[platform/upstream/glibc.git] / ChangeLog
1 2002-03-26  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
4         read and write accesses as detailed as possible.
5         (__memcpy_by2): Likewise.
6         (__memcpy_g): Likewise.
7         (memmove): Likewise.
8         (memcmp): Likewise.
9         (__memset_ccn_by4): Likewise.
10         (__memset_ccn_by2): Likewise.
11         (__memset_gcn_by4): Likewise.
12         (__memset_gcn_by2): Likewise.
13         (memchr): Likewise.
14         (__memrchr): Likewise.
15         (rawmemchr): Likewise.
16         (__strlen_g): Likewise.
17         (__strcpy_g): Likewise.
18         (__mempcpy_by4): Likewise.
19         (__mempcpy_by2): Likewise.
20         (__mempcpy_byn): Likewise.
21         (__stpcpy_g): Likewise.
22         (__strncpy_by4): Likewise.
23         (__strncpy_by2): Likewise.
24         (__strncpy_byn): Likewise.
25         (__strncpy_gg): Likewise.
26         (__strcat_c): Likewise.
27         (__strcat_g): Likewise.
28         (__strncat_g): Likewise.
29         (__strcmp_gg): Likewise.
30         (__strncmp_g): Likewise.
31         (__strchr_c): Likewise.
32         (__strchr_g): Likewise.
33         (__strchrnul_c): Likewise.
34         (__strchrnul_g): Likewise.
35         (__strrchr_c): Likewise.
36         (__strrchr_g): Likewise.
37         (__strrchr_c): Likewise.
38         (__strrchr_g): Likewise.
39         (__strcspn_c1): Likewise.
40         (__strcspn_cg): Likewise.
41         (__strcspn_g): Likewise.
42         (__strcspn_g): Likewise.
43         (__strspn_c1): Likewise.
44         (__strspn_cg): Likewise.
45         (__strspn_g): Likewise.
46         (__strspn_g): Likewise.
47         (__strpbrk_cg): Likewise.
48         (__strpbrk_g): Likewise.
49         (__strstr_cg): Likewise.
50         (__strstr_g): Likewise.
51
52         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
53         Michal Ludvig <mludvig@suse.cz>.
54
55         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
56         compatibilty, adjust for kernel changes.
57
58         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
59         sigcontext): Adjust for kernel changes.
60
61 2002-03-25  Andreas Jaeger  <aj@suse.de>
62
63         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
64         little endian.
65         Reported by Artur Zaprzala <zybi@talex.com.pl>.
66
67 2002-03-24  Andreas Jaeger  <aj@suse.de>
68
69         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
70
71         * stdio-common/tst-fdopen.c (main): Remove unused variable.
72
73         * iconv/tst-iconv3.c (main): Use correct printf strings.
74
75 2002-03-18  Roland McGrath  <roland@frob.com>
76
77         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
78         (CMGROUP_MAX): New macro.
79
80 2002-03-23  Roland McGrath  <roland@frob.com>
81
82         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
83         * sysdeps/posix/shm_unlink.c: Likewise.
84
85 2002-03-22  Roland McGrath  <roland@frob.com>
86
87         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
88         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
89         under --enable-libio.
90         * sysdeps/mach/hurd/configure: Regenerated.
91
92 2002-03-23  Roland McGrath  <roland@frob.com>
93
94         * sysdeps/mach/hurd/i386/Makefile
95         (sysdep_routines, shared-only-routines): Don't add framestate,
96         reverting 2001-10-02 change.
97         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
98         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
99         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
100         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
101         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
102         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
103         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
104         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
105         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
106         Do it here instead, only if [$(unwind-find-fde) = yes].
107
108 2002-03-23  Andreas Jaeger  <aj@suse.de>
109
110         * signal/signal.h: Fix typo. Patch by Steve Kemp
111         <skx@tardis.ed.ac.uk>.
112
113 2002-03-22  Andreas Jaeger  <aj@suse.de>
114
115         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
116         getresuid.
117
118         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
119         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
120         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
121         user_fpregs_struct): Rename fwd.
122
123         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
124         Follow sigcontext changes.
125
126 2002-03-22  Andreas Jaeger  <aj@suse.de>
127
128         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
129         changes for NaNs on MIPS.
130         Patch by Hartvig Ekner <hartvige@mips.com>.
131
132 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
133
134         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
135         Use realloc if too large.
136         (addgrbyid): Likewise.
137         * nscd/hstcache.c (addhstbyname): Likewise.
138         (addhstbyaddr): Likewise.
139         (addhstbynamev6): Likewise.
140         (addhstbyaddrv6): Likewise.
141         * nscd/pwdcache.c (addpwbyname): Likewise.
142         (addpwbyuid): Likewise.
143
144 2002-03-21  Andreas Jaeger  <aj@suse.de>
145
146         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
147         _fpstate): Add separate struct for x86-64.
148
149         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
150         user_fpregs_struct): Change member names to follow kernel.
151
152 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
153
154         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
155         Correctly close the UDP connection right away [PR libc/3120].
156
157 2002-03-20  Andreas Jaeger  <aj@suse.de>
158
159         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
160         user_fpregs_struct): Fix for changed kernel struct.
161         (struct user_regs_struct): Likewise.
162         (struct user): Likewise.
163         Add 32-bit x86 compatibility.
164
165         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
166
167 2002-03-19  Andreas Jaeger  <aj@suse.de>
168
169         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
170
171 2002-03-18  Andreas Jaeger  <aj@suse.de>
172
173         * iconvdata/Makefile: Only run tests when shared libs are
174         available.
175
176 2002-03-17  Andreas Jaeger  <aj@suse.de>
177
178         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
179
180         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
181
182         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
183         bits.
184
185         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
186         (CAUSE_SHIFT): New.
187         Patch by Hartvig Ekner <hartvige@mips.com>.
188
189         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
190         * sysdeps/generic/unwind-pe.h: Likewise.
191
192         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
193         type to _IO_setb.
194
195         * libio/stdio.c (AL2): Define variant when visibility attribute is
196         not supported.
197
198         * include/libc-symbols.h (_INTVARDEF): Define variant when
199         visibility attribute is not supported.
200
201 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
202
203         * po/fr.po: Update from translation team.
204
205 2002-02-25  Bruno Haible  <bruno@clisp.org>
206
207         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
208
209 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
210
211         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
212         buffers if _IO_file_attach failed.
213
214         * libio/fileops.c (_IO_file_open): Close file descriptor if
215         _IO_SEEKOFF call failed.
216
217 2002-03-15  H.J. Lu  <hjl@gnu.org>
218             Ulrich Drepper  <drepper@redhat.com>
219
220         * configure.in: Check for availability of
221         init_array/fini_array/preinit_array handling in binutils.
222         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
223         * config.make.in (have-initfini-array): New variable.
224
225 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
226
227         * stdio-common/tst-printf.c (main): Comment out one test which
228         checked the compiler's ability to fold floating-point constants
229         but not really printf.
230         (rfg3): Make s const.
231         * stdio-common/tst-printf.sh: Adjust for removed test.
232
233         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
234         internal function.  Adjust for internal_function calling convention.
235         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
236         as internal_function.
237
238         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
239         hidden.
240
241         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
242         declaration and definition.
243         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
244         declaration.
245         * nss/getXXent_r.c: Likewise.
246         * nss/nsswitch.h (db_lookup_function): Add internal_function to
247         definition.
248
249         * include/time.h: Declare __localtime_r as hidden.
250
251         * include/aliases.h: Declare __getaliasent_r as hidden.
252         * include/grp.h: Declare __getgrent_r as hidden.
253         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
254         __getservent_r, and __getprotoent_r as hidden.
255         * include/pwd.h: Declare __getpwent_r as hidden.
256         * include/shadow.h: Declare __getspent_r as hidden.
257         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
258
259         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
260         and __gconv_transliterate as hidden.
261         Add internal_function to __gconv_get_path declaration.
262         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
263         definition.  Add attribute_hidden to __gconv_read_conf definition.
264
265 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
266
267         * elf/rtld.c: Declare _environ as hidden.
268         * sysdeps/generic/dl-environ.c: Likewise.
269         * sysdeps/generic/dl-sysdep.c: Likewise.
270
271         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
272         _dl_mcount_internal as hidden.
273
274         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
275         * sysdeps/generic/dl-brk.c: New file.
276         * sysdeps/generic/dl-sbrk.c: New file.
277         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
278         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
279
280         * elf/dl-minimal.c (malloc): Declare _end as hidden.
281         (__errno_location): New function.  Declare errno as hidden.
282         * elf/rtld.c (_dl_argc): Define as hidden.
283         (_dl_skip_args): Define as hidden.
284         (_begin, _end): Declare as hidden.
285         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
286         * sysdeps/generic/entry.h (_start): Declare as hidden.
287         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
288         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
289         _dl_runtime_resolve and _dl_runtime_profile as hidden.
290         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
291
292 2002-03-14  Roland McGrath  <roland@frob.com>
293
294         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
295
296         * Makeconfig (%.v.i, %.v): New implicit rules.
297         (preprocess-versions): Variable removed.
298         ($(common-objpfx)shlib-versions.v.i): New target giving just the
299         shlib-versions input files as dependencies.
300         ($(common-objpfx)soversions.i): Depend on that instead of the input
301         files.  Use it as input instead of using a pipeline.
302         (postclean-generated): Append soversions.i, shlib-versions.v, and
303         shlib-versions.v.i here.
304         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
305         the Versions.def input files as dependencies.
306         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
307         ($(common-objpfx)Versions.all): Depend on that instead of the input
308         files.  Use it as input instead of using a pipeline.
309         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
310         (postclean-generated): Append those .v and .v.i files here.
311
312 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
313
314         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
315         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
316         Remove.
317
318 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
319
320         * sysdeps/generic/mp_clz_tab.c: New file.
321         * sysdeps/i386/mp_clz_tab.c: New file.
322         * sysdeps/hppa/mp_clz_tab.c: New file.
323         * sysdeps/powerpc/mp_clz_tab.c: New file.
324         * stdlib/Makefile (aux): Revert last patch.
325         * math/Makefile (gmp-objs): Likewise.
326
327 2002-03-13  Paul Eggert  <eggert@twinsun.com>
328
329         * time/strftime.c: Comment fixes for references to obsolescent
330         standards, In most cases the simplest fix is to remove the
331         confusing comments.  Cross-referencing all the standards properly
332         is a bit of a pain, and it should be enough to put that info in
333         the documentation as I did in my recent time.texi patch.
334
335 2002-03-13  Paul Eggert  <eggert@twinsun.com>
336
337         * manual/time.texi (Formatting Calendar Time):
338         ISO C99 also specifies the E and O modifiers.
339         %P is a GNU extension, and is not in ISO C99.
340         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
341         %T is also in ISO C99.
342         The RFC 822 example is not valid in arbitrary locales.
343         Reword the POSIX.2 wording slightly, to make it a bit clearer
344         that POSIX.2 formats are also supported by later POSIX versions.
345         If a format was introduced in ISO C99 it is also required by
346         POSIX.1-2001.
347
348 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
349
350         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
351         _sys_nerr_internal with INTVARDEF2.
352         * include/libc-symbols.h (INTVARDEF2): New macro.
353         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
354         (_sys_nerr_internal): Library.
355
356         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
357         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
358
359         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
360
361 2002-03-13  Wolfram Gloger  <wg@malloc.de>
362
363         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
364
365 2002-03-02  Andreas Schwab  <schwab@suse.de>
366
367         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
368         'h' flag and positional arg.
369         * stdio-common/tst-printf.c (rfg3): New function to test
370         positional arguments.
371         (main): Fix some warnings.
372
373 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
374
375         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
376         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
377
378 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
379
380         * grp/initgroups.c (__nss_group_data): Declare as hidden.
381
382         * include/locale.h (_nl_C_locobj): Declare as hidden.
383
384         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
385         * time/strptime.c (_nl_C_LC_TIME): Likewise.
386
387         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
388
389         * include/sys/gmon.h: Declare _gmonparam as hidden.
390
391         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
392         (__ctype32_wctrans): Likewise.
393         (__ctype32_width): Likewise.
394
395         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
396         use of __ttyname.
397
398         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
399         Define as hidden.
400         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
401         hidden.  Change all users of these variables.
402
403         * posix/regex_internal.h (__re_error_msgid): Renamed from
404         re_error_msgid.  Declare as hidden.
405         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
406         hidden.
407
408         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
409         (__printf_function_table): Likewise.
410         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
411         hidden.
412         (__printf_function_table): Likewise.
413
414         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
415         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
416
417         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
418         * nss/nsswitch.c: Declare _nss_*_database as hidden.
419
420         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
421         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
422
423 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
424
425         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
426         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
427         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
428         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
429         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
430         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
431         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
432         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
433         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
434         _nl_C_LC_CTYPE_width: Declare as hidden.
435         * include/locale.h: Declare _nl_locale_file_list.
436         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
437         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
438         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
439         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
440         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
441         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
442         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
443         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
444         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
445         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
446         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
447         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
448         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
449         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
450         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
451         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
452         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
453         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
454         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
455         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
456         _nl_C_LC_CTYPE_width, and as hidden.
457         * locale/findlocale.c: Declare _nl_C as hidden.
458         * locale/newlocale.c: Likewise.
459         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
460         _nl_locale_file_list.
461         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
462         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
463         Define _nl_C_locobj as hidden.
464
465         * malloc/mtrace.c (_mtrace_file): Define as hidden.
466         (_mtrace_line): Likewise.
467
468         * include/time.h: Declare __mon_yday as hidden.
469         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
470
471         * libio/libioP.h: Declare __libio_codecvt as hidden.
472         * libio/fileops.c: Declare __libio_translit as hidden.
473         * libio/iofwide.c: Define __libio_translit as hidden.
474
475         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
476         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
477         * login/getutline_r.c: Likewise.
478         * login/utmpname.c: Likewise.
479
480         * login/utmp-private.h: Declare __libc_utmp_file_functions,
481         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
482         __libc_utmp_file_name as hidden.
483
484         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
485         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
486         * locale/freelocale.c: Likewise.
487         * locale/lc-time.c: Likewise.
488
489         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
490         (__libc_ptyname2): Likewise.
491         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
492         hidden.
493         (__libc_ptyname2): Likewise.
494
495         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
496         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
497         * sysdeps/generic/init-first.c: Likewise.
498         * sysdeps/i386/init-first.c: Likewise.
499         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
500         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
501         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
502         * sysdeps/sh/init-first.c: Likewise.
503         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
504         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
505
506         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
507         (_itowa_upper_digits): Likewise.
508
509         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
510         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
511         as hidden.
512
513         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
514         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
515         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
516         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
517
518         * gmon/gmon.c (__bb_head): Define as hidden.
519         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
520
521         * argp/argp-parse.c (_argp_hang): Define as static.
522
523         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
524         handling in latest compilers.
525
526         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
527         define alias.
528         * libio/fileops.c (_IO_file_jumps): Likewise.
529         * libio/stdfiles.c (_IO_list_all): Likewise.
530         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
531
532         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
533         include/malloc.h.
534         * include/malloc.h: Add __libc_malloc_initialized declaration
535         here.  Mark variable hidden.
536         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
537
538         * elf/dl-open.c (__libc_argc): Declare as hidden.
539         (__libc_argv): Likewise.
540         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
541         (__libc_argv): Likewise.
542         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
543         __libc_argv as hidden.
544         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
545         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
546         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
547         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
548
549         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
550         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
551         * stdlib/erand48.c: Likewise.
552         * stdlib/jrand48.c: Likewise.
553         * stdlib/lcong48.c: Likewise.
554         * stdlib/lrand48.c: Likewise.
555         * stdlib/mrand48.c: Likewise.
556         * stdlib/nrand48.c: Likewise.
557         * stdlib/seed48.c: Likewise.
558         * stdlib/srand48.c: Likewise.
559
560         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
561         (_itoa_lower_digits_internal): New declaration.
562         (_itoa_upper_digits_internal): New declaration.
563         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
564         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
565         (_itoa_upper_digits_internal): New declaration.
566         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
567         _itoa_lower_digits.
568         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
569         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
570
571         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
572         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
573
574         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
575         (_itowa_lower_digits): Likewise.
576         (_itowa_upper_digits): Likewise.
577         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
578         (_itowa_upper_digits): Likewise.
579
580         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
581         not already defined.
582         (GERMANIC_PLURAL): Declare as hidden.
583
584         * posix/getopt.c (__getopt_initialized): Declare as hidden.
585         (attribute_hidden): Define as empty macro if not already defined.
586
587         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
588         (__gconv_max_path_elem_len): Likewise.
589         (__gconv_path_envvar): Likewise.
590
591         * math/Makefile (gmp-objs): Remove mp_clz_tab.
592         * stdlib/Makefile (aux): Remove mp_clz_tab.
593         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
594
595         * stdlib/exit.h (__exit_funcs): Declare as hidden.
596
597         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
598
599         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
600         _nl_category_names, _nl_category_name_sizes, _nl_current,
601         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
602
603         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
604         (_nl_current_default_domain): Likewise
605         (_nl_state_lock): Likewise.
606         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
607         (_nl_current_default_domain): Likewise
608         (_nl_state_lock): Likewise.
609         * intl/bindtextdom.c (_nl_state_lock): Likewise.
610
611         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
612         (_fpioconst_pow10): Likewise.
613
614         * include/time.h (_tmbuf): Add attribute_hidden.
615
616         * time/tzset.c (tzstring_list): Define as static.
617
618         * include/time.h: Add attribute_hidden to __tzname_cur_max and
619         __use_tzfile declaration.
620
621         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
622         and __wcsmbs_last_locale declaration.
623
624 2002-02-25  Paul Eggert  <eggert@twinsun.com>
625
626         * timezone/Makefile (tzbases): Move systemv from here...
627         (tzlinks): to here, since the entries in systemv were all changed
628         from Zone to Link lines in tz-2001a.  Bug reported (and patch
629         tested) by Peter Breitenlohner.
630
631 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
632
633         * time/tst-posixtz.c (tests): Add new tests.
634         (main): Test whether tzset() sets daylight properly.
635
636 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
637
638         * time/tzset.c (tz_compute): Move __daylight, __tzname and
639         __tzname_cur_max setting...
640         (tzset_internal): ...here.
641
642 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
643
644         * time/tzset.c (compute_change): Don't return any value.
645         (tz_compute): Likewise.  Don't handle southern hemisphere here.
646         (__tz_convert): But here.
647
648 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
649
650         * manual/examples/mkfsock.c: Include <string.h> as well.
651         Patch by Alain De Carolis <alaind@wseurope.com>.
652
653 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
654
655         * posix/regexec.c (re_match): Fix incorrect register sizes.
656         (re_search): Likewise.
657
658 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
659
660         * posix/regcomp.c (regfree): Remove a disused condition.
661         * posix/regex_internal.c (re_acquire_state): Likewise.
662         (re_acquire_state_context): Likewise.
663         (register_state): Remove a redundant malloc invocation.
664         * posix/regex_internal.h: (re_state_table_entry): Simplify
665         the structure.
666
667 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
668
669         * posix/regcomp.c (regcomp): Add __builtin_expect to error
670         handling conditions.
671         (regerror): Likewise.
672         (regfree): Likewise.
673         (re_compile_internal): Likewise.
674         (init_dfa): Likewise.
675         (init_word_char): Likewise.
676         (create_initial_state): Likewise.
677         (analyze): Likewise.
678         (analyze_tree): Likewise.
679         (duplicate_node): Likewise.
680         (calc_eclosure): Likewise.
681         (calc_eclosure_iter): Likewise.
682         (parse): Likewise.
683         (parse_reg_exp): Likewise.
684         (parse_branch): Likewise.
685         (parse_expression): Likewise.
686         (parse_subexp): Likewise.
687         (parse_dup_op): Likewise.
688         (parse_bracket_exp): Likewise.
689         (build_equiv_class): Likewise.
690         (build_charclass): Likewise.
691         (build_word_op): Likewise.
692         (fetch_number): Likewise.
693         (create_tree): Likewise.
694         (duplicate_tree): Likewise.
695         * posix/regex.c (BE): New macro.
696         * posix/regexec.c (re_match): Add __builtin_expect to error
697         handling conditions.
698         (re_match_2): Likewise.
699         (re_search): Likewise.
700         (re_search_internal): Likewise.
701         (check_matching): Likewise.
702         (proceed_next_node): Likewise.
703         (set_regs): Likewise.
704         (sift_states_backward): Likewise.
705         (add_epsilon_backreference): Likewise.
706         (transit_state): Likewise.
707         (transit_state_sb): Likewise.
708         (transit_state_mb): Likewise.
709         (transit_state_bkref): Likewise.
710         (transit_state_bkref_loop): Likewise.
711         (build_trtable): Likewise.
712         (group_nodes_into_DFAstates): Likewise.
713         (match_ctx_init): Likewise.
714         (match_ctx_add_entry): Likewise.
715         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
716         to error handling conditions.
717         (re_string_construct_toupper): Likewise.
718         (build_wcs_buffer): Likewise.
719         (build_wcs_upper_buffer): Likewise.
720         (build_upper_buffer): Likewise.
721         (re_string_translate_buffer): Likewise.
722         (re_node_set_alloc): Likewise.
723         (re_node_set_init_1): Likewise.
724         (re_node_set_init_2): Likewise.
725         (re_node_set_init_copy): Likewise.
726         (re_node_set_intersect): Likewise.
727         (re_node_set_init_union): Likewise.
728         (re_node_set_merge): Likewise.
729         (re_node_set_insert): Likewise.
730         (re_dfa_add_node): Likewise.
731         (re_acquire_state): Likewise.
732         (re_acquire_state_context): Likewise.
733         (create_new_state_common): Likewise.
734         (register_state): Likewise.
735         (create_ci_new_state): Likewise.
736         (create_cd_new_state): Likewise.
737         (re_string_context_at): Remove redundant condition.
738
739 2002-01-16  Roger Sayle  <roger@eyesopen.com>
740
741         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
742
743         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
744
745 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
746
747         * sysdeps/i386/elf/configure.in: Fix comment.
748
749         * sysdeps/sparc/sparc64/configure.in: New.
750         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
751         if .dynamic comes before .got.
752         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
753
754         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
755         HP_TIMING_ACCUM): Fix typos.
756
757 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
758
759         * string/strfry.c: Add some more randomness to the seed.
760         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
761
762         * po/es.po: Update from translation team.
763         * po/fr.po: Likewise.
764
765         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
766
767         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
768         when determining type of format.
769         Patch by James Antill <james@anqd.org> [PR libc/2787].
770
771 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
772
773         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
774
775 2002-03-11  Roland McGrath  <roland@frob.com>
776
777         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
778
779         * Versions.def (libc): Add GLIBC_2.2.6.
780         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
781         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
782         __errno_location instead of __hurd_errno_location, and don't inline it.
783         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
784         * hurd/errno.c: New file.
785         * hurd/Makefile (routines): Add errno.
786
787 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
788
789         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
790         ridiculously large widths and precisions [PR libc/3026].
791
792 2002-03-11  Andreas Jaeger  <aj@suse.de>
793
794         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
795         support.
796         Patch by Susanne Oberhauser <froh@SuSE.de>.
797
798 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
799
800         * inet/rexec.c (ahostbuf): Define as static.
801
802         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
803         (__ctype32_wctrans): Likewise.
804         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
805         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
806         (__ctype32_wctrans): Likewise.
807         (__ctype32_width): Likewise.
808
809         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
810         They were never exported anyway.
811
812         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
813         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
814         exported.
815         * include/sys/gmon.h: Declare _gmonparam.
816
817         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
818         symbols for getdents64.  They were never exported.
819
820 2002-03-09  Roland McGrath  <roland@frob.com>
821
822         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
823         Reported by Jon Arney <jarney1@cox.net>.
824
825 2002-02-23  Roland McGrath  <roland@frob.com>
826
827         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
828         declaration.
829         (__hurd_errno_location): Function removed.
830
831 2002-03-06  Andreas Jaeger  <aj@suse.de>
832
833         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
834         32-bit.
835
836 2002-03-04  Andreas Jaeger  <aj@suse.de>
837
838         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
839
840         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
841         x86-64.
842
843         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
844
845         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
846
847         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
848
849         * sysdeps/x86_64/bits/setjmp.h: New.
850
851         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
852
853         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
854
855         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
856         for x86.
857         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
858         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
859
860 2002-02-28  Bo Thorsen  <bo@suse.de>
861
862         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
863         version.
864
865 2002-03-03  Andreas Jaeger  <aj@suse.de>
866
867         * sysdeps/x86_64/bits/wordsize.h: New file.
868
869         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
870         * elf/tst-tlsmod1.c: Likewise.
871
872         * posix/regcomp.c: Get regex.h from include dir for internal
873         prototypes.
874
875         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
876         to libc-internal.h and include it.
877         * include/libc-internal.h: Add __init_misc.
878
879         * misc/init-misc.c: Include libc-internal.h for prototypes.
880
881         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
882
883         * misc/error.c [_LIBC]: Include libioP.h for prototype of
884         _IO_putc_internal.
885
886 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
887
888         * posix/regcomp.c: Compatibility changes to allow using the code
889         outside glibc.
890
891 2002-02-28  Hartvig Ekner <hartvige@mips.com>
892
893         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
894         compiled non-PIC.
895
896 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
897
898         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
899         of .str elements in the returned data structure.
900
901         * elf/elf.h: Add Alpha TLS bits.
902
903 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
904
905         * sysdeps/unix/sysv/linux/nice.c: New file.
906
907 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
908
909         * elf/Makefile (dl-routines): Add dl-origin.
910         (elide-routines.os): Add dl-origin.
911         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
912         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
913         _dl_debug_state.
914         * include/libc-symbols.c: Define attribute_hidden depending on
915         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
916
917         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
918         * elf/dl-load.c: Likewise.
919         * elf/rtld.c: Likewise.
920         * include/unistd.h: Declare __libc_enable_secure_internal.
921         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
922         Use INTUSE with __libc_enable_secure.
923         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
924
925         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
926         * elf/dl-error.c: Likewise,
927         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
928
929         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
930         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
931         function definition.  Use INTDEF with _dl_get_origin.
932         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
933
934         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
935         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
936
937         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
938         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
939         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
940
941         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
942         * elf/dl-deps.c: Likewise.
943         * elf/dl-error.c: Likewise.
944         * elf/dl-fini.c: Likewise.
945         * elf/dl-init.c: Likewise.
946         * elf/dl-load.c: Likewise.
947         * elf/dl-lookup.c: Likewise.
948         * elf/dl-reloc.c: Likewise.
949         * elf/dl-version.c: Likewise.
950         * elf/do-lookup.h: Likewise.
951         * sysdeps/arm/dl-machine.h: Likewise.
952         * sysdeps/cris/dl-machine.h: Likewise.
953         * sysdeps/hppa/dl-machine.h: Likewise.
954         * sysdeps/i386/dl-machine.h: Likewise.
955         * sysdeps/m68k/dl-machine.h: Likewise.
956         * sysdeps/powerpc/dl-machine.h: Likewise.
957         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
958         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
959         * sysdeps/sh/dl-machine.h: Likewise.
960         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
961         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
962         * sysdeps/x86_64/dl-machine.h: Likewise.
963         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
964         _dl_argv[0].  Use INTUSE with _dl_argv.
965         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
966         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
967
968 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
969
970         * elf/rtld.c (_rtld_global): Remove .protected.
971         (_rtld_local): Strong alias to _rtld_global.
972         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
973         only .os object.
974         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
975         _rtld_local instead of _rtld_global.
976         (_rtld_local): Add hidden extern, possibly in .sdata section.
977         * configure.in: Add tests for visibility attribute and .sdata.
978         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
979         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
980         * sysdeps/arm/dl-machine.h: Likewise.
981         * sysdeps/generic/ldsodefs.h: Likewise.
982         * sysdeps/hppa/dl-machine.h: Likewise.
983         * sysdeps/cris/dl-machine.h: Likewise.
984         * sysdeps/i386/dl-machine.h: Likewise.
985         * sysdeps/ia64/dl-machine.h: Likewise.
986         * sysdeps/m68k/dl-machine.h: Likewise.
987         * sysdeps/mips/mips64/dl-machine.h: Likewise.
988         * sysdeps/mips/dl-machine.h: Likewise.
989         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
990         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
991         * sysdeps/sh/dl-machine.h: Likewise.
992         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
993         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
994         * sysdeps/x86_64/dl-machine.h: Likewise.
995
996 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
997
998         * login/login.c (login): Always initialize ut_line field
999         [PR libc/2991].
1000
1001 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1002
1003         * sysdeps/i386/Makefile (sysdep_routines): Add
1004         divdi3 in csu dir.
1005         (shared-only-routines): Likewise.
1006         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1007         (shared-only-routines): Likewise.
1008         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1009         (shared-only-routines): Likewise.
1010         * sysdeps/wordsize-32/divdi3.c: New file.
1011
1012 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1013
1014         * locale/iso-4217.def: Remove obsolete currencies for countries
1015         with Euro.
1016
1017 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
1018
1019         * posix/regcomp.c (regcomp): Remove a redundant condition.
1020         (init_word_char): Add a check on malloc failure.
1021         (create_initial_state): Likewise.
1022         (duplicate_node): Likewise.
1023         (calc_eclosure): Likewise.
1024         (calc_eclosure_iter): Likewise.
1025         (parse_expression): Likewise.
1026         (parse_bracket_exp): Remove unnecessary malloc invocations.
1027         (build_equiv_class): Likewise.
1028         (build_charclass): Likewise.
1029         * posix/regex_internal.c (re_node_set_intersect): Add a check
1030         on malloc failure.
1031         (re_node_set_add_intersect): Likewise.
1032         (re_node_set_merge): Likewise.
1033         (re_acquire_state): Likewise.
1034         (re_acquire_state_context): Likewise.
1035         (create_newstate_common): Likewise.
1036         (register_state): Likewise.
1037         (create_ci_newstate): Likewise.
1038         (create_cd_newstate): Likewise.
1039         * posix/regex_internal.h: Fix prototypes of re_acquire_state
1040         and re_acquire_state_context.
1041         * posix/regexec.c (regexec): Suit it to the error handling of
1042         re_search_internal.
1043         (re_match): Likewise.
1044         (re_search): Likewise.
1045         (re_search_internal): Add a check on malloc failure.
1046         (acquire_init_state_context): Likewise.
1047         (check_matching): Likewise.
1048         (proceed_next_node): Likewise.
1049         (set_regs): Likewise.
1050         (sift_states_backward): Likewise.
1051         (sift_states_iter_bkref): Likewise.
1052         (add_epsilon_backreference): Likewise.
1053         (transit_state): Likewise.
1054         (transit_state_sb): Likewise.
1055         (transit_state_mb): Likewise.
1056         (transit_state_bkref_loop): Likewise.
1057         (build_trtable): Likewise.
1058         (group_nodes_into_DFAstates): Likewise.
1059         (match_ctx_init): Likewise.
1060         (match_ctx_add_entry): Likewise.
1061
1062 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1065         l_libname if profiling is enabled [PR libc/2916].
1066
1067         * sysdeps/ia64/dl-tls.h: New file.
1068
1069 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
1070
1071         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1072         Work around an Alpha gas bug.
1073
1074 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1075
1076         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1077         uses read to load the catalog.
1078         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1079
1080 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
1081
1082         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1083         regex_internal.c, and regex_internal.h.
1084         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1085         * posix/regex.c: Complete rewrite.
1086         * posix/regexec.c: New file.
1087         * posix/regcomp.c: New file.
1088         * posix/regex_internal.c: New file.
1089         * posix/regex_internal.h: New file.
1090         * posix/regex.h (RE_ICASE): New macro.
1091         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1092
1093         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1094         ungetwc.  It's a macro.
1095         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1096         implementation.
1097         Reported by Jason Merrill <jason@redhat.com>.
1098
1099 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1100
1101         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1102         position to fp->_offset if it is set.
1103         * stdio-common/Makefile (tests): Add tst-fdopen.
1104         * stdio-common/tst-fdopen.c: New test.
1105
1106 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1107
1108         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1109         * stdio-common/tst-ungetc.c (main): Add another test.
1110
1111 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
1112
1113         * assert/assert-perr.c: Use INTUSE to reference functions and variables
1114         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
1115         aliases.  Add prototypes for the new aliases.
1116         * assert/assert.c: Likewise.
1117         * include/libc-symbols.h: Likewise.
1118         * include/stdio.h: Likewise.
1119         * include/netinet/in.h: Likewise.
1120         * include/rpc/auth.h: Likewise.
1121         * include/rpc/auth_unix.h: Likewise.
1122         * include/rpc/key_prot.h: Likewise.
1123         * include/rpc/pmap_prot.h: Likewise.
1124         * include/rpc/pmap_rmt.h: Likewise.
1125         * include/rpc/rpc_msg.h: Likewise.
1126         * include/rpc/xdr.h: Likewise.
1127         * inet/gethstbyad_r.c: Likewise.
1128         * inet/gethstbynm2_r.c: Likewise.
1129         * inet/gethstbynm_r.c: Likewise.
1130         * inet/gethstent_r.c: Likewise.
1131         * inet/in6_addr.c: Likewise.
1132         * libio/__fpurge.c: Likewise.
1133         * libio/filedoalloc.c: Likewise.
1134         * libio/fileops.c: Likewise.
1135         * libio/ftello.c: Likewise.
1136         * libio/ftello64.c: Likewise.
1137         * libio/genops.c: Likewise.
1138         * libio/iofclose.c: Likewise.
1139         * libio/iofdopen.c: Likewise.
1140         * libio/iofflush.c: Likewise.
1141         * libio/iofflush_u.c: Likewise.
1142         * libio/iofgetpos.c: Likewise.
1143         * libio/iofgetpos64.c: Likewise.
1144         * libio/iofgets.c: Likewise.
1145         * libio/iofgets_u.c: Likewise.
1146         * libio/iofopen.c: Likewise.
1147         * libio/iofopncook.c: Likewise.
1148         * libio/iofputs.c: Likewise.
1149         * libio/iofread.c: Likewise.
1150         * libio/iofread_u.c: Likewise.
1151         * libio/iofsetpos.c: Likewise.
1152         * libio/iofsetpos64.c: Likewise.
1153         * libio/ioftell.c: Likewise.
1154         * libio/iofwrite.c: Likewise.
1155         * libio/iogetline.c: Likewise.
1156         * libio/iogets.c: Likewise.
1157         * libio/iogetwline.c: Likewise.
1158         * libio/iolibio.h: Likewise.
1159         * libio/iopadn.c: Likewise.
1160         * libio/iopopen.c: Likewise.
1161         * libio/ioseekoff.c: Likewise.
1162         * libio/ioseekpos.c: Likewise.
1163         * libio/iosetbuffer.c: Likewise.
1164         * libio/iosetvbuf.c: Likewise.
1165         * libio/ioungetc.c: Likewise.
1166         * libio/ioungetwc.c: Likewise.
1167         * libio/iovdprintf.c: Likewise.
1168         * libio/iovsprintf.c: Likewise.
1169         * libio/iovsscanf.c: Likewise.
1170         * libio/libioP.h: Likewise.
1171         * libio/memstream.c: Likewise.
1172         * libio/obprintf.c: Likewise.
1173         * libio/oldfileops.c: Likewise.
1174         * libio/oldiofclose.c: Likewise.
1175         * libio/oldiofdopen.c: Likewise.
1176         * libio/oldiofgetpos.c: Likewise.
1177         * libio/oldiofgetpos64.c: Likewise.
1178         * libio/oldiofopen.c: Likewise.
1179         * libio/oldiofsetpos.c: Likewise.
1180         * libio/oldiofsetpos64.c: Likewise.
1181         * libio/oldiopopen.c: Likewise.
1182         * libio/oldstdfiles.c: Likewise.
1183         * libio/putc.c: Likewise.
1184         * libio/setbuf.c: Likewise.
1185         * libio/setlinebuf.c: Likewise.
1186         * libio/stdfiles.c: Likewise.
1187         * libio/stdio.c: Likewise.
1188         * libio/strops.c: Likewise.
1189         * libio/vasprintf.c: Likewise.
1190         * libio/vscanf.c: Likewise.
1191         * libio/vsnprintf.c: Likewise.
1192         * libio/vswprintf.c: Likewise.
1193         * libio/wfiledoalloc.c: Likewise.
1194         * libio/wfileops.c: Likewise.
1195         * libio/wgenops.c: Likewise.
1196         * libio/wstrops.c: Likewise.
1197         * malloc/mtrace.c: Likewise.
1198         * misc/error.c: Likewise.
1199         * misc/syslog.c: Likewise.
1200         * nss/getXXbyYY_r.c: Likewise.
1201         * nss/getXXent_r.c: Likewise.
1202         * nss/hosts-lookup.c: Likewise.
1203         * stdio-common/getw.c
1204         * stdio-common/printf-prs.c: Likewise.
1205         * stdio-common/printf_fp.c: Likewise.
1206         * stdio-common/printf_size.c: Likewise.
1207         * stdio-common/putw.c: Likewise.
1208         * stdio-common/scanf.c: Likewise.
1209         * stdio-common/sprintf.c: Likewise.
1210         * stdio-common/tmpfile64.c: Likewise.
1211         * stdio-common/vfprintf.c: Likewise.
1212         * stdio-common/vfscanf.c: Likewise.
1213         * stdlib/strfmon.c: Likewise.
1214         * sunrpc/auth_des.c: Likewise.
1215         * sunrpc/auth_none.c: Likewise.
1216         * sunrpc/auth_unix.c: Likewise.
1217         * sunrpc/authdes_prot.c: Likewise.
1218         * sunrpc/authuxprot.c: Likewise.
1219         * sunrpc/clnt_perr.c: Likewise.
1220         * sunrpc/clnt_raw.c: Likewise.
1221         * sunrpc/clnt_tcp.c: Likewise.
1222         * sunrpc/clnt_udp.c: Likewise.
1223         * sunrpc/clnt_unix.c: Likewise.
1224         * sunrpc/key_call.c: Likewise.
1225         * sunrpc/key_prot.c: Likewise.
1226         * sunrpc/openchild.c: Likewise.
1227         * sunrpc/pm_getmaps.c: Likewise.
1228         * sunrpc/pm_getport.c: Likewise.
1229         * sunrpc/pmap_clnt.c: Likewise.
1230         * sunrpc/pmap_prot.c: Likewise.
1231         * sunrpc/pmap_prot2.c: Likewise.
1232         * sunrpc/pmap_rmt.c: Likewise.
1233         * sunrpc/rpc_cmsg.c: Likewise.
1234         * sunrpc/rpc_prot.c: Likewise.
1235         * sunrpc/svc_authux.c: Likewise.
1236         * sunrpc/svc_raw.c: Likewise.
1237         * sunrpc/svc_simple.c: Likewise.
1238         * sunrpc/svc_tcp.c: Likewise.
1239         * sunrpc/svc_udp.c: Likewise.
1240         * sunrpc/svc_unix.c: Likewise.
1241         * sunrpc/xdr.c: Likewise.
1242         * sunrpc/xdr_array.c: Likewise.
1243         * sunrpc/xdr_mem.c: Likewise.
1244         * sunrpc/xdr_rec.c: Likewise.
1245         * sunrpc/xdr_ref.c: Likewise.
1246         * sunrpc/xdr_stdio.c: Likewise.
1247         * sysdeps/generic/_strerror.c: Likewise.
1248         * sysdeps/generic/printf_fphex.c: Likewise.
1249         * sysdeps/generic/tmpfile.c: Likewise.
1250         * sysdeps/gnu/errlist.awk: Likewise.
1251         * sysdeps/gnu/errlist.c: Likewise.
1252
1253         * libio/Makefile (routines): Remove iosprint.
1254         * libio/iosprintf.c: Removed
1255
1256
1257 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
1258
1259         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1260         non_dynamic_init and exported now.
1261         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1262         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1263         !SHARED.
1264         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1265         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1266         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1267
1268 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * elf/dl-close.c (free_slotinfo): Check for end of list and return
1271         true in this case.
1272
1273         * locale/iso-639.def: Add language codes for Walloon.
1274
1275         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1276         total number of relocations performed.
1277
1278         * elf/sprof.c (load_profdata): If do_test provide information as
1279         to why loading failed.
1280         * elf/dl-profile.c (_dl_start_profile): Initialize all of
1281         hist_hdr.dimen.
1282
1283         * csu/set-init.c: Moved to...
1284         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
1285         * csu/Makefile: Don't compile set-init.
1286         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1287         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1288         to __libc_init.
1289         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1290         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1291         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1292         __libc_init.
1293         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
1294         __libc_subinit.
1295
1296 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
1297
1298         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1299         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1300         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1301         (_dl_deallocate_tls): New function.
1302         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1303         _dl_deallocate_tls.
1304
1305 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
1306
1307         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1308         * stdio-common/tst-fseek.c (main): Add test for this.
1309
1310 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
1311
1312         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1313
1314 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
1315
1316         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1317         pointer before dereferencing.
1318
1319 2002-02-18  Roland McGrath  <roland@frob.com>
1320
1321         * sysdeps/mach/hurd/times.c: Fix typo in last change.
1322
1323         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1324         Use task_policy in place of task_priority.
1325
1326         * sysdeps/generic/bits/mman.h
1327         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1328         * sysdeps/mach/msync.c: New file.
1329
1330         * sysdeps/mach/powerpc/syscall.S: New file.
1331
1332         * mach/msg.c [MACH_MSG_OVERWRITE]
1333         (__mach_msg_trap, __mach_msg_overwrite): New functions.
1334         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1335
1336         * sysdeps/mach/configure.in: Check for clock.defs to put into
1337         mach_interface_list.
1338         * sysdeps/mach/configure: Regenerated.
1339
1340         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1341         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1342         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1343         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1344         (mach-shortcuts): Add device_read_overwrite_request,
1345         device_read_overwrite, vm_read_overwrite, thread_switch.
1346
1347         * configure.in (base_machine): Set to $machine by default.
1348         * configure: Regenerated.
1349
1350         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1351         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1352         * sysdeps/mach/configure: Regenerated.
1353         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1354
1355         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1356
1357         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1358
1359         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1360         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1361
1362 2002-02-17  Roland McGrath  <roland@frob.com>
1363
1364         * sysdeps/mach/hurd/times.c
1365         [NO_CREATION_TIME] (startup_time): New static variable.
1366         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1367         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1368         creation_time from task_basic_info.
1369         (__times): Use __gettimeofday instead of __host_get_time.
1370
1371         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1372         Use untyped Mach IPC message format.
1373
1374         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1375
1376         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1377         _S_catch_exception_raise_state_identity,
1378         _hurdsig_fault_catch_exception_raise_state,
1379         _hurdsig_fault_catch_exception_raise_state_identity.
1380
1381         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1382
1383         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1384         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1385
1386         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1387         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1388
1389         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1390         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
1391         them as no-op macros.
1392         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1393         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1394
1395         * sysdeps/powerpc/dl-machine.h
1396         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1397
1398         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1399         Use untyped Mach IPC message format.
1400
1401         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1402         Handle untyped Mach IPC message formats.
1403
1404         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1405         Expect different argument conventions when this is defined.
1406         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1407         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1408         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1409         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1410         for OSF Mach variant.
1411         (faulted): Use mig_reply_error_t for REPLY.
1412         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1413         in __thread_set_exception_ports call.
1414         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1415         __mach_port_set_attributes in place of __mach_port_set_qlimit.
1416
1417         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1418         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1419         on Darwin, which includes bogons.
1420
1421         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1422         variable LOADBASE so it's not declared when it's not used.
1423
1424 2002-02-16  Roland McGrath  <roland@frob.com>
1425
1426         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1427         to use BI.creation_time.
1428
1429         * mach/Machrules (MIG): Add -x c to CPP value passed down.
1430
1431         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
1432         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
1433         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
1434         host_page_size instead of vm_statistics.
1435
1436         * sysdeps/mach/Makefile (mach-before-compile): Don't include
1437         mach_interface.h here, since not all variants use that name.
1438
1439         * sysdeps/mach/configure.in: Add some checks for Mach headers
1440         to ensure a sane installation.
1441         (mach_interface_list): Define this variable by checking for .defs
1442         files found in various variants.
1443         * configure.in (mach_interface_list): AC_SUBST this.
1444         * config.make.in (mach-interface-list): New substituted variable.
1445         * mach/Makefile (user-interfaces): Define this using the value
1446         of $(mach-interface-list) instead of mach, mach4.
1447         Updated other references to mach_interface to use it as well.
1448
1449         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
1450
1451         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
1452         mig_reply_error_t for OSF Mach variant.
1453
1454         * mach/Makefile (routines): Remove bootprivport.
1455         * mach/bootprivport.c: File removed.  It has never been used.
1456
1457         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
1458         Grok the OSF flavor of message format.
1459         (mach_msg_destroy_port): For MAKE_SEND and
1460         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
1461         no-senders notification.
1462
1463 2002-02-06  Roland McGrath  <roland@frob.com>
1464
1465         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
1466         to here if 2.0 compatibility enabled ...
1467         (libc: GLIBC_2.1.3): ... from here.
1468
1469 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
1470
1471         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
1472         generation counter.
1473         * elf/dl-close.c (_dl_close): Likewise.
1474
1475 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
1476
1477         * elf/Makefile: Add rules to build and run tst-tls8.
1478         * elf/tst-tls8.c: New file.
1479         * elf/tst-tlsmod4.c: New file.
1480
1481         * stdlib/test-a64l.c (tests): Add more test cases.
1482
1483         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
1484         Reported by Walter Harms <WHarms@bfs.de>.
1485
1486 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
1487
1488         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
1489         definitions for struct sigcontext.
1490         Suggested by David Mosberger-Tang.
1491
1492 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
1493
1494         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
1495         for removing reference of module in slotinfo list.
1496         (_dl_close): Use remove_slotinfo.
1497         * sysdeps/generic/dl-tls.c: General pretty printing.
1498         (oom): Define only if SHARED.
1499         (_dl_next_tls_modid): Correct starting point for the case we assume
1500         there is a gap.  Add missing instruction grouping (doh!).  Correct
1501         tests for reaching maximum index.
1502         * elf/Makefile: Add rules to build and run tst-tls7.
1503         * elf/tst-tls7.c: New file.
1504         * elf/tst-tlsmod3.c: New file.
1505
1506         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
1507         USE_TLS.
1508         * elf/tst-tlsmod2.c: Likewise.
1509
1510         * elf/dl-close.c (_dl_close): When closing an object using TLS
1511         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
1512         true.  Increment dl_tls_generation only if we closed any TLS-using
1513         object.
1514         * elf/tst-tls6.c: New file.
1515         * elf/Makefile: Add rules to build and run tst-tls6.
1516
1517         * po/da.po: Update from translation team.
1518
1519         * locale/categories.def: Fix typo [PR libc/2948].
1520         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
1521         [PR libc/2949].
1522         * locale/iso-4217.def: Update from official version [PR libc/2950].
1523         * glibcbug.in: Honor TMPDIR [PR libc/2951].
1524         * locale/programs/ld-collate.c (collate_finish): Bail out with a
1525         message if input is too confusion instead of using assert.
1526         (collate_read): Don't crash on unknown symbol [PR libc/2952].
1527         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
1528
1529         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
1530         * elf/tst-tls2.c: Likewise.
1531         * elf/tst-tls3.c: Likewise.
1532
1533 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1534
1535         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
1536
1537 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
1538
1539         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
1540         if this is really necessary.
1541
1542         * elf/dl-close.c (_dl_close): Implement freeing entries in the
1543         slotinfo array.
1544         (free_mem): Free memory for the slotinfo array if possible.
1545
1546 2002-02-12  Andreas Schwab  <schwab@suse.de>
1547
1548         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
1549
1550 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
1551
1552         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
1553         TLS_DTV_UNALLOCATE.
1554         (oom): New function.
1555         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
1556         (_dl_determine_tlsoffset): Likewise.
1557         (_dl_allocate_tls): Likewise.
1558         (__TLS_GET_ADDR): Define if not already defined.
1559         (_dl_tls_symaddr): New function.
1560         (allocate_and_init): New function.
1561         (__tls_get_addr): Actually implement handling of generation counter
1562         and deferred allocation.
1563         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
1564         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1565         _dl_tls_generation.
1566         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
1567         Declare _dl_tls_symaddr.
1568         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
1569         SHARED.
1570         * include/link.h (struct link_map):  Remove l_tls_nextimage and
1571         l_tls_previmage.
1572         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
1573         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
1574         (_dl_vsym): Likewise.
1575         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
1576         layout.
1577         (dl_main): Allow PT_TLS be present for empty segment.  Remove
1578         nextimage list handling.  Instead add all modules using TLS to
1579         dl_tls_dtv_slotinfo_list.
1580         * elf/dl-open.c (dl_open_worker): After successfully loading all
1581         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
1582         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
1583         empty segment don't do anything.  Remove handling of initimage list.
1584         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
1585         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
1586         * elf/dl-minimal.c: Define __libc_memalign.
1587         * elf/dl-support.c: Remove _dl_initimage_list.  Add
1588         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1589         _dl_tls_generation.
1590         * include/stdlib.h: Declare __libc_memalign.
1591
1592         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
1593         * elf/tst-tls4.c: New file.
1594         * elf/tst-tls5.c: New file.
1595         * elf/tst-tlsmod2.c: New file.
1596
1597         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
1598
1599         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
1600
1601         * elf/tst-tls1.c: Use test-skeleton.c.
1602         * elf/tst-tls2.c: Likewise.
1603         * elf/tst-tls3.c: Likewise.
1604
1605         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
1606
1607 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
1608
1609         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
1610
1611 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
1612
1613         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
1614
1615         * elf/tst-tls3.c: New file.
1616         * elf/tst-tlsmod1.c: New file.
1617         * elf/Makefile: Add rules to build and run tst-tls3.
1618
1619         * sysdeps/i386/dl-machine.h: Include <tls.h>.
1620         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
1621         TLS relocations.
1622
1623         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
1624
1625         * po/fr.po: Update from translation team.
1626
1627         * elf/tls-macros.h: Add alternative macros for use in PIC.
1628
1629         * elf/dl-lookup.c: Include <tls.h>.
1630         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
1631
1632         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
1633         required by passing pointer to last element of the list.
1634
1635         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
1636         l_tls_initimage to a place where it actually is performed.
1637
1638         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
1639         after globfree() calls.
1640
1641         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
1642         (openaux): Pass open_mode as new last argument to _dl_map_object.
1643         (_dl_map_object_deps): Add new argument open_mode.  Initialize
1644         open_mode element of args variable with it.
1645         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
1646         _dl_map_object_deps.
1647         * elf/rtld.c (dl_main): Add zero as last parameter to
1648         _dl_map_object_deps call.
1649         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
1650         * elf/nodlopen2.c: New file.
1651         * elf/nodlopenmod2.c: New file.
1652         * elf/Makefile: Add rules to build and run nodlopen2.
1653
1654         * elf/tst-tls1.c: Move TLS helper macros to...
1655         * elf/tls-macros.h: ...here.  New file.
1656         * elf/tst-tls2.c: New file.
1657         * elf/Makefile (tests): Add tst-tls2.
1658         (distribute): Add tls-macros.h.
1659
1660         * po/sv.po: Update from translation team.
1661
1662         * elf/tst-tls1.c (main): Add complete set of tests.  Split
1663         architecture specific definitions from the actual test code.
1664
1665         * po/tr.po: Update from translation team.
1666
1667 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
1668
1669         * elf/Makefile (tests): Add tst-tls1.
1670         * elf/tst-tls1.c: New file.
1671
1672         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
1673         alignment of TCB for now.
1674
1675         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
1676         initialization image for the application itself.
1677
1678         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
1679         loop to initialize TLS block.
1680
1681 2002-02-08  Richard Henderson  <rth@redhat.com>
1682
1683         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
1684         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
1685
1686         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
1687
1688 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
1689
1690         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
1691
1692 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
1693
1694         * po/ca.po: Update from translation team.
1695         * po/sk.po: Likewise.
1696
1697         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
1698         (dl_main): Move dtv/static TLS handling before relocation.
1699         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
1700         TLS_INIT_TP to allocate and install the dtv/static TLS block.
1701         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
1702         so far uses TLS initialize GL(dl_tls_static_size) and
1703         GL(dl_tls_static_align) to account for the TCB.
1704         (_dl_allocate_tls): New function.
1705         * sysdeps/generic/ldsodefs.h (rtld_global): Add
1706         _dl_initial_dtv_malloced.
1707
1708         * configure.in: Test for __builtin_memset more realistically.
1709
1710         * csu/version.c (banner): If TLS support is available say so.
1711
1712 2002-02-04  H.J. Lu  <hjl@gnu.org>
1713
1714         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
1715         __attribute_used__.
1716         (__dl_runtime_resolve): Likewise.
1717
1718         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
1719         declaration.
1720
1721 2001-11-15  H.J. Lu  <hjl@gnu.org>
1722
1723         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
1724         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
1725
1726         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
1727
1728 2002-02-07  H.J. Lu  <hjl@gnu.org>
1729
1730         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
1731         ".set noreorder".
1732         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
1733         Likewise.
1734
1735 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
1736
1737         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
1738
1739         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
1740         ___tls_get_addr_internal.
1741         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
1742
1743         * po/ko.po: Update from translation team.
1744
1745 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
1746
1747         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
1748         attribute, change __pad{1,2} type to unsigned int.
1749         (struct stat64): Remove packed attribute.
1750
1751 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
1752
1753         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
1754
1755 2002-02-07  Andreas Schwab  <schwab@suse.de>
1756
1757         * configure.in: Fix check for -zcombreloc.
1758
1759 2002-02-06  H.J. Lu  <hjl@gnu.org>
1760
1761         * config.h.in (HAVE_BUILTIN_MEMSET): New.
1762         * configure.in: Check if __builtin_memset really works.
1763         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
1764         __GNUC_PREREQ (2, 96) before using __builtin_memset.
1765
1766 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
1767
1768         * io/bug-ftw3.c (main): Don't try the test if root.
1769
1770 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1771
1772         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
1773         constraints.
1774         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
1775         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
1776         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
1777         Likewise.
1778         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
1779         a weak alias for __clone.
1780         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
1781         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
1782         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
1783         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
1784         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
1785         a weak alias for __mmap64.
1786
1787 2002-02-05  H.J. Lu  <hjl@gnu.org>
1788
1789         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
1790         (atomic_add): Likewise.
1791         (compare_and_swap): Likewise.
1792         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
1793
1794 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
1795
1796         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
1797
1798         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
1799         alignment of the TCB and store total size and alignment of static
1800         TLS block in _dl_tls_static_size and _dl_tls_static_align.
1801         tls_index is a typedef.
1802         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
1803         _dl_tls_static_align.
1804         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
1805         * elf/dl-support.c: Define _dl_tls_static_size and
1806         _dl_tls_static_align.
1807
1808 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
1809
1810         * configure.in: Add --without-tls option.
1811         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
1812         --without-tls is given.
1813
1814         * sysdeps/generic/dl-tls.c: Include <tls.h>.
1815
1816         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
1817
1818 2002-02-06  Roland McGrath  <roland@frob.com>
1819
1820         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
1821         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
1822
1823         * scripts/versions.awk: Improve error message for missing version.
1824         Each version inherits from the last one only if they have the same
1825         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
1826         but not GLIBC_x and FOO_y.
1827
1828         * scripts/firstversions.awk: Handle libraries that don't have each
1829         particular version named in the third column of shlib-versions.
1830
1831         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
1832
1833 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
1834
1835         * Versions.def [ld]: Add GLIBC_2.3.
1836         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
1837         * elf/Makefile (dl-routines): Add dl-tls.
1838         (distribute): Add dl-tls.h.
1839         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1840         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
1841         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
1842         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
1843         along with the other info in the link map.  Change queueing of init
1844         images for double linked list.  Use _dl_next_tls_modid to compute
1845         l_tls_modid.
1846         * elf/rtld.c (_dl_start_final): Store alignment requirement
1847         along with the other info in rtld map and executable map.
1848         (dl_main): Add ld.so to the init image list if necessary.  Compute
1849         final module ID with _dl_next_tls_modid.
1850         * include/link.h (struct link_map): Add l_tls_previmage and
1851         l_tls_align.
1852         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
1853         * sysdeps/i386/elf/Versions: New file.
1854         * sysdeps/generic/dl-tls.c: New file.
1855         * sysdeps/generic/dl-tls.h: New file.
1856         * sysdeps/i386/dl-tls.h: New file.
1857
1858 2002-02-06  Roland McGrath  <roland@frob.com>
1859
1860         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
1861         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
1862
1863 2002-01-05  Roland McGrath  <roland@frob.com>
1864
1865         * sysdeps/mach/configure.in: New file.
1866         * sysdeps/mach/configure: New generated file.
1867
1868         * mach/Makefile (user-interfaces): Remove default_pager_helper.
1869         It has never been used by anything.
1870
1871 2002-02-06  H.J. Lu  <hjl@gnu.org>
1872
1873         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
1874         is included.
1875
1876 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
1877
1878         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
1879         attribute((packed)) to counter stupid people misusing gcc options.
1880         (struct stat64): Likewise.
1881
1882 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
1883
1884         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
1885         the variables which are used as booleans.
1886
1887 2002-02-06  Andreas Jaeger  <aj@suse.de>
1888
1889         * include/libc-symbols.h (INTUSE): Renamed from INT.
1890         * elf/dl-deps.c: Change users.
1891         * sysdeps/generic/dl-sysdep.c: Likewise.
1892         * sysdeps/generic/dl-cache.c: Likewise.
1893         * elf/dl-reloc.c: Likewise.
1894         * elf/rtld.c: Likewise.
1895         * elf/dl-version.c: Likewise.
1896         * elf/dl-load.c: Likewise.
1897         * elf/dl-dst.h: Likewise.
1898         * elf/dl-init.c: Likewise.
1899         * elf/dl-error.c: Likewise.
1900         * elf/dl-fini.c: Likewise.
1901         * elf/dl-runtime.c: Likewise.
1902         * elf/do-lookup.h: Likewise.
1903
1904         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
1905         definition.
1906         * stdio-common/_itowa.h: Likewise.
1907
1908 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
1909
1910         * elf/dl-minimal.c: Define _itoa_lower_digits.
1911
1912         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
1913         DT_FLAGS set.
1914
1915         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
1916         loading modules with the DF_STATIC_TLS flag set.
1917         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
1918         element.
1919         * include/link.h (struct link_map): Add l_flags field.
1920         * elf/elf.h (DF_STATIC_TLS): New definition.
1921
1922         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
1923         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
1924
1925         * elf/rtld.c (process_dl_debug): Correct printing help message.
1926         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
1927         for %s.
1928
1929         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
1930         definition and pass &errno in use of this variable.
1931         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
1932
1933 2002-02-04  Andreas Schwab  <schwab@suse.de>
1934
1935         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
1936         * locale/programs/charmap-dir.c: Wrap calls that output messages
1937         with WITH_CUR_LOCALE.  Include "localedef.h" first.
1938         * locale/programs/charmap.c: Likewise.
1939         * locale/programs/ld-address.c: Likewise.
1940         * locale/programs/ld-collate.c: Likewise.
1941         * locale/programs/ld-ctype.c: Likewise.
1942         * locale/programs/ld-identification.c: Likewise.
1943         * locale/programs/ld-measurement.c: Likewise.
1944         * locale/programs/ld-messages.c: Likewise.
1945         * locale/programs/ld-monetary.c: Likewise.
1946         * locale/programs/ld-name.c: Likewise.
1947         * locale/programs/ld-numeric.c: Likewise.
1948         * locale/programs/ld-paper.c: Likewise.
1949         * locale/programs/ld-telephone.c: Likewise.
1950         * locale/programs/ld-time.c: Likewise.
1951         * locale/programs/linereader.c: Likewise.
1952         * locale/programs/linereader.h: Likewise.
1953         * locale/programs/localedef.c: Likewise.
1954         * locale/programs/locfile.c: Likewise.
1955         * locale/programs/repertoire.c: Likewise.
1956
1957 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
1958
1959         * elf/rtld.c (_dl_start_final): Determine load address to locate
1960         ehdr with GL(dl_rtld_map).l_map_start.
1961
1962         * po/ca.po: Update from translation team.
1963
1964         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
1965         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
1966         header entry.
1967         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
1968         _dl_tls_module_cnt.
1969         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
1970
1971 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
1972
1973         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
1974         * include/link.h (struct link_map): Add various members for TLS
1975         information.
1976         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1977         _rtld_tlsoffset, add _dl_initimage_list.
1978         * sysdeps/i386/dl-lookupcfg.h: New file.
1979         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
1980         TLS relocation.  When using TLS we now use RESOLVE_MAP.
1981         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
1982         is used.
1983
1984         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
1985         unused.
1986
1987         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
1988         thread-pointer as soon as possible.
1989         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
1990         elements in rtld_global.
1991         * sysdeps/generic/tls.h: New file.
1992         * elf/Makefile (distribute): Add tls.h.
1993         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
1994         relocations.  Not complete yet.
1995
1996         * resolv/resolv.h: Allow user to define __need_res_state and only
1997         define __res_start structure then.
1998         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
1999
2000         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2001         dl_cpuclock_offset initialization to _dl_start_final.
2002         (_dl_show_auxv): Avoid unnecessary sign extension.
2003         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2004
2005 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2006
2007         * config.h.in: Add HAVE_TLS_SUPPORT.
2008         * sysdeps/i386/elf/configure.in: New file.
2009
2010 2002-02-03  Andreas Schwab  <schwab@suse.de>
2011
2012         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2013         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
2014
2015 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
2016
2017         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2018         alloca if the memory reqirements are too high.
2019
2020 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2021
2022         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2023         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2024         the former is available anyway and speed isn't important here.
2025         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2026         * elf/dl-version.c (match_symbol): Likewise.
2027         (_dl_check_map_versions): Likewise.
2028         * elf/rtld.c (process_envvars): Likewise.
2029         (print_statistics): Likewise.
2030         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2031         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
2032         bases.  Add assert to catch uses of unimplemented features.
2033         (__strsep): Add assert to catch uses of unimplemented features.
2034         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
2035         and avoid inline optimization.
2036         * elf/rtld.c (process_envvars): Likewise.
2037         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2038         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2039         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2040
2041 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2042
2043         * stdio-common/_itoa.h: Minor simplifications of the code.
2044         * stdio-common/_itoa.c: Likewise.
2045
2046         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2047         instead of _dl_printf for debugging info output.
2048
2049         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2050         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2051
2052 2002-02-01  H.J. Lu  <hjl@gnu.org>
2053
2054         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2055         (atomic_add): Likewise.
2056         (compare_and_swap): Return 0 only when failed to compare. Use
2057         branch likely.
2058
2059         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2060         branch likely.
2061
2062 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2063
2064         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2065
2066 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2067
2068         * elf/dl-minimal.c (__strsep): New minimal implementation.
2069
2070 2002-02-02  Paul Eggert  <eggert@twinsun.com>
2071
2072         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2073         (__mktime_internal): If no tm_isdst is requested, prefer solutions
2074         with tm_isdst > 0 when the requested time falls within a
2075         spring-forward gap [PR libc/2894].
2076
2077 2002-02-03  Andreas Schwab  <schwab@suse.de>
2078
2079         * stdio-common/tst-rndseek.c: Increase timeout.
2080
2081 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2082
2083         Change ld.so to not use functions which are exported.  One cannot
2084         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
2085         definitions.
2086         * include/libc-symbols.h: Define INT and INTDEF.
2087         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2088         _dl_signal_error_internal, _dl_map_object_internal,
2089         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2090         _dl_lookup_versioned_symbol_internal,
2091         _dl_relocate_object_internal, _dl_debug_state_internal,
2092         _dl_start_profile_internal, and _dl_unload_cache_internal.
2093         * include/dlfcn.h: Declare _dl_catch_error_internal.
2094         * elf/rtld.c: Use INT for calls to any of the *_internal functions
2095         above.  Add INTDEF to function definitions.
2096         * elf/dl-debug.c: Likewise.
2097         * elf/dl-deps.c: Likewise.
2098         * elf/dl-dst.h: Likewise.
2099         * elf/dl-error.c: Likewise.
2100         * elf/dl-fini.c: Likewise.
2101         * elf/dl-init.c: Likewise.
2102         * elf/dl-load.c: Likewise.
2103         * elf/dl-lookup.c: Likewise.
2104         * elf/dl-misc.c: Likewise.
2105         * elf/dl-open.c: Likewise.
2106         * elf/dl-profile.c: Likewise.
2107         * elf/dl-reloc.c: Likewise.
2108         * elf/dl-runtime.c: Likewise.
2109         * elf/dl-version.c: Likewise.
2110         * elf/do-lookup.h: Likewise.
2111         * sysdeps/generic/dl-cache.c: Likewise.
2112         * sysdeps/generic/dl-sysdep.c: Likewise.
2113         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2114         instead of _dl_init.
2115         * sysdeps/arm/dl-machine.h: Likewise.
2116         * sysdeps/cris/dl-machine.h: Likewise.
2117         * sysdeps/hppa/dl-machine.h: Likewise.
2118         * sysdeps/i386/dl-machine.h: Likewise.
2119         * sysdeps/ia64/dl-machine.h: Likewise.
2120         * sysdeps/m68k/dl-machine.h: Likewise.
2121         * sysdeps/mips/dl-machine.h: Likewise.
2122         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2123         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2124         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2125         * sysdeps/sh/dl-machine.h: Likewise.
2126         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2127         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2128         * sysdeps/x86_64/dl-machine.h: Likewise.
2129         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2130
2131         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2132         and _dl_debug_initialize.
2133
2134         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
2135         more information.
2136         * elf/rtld.c (dl_main): Avoid strrchr.
2137         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2138         result of readlink.  Search from the back for '/'.
2139
2140         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2141         strncpy if possible.
2142
2143         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
2144         strncmp.
2145         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
2146         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2147         strspn, and strcspn.
2148         (process_envvars): Don't use strcspn.
2149
2150         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2151         (_dl_dst_substitute): Likewise.
2152
2153 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2154
2155         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2156         code which is never used when relocating ld.so itself.
2157
2158         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2159         starting ld.so itself.  Move l_addr variable initialization closer
2160         to use.
2161         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2162
2163 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2164
2165         * Versions.def (libc): Add GLIBC_PRIVATE.
2166         (libdb, libnss_db, libdb1): Remove.
2167         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2168         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2169         (libpthread): Add GLIBC_PRIVATE.
2170         (libresolv): Likewise, remove GLIBC_2.1.
2171         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2172         GLIBC_2.2.3, GLIBC_2.3.
2173         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2174         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2175         _dl_sym, _dl_vsym): Likewise.
2176         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2177         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2178         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2179         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2180         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2181         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2182         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2183         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2184         Likewise.
2185         (_dl_object_relocation_scope): Remove.
2186         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2187         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2188         __gconv_cache): Move to GLIBC_PRIVATE.
2189         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2190         __internal_setnetgrent): Likewise.
2191         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2192         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2193         * locale/Versions (__collate_element_hash, __collate_element_strings,
2194         __collate_symbol_classes, __collate_symbol_hash,
2195         __collate_symbol_strings, _nl_current_LC_COLLATE,
2196         _nl_current_LC_CTYPE): Likewise.
2197         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2198         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2199         (libnss_nis, libnss_nisplus): Likewise.
2200         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2201         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2202         (libnss_files): Move all symbols to GLIBC_PRIVATE.
2203         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2204         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2205         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2206         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2207         __ns_get16, __ns_samename): Likewise.
2208         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2209         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2210         GLIBC_PRIVATE.
2211         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2212         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2213         __libc_connect): Likewise.
2214         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2215         Likewise.
2216         * stdlib/Versions (__libc_system): Likewise.
2217         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2218         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2219         * sysdeps/ia64/fpu/Versions: Likewise.
2220         * sysdeps/ia64/Versions: Likewise.
2221         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2222         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2223         to GLIBC_PRIVATE.
2224         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2225         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2226         __libc_sigaction): Likewise.
2227         * termios/Versions (__libc_tcdrain): Likewise.
2228
2229         * misc/sys/cdefs (__attribute_noinline__): Define.
2230         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2231         __attribute_noinline__.
2232
2233         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2234         * elf/dl-xstat64.c: New file.
2235         * elf/dl-fxstat64.c: New file.
2236         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2237         don't export __fxstat64 at multiple versions.
2238         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2239         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2240
2241 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
2242
2243         * locale/program/ld-collate.c (collate_finish): Assign a wide
2244         char collation sequence value to multi character collating
2245         elements, and avoid over writing by non-character elements.
2246
2247 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2248
2249         * elf/Makefile (distribute): Add dl-procinfo.c.
2250         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2251         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2252
2253 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2254
2255         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2256         definition.
2257         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2258         _rtld_global struct.
2259         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2260         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2261         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2262         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2263         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2264         _dl_fpu_control_set): Remove unused externs.
2265         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2266         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2267         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2268         related variables in _rtld_global struct.
2269         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2270         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2271         unused extern.
2272
2273 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2274
2275         * sysdeps/generic/dl-procinfo.c: New file.
2276
2277 2002-02-01  Andreas Schwab  <schwab@suse.de>
2278
2279         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2280
2281 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2282
2283         * elf/rtld.c (_dl_start): Mark as internal_function.
2284         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2285         in register.
2286         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2287         General pretty printing.
2288
2289 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
2290
2291         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2292         * elf/dl-reloc.c: Pretty printing.
2293         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2294         procinfo-related variables in rtld_global struct.
2295         * elf/dl-support.c: Likewise.
2296         * elf/rtld.c: Likewise.
2297         * sysdeps/i386/i686/Makefile: Likewise.
2298         * sysdeps/i386/i686/hp-timing.c: Likewise.
2299         * sysdeps/i386/i686/hp-timing.h: Likewise.
2300         * sysdeps/ia64/Makefile: Likewise.
2301         * sysdeps/ia64/hp-timing.c: Likewise.
2302         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2303         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2304         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2305         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2306         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2307         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2308         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2309         * sysdeps/x86_64/Makefile: Likewise.
2310
2311         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2312         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2313         _dl_debug_fd to rtld_global.
2314         * elf/Versions: Likewise.
2315         * elf/dl-close.c: Likewise.
2316         * elf/dl-iteratephdr.c: Likewise.
2317         * elf/dl-lookup.c: Likewise.
2318         * elf/dl-misc.c: Likewise.
2319         * elf/dl-open.c: Likewise.
2320         * elf/dl-support.c: Likewise.
2321         * elf/do-lookup.h: Likewise.
2322         * elf/rtld.c: Likewise.
2323         * sysdeps/generic/dl-cache.c: Likewise.
2324         * sysdeps/generic/dl-sysdep.c: Likewise.
2325         * sysdeps/ia64/Versions: Likewise.
2326         * sysdeps/unix/clock_gettime.c: Likewise.
2327         * sysdeps/unix/clock_settime.c: Likewise.
2328         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2329         * sysdeps/sparc/Versions: Removed.
2330         * sysdeps/i386/i686/Versions : Removed.
2331         * sysdeps/x86_64/Versions: Removed.
2332         * configure.in: Define HAVE_PROTECTED if .protected is available.
2333         * config.h.in: Add entry for HAVE_PROTECTED.
2334
2335 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
2336
2337         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2338         code in struct _rtld_global.  Export this struct, remove all
2339         exports for the signal variables.
2340         * sysdeps/arm/dl-machine: Likewise.
2341         * sysdeps/generic/dl-origin: Likewise.
2342         * sysdeps/generic/dl-sysdep: Likewise.
2343         * sysdeps/generic/dl-cache: Likewise.
2344         * sysdeps/hppa/dl-fptr: Likewise.
2345         * sysdeps/hppa/dl-machine: Likewise.
2346         * sysdeps/cris/dl-machine: Likewise.
2347         * sysdeps/i386/dl-machine: Likewise.
2348         * sysdeps/ia64/dl-machine: Likewise.
2349         * sysdeps/m68k/dl-machine: Likewise.
2350         * sysdeps/mach/hurd/dl-sysdep: Likewise.
2351         * sysdeps/mips/mips64/dl-machine: Likewise.
2352         * sysdeps/mips/dl-machine: Likewise.
2353         * sysdeps/powerpc/elf/libc-start: Likewise.
2354         * sysdeps/powerpc/dl-machine: Likewise.
2355         * sysdeps/powerpc/dl-start: Likewise.
2356         * sysdeps/sparc/sparc32/dl-machine: Likewise.
2357         * sysdeps/sparc/sparc64/dl-machine: Likewise.
2358         * sysdeps/sh/dl-machine: Likewise.
2359         * sysdeps/s390/s390-32/dl-machine: Likewise.
2360         * sysdeps/s390/s390-64/dl-machine: Likewise.
2361         * sysdeps/unix/sysv/aix/libc-start: Likewise.
2362         * sysdeps/unix/sysv/aix/start-libc: Likewise.
2363         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2364         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2365         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2366         * sysdeps/x86_64/dl-machine: Likewise.
2367
2368 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
2369
2370         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2371         are too high.
2372
2373 2002-01-31  Andreas Schwab  <schwab@suse.de>
2374
2375         * sysdeps/posix/readv.c: Check for ssize_t overflow.
2376
2377 2002-01-31  Andreas Schwab  <schwab@suse.de>
2378
2379         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2380         reference to _dl_pagesize.
2381
2382 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
2383
2384         * Versions.def [ld]: Add GLIBC_2.3.
2385         * elf/dl-addr.c: Move global variables for SHARED code in struct
2386         _rtld_global.  Export this struct, remove all exports for the
2387         signal variables.
2388         * elf/dl-close.c: Likewise.
2389         * elf/dl-conflict.c: Likewise.
2390         * elf/dl-debug.c: Likewise.
2391         * elf/dl-deps.c: Likewise.
2392         * elf/dl-dst.h: Likewise.
2393         * elf/dl-error.c: Likewise.
2394         * elf/dl-fini.c: Likewise.
2395         * elf/dl-init.c: Likewise.
2396         * elf/dl-iteratephdr.c: Likewise.
2397         * elf/dl-libc.c: Likewise.
2398         * elf/dl-load.c: Likewise.
2399         * elf/dl-lookup.c: Likewise.
2400         * elf/dl-minimal.c: Likewise.
2401         * elf/dl-object.c: Likewise.
2402         * elf/dl-open.c: Likewise.
2403         * elf/dl-profile.c: Likewise.
2404         * elf/dl-profstub.c: Likewise.
2405         * elf/dl-reloc.c: Likewise.
2406         * elf/dl-runtime.c: Likewise.
2407         * elf/dl-support.c: Likewise.
2408         * elf/dl-sym.c: Likewise.
2409         * elf/dl-version.c: Likewise.
2410         * elf/do-lookup.h: Likewise.
2411         * elf/do-rel.h: Likewise.
2412         * elf/dynamic-link.h: Likewise.
2413         * elf/rtld.c: Likewise.
2414         * sysdeps/generic/dl-cache.c: Likewise.
2415         * sysdeps/generic/dl-sysdep.c: Likewise.
2416         * sysdeps/generic/ldsodefs.h: Likewise.
2417         * sysdeps/generic/libc-start.c: Likewise.
2418         * sysdeps/i386/dl-machine.h: Likewise.
2419         * sysdeps/ia64/dl-fptr.c: Likewise.
2420         * sysdeps/ia64/dl-machine.h: Likewise.
2421         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2422         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2423         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2424         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2425         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2426         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2427         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2428         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2429
2430 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
2431
2432         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
2433         to avoid warning
2434         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
2435
2436         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
2437         SHARED version.
2438         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
2439
2440         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
2441
2442 2002-01-29  Ben Collins  <bcollins@debian.org>
2443
2444         * string/bits/string2.h (__mempcpy): Protect size arg for
2445         addition when using __builtin_memcpy.
2446
2447 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
2448
2449         * stdlib/Makefile (tests): Add tst-qsort.
2450         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
2451
2452         * manual/signal.texi (Process Signal Mask): Document that
2453         pthread_sigmask, not sigprocmask, must be used in MT programs.
2454         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
2455
2456         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
2457         found.
2458         * misc/Makefile (tests): Add tst-hsearch.
2459         * misc/tst-hsearch.c: New file.
2460
2461 2002-01-18  Wolfram Gloger  <wg@malloc.de>
2462
2463         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
2464         * malloc/malloc.h: Likewise.
2465         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
2466         * malloc/arena.c: New file.
2467         * malloc/hooks.c: New file.
2468         * malloc/tst-mallocstate.c: New file.
2469         * malloc/Makefile: Add new testcase tst-mallocstate.
2470         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
2471
2472 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2473
2474         * stdlib/msort.c: Remove last patch.  The optimization violates the
2475         same rule which qsort.c had problems with.
2476
2477 2002-01-27  Paul Eggert  <eggert@twinsun.com>
2478
2479         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
2480         to a pivot element that lies outside the array to be sorted, as
2481         ISO C99 requires that the comparison function be called only with
2482         addresses of array elements [PR libc/2880].
2483
2484 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2485
2486         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
2487         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
2488
2489         * timezone/asia: Update from tzdata2002b.
2490         * timezone/australasia: Likewise.
2491         * timezone/backward: Likewise.
2492         * timezone/europe: Likewise.
2493         * timezone/leapseconds: Likewise.
2494         * timezone/iso3166.tab: Likewise.
2495         * timezone/zone.tab: Likewise.
2496
2497 2002-01-23  Richard Henderson  <rth@redhat.com>
2498
2499         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
2500
2501 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2502
2503         * string/strxfrm.c: Allocate one more byte for rulearr and clear
2504         this element [PR libc/2855].
2505
2506         * string/strcoll.c: Handle zero-length arguments specially
2507         [PR libc/2856].
2508
2509 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
2510
2511         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
2512         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
2513         short lengths and constant src.
2514         (strcpy): Don't optimize for gcc 3.0+.
2515         (__stpcpy): For gcc 3.0+, don't use
2516         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
2517         for short string literal src.
2518
2519 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2520
2521         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2522         Set for arm, too.
2523
2524 2001-01-22  Paul Eggert  <eggert@twinsun.com>
2525
2526         * manual/llio.texi (Linked Channels, Cleaning Streams):
2527         Make it clearer that a just-opened input stream might need cleaning.
2528
2529 2002-01-21  H.J. Lu  <hjl@gnu.org>
2530
2531         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2532         Don't use label at end of compound statement.
2533
2534 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
2535
2536         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
2537         Remove test for negative integer arg; sin_pi does it correctly.
2538
2539 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
2540
2541         * nscd/Makefile (distribute): Filter out xmalloc.c.
2542
2543 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
2544
2545         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
2546         Set offset if read end wasn't the buffer end.
2547         (_IO_file_seekoff_mmap): New function.
2548         (_IO_file_xsgetn_mmap): New function.
2549         (_IO_file_jumps_mmap): Use the two new functions.
2550         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
2551         != end buffer.
2552         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
2553         _IO_file_underflow_mmap.
2554         * libio/iofopen.c: Don't position file descriptor at end of file.
2555         * libio/tst-widetext.c: Improve error messages.
2556         * stdio-common/tst-rndseek.c: Likewise.
2557
2558 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
2559
2560         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
2561         end of enum for !_GNU_SOURCE.
2562         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
2563         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
2564         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
2565         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
2566         values unless _GNU_SOURCE.
2567
2568         * iconvdata/tcvn5712-1.c: Minor cleanups.
2569
2570 2002-01-18  Andreas Schwab  <schwab@suse.de>
2571
2572         * sysdeps/unix/sysv/linux/configure.in
2573         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
2574
2575 2002-01-16  Roger Sayle  <roger@eyesopen.com>
2576
2577         * stdlib/msort.c (msort_with_tmp): Replace implementation with
2578         more efficient "Towers of Hanoi" mergesort.
2579         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
2580         for generic, sizeof(int) and sizeof(long) variants respectively.
2581
2582 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
2583
2584         * manual/syslog.texi (openlog): Describe possible problems with
2585         first parameter.
2586         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2587
2588         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
2589         * nscd/connections.c (begin_drop_privileges): New function.
2590         (finish_drop_privileges): New function.
2591         (nscd_init): Call the new functions which also install all groups
2592         for the server user.
2593         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
2594         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2595
2596 2002-01-17  H.J. Lu  <hjl@gnu.org>
2597
2598         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
2599         `const' from `got'.
2600
2601 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2602
2603         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
2604         instructions for pointer operations.
2605         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2606
2607 2002-01-17  Andreas Jaeger  <aj@suse.de>
2608
2609         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
2610         __uint128_t build-in.
2611
2612         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
2613         PowerPC, sync with 2.2 branch.
2614
2615 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
2616
2617         * posix/getconf.c: Update copyright year.
2618         * nss/getent.c: Likewise.
2619         * nscd/nscd_nischeck.c: Likewise.
2620         * iconv/iconvconfig.c: Likewise.
2621         * iconv/iconv_prog.c: Likewise.
2622         * elf/ldconfig.c: Likewise.
2623         * catgets/gencat.c: Likewise.
2624         * csu/version.c: Likewise.
2625         * elf/ldd.bash.in: Likewise.
2626         * elf/sprof.c (print_version): Likewise.
2627         * locale/programs/locale.c: Likewise.
2628         * locale/programs/localedef.c: Likewise.
2629         * nscd/nscd.c (print_version): Likewise.
2630         * debug/xtrace.sh: Likewise.
2631         * malloc/memusage.sh: Likewise.
2632         * malloc/mtrace.pl: Likewise.
2633
2634 2002-01-16  Andreas Schwab  <schwab@suse.de>
2635
2636         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
2637         reliably remove "-ia64" from rtld name.
2638
2639 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
2640
2641         * iconvdata/gb18030.c: Bug fixes and support for more characters.
2642         Patch by Yu Shao <yshao@redhat.com>.
2643
2644 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2645
2646         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
2647         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
2648         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
2649
2650 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2651
2652         * sysdeps/s390/fpu/libm-test-ulps: Update.
2653
2654 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
2655
2656         * elf/elf.h: Update x86 relocations.
2657
2658 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
2659
2660         * locale/programs/charmap.c (new_width): Check whether byte
2661         sequences for both ends of range have the same length.
2662
2663 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
2664
2665         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
2666
2667 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
2668
2669         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
2670         string literals.
2671         (__full_ieee754_sqrt): Add __attribute_used__.
2672
2673 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
2674
2675         * sysdeps/generic/group_member.c (__group_member): Also check
2676         groups[0] [PR libc/2781].
2677
2678 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
2679
2680         * Makefile (distribute): Add scripts/cpp.
2681         * elf/Makefile (distribute): Add reldep6mod[01234].c,
2682         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
2683         unwind-dw2-fde.h, and dwarf2.h.
2684         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
2685         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
2686         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
2687         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
2688
2689 2002-01-07  Roland McGrath  <roland@frob.com>
2690
2691         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
2692         volatile on type of ARGC so the compiler doesn't get clever.
2693
2694 2002-01-07  Andreas Jaeger  <aj@suse.de>
2695
2696         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
2697         * sysdeps/i386/bits/byteswap.h: Likewise.
2698         * sysdeps/ia64/bits/byteswap.h: Likewise.
2699         * sysdeps/m68k/bits/byteswap.h: Likewise.
2700         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
2701         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
2702
2703 2002-01-02  Bruno Haible  <bruno@clisp.org>
2704
2705         * intl/plural.y: Fix %expect count.
2706
2707 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
2708
2709         * elf/Makefile (routines, shared-only-routines): Add
2710         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
2711         * elf/elf.h (PT_GNU_EH_FRAME): Define.
2712         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
2713         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
2714         Optimize if .eh_frame section contains no FDEs.
2715         (__register_frame, __deregister_frame_info_bases,
2716         __deregister_frame): Likewise.
2717         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
2718         DW_CFA_restore handling.
2719
2720 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
2721
2722         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
2723
2724         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
2725         for x < 0.25 and restore original range reduction method.
2726         (__ieee754_lgammal_r): Make sure signgam is set before returning.
2727
2728 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
2729
2730         * libio/fileops.c (_IO_file_underflow_mmap): New function.
2731         (_IO_file_close_mmap): New function.
2732         (_IO_file_jumps_mmap): New variable.
2733         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
2734         trying to convert rest of byte buffer.
2735         (_IO_wfile_underflow_mmap): New function.
2736         (_IO_wfile_jumps_mmap): New variable.
2737         * libio/iofopen.c (__fopen_maybe_mmap): New function.
2738         (__fopen_internal): New function.  Split out from _IO_new_fopen.
2739         (_IO_new_fopen): Call __fopen_internal.
2740         * libio/iofopen64.c: Just call __fopen_internal.
2741         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
2742         successfully.
2743         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
2744         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
2745         _IO_file_close_mmap.
2746
2747         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
2748         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
2749
2750         * stdio-common/Makefile (tests): Add tst-rndseek.
2751         * stdio-common/tst-rndseek.c: New file.
2752
2753 2002-01-05  Roland McGrath  <roland@frob.com>
2754
2755         * config.h.in (HAVE_MIG_RETCODE): New #undef.
2756         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
2757         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
2758         * sysdeps/mach/hurd/configure: Regenerated.
2759
2760 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
2761
2762         * elf/elf.h: Add more TLS definitions.
2763
2764 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
2765
2766         * include/features.h (__GLIBC_MINOR__): Bump to 3.
2767
2768 2002-01-02  Roland McGrath  <roland@frob.com>
2769
2770         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
2771         __sigisemptyset.  Don't use MASK uninitialized.
2772
2773         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
2774         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
2775         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
2776         __sigdelset, __sigaddset, __sigorset.
2777
2778         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
2779         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
2780
2781         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
2782         _hurd_ports is null.
2783
2784         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
2785         for old CMU and new OSF Mach interface flavors.
2786         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
2787         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2788
2789         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
2790
2791         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
2792         Pass extra arguments to task_create for OSF variant.
2793         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2794
2795         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
2796         conditional on [HAVE_AUX_VECTOR].
2797
2798         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
2799         mach_msg_timeout_t as type of final argument.
2800
2801         * hurd/privports.c (__get_privileged_ports):
2802         Change host_priv_t to mach_port_t in argument type.
2803         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
2804         Update decls.
2805
2806         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
2807         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
2808         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
2809         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
2810         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
2811         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2812
2813 2002-01-01  Roland McGrath  <roland@frob.com>
2814
2815         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
2816
2817 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
2818
2819         * include/stdlib.h: Define inlines for the _l variants of the strto*
2820         functions.
2821
2822 2002-01-01  Roland McGrath  <roland@frob.com>
2823
2824         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
2825
2826         * mach/Machrules (MIG): Set CPP as well as CC.
2827
2828 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
2829
2830         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
2831         locale to parse /proc/loadavg [PR libc/2760].
2832
2833 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
2834
2835         * elf/dl-conflict.c: Include sys/param.h.
2836         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
2837         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
2838         warning.
2839         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
2840         literals to avoid warnings.
2841
2842 2001-12-31  Andreas Jaeger  <aj@suse.de>
2843
2844         * configure.in: Don't check for gsed since we do not use it anywhere.
2845
2846 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
2847
2848         * io/fts.c: Update from BSD to fix memory leaks.
2849
2850 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
2851
2852         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
2853         * elf/chroot_canon.c: Likewise.
2854         * elf/dl-object.c: Likewise.
2855         * iconv/iconv_charmap.c: Likewise.
2856         * iconv/iconv_prog.c: Likewise.
2857         * libio/iogetdelim.c: Likewise.
2858         * locale/lc-time.c: Likewise.
2859         * stdlib/canonicalize.c: Likewise.
2860         * sunrpc/svc.c: Likewise.
2861         * sysdeps/generic/glob.c: Likewise.
2862
2863 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2864
2865         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
2866         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
2867         remove high order bit from the program counter.
2868         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
2869
2870 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2871
2872         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
2873         unnecessary code and add missing reloc types.
2874         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
2875         case for reloc type R_390_NONE.
2876
2877 2001-12-28  Andreas Jaeger  <aj@suse.de>
2878
2879         * io/bug-ftw3.c: Include string.h for prototypes.
2880
2881         * crypt/md5test.c (main): Remove unused variable.
2882
2883         * dlfcn/modstatic.c: Add prototype to avoid warning.
2884
2885 2001-12-26  Roland McGrath  <roland@frob.com>
2886
2887         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
2888         check only (SS->pending & MASK) for the signal to return.
2889         From Jeroen Dekkers <jeroen@dekkers.cx>.
2890
2891 2001-12-22  Roland McGrath  <roland@frob.com>
2892
2893         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
2894         Use preprocessor #if conditionals instead of `if' to avoid
2895         warnings about divide by zero in dead code.
2896
2897         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
2898         _hurd_port_init, and __hurd_self_sigstate.
2899
2900         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
2901
2902 2001-12-21  Andreas Jaeger  <aj@suse.de>
2903
2904         * elf/dblloadmod1.c: Add prototype to avoid warning.
2905         * elf/dblloadmod2.c: Likewise.
2906         * elf/dblloadmod3.c: Likewise.
2907         * elf/reldepmod5.c: Likewise.
2908         * elf/reldepmod6.c: Likewise.
2909
2910         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
2911         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
2912         used on all architectures.
2913
2914         * sunrpc/svc_tcp.c: Add noreturn attribute for
2915         svctcp_rendezvous_abort.
2916         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
2917
2918         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
2919         to avoid warning.
2920
2921 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
2922
2923         * manual/llio.texi (aio_fsync): Fix a typo.
2924         Patch by Tammy Fox <tfox@redhat.com>.
2925
2926 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
2927
2928         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
2929         stack bias from child stack pointer before passing it to clone syscall.
2930
2931 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
2932
2933         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
2934         _SC_TZNAME_MAX.
2935         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
2936         Reported by Thorsten Kukuk <kukuk@suse.de>.
2937
2938         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
2939         add some casts.
2940
2941         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
2942
2943 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
2944
2945         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
2946         conforming: return EBADF if file descriptor is invalid and EINVAL
2947         if file descriptor is no valid tty.
2948         * login/tst-grantpt.c: New file.
2949         * login/Makefile (tests): Add tst-grantpt.
2950
2951 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
2952
2953         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
2954         different than implemented in last patch.
2955         * io/bug-ftw3.c: Adjust test for changed handling of
2956         inaccessibility of toplevel dir.
2957
2958 2001-12-16  Roland McGrath  <roland@frob.com>
2959
2960         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
2961         * grp/initgroups.c (internal_getgrouplist): Likewise.
2962
2963         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
2964         `default:' to silence new GCC warning.
2965         Rewrite cast of lvalue to silence new GCC warning.
2966
2967         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
2968
2969         * sysdeps/mach/hurd/spawni.c: New file, by me with a
2970         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
2971
2972 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
2973
2974         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
2975         Patch by Stephen R. van den Berg.
2976
2977         * crypt/md5.h: Define md5_uintptr.
2978
2979 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
2980
2981         * libio/tst_swprintf.c (main): Add test for string argument with
2982         zero precision.
2983         * stdio-common/Makefile (tests): Add tst-sprintf.
2984         * stdio-common/tst-sprintf.c: New file.
2985
2986 2001-12-13  Andreas Schwab  <schwab@suse.de>
2987
2988         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
2989         zero precision with wide character string format.
2990
2991 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
2992
2993         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
2994         but have a user supplied buffer, return the empty buffer, not NULL.
2995
2996 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
2997
2998         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
2999         Patch by Eric Sharkey <sharkey@netrics.com>.
3000
3001         * crypt/md5test.c (main): Add test for multiple calls to
3002         __md5_process_bytes to itererate over input string.
3003
3004 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
3005
3006         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3007         from __nis_findfastest.  Take timeout value from parameter.
3008         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3009         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3010         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
3011
3012 2001-12-12  Andreas Jaeger  <aj@suse.de>
3013
3014         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3015         combreloc test so that it works in this case.
3016
3017         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3018
3019 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
3020
3021         * sysdeps/sh/Makefile: New file.
3022         * sysdeps/sh/_mcount.S: New file.
3023         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3024         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3025
3026 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3027
3028         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3029         limitation [PR libc/2564].
3030
3031 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
3032
3033         * elf/Makefile (dl-routines): Add conflict.
3034         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3035         (ld.so): Add _begin local symbol.
3036         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3037         Define.
3038         * elf/dl-deps.c (_dl_build_local_scope): New.
3039         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3040         of all libraries.
3041         * elf/do-rel.h (VALIDX): Define.
3042         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3043         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3044         can be skipped.
3045         * elf/dl-conflict.c: New file.
3046         * elf/dl-lookup.c (_dl_debug_bindings): New.
3047         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
3048         non-NULL.
3049         (_dl_lookup_symbol_skip): Likewise.
3050         (_dl_lookup_versioned_symbol): Likewise.
3051         (_dl_lookup_versioned_symbol_skip): Likewise.
3052         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3053         define to ElfW(Rel).
3054         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3055         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3056         ranges.
3057         Don't adjust address dynamic tags if l_addr is 0.
3058         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3059         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3060         (VALIDX, ADDRIDX): Define.
3061         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3062         (dl_main): Print library list for LD_TRACE_PRELINKING.
3063         If prelinking information can be used, skip relocating libraries and
3064         call _dl_resolve_conflicts instead.
3065         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3066         * elf/dl-load.c (_dl_map_object): Don't create fake libs
3067         if LD_TRACE_PRELINKING.
3068         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3069         + DT_ADDRNUM.
3070         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3071         (DL_DEBUG_PRELINK): Define.
3072         (_dl_resolve_conflicts): Add prototype.
3073
3074         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3075         .plt for prelinked libraries where prelinking info cannot be used.
3076         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3077         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3078         * sysdeps/arm/bits/link.h: New file.
3079         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3080         content of .got[1].
3081         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3082         (ELF_MACHINE_PLT_REL): Define.
3083         (elf_machine_rela, elf_machine_rela_relative): New.
3084         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3085         of adjusting it if prelinked and prelinking cannot be used.
3086         * sysdeps/i386/bits/link.h: New file.
3087         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3088         content of .got[1].
3089         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3090         (ELF_MACHINE_PLT_REL): Define.
3091         (elf_machine_rela, elf_machine_rela_relative): New.
3092         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3093         of adjusting it if prelinked and prelinking cannot be used.
3094         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3095         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
3096         to find out map for R_PPC_JMP_SLOT relocs.
3097         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3098         (OPCODE_BA): Define.
3099         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3100         libraries where prelinking info cannot be used.
3101         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3102         (elf_machine_fixup_plt): Call sparc_fixup_plt.
3103         (elf_machine_rela): Set value to 0 if relocating conflicts.
3104         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3105         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3106         (sparc64_fixup_plt): Fix a typo.
3107         (elf_machine_rela): Set value to 0 if relocating conflicts.
3108         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3109         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3110         libraries where prelinking info cannot be used.
3111         * sysdeps/sh/bits/link.h: New file.
3112         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3113         content of .got[1].
3114         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3115         of adjusting it if prelinked and prelinking cannot be used.
3116         * sysdeps/s390/s390-32/bits/link.h: New file.
3117         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3118         Save original content of .got[1].
3119         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3120         of adjusting it if prelinked and prelinking cannot be used.
3121         * sysdeps/s390/s390-64/bits/link.h: New file.
3122         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3123         Save original content of .got[1].
3124         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3125         of adjusting it if prelinked and prelinking cannot be used.
3126         * sysdeps/x86_64/bits/link.h: New file.
3127         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3128         Save original content of .got[1].
3129         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3130         of adjusting it if prelinked and prelinking cannot be used.
3131
3132 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3133
3134         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3135         where appropriate instead of numbers.  Little optimizations.
3136
3137 2001-12-10  Roland McGrath  <roland@frob.com>
3138
3139         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3140         set it.
3141
3142         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3143         set to GLIBC_2.2.5, not GLIBC_2.2.4.
3144
3145         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3146         Fix conditionals so this is set by default for stdio and not for libio.
3147         * sysdeps/mach/hurd/configure: Regenerated.
3148
3149 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
3150
3151         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3152
3153 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
3154
3155         * io/Makefile (tests): Add bug-ftw3.
3156         * io/bug-ftw3.c: New file.
3157
3158         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3159         matches and GLOB_NOCHECK is set.
3160         * posix/globtest.sh: Correct expected result for NOCHECK test.
3161
3162         * po/ca.po: Update from translation team.
3163
3164 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
3165
3166         Implement transliteration of characters in strings of the locale
3167         definitions.
3168         * locale/programs/linereader.c: Adjust for additional parameter to
3169         lr_token.
3170         (get_string): If character <Uxxxx> is not found try to transliterate
3171         it.
3172         * locale/programs/ld-ctype.c: Adjust for additional parameter to
3173         lr_token.  Add const to charmap parameter of all functions.
3174         (find_translit, find_translit2): New functions.
3175         * locale/programs/charmap.c: Adjust for additional parameter to
3176         lr_token.
3177         * locale/programs/repertoire.c: Likewise.
3178         * locale/programs/linereader.h: Likewise.
3179         * locale/programs/ld-address.c: Likewise.  Add const to charmap
3180         parameter of all functions.
3181         * locale/programs/ld-collate.c: Likewise.
3182         * locale/programs/ld-identification.c: Likewise.
3183         * locale/programs/ld-measurement.c: Likewise.
3184         * locale/programs/ld-messages.c: Likewise.
3185         * locale/programs/ld-monetary.c: Likewise.
3186         * locale/programs/ld-name.c: Likewise.
3187         * locale/programs/ld-numeric.c: Likewise.
3188         * locale/programs/ld-paper.c: Likewise.
3189         * locale/programs/ld-paper.c: Likewise.
3190         * locale/programs/ld-telephone.c: Likewise.
3191         * locale/programs/ld-time.c: Likewise.
3192         * locale/programs/locfile.c: Likewise.
3193         * locale/programs/localedef.c: Likewise.
3194         * locale/programs/localedef.h: Likewise.
3195         * locale/programs/locfile.h: Likewise.  Add declaration for
3196         find_translit.
3197         * locale/programs/simple-hash.c: Add const to first parameter of
3198         find_entry, iterate_table, and lookup.
3199         * locale/programs/simple-hash.h: Likewise.
3200         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
3201         instead.
3202         * include/locale.h: Define __LC_LAST.
3203         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3204
3205 2001-12-07  Geoff Keating  <geoffk@redhat.com>
3206
3207         * sysdeps/powerpc/Dist: Update for recent FP changes.
3208         * sysdeps/powerpc/fpu/Dist: Likewise.
3209
3210 2001-12-07  Andreas Schwab  <schwab@suse.de>
3211
3212         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3213
3214 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3215
3216         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3217         save/restore functions here.
3218         (libm-support): Don't define these functions here.
3219         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3220         functions here.
3221         * sysdeps/powerpc/fe_nomask.c: Move to...
3222         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3223         * sysdeps/powerpc/fprrest.S: Move to...
3224         * sysdeps/powerpc/fpu/fprrest.S: ... here.
3225         * sysdeps/powerpc/fprsave.S: Move to...
3226         * sysdeps/powerpc/fpu/fprsave.S: ... here.
3227
3228 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3229
3230         * sysdeps/unix/sysv/linux/opensock.c: New file.
3231
3232 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3233
3234         * config.make.in (with-fp): Define from configure.
3235         * configure.in: Substitute with_fp.
3236         * configure: Regenerate.
3237         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3238         specified, and don't change FPU environment.
3239
3240 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3241
3242         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3243         * assert/assert.c: Check result of __asprintf call and don't use
3244         string if it failed.
3245         * assert/assert-perr.c: Likewise.
3246         * inet/rcmd.c: Likewise.
3247         * locale/programs/localedef.c (main): Check result of
3248         construct_output_path and exit if it failed.
3249         (construct_output_path): Check result of asprintf and mkdir calls and
3250         fail if they failed.
3251         * posix/getopt.c: Check result of __asprintf calls and fail if
3252         they failed.
3253         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3254
3255 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3256
3257         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3258         patch.
3259         * sysdeps/generic/strncase.c: Likewise.
3260         * string/tester.c: Add tests for strcasecmp and strncasecmp.
3261
3262 2001-12-05  Geoff Keating  <geoffk@redhat.com>
3263
3264         * scripts/cpp: Test the exit status from 'type', not 'awk'.
3265
3266         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3267         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3268         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3269         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3270         * sysdeps/powerpc/fclrexcpt.c: Move to...
3271         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3272         * sysdeps/powerpc/fpu_control.h: Move to...
3273         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3274
3275 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3276
3277         * iconvdata/ibm1129.h: Remove duplicate mappings.
3278         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
3279         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3280         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3281
3282         * timezone/zic.c: Fix handling of turnaround times.
3283         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3284
3285 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
3286
3287         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3288         overflow problem.
3289
3290 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3291
3292         * posix/regex.c: For use outside glibc defined bounded pointer
3293         macros here.  Patch by Jim Meyering <jim@meyering.net>.
3294
3295         * iconvdata/Makefile (modules): Add TCVN5712-1.
3296         * iconvdata/TESTS: Add TCVN5712-1.
3297         * iconvdata/gconv-modules: Likewise.
3298         * iconvdata/tcvn5712-1.c: New file.
3299         * iconvdata/testdata/TCVN-5712: New file.
3300         * iconvdata/testdata/TCVN-5712..UTF8: New file.
3301
3302 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
3303
3304         * iconvdata/cp1258.c: Optimize conversion from UCS4.
3305
3306 2001-12-02  Roland McGrath  <roland@frob.com>
3307
3308         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3309
3310         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3311         Reported by Jeff Bailey <jbailey@nisa.net>.
3312
3313         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3314         Reported by Jeff Bailey <jbailey@nisa.net>.
3315
3316         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3317         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3318         Reported by Jeff Bailey <jbailey@nisa.net>.
3319
3320 2001-12-01  Roland McGrath  <roland@frob.com>
3321
3322         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3323         missing backslash in test arguments.
3324         * sysdeps/mach/hurd/configure: Regenerated.
3325
3326 2001-11-26  Roland McGrath  <roland@frob.com>
3327
3328         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3329         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3330
3331 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
3332
3333         * iconvdata/Makefile (modules): Add ARMSCII-8.
3334         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3335         * iconvdata/armscii-8.c: New file.
3336
3337 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3338
3339         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3340         don't match, fix {{a,b},c} globbing, clean up.
3341         Patch by Flavio Veloso <flaviovs@magnux.com>.
3342         * posix/globtest.sh: Add new tests.
3343
3344 2001-11-29  Andreas Jaeger  <aj@suse.de>
3345
3346         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3347         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3348
3349         * sysdeps/generic/abort.c: Include libioP.h for
3350         _IO_flush_all_lockp prototype.
3351
3352 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
3353
3354         * posix/regex.h: Define __restrict_arr correctly.
3355
3356 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
3357
3358         * iconvdata/ibm1163.c: New file.
3359         * iconvdata/ibm1163.h: New file.
3360         * iconvdata/ibm1164.c: New file.
3361         * iconvdata/ibm1164.h: New file.
3362         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3363         * iconvdata/Makefile: Likewise.
3364         * iconvdata/testdata/IBM1163: New file.
3365         * iconvdata/testdata/IBM1163..UTF8: New file.
3366         * iconvdata/testdata/IBM1164: New file.
3367         * iconvdata/testdata/IBM1164..UTF8: New file.
3368         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3369
3370         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
3371         * iconvdata/ibm1124.h: Likewise.
3372         * iconvdata/ibm1132.h: Likewise.
3373         * iconvdata/ibm1133.h: Likewise.
3374         * iconvdata/ibm1160.h: Likewise.
3375         * iconvdata/ibm1161.h: Likewise.
3376         * iconvdata/ibm1162.h: Likewise.
3377         * iconvdata/ibm856.h: Likewise.
3378         * iconvdata/ibm922.h: Likewise.
3379         * iconvdata/ibm930.h: Likewise.
3380         * iconvdata/ibm932.h: Likewise.
3381         * iconvdata/ibm933.h: Likewise.
3382         * iconvdata/ibm935.h: Likewise.
3383         * iconvdata/ibm937.h: Likewise.
3384         * iconvdata/ibm939.h: Likewise.
3385         * iconvdata/ibm943.h: Likewise.
3386         * iconvdata/ibm930.c: Pretty printing.
3387         * iconvdata/ibm937.c: Avoid access accross array boundary.
3388
3389         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3390         the current locale's codeset.
3391         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3392         empty input string.
3393         * iconv/iconv_prog.c: Pass empty strings as default value for to-
3394         and from-charset.  Don't determine locale's charset here.
3395
3396         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
3397         as the old _IO_flush_all but lock only if parameter is nonzero.
3398         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3399         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3400         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3401         if libio is used [PR libc/2575].
3402
3403 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
3404
3405         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3406         __signbitl): Only define for ISO C99.
3407
3408 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
3409
3410         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3411         herrnop to NETDB_INTERNAL if we run out of buffer space.
3412
3413 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * nss/nss_files/files-XXX.c (internal_getent): Correct input
3416         overflow test for platforms with signed char.
3417         Reported by Andrew Haley <aph@cambridge.redhat.com>.
3418
3419 2001-11-28  Bruno Haible  <bruno@clisp.org>
3420
3421         * locale/programs/simple-hash.c (lookup_2): Remove function.
3422         (insert_entry_2): Call lookup instead of lookup_2.
3423
3424 2001-03-04  Bruno Haible  <bruno@clisp.org>
3425
3426         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3427
3428 2001-10-31  Bruno Haible  <bruno@clisp.org>
3429
3430         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
3431
3432 2001-03-21  Bruno Haible  <bruno@clisp.org>
3433
3434         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
3435         chokes on empty macro arguments.
3436         * intl/plural.y: Add #pragma for alloca on AIX 3.
3437
3438 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
3439
3440         * intl/dcigettext.c (guess_category_value): Only implement for
3441         glibc.  Otherwise rely on function _nl_locale_name which isn't
3442         present in the glibc sources.
3443
3444 2001-09-24  Bruno Haible  <bruno@clisp.org>
3445
3446         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
3447         transliteration when building on a glibc system but outside glibc.
3448
3449 2001-09-22  Bruno Haible  <bruno@clisp.org>
3450
3451         * intl/plural-eval.c: New file, extracted from dcigettext.c.
3452         * intl/dcigettext.c (plural_eval): Remove function, moved to
3453         intl/plural-eval.c.
3454         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
3455         Include plural-eval.c.
3456
3457 2001-09-22  Bruno Haible  <bruno@clisp.org>
3458
3459         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
3460         don't start with a digit; nplurals must be positive.
3461
3462 2001-09-02  Bruno Haible  <bruno@clisp.org>
3463
3464         * intl/plural-exp.h: New file, extracted from gettextP.h.
3465         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
3466         * intl/gettextP.h (struct expression, struct parse_args,
3467         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
3468         * intl/loadmsgcat.c: Include plural-exp.h.
3469         (PLURAL_PARSE): Move macro to plural-exp.h.
3470         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
3471         plural-exp.c.
3472         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
3473         EXTRACT_PLURAL_EXPRESSION.
3474         (_nl_unload_domain): Update.
3475         * intl/dcigettext.c: Include plural-exp.h.
3476         * intl/plural.y: Include plural-exp.h, not gettextP.h.
3477         (FREE_EXPRESSION): Move macro to plural-exp.h.
3478         * intl/Makefile (routines): Add plural-exp.
3479         (distribute): Add plural-exp.h.
3480
3481 2001-07-28  Bruno Haible  <bruno@clisp.org>
3482
3483         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
3484         isdigit, tolower argument to 'unsigned char'.
3485         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
3486         'unsigned char'.
3487         * intl/localealias.c (read_alias_file): Cast isspace argument to
3488         'unsigned char'.
3489
3490 2001-10-20  Bruno Haible  <bruno@clisp.org>
3491
3492         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
3493         anyway.)
3494         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
3495         with the variable 'index' in plural_lookup.
3496         * intl/l10nflist.c (strchr): Likewise.
3497         * intl/localealias.c (strchr): Likewise.
3498
3499         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
3500         * intl/bindtextdom.c: Likewise.
3501         * intl/dcigettext.c: Likewise.
3502         * intl/dgettext.c: Likewise.
3503         * intl/dngettext.c: Likewise.
3504         * intl/explodename.c: Likewise.
3505         * intl/finddomain.c: Likewise.
3506         * intl/gettext.c: Likewise.
3507         * intl/l10nflist.c: Likewise.
3508         * intl/loadmsgcat.c: Likewise.
3509         * intl/localealias.c: Likewise.
3510         * intl/ngettext.c: Likewise.
3511         * intl/textdomain.c: Likewise.
3512         * intl/gettext.h: Assume <limits.h> exists.
3513
3514 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
3515
3516         * stdio-common/Makefile (tests): Add scanf11.
3517         * stdio-common/scanf11.c: New file.
3518
3519 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
3520
3521         * version.h (RELEASE): Define as development.
3522         (VERSION): Set to 2.2.90.
3523
3524 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
3525
3526         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
3527         * nis/nss_nis/nis-grp.c: Likewise.
3528         * nis/nss_nisplus/nisplus-grp.c: Likewise.
3529
3530         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
3531         * nis/nss_nis/nis-pwd.c: Likewise.
3532         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3533
3534         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
3535         * nis/nss_nisplus/nisplus-parser.c: Likewise.
3536         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3537
3538         * nscd/grpcache.c: Use strtoul instead of atol.
3539         * nscd/pwdcache.c: Likewise.
3540         * nss/getent.c: Likewise.
3541
3542 2001-11-27  Paul Eggert  <eggert@twinsun.com>
3543
3544         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3545         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3546
3547 2001-11-19  Bruno Haible  <bruno@clisp.org>
3548
3549         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
3550         90%.
3551         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
3552         improves the quality of the hash function, especially for short
3553         strings.
3554
3555 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
3556
3557         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
3558         are found call conv_error and not input_error [PR libc/2669].
3559
3560         * math/bits/mathcalls.h: Mark ceil and floor as const.
3561         Reported by David Mosberger.
3562
3563 2001-11-21  Jim Meyering  <meyering@lucent.com>
3564
3565         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
3566         Define to be __-prefixed.
3567         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
3568
3569 2001-11-26  Andreas Jaeger  <aj@suse.de>
3570
3571         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
3572         avoid warning.
3573
3574 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
3575
3576         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
3577         initialization.
3578
3579         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
3580         unused variables.  Fix threshold for returning 1.0.
3581
3582         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
3583         argument.
3584
3585         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
3586         remove unused variables.
3587
3588         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
3589
3590         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
3591         include local math header files.
3592
3593 2001-11-22  Andreas Jaeger  <aj@suse.de>
3594
3595         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
3596         avoid warning.
3597
3598 2001-11-21  Andreas Jaeger  <aj@suse.de>
3599
3600         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
3601
3602         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
3603         sys/debugreg.h
3604
3605 2001-11-15  Andreas Jaeger  <aj@suse.de>
3606
3607         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
3608         compilers that support it.
3609
3610         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
3611         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3612         * stdlib/stdlib.h: Likewise.
3613
3614 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
3615
3616         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
3617         statement with gotos.
3618         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
3619
3620 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
3621
3622         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
3623
3624 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
3625
3626         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
3627
3628 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
3629             H.J. Lu  <hjl@gnu.org>
3630
3631         * Versions.def (libc): Add GCC_3.0.
3632         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
3633         if gcc supports this flag.
3634         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
3635         (gcc3): Allow glibc to be compiled with gcc 3.x.
3636         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
3637         * config.make.in (static-libgcc, unwind-find-fde): Add.
3638         * Makerules (build-shlib-helper, build-module-helper): Use it.
3639         * scripts/versions.awk: Make sure GLIBC_ versions come first.
3640         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
3641         necessary.
3642         (_fini): Call __deregister_frame_info_bases if
3643         __register_frame_info_bases was used to register.
3644         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
3645         for GLIBC_2.0.
3646         (__register_frame_info_bases, __register_frame_info_table_bases,
3647         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
3648         * elf/Makefile (routines): Add unwind-dw2-fde.
3649         (shared-only-routines): Add unwind-dw2-fde.
3650         * sysdeps/alpha/gccframe.h: New file.
3651         * sysdeps/arm/gccframe.h: New file.
3652         * sysdeps/generic/framestate.c: New file.
3653         * sysdeps/generic/dwarf2.h: New file.
3654         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
3655         * sysdeps/generic/unwind-dw2-fde.c: New file.
3656         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
3657         * sysdeps/generic/unwind-dw2-fde.h: New file.
3658         * sysdeps/generic/unwind-dw2.c: New file.
3659         * sysdeps/generic/unwind-pe.h: New file.
3660         * sysdeps/generic/unwind.h: New file.
3661         * sysdeps/hppa/gccframe.h: New file.
3662         * sysdeps/i386/gccframe.h: New file.
3663         * sysdeps/m68k/gccframe.h: New file.
3664         * sysdeps/mips/gccframe.h: New file.
3665         * sysdeps/powerpc/gccframe.h: New file.
3666         * sysdeps/s390/gccframe.h: New file.
3667         * sysdeps/sh/gccframe.h: New file.
3668         * sysdeps/sparc/gccframe.h: New file.
3669         * sysdeps/vax/gccframe.h: New file.
3670         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3671         Set on all architectures except ia64.
3672         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
3673         for i386.
3674         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
3675         __deregister_frame_info): Move to elf/Versions.
3676         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
3677         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3678         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3679         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
3680         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3681         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3682         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3683         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3684         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3685         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
3686         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3687         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3688         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3689         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3690         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3691         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3692         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3693         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3694
3695 2001-11-15  Jeff Law  <law@redhat.com>
3696
3697         * posix/regex.c (uintptr_t): Do not provide a definition if the
3698         system provided one.
3699
3700 2001-11-13  Roland McGrath  <roland@frob.com>
3701
3702         * stdio-common/tmpfile.c: Moved to ...
3703         * sysdeps/generic/tmpfile.c: ... here.
3704         * sysdeps/mach/hurd/tmpfile.c: New file.
3705
3706         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
3707         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
3708         (fopenport): Define as weak alias.
3709
3710         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
3711         * libio/libioP.h: ... to here.
3712
3713 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
3714
3715         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
3716         program header twice.  Construct list with the needed information.
3717
3718 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
3719
3720         * po/ca.po: Update from translation team.
3721
3722         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
3723         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
3724         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
3725         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3726
3727 2001-11-10  Andreas Jaeger  <aj@suse.de>
3728
3729         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
3730         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3731         Contributed by Stephen L Moshier <moshier@mediaone.net>.
3732
3733 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
3734
3735         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
3736         correctly.
3737         * elf/dl-load.c (is_dst): New function.
3738         (_dl_dst_count): Use is_dst to check for DST variable.
3739         (_dl_dst_substitute): Likewise.
3740
3741 2001-11-09  Roland McGrath  <roland@frob.com>
3742
3743         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
3744         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
3745         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
3746         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
3747         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
3748         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
3749         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
3750         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
3751         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
3752         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
3753         * sysdeps/mach/hurd/powerpc/Dist: New file.
3754
3755         * hurd/privports.c (__get_privileged_ports):
3756         Only contact the proc server if necessary for this call.
3757         Suggested by Neal H Walfield <neal@cs.uml.edu>.
3758         Check error return for mach_port_mod_refs.
3759
3760 2001-11-09  Andreas Schwab  <schwab@suse.de>
3761
3762         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
3763
3764 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
3765
3766         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
3767         object is always the last in the list.
3768         (_dl_map_object_from_fd): Delete code to remove from object list
3769         when DF_1_NOOPEN is seen.  This is done in lose.
3770
3771 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
3772
3773         * elf/dl-object.c (_dl_new_object): Various small optimizations.
3774
3775 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
3776
3777         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
3778         HWCAP_CHECK macro code.
3779
3780         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
3781         Now returns MAP_FAILED on error.
3782         * elf/rtld.c: Adjust caller.
3783         * sysdeps/generic/dl-cache.c: Likewise.
3784         * sysdeps/generic/ldsodefs.h: Adjust description.
3785
3786         * elf/dl-version.c (match_symbol): Optimize error handling for size.
3787         (_dl_check_map_versions): Likewise.
3788
3789 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
3790
3791         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
3792         _dl_signal_error directly, always use lose.  Set fd to -1 after
3793         file is closed.
3794         (lose): Don't call close if fd == -1.
3795
3796 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
3797
3798         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
3799          Also fix typo @code {mbsinit} to @code{mbsinit}.
3800
3801 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
3802
3803         * elf/dl-profile.c: Replace state variable with simple flag named
3804         running.  Remove commented-out code.
3805
3806         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
3807         (_dl_init_paths): Likewise.
3808         (_dl_map_object_from_fd): Likewise.
3809         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3810
3811 2001-11-06  Roland McGrath  <roland@frob.com>
3812
3813         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
3814         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
3815
3816         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
3817         sysdeps/powerpc/elf/sysdep.h.
3818         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
3819
3820 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
3821
3822         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
3823         speed.
3824         (process_envvars): Some more optimizations.
3825         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
3826
3827         * elf/elf.h: Add dynamic tag definitions for prelinking.
3828
3829         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
3830         Rewrite code to remove environment varables for SUID binaries.
3831         Small optimization in LD_PROFILE handling.
3832         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
3833         changes.
3834         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3835
3836         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
3837
3838         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
3839         strings.  Change type of second parameter.
3840         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
3841         for last change.
3842
3843         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
3844
3845 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3846
3847         * manual/string.texi: Fix typos.
3848         * manual/examples/argp-ex2.c: Likewise.
3849
3850 2001-11-05  Roland McGrath  <roland@frob.com>
3851
3852         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
3853         the more-specific unix/sysv/linux/powerpc file and breaks everything.
3854         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
3855         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
3856         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
3857         here, put under [__ELF__].
3858
3859 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
3860
3861         * manual/charset.texi: Extensive editing work.
3862         * manual/nss.texi: Likewise.
3863         Changes by Dennis Grace <dgrace@us.ibm.com>.
3864
3865 2001-11-04  Roland McGrath  <roland@frob.com>
3866
3867         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
3868         parameter to dir_mkfile.
3869
3870 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
3871
3872         * string/bits/string2.h (__strndup): If n is smaller than len, set
3873         len to n + 1.
3874         * string/tester.c (test_strndup): New function.
3875         (main): Call it.
3876
3877 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
3878
3879         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
3880
3881         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
3882         * scripts/cpp: New file.
3883
3884         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
3885         for rtld_search_dirs content.  Minor optimizations.
3886
3887 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
3888
3889         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
3890         avoiding unnecessary duplication.
3891
3892 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
3893
3894         * elf/dl-load.c (_dl_map_object): If library was found using
3895         LD_LIBRARY_PATH, don't try RUNPATH list.
3896
3897 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3898
3899         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
3900         Correct second argument of register_dump call.
3901         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
3902         Likewise.
3903
3904 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
3905
3906         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
3907         modules.
3908         * iconvdata/TESTS: Likewise.
3909         * iconvdata/gconv-modules: Likewise.
3910         * iconvdata/ibm1132.c: New file.
3911         * iconvdata/ibm1132.h: New file.
3912         * iconvdata/ibm1133.c: New file.
3913         * iconvdata/ibm1133.h: New file.
3914         * iconvdata/ibm1162.c: New file.
3915         * iconvdata/ibm1162.h: New file.
3916         * iconvdata/testdata/IBM1132: New file.
3917         * iconvdata/testdata/IBM1132..UTF8: New file.
3918         * iconvdata/testdata/IBM1133: New file.
3919         * iconvdata/testdata/IBM1133..UTF8: New file.
3920         * iconvdata/testdata/IBM1162: New file.
3921         * iconvdata/testdata/IBM1162..UTF8: New file.
3922         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
3923
3924         * string/string.h: Fix typo in comment.
3925         * wcsmbs/wchar.h: Likewise.
3926
3927 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
3928
3929         * manual/getopt.texi (getopt_long, getopt_long_only): Include
3930         const in type of longopts parameter.
3931
3932 2001-10-29  Andreas Jaeger  <aj@suse.de>
3933
3934         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
3935
3936 2001-10-29  Kevin Ryde  <user42@zip.com.au>
3937
3938         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
3939         output, clarify `#' behaviour on 0.
3940         (Floating-Point Conversions): Clarify that %g only uses %e when
3941         the exponent would be greater than 1.
3942
3943 2001-10-28  Roland McGrath  <roland@frob.com>
3944
3945         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
3946         * sysdeps/mach/powerpc/machine-sp.h: New file.
3947         * sysdeps/mach/powerpc/sysdep.h: New file.
3948         * sysdeps/mach/powerpc/thread_state.h: New file.
3949
3950         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
3951         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
3952         expect to need the same thing on every platform.
3953
3954         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
3955         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
3956
3957         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
3958         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
3959         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
3960         Move all these assembly-related definitions to ...
3961         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
3962
3963         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
3964         by Peter Bruin <pjbruin@dds.nl>.
3965
3966         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
3967         packing results for a `poll' call.
3968
3969 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
3970
3971         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
3972         correctly.
3973         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
3974         bracket expression.
3975
3976         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3977         nrules value.
3978         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
3979
3980 2001-10-24  H.J. Lu  <hjl@gnu.org>
3981
3982         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
3983         Use __BEGIN_DECLS/__END_DECLS around prototypes.
3984         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
3985
3986 2001-10-21  Jim Meyering  <meyering@lucent.com>
3987
3988         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
3989         this code would end up calling gettext even in packages built
3990         with --disable-nls.
3991         * posix/getopt.c (_): Likewise.
3992         * posix/regex.c (_): Likewise.
3993
3994 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
3995
3996         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
3997         lookup not ip6.int.
3998         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
3999         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4000
4001 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4002
4003         * misc/sys/cdefs.h (__attribute_used__): Define.
4004         * elf/rtld.c (_dl_start): Add __attribute_used__.
4005         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4006
4007 2001-10-25  Andreas Schwab  <schwab@suse.de>
4008
4009         * stdlib/a64l.c: Expect least significant digit first.
4010         * stdlib/l64a.c: Produce least significant digit first.
4011         * stdlib/Makefile (tests): Add test-a64l.
4012         * stdlib/test-a64l.c: New file.
4013         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4014
4015 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
4016
4017         * po/sk.po: Update from translation team.
4018
4019 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
4020
4021         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4022
4023 2001-10-18  Andreas Schwab  <schwab@suse.de>
4024
4025         * math/libm-test.inc (print_ulps): Print ulp values rounded to
4026         next whole number.
4027         (print_function_ulps): Likewise.
4028         (print_complex_function_ulps): Likewise.
4029         (print_max_error): Likewise.
4030         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
4031
4032 2001-10-16  Andreas Schwab  <schwab@suse.de>
4033
4034         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4035         implementation.
4036
4037         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4038         BSD_SETJMP or BSD__SETJMP is defined, resp.
4039         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4040         a tail call to __sigsetjmp that would require extending the
4041         caller's frame.
4042         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4043         * sysdeps/m68k/bsd-setjmp.S: Deleted.
4044         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4045         Reported by Jes Sorensen <jes@trained-monkey.org>.
4046
4047 2001-10-16  Andreas Jaeger  <aj@suse.de>
4048
4049         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4050         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
4051         close PR libc/2589.
4052
4053 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
4054
4055         * po/ca.po: New file.  Contributed by the translation team.
4056
4057 2001-10-15  Ralf Baechle  <ralf@gnu.org>
4058
4059         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4060         a varargs prototype.  Remove dependency from kernel header files.
4061
4062         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4063         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4064
4065 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4066
4067         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4068         to generate hexadecimal identifier.
4069         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4070
4071 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
4072
4073         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4074
4075 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4076
4077         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4078         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4079         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4080
4081         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4082         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4083         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4084         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4085         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4086         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4087
4088         * timezone/africa: Update from tzdata2001d.
4089         * timezone/asia: Likewise.
4090         * timezone/australasia: Likewise.
4091         * timezone/backward: Likewise.
4092         * timezone/europe: Likewise.
4093         * timezone/leapseconds: Likewise.
4094         * timezone/northamerica: Likewise.
4095         * timezone/southamerica: Likewise.
4096         * timezone/zone.tab: Likewise.
4097
4098 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4099
4100         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4101         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4102
4103 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
4104
4105         * elf/elf.h (PT_TLS): New definition.
4106
4107 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
4108
4109         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4110         bits/errno.h
4111
4112 2001-10-07  Roland McGrath  <roland@frob.com>
4113
4114         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4115
4116 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
4117
4118         * elf/elf.h: Add more ELFOSABI_* constants.
4119
4120 2001-10-04  Ben Collins  <bcollins@debian.org>
4121
4122         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4123         decleration of __need_wchar_t.
4124
4125 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
4126
4127         * string/bits/string2.h (__strsep_g): Add prototype.
4128         (__strsep): Use it.
4129         * string/Versions (__strsep): Remove.
4130         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4131
4132 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
4133
4134         * manua/llio.texi: Clarify file references added by mmap.
4135         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4136
4137 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
4138
4139         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4140         Add sc_loadrs and sc_rbs_bas to match current kernel.
4141
4142 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4143
4144         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4145
4146         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4147
4148 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4149
4150         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4151         object has been bumped because of relocation dependency, avoid
4152         duplicates in l_scope.
4153         (show_scope): Fix typos.
4154         * elf/Makefile: Add rules to build and run reldep6.
4155         * elf/reldep6.c: New file.
4156         * elf/reldep6mod0.c: New file.
4157         * elf/reldep6mod1.c: New file.
4158         * elf/reldep6mod2.c: New file.
4159         * elf/reldep6mod3.c: New file.
4160         * elf/reldep6mod4.c: New file.
4161
4162 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
4163
4164         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4165         sparc64_fixup_plt.
4166         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
4167         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4168         for non-lazy binding. Fix .plt[32768+] handling.
4169         (elf_machine_plt_value): Don't add addend.
4170         (elf_machine_rela): Call sparc64_fixup_plt instead of
4171         elf_machine_fixup_plt.
4172         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4173         dynamic linker at 0xfffff800XXXXXXXX.
4174
4175         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4176
4177 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
4178
4179         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4180
4181 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
4182
4183         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4184         declare __cmsg_data field if its size would be bigger than 0.
4185         (CMSG_DATA): Adjust accordingly.
4186         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4187         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4188         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4189         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4190         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4191         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4192         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4193
4194 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
4195
4196         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4197         * iconvdata/testdata/IBM1160: New file.
4198         * iconvdata/testdata/IBM1160..UTF8: New file.
4199         * iconvdata/testdata/IBM1161: New file.
4200         * iconvdata/testdata/IBM1161..UTF8: New file.
4201         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4202
4203 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4204
4205         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4206         UL_SETFSIZE computations better.
4207
4208         * rt/Makefile: Remove use of filter for librt again.
4209
4210         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4211         UL_SETFSIZE computations better.
4212
4213         * string/Versions: Export __strsep for GLIBC_2.2.5.
4214         * string/bits/string2.h: Define all __STRING_INLINE functions if
4215         _FORCE_INLINES is defined.
4216         Use int instead of char of parameter types.
4217         (__strsep): Don't use __strsep_g.  Don't define it.
4218         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4219         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4220         __strcpy_small.
4221         (__stpcpy_a_small): Renamed from __stpcpy_small.
4222         (__strcspn_c1): Don't define if _FORCE_INLINES.
4223         (__strspn_c1): Likewise.
4224
4225 2001-09-22  Ben Collins  <bcollins@debian.org>
4226
4227         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4228         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
4229         * sysdeps/ia64/bits/sigaction.h: Likewise.
4230         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4231
4232 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4233
4234         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4235
4236 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
4237
4238         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4239
4240 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4241
4242         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4243
4244 2001-09-20  H.J. Lu  <hjl@gnu.org>
4245
4246         * include/dlfcn.h (__RTLD_SPROF): New definiton.
4247         * elf/dl-open.c (dl_open_worker): Return immediately after loading
4248         for __RTLD_SPROF.
4249         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4250         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4251
4252 2001-09-20  H.J. Lu  <hjl@gnu.org>
4253
4254         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4255         don't add 1.
4256
4257 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4258
4259         * nss/getent.c: Accept -s parameter to overwrite rules in
4260         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
4261
4262         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4263         with as many ".0" as necessary to form a complete address
4264         inet_network understands.
4265
4266         * nss/getent.c: Various cleanups.  Use simpler and fewer function
4267         calls.
4268
4269 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4270
4271         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4272         _JMPBUF_UNWINDS.
4273         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4274
4275 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4276
4277         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4278         IBM1161.
4279         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4280         * iconvdata/ibm1160.c: New file.
4281         * iconvdata/ibm1160.h: New file.
4282         * iconvdata/ibm1161.c: New file.
4283         * iconvdata/ibm1161.h: New file.
4284         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4285
4286 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
4287
4288         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4289         difference between base address and first PT_LOAD's virtual address,
4290         not the base address.
4291
4292 2001-09-11  Tom Rix  <trix@redhat.com>
4293
4294         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
4295         ifdef for __getopt_clean_environment.
4296         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4297
4298 2001-09-22  Andreas Jaeger  <aj@suse.de>
4299
4300         * elf/reldep4.c (main): Add proper prototype to fix warning.
4301
4302         * elf/reldep5.c (main): Remove unused variable.
4303
4304         * math/math_private.h: Add prototypes.
4305
4306 2001-09-21  Andreas Jaeger  <aj@suse.de>
4307
4308         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4309         * sysdeps/x86_64/Dist: New file.
4310         * sysdeps/x86_64/soft-fp/Dist: New file.
4311
4312         * sysdeps/gnu/Dist: Remove eval.c.
4313
4314 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
4315
4316         * malloc/memusage.c (realloc): Don't count already allocated
4317         memory in the sums.
4318         (me): Always use dlsym() to find the real implementations.
4319
4320         * malloc/memusage.sh: Make -n option actually do something.
4321
4322 2001-09-20  Andreas Jaeger  <aj@suse.de>
4323
4324         * elf/elf.h (R_390_NUM): Correct value.
4325
4326         * Versions.def: Add missing versions 2.2.3 for libthread_db and
4327         libpthread.
4328
4329         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4330         for x86-64, install x86-64 into */lib64.
4331
4332         * shlib-versions: Add x86-64.
4333
4334         * elf/elf.h: Add x86-64 relocations.
4335
4336 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
4337
4338         * po/fr.po: Update from translation team.
4339
4340 2001-09-19  Andreas Jaeger  <aj@suse.de>
4341
4342         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4343         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4344         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4345         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4346         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4347         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4348         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4349         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4350         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4351         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4352         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4353         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4354         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4355         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4356         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4357         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4358         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4359         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4360         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4361         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4362         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4363         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4364         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4365         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4366         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4367         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4368         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4369         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4370         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4371         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4372         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4373         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4374         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4375         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4376         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4377         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4378         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4379         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4380         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4381         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4382         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4383         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4384         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4385         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4386         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4387         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4388         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4389         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4390         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4391         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4392         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4393         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4394         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4395         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4396         * sysdeps/unix/x86_64/sysdep.S: New file.
4397         * sysdeps/unix/x86_64/sysdep.h: New file.
4398         * sysdeps/x86_64/Implies: New file.
4399         * sysdeps/x86_64/Makefile: New file.
4400         * sysdeps/x86_64/Versions: New file.
4401         * sysdeps/x86_64/__longjmp.S: New file.
4402         * sysdeps/x86_64/abort-instr.h: New file.
4403         * sysdeps/x86_64/atomicity.h: New file.
4404         * sysdeps/x86_64/bits/endian.h: New file.
4405         * sysdeps/x86_64/bits/setjmp.h: New file.
4406         * sysdeps/x86_64/bits/string.h: New file.
4407         * sysdeps/x86_64/bp-asm.h: New file.
4408         * sysdeps/x86_64/bsd-_setjmp.S: New file.
4409         * sysdeps/x86_64/bsd-setjmp.S: New file.
4410         * sysdeps/x86_64/dl-machine.h: New file.
4411         * sysdeps/x86_64/elf/initfini.c: New file.
4412         * sysdeps/x86_64/elf/start.S: New file.
4413         * sysdeps/x86_64/ffs.c: New file.
4414         * sysdeps/x86_64/ffsll.c: New file.
4415         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4416         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4417         * sysdeps/x86_64/fpu/e_acosl.c: New file.
4418         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4419         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4420         * sysdeps/x86_64/fpu/e_expl.c: New file.
4421         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4422         * sysdeps/x86_64/fpu/e_log10l.S: New file.
4423         * sysdeps/x86_64/fpu/e_log2l.S: New file.
4424         * sysdeps/x86_64/fpu/e_logl.S: New file.
4425         * sysdeps/x86_64/fpu/e_powl.S: New file.
4426         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4427         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4428         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4429         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4430         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
4431         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
4432         * sysdeps/x86_64/fpu/fegetenv.c: New file.
4433         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
4434         * sysdeps/x86_64/fpu/fegetround.c: New file.
4435         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
4436         * sysdeps/x86_64/fpu/fesetenv.c: New file.
4437         * sysdeps/x86_64/fpu/fesetround.c: New file.
4438         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
4439         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
4440         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
4441         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
4442         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
4443         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
4444         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
4445         * sysdeps/x86_64/fpu/s_atanl.c: New file.
4446         * sysdeps/x86_64/fpu/s_cosl.S: New file.
4447         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
4448         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
4449         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
4450         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
4451         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
4452         * sysdeps/x86_64/fpu/s_logbl.c: New file.
4453         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
4454         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
4455         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
4456         * sysdeps/x86_64/fpu/s_rintl.c: New file.
4457         * sysdeps/x86_64/fpu/s_significandl.c: New file.
4458         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
4459         * sysdeps/x86_64/fpu/s_sinl.S: New file.
4460         * sysdeps/x86_64/fpu/s_tanl.S: New file.
4461         * sysdeps/x86_64/gmp-mparam.h: New file.
4462         * sysdeps/x86_64/hp-timing.c: New file.
4463         * sysdeps/x86_64/hp-timing.h: New file.
4464         * sysdeps/x86_64/htonl.S: New file.
4465         * sysdeps/x86_64/memusage.h: New file.
4466         * sysdeps/x86_64/setjmp.S: New file.
4467         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
4468         * sysdeps/x86_64/stackinfo.h: New file.
4469         * sysdeps/x86_64/sysdep.h: New file.
4470         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
4471
4472         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
4473         L Moshier.
4474
4475 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4476
4477         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
4478         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
4479
4480 2001-09-18  Andreas Schwab  <schwab@suse.de>
4481
4482         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
4483         list, now that l_scope is a pointer.
4484
4485         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
4486         scope list.
4487
4488 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4489
4490         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
4491         (elf_machine_rela_relative): Add a missing declaration.
4492
4493 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
4494
4495         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
4496         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
4497         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
4498         ldd-rewrite scripts.
4499
4500 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4501
4502         * elf/ldd.bash.in: Update copyright message.
4503
4504 2001-09-17  H.J. Lu  <hjl@gnu.org>
4505
4506         * hurd/hurdmalloc.c (bcopy): Removed.
4507         (realloc): Replace bcopy with memcpy.
4508         * hurd/path-lookup.c (file_name_path_scan): Likewise.
4509         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
4510         * sunrpc/rpcinfo.c (pmapdump): Likewise.
4511
4512         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
4513         (gethostbyaddr): Likewise.
4514         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
4515
4516 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4517
4518         * sysdeps/gnu/eval.c: Removed.
4519
4520 2001-09-18  Andreas Jaeger  <aj@suse.de>
4521
4522         * sysdeps/i386/fpu/s_logbl.S: Move to ...
4523         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
4524
4525         * sysdeps/i386/fpu/s_rintl.S: Move to ...
4526         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
4527
4528         * sysdeps/i386/fpu/s_significandl.S: Move to ...
4529         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
4530
4531 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
4532
4533         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4534         nrules value.
4535
4536 2001-09-14  H.J. Lu  <hjl@gnu.org>
4537
4538         * sysdeps/mips/fpu/libm-test-ulps: Updated.
4539
4540 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
4541
4542         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
4543         Patch by Florian La Roche <laroche@redhat.com>.
4544
4545         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
4546
4547         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
4548         ETHER_CRC_LEN.
4549
4550 2001-09-14  Andreas Schwab  <schwab@suse.de>
4551
4552         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
4553         Sumner <bls@sgi.com>.
4554         * posix/execlp.c: Likewise.
4555
4556 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
4557
4558         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
4559         is already found earlier in the search scope.
4560
4561 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
4562
4563         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
4564         filter.
4565
4566 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
4567
4568         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
4569
4570 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
4571
4572         * config.h.in: Enforce optimization to be used.
4573         * Makeconfig (preprocess-versions): Define ASSEMBLER.
4574         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
4575         * posix/Makefile (annexc-CFLAGS): Define to -O.
4576         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
4577
4578 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
4579
4580         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
4581         Patch by Stephan Kulow.
4582
4583 2001-09-08  Ben Collins  <bcollins@debian.org>
4584
4585         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
4586         usage of RESOLVE() (r_type, not reloc->r_type).
4587
4588 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
4589
4590         * elf/dl-object.c: Avoid allocating extra memory block for name.
4591         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
4592         allocated separately.
4593         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4594
4595 2001-09-08  H.J. Lu  <hjl@gnu.org>
4596
4597         * po/zh_TW.po: Fix a typo.
4598
4599 2001-09-07  Tom Rix  <trix@redhat.com>
4600
4601         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
4602
4603 2001-08-26  Tom Rix  <trix@redhat.com>
4604
4605         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
4606         command line options.
4607         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
4608         * sysdeps/unix/sysv/aix/start.c: Removed.
4609         * sysdeps/unix/sysv/aix/start-libc.c: New file.
4610         * sysdeps/unix/sysv/aix/init-first.c: New file.
4611         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
4612
4613 2001-09-08  Ben Collins  <bcollins@debian.org>
4614
4615         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
4616         * sysdeps/generic/dl-machine.h: Likewise.
4617         * sysdeps/hppa/dl-fptr.c: Likewise.
4618         * sysdeps/ia64/dl-fptr.c: Likewise.
4619         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4620         * sysdeps/mips/dl-machine.h: Likewise.
4621         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4622         * sysdeps/powerpc/dl-machine.c: Likewise.
4623
4624 2001-09-07  Ben Collins  <bcollins@debian.org>
4625
4626         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
4627
4628         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
4629
4630 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
4631
4632         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
4633         dependencies if necessary.
4634
4635         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
4636         loaded directly) determine length if l_initfini list by iterating
4637         over its elements.  Minor optimizations.
4638         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
4639         for dependency objects.
4640         If object was already loaded check whether any of the dependencies
4641         is already on the relocation dependency list.  If yes, remove the
4642         latter.  Minor optimizations.
4643         * elf/dl-lookup.c (add_dependency): Add check for self reference of
4644         maps here.  Search l_initfini list only if the object was loaded
4645         directly and not only as a dependency.
4646         (_dl_lookup_symbol): Add relocation dependency also if object
4647         is not in global scope.  Remove test for self-reference here.
4648         (_dl_lookup_versioned_symbol): Likewise.
4649         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
4650         element of first name record.
4651         * elf/loadtest.c: Add some more test to recognize early if an object
4652         wasn't unloaded.
4653         * elf/Makefile: Add rules to build and run reldep5.
4654         * elf/reldep5.c: New file.
4655         * elf/reldepmod5.c: New file.
4656         * elf/reldepmod6.c: New file.
4657
4658         * elf/reldep2.c: Fix typo.
4659
4660 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
4661
4662         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
4663         elements.  Change l_scope to be a pointer only.
4664         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
4665         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
4666         here add searchlist of newly open file to the dependency's scope.
4667         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
4668         only searchlist from its scope.  Free own scope array if necessary.
4669         * elf/Makefile (tests): Add dblload and dblunload now.
4670
4671 2001-09-06  Andreas Jaeger  <aj@suse.de>
4672
4673         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
4674         Stephen L Moshier.
4675
4676 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
4677
4678         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
4679         they both fail.
4680         * elf/dblload.c: New file.
4681         * elf/dblloadmod1.c: New file.
4682         * elf/dblloadmod2.c: New file.
4683         * elf/dblloadmod3.c: New file.
4684         * elf/dblunload.c: New file.
4685
4686 2001-09-04  Richard Henderson  <rth@redhat.com>
4687
4688         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
4689         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
4690
4691 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
4692
4693         Correct very misleading message for error in failed runtime relocation.
4694         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
4695         place of the error.
4696         (_dl_signal_cerror): Likewise.
4697         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4698         * elf/dl-close.c: Likewise.
4699         * elf/dl-deps.c: Likewise.
4700         * elf/dl-load.c: Likewise.
4701         * elf/dl-lookup.c: Likewise.
4702         * elf/dl-open.c: Likewise.
4703         * elf/dl-reloc.c: Likewise.
4704         * elf/dl-sym.c: Likewise.
4705         * elf/dl-version.c: Likewise.
4706         * sysdeps/generic/dl-sysdep.c: Likewise.
4707
4708 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
4709
4710         * iconv/strtab.c (strtabinit): Initialize null Strent.
4711         (newstring): Move len == 0 handling...
4712         (strtabadd): ...here.
4713         If len == 1, return null Strent.
4714         When inserting a suffix of an existing string, check if
4715         it is not equal to some suffix already recorded.
4716         Copy left and right members over if adding longer string.
4717
4718 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
4719
4720         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
4721
4722         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
4723         (__syscall_gethostname): Add prototype.
4724
4725 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
4726
4727         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
4728
4729 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
4730
4731         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
4732
4733 2001-08-27  Roland McGrath  <roland@frob.com>
4734
4735         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
4736         short, copy that much into NAME anyway before returning error.
4737
4738 2001-09-01  Richard Henderson  <rth@redhat.com>
4739
4740         * sysdeps/alpha/elf/Dist: Remove file.
4741         * sysdeps/alpha/elf/Makefile: Remove file.
4742         * sysdeps/alpha/elf/crtbegin.S: Remove file.
4743         * sysdeps/alpha/elf/crtend.S: Remove file.
4744         * sysdeps/alpha/elf/initfini.c: New file.
4745
4746 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
4747
4748         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
4749         * iconv/tst-iconv3.c: Likewise.
4750
4751 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
4752
4753         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
4754
4755 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
4756
4757         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
4758         export it.
4759         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
4760         * iconv/iconv_prog.c (insert_cache): New function.
4761         (print_known_names): If cache is used call insert_cache to use the
4762         information from the cache [PR libc/2509].
4763
4764 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
4765
4766         * time/strptime.c (strptime_internal): Recognize 'l' format and
4767         handle it like 'I' for symmetry with strftime.
4768
4769 2001-08-31  Richard Henderson  <rth@redhat.com>
4770
4771         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
4772         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
4773         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
4774         (print_statistics): Make scalar unsigned long long.
4775         * sysdeps/alpha/hp-timing.h: New file.
4776
4777 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
4778
4779         * stdio-common/perror.c (perror): Save errno early, pass it
4780         down to perror_internal.
4781         (perror_internal): Add errnum argument.
4782
4783 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
4784
4785         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
4786         Don't add old memory content for R_ALPHA_REFQUAD.
4787
4788 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
4789
4790         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
4791         memory correctly.
4792
4793         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
4794         instead of open, __close instead of close, __getpagesize instead
4795         of getpagesize.
4796
4797         * string/argz-stringify.c (__argz_stringify): Use __strnlen
4798         instead of strnlen.
4799         * include/string.h (strndupa): Redefine here to use __strnlen
4800         instead of strnlen.
4801         * string/strndup.c (__strndup): Use __strnlen not strnlen.
4802
4803         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
4804         connected).
4805
4806 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
4807
4808         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
4809         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4810         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4811         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
4812         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
4813         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
4814         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
4815
4816 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
4817
4818         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
4819
4820 2001-08-30  Andreas Jaeger  <aj@suse.de>
4821
4822         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
4823         contributed Stephen L Moshier.
4824
4825 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
4826
4827         * sunrpc/etc.rpc (sgi_fam): Add.
4828
4829 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
4830
4831         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
4832
4833 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
4834
4835         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
4836         first is from a previous call.
4837         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
4838
4839 2001-08-29  Andreas Schwab  <schwab@suse.de>
4840
4841         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
4842
4843 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4844
4845         * config.make.in (INSTALL_SCRIPT): Define.
4846         * Makeconfig (INSTALL_SCRIPT): Define.
4847         * Makerules (do-install-script): New macro to install scripts using
4848         INSTALL_SCRIPT.
4849         (install-bin-script): New rule to install scripts with
4850         do-install-script.
4851         (install-bin-script-nosubdir): New rule.
4852         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
4853         (distinfo-vars): Add $(install-bin-script).
4854         * Rules (others): Likewise.
4855         * Makefile (glibcbug): Install with install-bin-script.
4856         * debug/Makefile (xtrace): Likewise.
4857         (catchsegv): Likewise.
4858         * elf/Makefile (ldd): Likewise.
4859         * malloc/Makefile (mtrace): Likewise.
4860         * timezone/Makefile (tzselect): Likewise.
4861
4862 2001-08-29  H.J. Lu  <hjl@gnu.org>
4863
4864         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
4865         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
4866         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
4867
4868 2001-08-29  Andreas Schwab  <schwab@suse.de>
4869
4870         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
4871
4872 2001-08-28  H.J. Lu  <hjl@gnu.org>
4873
4874         * Makeconfig (combreloc-LDFLAGS): New variable.
4875         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
4876         * config.make.in (have-z-combreloc): New variable.
4877         * configure.in: Substitute libc_cv_z_combreloc.
4878
4879 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
4880
4881         * po/sv.po: Update from translation team.
4882         * po/fr.po: Likewise.
4883         * po/da.po: Likewise.
4884
4885 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4886
4887         * Makerules: Fix a typo: MD% -> MD5.
4888
4889 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
4890
4891         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
4892         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
4893
4894 2001-08-28  Andreas Jaeger  <aj@suse.de>
4895
4896         * manual/libc-texinfo.sh: Add entry about free manuals.
4897
4898         * manual/contrib.texi (Contributors): Fix cross reference.
4899
4900         * manual/libc.texinfo (Copying): Include freemanuals.
4901
4902         * manual/Makefile (appendices): Add freemanuals.
4903
4904         * manual/freemanuals.texi: New file.
4905         Patch by Brian Youmans <3diff@gnu.org>.
4906
4907         * manual/libm-err-tab.pl: Pretty print more platforms, print a
4908         smaller table.
4909
4910         * manual/math.texi (Errors in Math Functions): Fix grammar, start
4911         table on separate page.
4912         Patch by Brian Youmans <3diff@gnu.org>.
4913
4914 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
4915
4916         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
4917         the connection went down after we first used it try to connect
4918         again and resend the message before printing to the console.
4919         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
4920
4921 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
4922
4923         * string/tst-strlen.c (main): Test strnlen (, -1) too.
4924         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
4925         bit set.
4926
4927 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
4928
4929         * iconv/strtab.c (searchstring): Use correct length for comparison.
4930         (strtabadd): Account total size correct if new string has old string as
4931         substring.
4932
4933 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
4934
4935         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
4936
4937 2001-08-27  Andreas Jaeger  <aj@suse.de>
4938
4939         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
4940
4941         * math/libm-test.inc (j0_test): Add extra tests.
4942         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
4943         not x, in Hankel approximation.
4944         Patches by Stephen L Moshier.
4945
4946 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
4947
4948         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
4949         link_map.
4950
4951         * configure.in: Fix test for .rela.dyn section.
4952
4953         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
4954
4955 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
4956
4957         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
4958         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
4959         Pass type_class to _dl_lookup_*.
4960         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
4961         Pass around just type_class instead of noexec, noplt pair.
4962         (_dl_lookup_versioned_symbol): Likewise.
4963         (_dl_lookup_symbol_skip): Pass around just type_class instead of
4964         noexec, noplt pair.
4965         (_dl_lookup_versioned_symbol_skip): Likewise.
4966         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
4967         * elf/do-lookup.h (do_lookup): Likewise.
4968         * include/link.h (struct link_map): Replace noexec and noplt fields
4969         in l_lookup_cache with type_class field.
4970         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
4971         ELF_RTYPE_CLASS_COPY): Define.
4972         Adjust prototypes for _dl_lookup_symbol and
4973         _dl_lookup_versioned_symbol.
4974         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
4975         elf_machine_lookup_noexec_p): Remove.
4976         (elf_machine_type_class): Define.
4977         * sysdeps/arm/dl-machine.h: Likewise.
4978         * sysdeps/hppa/dl-machine.h: Likewise.
4979         * sysdeps/cris/dl-machine.h: Likewise.
4980         * sysdeps/i386/dl-machine.h: Likewise.
4981         * sysdeps/ia64/dl-machine.h: Likewise.
4982         * sysdeps/m68k/dl-machine.h: Likewise.
4983         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4984         * sysdeps/mips/dl-machine.h: Likewise.
4985         * sysdeps/powerpc/dl-machine.h: Likewise.
4986         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4987         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4988         * sysdeps/sh/dl-machine.h: Likewise.
4989         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4990         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4991
4992 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
4993
4994         * manual/message.texi (Advanced gettext functions): Change
4995         description of plural forms for Slovak.
4996         Reported by Marcel Telka <marcel@telka.sk>.
4997
4998         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
4999         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5000
5001 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5002
5003         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5004         typo.  Patch by Florian La Roche <laroche@redhat.com>.
5005
5006 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5007
5008         * include/link.h (struct link_map): Add l_lookup_cache element.
5009         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5010         (RESOLVE_MAP): Likewise.
5011         (_dl_relocate_object): Remove cache initialization.
5012         * elf/dl-lookup.c: Rip out cache handling code.
5013         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5014         declarations.
5015
5016         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5017         remove some __builtin_expect.
5018         (_dl_lookup_versioned_symbol): Likewise.
5019
5020         * config.h.in: Add HAVE_Z_COMBRELOC.
5021         * configure.in: Add test for -z combreloc.
5022
5023         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5024         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
5025         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
5026         case to almost no code.
5027
5028 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
5029
5030         * po/tr.po: Update from translation team.
5031
5032 2001-08-24  Andreas Jaeger  <aj@suse.de>
5033
5034         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5035         make clean works.
5036
5037 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5038
5039         * elf/rtld.c (print_statistics): Printf % after percent values.
5040         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5041
5042         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5043         don't have to compute the hash value and initialize current_value.
5044         Move reference_name variable to where it is needed.
5045         (_dl_lookup_versioned_symbol): Likewise.
5046
5047 2001-08-24  Roland McGrath  <roland@frob.com>
5048
5049         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5050         Just test that strerror returns non-null for a few errno codes.
5051
5052 2001-08-23  Roland McGrath  <roland@frob.com>
5053
5054         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5055         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5056
5057         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5058
5059         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5060         __mach_reply_port.
5061
5062 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5063
5064         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5065         returns NULL.
5066
5067         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5068         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5069         doesn't do it.
5070         * elf/rtld.c: Include <sys/param.h>.
5071         * elf/dl-reloc.c: Likewise.
5072
5073 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5074
5075         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5076         empty to prevent junk from being generated.
5077         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5078
5079 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5080
5081         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5082         records.  Rename endrel to relative, initialize it to r, and use it
5083         in elf_machine_rel_relative calls.  Point r after relative relocs.
5084
5085 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5086
5087         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5088         of R_386_NONE.
5089
5090 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5091
5092         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5093         necessary.  Undefine newly defined macros at the end.
5094         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5095         Rename from elf_machine_rel_relative.
5096         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5097         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5098         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5099         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5100         Likewise.
5101         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5102         Likewise.
5103         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5104         Fix argument types.
5105         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5106         Fix argument types.
5107         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5108         Likewise.  Fix argument types.
5109         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5110         Likewise.  Fix argument types.
5111         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5112         Fix argument types.
5113         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5114         ElfW(Rel) in argument.
5115         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5116         function.
5117
5118 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
5119
5120         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5121
5122 2001-08-24  Andreas Jaeger  <aj@suse.de>
5123
5124         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5125         Stephen L Moshier <moshier@mediaone.net>.
5126
5127 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5128
5129         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5130         first if RELCOUNT is set.
5131
5132         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5133         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5134         elf_machine_rel_relative.
5135         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5136         Minor optimizations.
5137         * sysdeps/arm/dl-machine.h: Likewise.
5138         * sysdeps/cris/dl-machine.h: Likewise.
5139         * sysdeps/hppa/dl-machine.h: Likewise.
5140         * sysdeps/i386/dl-machine.h: Likewise.
5141         * sysdeps/ia64/dl-machine.h: Likewise.
5142         * sysdeps/m68k/dl-machine.h: Likewise.
5143         * sysdeps/mips/dl-machine.h: Likewise.
5144         * sysdeps/powerpc/dl-machine.h: Likewise.
5145         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5146         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5147         * sysdeps/sh/dl-machine.h: Likewise.
5148         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5149         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5150
5151 2001-08-23  Roland McGrath  <roland@frob.com>
5152
5153         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5154
5155         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5156         sysdeps/mach version.  Implement counting ("recursive") mutexes
5157         on top of cthreads mutexes.
5158         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5159
5160         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5161         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5162         (__libc_cleanup_region_start, __libc_cleanup_region_end,
5163         __libc_clean_end): Define these to call the cleanup function after
5164         normal exit when they're supposed to.
5165
5166         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5167         Take new first arg DOIT, a boolean saying whether to really install
5168         any cleanup handler.
5169         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5170         (__libc_cleanup_end): Likewise.
5171         * sysdeps/generic/bits/libc-lock.h: Same changes.
5172         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5173         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5174         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5175         Likewise.
5176         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5177         * sysdeps/generic/bits/stdio-lock.h
5178         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5179
5180 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5181
5182         * elf/ldconfig.c (search_dir): Remove stale symlinks.
5183
5184 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5185
5186         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5187         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5188         lookups in cache.
5189         (_dl_lookup_versioned_symbol): Likewise.
5190         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5191         relocation lookup.
5192         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5193         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5194         (lookup_cache, lookup_cache_versioned): Add declarations.
5195
5196 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5197
5198         * stdlib/tst-random.c (main): Swap parameters in fail call.
5199         Patch by Pete Bevin <pete@petebevin.com>.
5200
5201 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5202
5203         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5204
5205 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5206
5207         * malloc/obstack.c: Indent preprocessor directives.
5208         Patch by Jim Meyering <meyering@ascend.com>.
5209
5210         * po/ja.po: Update from translation team.
5211
5212 2001-08-23  Roland McGrath  <roland@frob.com>
5213
5214         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5215
5216         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5217         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5218
5219 2001-08-22  Roland McGrath  <roland@frob.com>
5220
5221         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5222         __libc_lock_define_recursive.
5223         * elf/dl-open.c: Don't declare it here any more.
5224         * elf/dl-close.c: Likewise.
5225         * elf/dl-lookup.c: Likewise.
5226         * elf/dl-iteratephdr.c: Likewise.
5227         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5228         __libc_lock_unlock_recursive.
5229         * elf/dl-close.c (_dl_close): Likewise
5230         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5231         * elf/dl-open.c (_dl_open): Likewise
5232
5233         * sysdeps/generic/bits/libc-lock.h
5234         (__libc_lock_define_recursive): New macro.
5235         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5236         (_IO_lock_lock): Use __libc_lock_lock_recursive.
5237         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5238
5239         * conform/conformtest.pl (checknamespace): Sort the output list.
5240
5241         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5242         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5243         definitions conditional on [__USE_XOPEN].
5244
5245         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5246         these unconditionally, not only use [__USE_BSD], so as to match
5247         the sysdeps/unix/sysv/linux files.
5248
5249 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5252         avoid warnings.
5253
5254         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5255         DL_LOOKUP_ADDRESS.
5256
5257 2001-08-22  Roland McGrath  <roland@frob.com>
5258
5259         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5260         conditionalization of sa_handler/sa_sigaction member types to
5261         match the sysdeps/unix/sysv/linux file.
5262
5263 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5264
5265         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5266         symbol sizes a bit better.
5267
5268         * sysdeps/ia64/strncpy.S: Complete rewrite.
5269         Contributed by Jakub Jelinek <jakub@redhat.com>.
5270
5271         * string/stratcliff.c (main): Add strncpy test.
5272
5273 2001-08-22  Roland McGrath  <roland@frob.com>
5274
5275         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5276         and don't declare unsetenv or _environ directly.
5277         (unsetenv): Return int, not void.  Use __environ instead of _environ.
5278
5279 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
5280
5281         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5282         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5283         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5284         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5285         test for cmsg struct size.
5286
5287 2001-04-23  Paul Eggert  <eggert@twinsun.com>
5288
5289         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5290         Rename __argc to ___argc in prototypes to avoid compatibility
5291         problems with systems that reserve the identifier "__argc".
5292         Similarly for __argv.
5293
5294 2001-08-21  Roland McGrath  <roland@frob.com>
5295
5296         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5297
5298         * mach/Makefile (tests): Removed.
5299         * mach/hello.c: File removed.
5300
5301 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5302
5303         * po/sv.po: Update from translation team.
5304
5305         * stdio-common/vfscanf.c: Fix handling of %l[].
5306         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5307
5308         * libio/Makefile (tests): Add tst-sscanf.
5309         * libio/tst-sscanf.c: New file.
5310
5311         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5312         * malloc/mtrace.c (tr_where): dli_sname always points to a
5313         non-empty string if != NULL.
5314         Reported by Tim Janik <timj@gtk.org>.
5315
5316 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
5317
5318         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5319         buf.  Free resources on failure.
5320         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5321         (makefd_xprt): Likewise.
5322         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5323         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5324         * sunrpc/auth_unix.c (authunix_create): Likewise.
5325
5326 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
5327
5328         * string/strnlen.c: Remove.
5329         * sysdeps/generic/strnlen.c: New file.
5330         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5331
5332 2001-08-21  Roland McGrath  <roland@frob.com>
5333
5334         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5335         as a macro, not an extern inline function.
5336
5337         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5338         * Versions.def (libc): Add GLIBC_2.2.5 set.
5339         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5340         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5341
5342 2001-08-20  Roland McGrath  <roland@frob.com>
5343
5344         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5345         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5346
5347 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
5348
5349         * string/bits/string2.h: Remove strnlen optimization here.
5350         * sysdeps/i386/i486/bits/string.h: Add it here.
5351
5352 2001-08-21  Wolfram Gloger  <wg@malloc.de>
5353
5354         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5355
5356 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
5357
5358         * po/gl.po: Update from translation team.
5359
5360 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5361
5362         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5363         * misc/err.c (convert_and_print): Likewise.
5364
5365         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5366         function calls.
5367
5368 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5369
5370         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5371         change of the gregset_t type.
5372         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5373
5374 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5375
5376         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5377
5378 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5379
5380         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5381
5382         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
5383
5384 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
5385
5386         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5387         before calling the cthreads initialization code.
5388
5389 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5390
5391         * argp/argp-help.c: Fix two problems introduced in last change.
5392
5393         * include/dirent.h: Include <dirstream.h> first.
5394
5395 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
5396
5397         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5398
5399         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5400         * sunrpc/xdr_rec.c: Likewise.
5401         * sunrpc/xdr_mem.c: Likewise.
5402         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5403         * sunrpc/rpc_cmsg.c: Likewise.
5404         * sunrpc/getrpcport.c (getrpcport): Likewise.
5405         * sunrpc/clnt_simp.c (callrpc): Likewise.
5406         * sunrpc/clnt_gen.c (clnt_create): Likewise.
5407         * string/envz.c: Likewise.
5408
5409         * po/ko.po: Update from translation team.
5410
5411         * argp/argp-help.c: Handle wide oriented stderr stream.
5412
5413 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
5414
5415         * sysdeps/generic/strtol.c: Little optimizations.  Add some
5416         __builtin_expect.
5417
5418         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5419
5420         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5421         * wcsmbs/wcwidth.c (wcwdith): Likewise.
5422         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5423
5424         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5425
5426         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5427
5428         * time/time.h (struct timespec): Use __time_t for tv_sec element.
5429
5430         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
5431         wchar_t for function declarations and defintions.
5432
5433         * misc/sys/select.h: Define __need_time_t before including <time.h>.
5434         Define suseconds_t if it hasn't happened yet.
5435
5436         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
5437
5438         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
5439
5440         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
5441         <stddef.h>.
5442
5443         * conform/data/stddef.h-data: Remove wint_t.
5444
5445         * conform/conformtest.pl: Change namespace test to take #undef
5446         lines into account.
5447
5448         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
5449
5450         * conform/data/sys/socket.h-data: Add sockatmark.
5451
5452 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5453
5454         * io/fts.c: Update from recent BSD source.
5455
5456 2001-08-17  Roland McGrath  <roland@frob.com>
5457
5458         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
5459         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
5460         Likewise.
5461
5462 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5463
5464         * locale/duplocale.c (__duplocale): Also initialize the special
5465         __ctype_* elements.
5466
5467         * conform/data/netdb.h-data: Adjust gai_strerror return type.
5468
5469 2001-08-17  Andreas Jaeger  <aj@suse.de>
5470
5471         * misc/getpass.c: Include wchar.h for prototypes.
5472         * malloc/obstack.c: Likewise.
5473
5474 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5475
5476         * sunrpc/svc_simple.c (universal): Use __write instead of write.
5477
5478         * wcsmbs/wcscoll.c: Also define __wcscoll.
5479         * include/wchar.h: Declare __wcscoll.
5480
5481         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
5482         * libio/vwprintf.c: Likewise.
5483         * libio/wprintf.c: Likewise.
5484
5485         * iconv/gconv_cache.c: Use __munmap instead of munmap.
5486
5487 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
5488
5489         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5490         instead of mbrtowc.
5491         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5492         wcslen, and __wcscoll instead of wcscoll.
5493
5494         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
5495
5496         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
5497         __getuid instead of getuid.
5498
5499         * stdio-common/perror.c (perror): Use __close instead of close.
5500         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5501         * libio/freopen.c (freopen): Likewise.
5502         * libio/freopen64.c (freopen64): Likewise.
5503
5504         * libio/tst-ungetwc2.c (main): Define str const.
5505
5506         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
5507         * libio/fwprintf.c: Also define __fwprintf.
5508         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
5509         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
5510         * assert/assert-perr.c: Likewise.
5511         * assert/assert.c: Likewise.
5512         * gmon/gmon.c: Likewise.
5513         * inet/rcmd.c: Likewise.
5514         * malloc/obstack.c: Likewise.
5515         * misc/err.c: Likewise.
5516         * misc/error.c: Likewise.
5517         * misc/getpass.c: Likewise.
5518         * posix/getopt.c: Likewise.
5519         * resolv/res_hconf.c: Likewise.
5520         * stdio-common/perror.c: Likewise.
5521         * stdio-common/psignal.c: Likewise.
5522         * stdlib/fmtmsg.c: Likewise.
5523         * sunrpc/auth_unix.c: Likewise.
5524         * sunrpc/clnt_perr.c: Likewise.
5525         * sunrpc/clnt_tcp.c: Likewise.
5526         * sunrpc/clnt_udp.c: Likewise.
5527         * sunrpc/clnt_unix.c: Likewise.
5528         * sunrpc/svc_simple.c: Likewise.
5529         * sunrpc/svc_tcp.c: Likewise.
5530         * sunrpc/svc_udp.c: Likewise.
5531         * sunrpc/svc_unix.c: Likewise.
5532         * sunrpc/xdr.c: Likewise.
5533         * sunrpc/xdr_array.c: Likewise.
5534         * sunrpc/xdr_rec.c: Likewise.
5535         * sunrpc/xdr_ref.c: Likewise.
5536         * sysdeps/generic/wordexp.c: Likewise.
5537
5538         * po/it.po: Update from translation team.
5539
5540         * misc/err.c: Handle wide oriented stderr stream.
5541
5542 2001-08-14  Tom Rix  <trix@redhat.com>
5543
5544         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
5545         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
5546
5547 2001-08-13  Tom Rix  <trix@redhat.com>
5548
5549         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
5550         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
5551         and __intptr_t.
5552
5553 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5554
5555         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
5556         Store the access registers to the ucontext structure.
5557         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
5558         Likewise.
5559
5560         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
5561         Load the access registers from the ucontext structure.
5562         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
5563         Likewise.
5564
5565         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
5566         offsets to the new ucontext layout.
5567         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
5568
5569         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
5570         of the ucontext structure.
5571         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5572
5573 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
5574
5575         * misc/error.c (error): Handle wide oriented stderr stream correctly.
5576         (error_at_line): Likewise.
5577
5578         * stdio-common/perror.c (perror): Implement according to standard.
5579         The stream orientation must not be changed if the stream was not
5580         oriented before the call.
5581         * stdio-common/Makefile (tests): Add tst-perror.
5582         * stdio-common/tst-perror.c: New file.
5583
5584
5585 See ChangeLog.12 for earlier changes.