Update.
[glibc.git] / ChangeLog
blobd9b945678ff4f5985b44b703b075854badb00063
1 2001-03-09  Bruno Haible  <haible@clisp.cons.org>
3         * intl/dcigettext.c (transmem_block_t): Change to unsigned char, to
4         avoid compiler warning.
5         (_nl_find_msg): Add casts to avoid compiler warnings.
7 2001-03-21  Ulrich Drepper  <drepper@redhat.com>
9         * gmon/Makefile (routines): Add sprofil.
10         (tests): Add tst-sprofil.
11         (noprof): Add sprofil.
12         * gmon/Versions [libc] (GLIBC_2.2.3): Add sprofil.
14 2001-03-20  David Mosberger  <davidm@hpl.hp.com>
16         * sysdeps/generic/sprofil.c: New file.
17         * sysdeps/posix/sprofil.c: New file.
18         * gmon/tst-sprofil.c: New file.
19         * gmon/sys/profil.h: New file.
21 2001-03-20  Andreas Schwab  <schwab@suse.de>
23         * include/unistd.h: Adjust prototype of __gethostname.
25 2001-03-20  Jakub Jelinek  <jakub@redhat.com>
27         * sysdeps/sparc/stackinfo.h: New file.
29 2001-03-21  Andreas Jaeger  <aj@suse.de>
31         * elf/global.c (main): Use proper prototype.
33 2001-03-20  Ulrich Drepper  <drepper@redhat.com>
35         * sunrpc/Makefile (routines): Add rpc_thread.
36         (CPPFLAGS): Add -D_RPC_THREAD_SAFE.
37         * sunrpc/rpc_thread.c: New file.
38         * sunrpc/Versions [libc] (GLIBC_2.2.3): Export __rpc_thread_destroy.
39         * sunrpc/auth_none.c: Don't use global variables.  Access state in
40         thread-local storage.
41         * sunrpc/clnt_perr.c: Likewise.
42         * sunrpc/clnt_raw.c: Likewise.
43         * sunrpc/clnt_simp.c: Likewise.
44         * sunrpc/key_call.c: Likewise.
45         * sunrpc/rpc_common.c: Likewise.
46         * sunrpc/svc.c: Likewise.
47         * sunrpc/svc_raw.c: Likewise.
48         * sunrpc/svc_simple.c: Likewise.
49         * sunrpc/svcauth_des.c: Likewise.
50         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
51         _HURD_THREADVAR_RPC_VARS.
52         * sysdeps/generic/bits/libc-tsd.h: Mention _LIBC_TSD_KEY_RPC_VARS.
53         * include/rpc/rpc.h: Define data structures for internal thread-local
54         "global" variables.
55         Based on patches by Eric Norum <eric.norum@usask.ca>.
57         * elf/dl-load.c: Various little optimizations.
59         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Return
60         LINUX_LINK_MAX only if the statfs function is not implemented for
61         the filesystem.
63         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Return
64         LINUX_LINK_MAX only if the fstatfs function is not implemented for
65         the filesystem.
67 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
69         * elf/dl-dst.h (DL_DST_COUNT): Add __builtin_expect.
71         * elf/dl-load.c (_dl_dst_count): Make DST recognition more robust.
72         (_dl_dst_substitute): Likewise.
74 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
76         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC]: Use fstat, not fstat64.
78 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
80         * intl/gettextP.h (struct expression): Add operators lnot, less_than,
81         greater_than, less_or_equal, greater_or_equal. Replace args2/args3
82         union by a 'nargs' counter and an 'args[]' array.
83         * intl/plural.y: Don't include stdarg.h.
84         (new_exp): Take an array of arguments instead of varargs.
85         (new_exp_0, new_exp_1, new_exp_2, new_exp_3): New functions.
86         ('?' ':'): Make right-associative.
87         (EQUOP2): New token, replaces '=' and '!'.
88         (CMPOP2): New token.
89         (ADDOP2): New token, replaces '+' and '-'.
90         (MULOP2): New token, replaces '*', '/' and '%'.
91         ('!'): New token.
92         (exp): Add rules for CMPOP2 and '!'. Don't call YYABORT.
93         (start): Call YYABORT here.
94         (FREE_EXPRESSION): Update.
95         (yylex): Don't skip "\\n". Recognize comparison and '!' operators.
96         Update for new token symbols.
97         * intl/loadmsgcat.c (plvar, plone, germanic_plural,
98         init_germanic_plural): Update.
99         * intl/dcigettext.c (_nl_find_msg): Optimize for space.
100         (plural_eval): Recognize comparison and '!' operators. Optimize for
101         space.
103 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
105         * intl/loadmsgcat.c (_nl_load_domain): locale_charset() doesn't return
106         NULL any more.
108 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
110         * intl/loadmsgcat.c: Include headers needed for alloca().
111         (freea): New macro.
112         (_nl_load_domain): Add fallback code for platforms lacking alloca.
113         * intl/localealias.c: (ADD_BLOCK, FREE_BLOCK): Remove macros.
114         (freea): New macro.
115         (read_alias_file): Simplify fallback code for platforms lacking
116         alloca.
118 2001-01-07  Bruno Haible  <haible@clisp.cons.org>
120         * intl/gettextP.h (__gettextdebug): Remove declaration.
121         (__gettext_free_exp, __gettextparse): Convert prototype to K&R C
122         syntax.
123         (gettext_free_exp__, gettextparse__): New non-libc declarations.
124         * intl/plural.y [!_LIBC]: Define gettextparse__, gettext_free_exp__,
125         not __gettextparse, __gettext_free_exp.
126         * intl/loadmsgcat.c [!_LIBC]: Use gettextparse__, not __gettextparse.
128 2001-02-24  Bruno Haible  <haible@clisp.cons.org>
130         * intl/dcigettext.c: Update comment about HAVE_LOCALE_NULL.
132 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
134         * intl/loadmsgcat.c (_nl_load_domain): Add fallback code for platforms
135         lacking strtoul, like SunOS4.
137 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
139         * intl/l10nflist.c (_nl_normalize_codeset): Use tolower, not _tolower.
141 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
143         * intl/bindtextdom.c (set_binding_values): Convert prototype to K&R C
144         syntax.
145         * intl/dcigettext.c (transcmp): Convert to K&R C syntax.
146         * intl/explodename.c (_nl_find_language): Convert to K&R C syntax.
147         * intl/plural.y (__gettext_free_exp, yylex, yyerror): Convert to K&R C
148         syntax.
150 2001-01-07  Bruno Haible  <haible@clisp.cons.org>
152         * intl/gettextP.h (gettext__, dgettext__, dcgettext__, textdomain__,
153         bindtextdomain__, bind_textdomain_codeset__): New declarations, from
154         old libgettext.h.
155         * intl/bindtextdom.c: Include libgnuintl.h instead of libgettext.h.
156         * intl/dcgettext.c: Likewise.
157         * intl/dcigettext.c: Likewise.
158         * intl/dcngettext.c: Likewise.
159         * intl/dngettext.c: Likewise.
160         * intl/finddomain.c: Likewise.
161         * intl/ngettext.c: Likewise.
162         * intl/textdomain.c: Likewise.
163         * intl/dgettext.c: Include libgnuintl.h instead of libgettext.h.
164         Include gettextP.h.
165         * intl/gettext.c: Likewise.  Don't include locale.h.
167 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
169         * intl/gettextP.h (ZERO): New macro.
170         (struct binding): Always use ZERO.
171         * intl/bindtextdom.c (offsetof): Provide fallback for platforms that
172         lack it, like SunOS4.
173         (set_binding_values): Use offsetof, not sizeof.
174         * intl/dcigettext.c (offsetof): Provide fallback for platforms that
175         lack it, like SunOS4.
176         (ZERO): Remove macro.
177         (struct transmem_list): Use ZERO.
178         (DCIGETTEXT): Use offsetof, not sizeof.
180 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
182         * intl/gettextP.h: Include <stddef.h>. Include gettext.h, for
183         nls_uint32.
184         * intl/bindtextdom.c: Don't include gettext.h.
185         * intl/dcgettext.c: Likewise.
186         * intl/dcigettext.c: Likewise.
187         * intl/dcngettext.c: Likewise.
188         * intl/dngettext.c: Likewise.
189         * intl/finddomain.c: Likewise.
190         * intl/localealias.c: Likewise.
191         * intl/ngettext.c: Likewise.
192         * intl/plural.y: Likewise.
193         * intl/textdomain.c: Likewise.
195 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
197         * intl/gettext.h: Don't include <stdio.h>.
199 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
201         * intl/Makefile (CPPFLAGS): Set LOCALEDIR instead of GNULOCALEDIR.
202         * intl/dcigettext.c (_nl_default_dirname): Initialize with LOCALEDIR.
204 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
206         * sysdeps/unix/i386/i686/tempname.c: New file.
208         * sysdeps/posix/tempname.c (__gen_tempname): If RANDOM_BITS is
209         defined use this macro to get some bits of randomness instead of
210         the usual gettimeofday or time calls.
212 2001-03-16  Paul Eggert  <eggert@twinsun.com>
214         * sysdeps/posix/tempname.c (uint64_t): Define to uintmax_t if
215         not defined, and if UINT64_MAX is not defined.
217 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
219         * elf/cache.c: Mark and have translated a few more messages.
221 2001-03-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
223         * elf/cache.c: Add case for FLAG_S390_LIB64.
224         * sysdeps/generic/ldconfig.h: Add define for FLAG_S390_LIB64.
225         * sysdeps/unix/sysv/linux/s390/ldconfig.h: New file.
226         * sysdeps/unix/sysv/linux/s390/readelflib.c: New file.
228 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
230         * string/Makefile (tests): Add tst-strxfrm.
231         * string/tst-strxfrm.c: New file.  Based on a test case by Paul Eggert.
232         * string/Depend: New file.
234 2001-03-19  Paul Eggert  <eggert@twinsun.com>
236         * string/strxfrm.c (strxfrm): strxfrm should return 0, not 1,
237         when given the empty string in nontrivial locales.
239 2001-03-17  H.J. Lu  <hjl@gnu.org>
241         * manual/Makefile (install): Use $(INSTALL_DATA) instead of
242         cp to install `dir'.
244 2001-03-19  Andreas Schwab  <schwab@suse.de>
246         * Makerules (build-shlib): Make sure exit codes get checked
247         properly.
249 2001-03-18  Ulrich Drepper  <drepper@redhat.com>
251         * Makerules (build-shlib): Remove unnecessary slashes introduced in
252         last change.
254         * configure.in: Test for -Bgroup option of linker.
255         * config.make.in: Define have-Bgroup.
257         * conform/data/unistd.h-data: Require gethostname.
258         * posix/unistd.h: Make gethostname prototype available for
259         __USE_XOPEN2K.
261         * crypt/Makefile: When generating DSO link with libc_nonshared.a.
262         * debug/Makefile: Likewise.
263         * dlfcn/Makefile: Likewise.
264         * hesiod/Makefile: Likewise.
265         * iconvdata/extra-module.mk: Likewise.
266         * locale/Makefile: Likewise.
267         * login/Makefile: Likewise.
268         * math/Makefile: Likewise.
269         * nis/Makefile: Likewise.
270         * nss/Makefile: Likewise.
271         * resolv/Makefile: Likewise.
272         * rt/Makefile: Likewise.
274 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
276         * inet/Makefile (tests): Remove left-over comment.
278         * posix/unistd.h (gethostname): Change type of second parameter
279         back to size_t as per upcoming XPG6.
280         * sysdeps/unix/sysv/aix/gethostname.c: Change type of second
281         parameter back to size_t as per upcoming XPG6.
282         * sysdeps/unix/sysv/sysv4/gethostname.c: Likewise.
283         * sysdeps/unix/sysv/gethostname.c: Likewise.
284         * sysdeps/mach/hurd/gethostname.c: Likewise.
285         * sysdeps/generic/gethostname.c: Likewise.
287 2001-03-16  Ulrich Drepper  <drepper@redhat.com>
289         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
290         Handle NaN here.
292         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext):
293         Internationalize.
295 2001-02-06  Jakub Jelinek  <jakub@redhat.com>
297         * elf/dl-load.c (_dl_map_object): Don't test l_opencount when
298         looking for name matches.
300 2001-02-26  Jakub Jelinek  <jakub@redhat.com>
302         * sysdeps/generic/sigcontextinfo.h (CALL_SIGHANDLER): Define.
303         * sysdeps/mach/hurd/i386/sigcontextinfo.h: Likewise.
304         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
305         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
306         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
307         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
308         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
309         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
310         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
311         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
312         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
313         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
315 2001-03-16  Ulrich Drepper  <drepper@redhat.com>
317         * sysdeps/ieee754/ldbl-96/s_erfl.c: New file.
318         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
320         * sysdeps/i386/fpu/libm-test-ulps: Adjust for addition of erfl and
321         erfcl.
322         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
324 2001-03-16  David Mosberger  <davidm@hpl.hp.com>
326         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
327         Drop hack that was needed for 2.1.1 kernel headers.
329         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: New file.
331         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Rewrite to make it
332         overlay with kernel's "struct sigcontext".
334         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_headers): Add
335         sys/rse.h for "misc" subdir.
336         (sysdep_routines): Add __start_context for "stdlib" subdir.
338         * sysdeps/unix/sysv/linux/ia64/sys/rse.h: New file (based on
339         kernel file of the same name).
341         * stdlib/Makefile (tests): Add tst-setcontext.
342         * stdlib/tst-setcontext.c: New file (based on a sample program by
343         Uli Drepper).
345         * sysdeps/unix/sysv/linux/ia64/setcontext.S: New file.
346         * sysdeps/unix/sysv/linux/ia64/getcontext.S: New file.
347         * sysdeps/unix/sysv/linux/ia64/__start_context.S: New file.
348         * sysdeps/unix/sysv/linux/ia64/makecontext.c: New file.
349         * sysdeps/unix/sysv/linux/ia64/swapcontext.c: New file.
351         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): Use extr.u
352         instead of shift & and.
354 2001-03-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
356         * sysdeps/s390/s390-64/bits/huge_val.h: Move to...
357         * sysdeps/s390/bits/huge_val.h: ...here.
358         * sysdeps/s390/s390-32/bit/huge_val.h: Remove.
359         * sysdeps/s390/s390-64/ffs.c: Move to...
360         * sysdeps/s390/ffs.c: ...here.
361         * sysdeps/s390/s390-32/ffs.c: Remove.
363 2001-03-16  Jakub Jelinek  <jakub@redhat.com>
365         * elf/ldconfig.c (search_dir): Remove bogus diagnostic, instead
366         update osversion from more recent library.
368 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
370         * sysdeps/unix/sysv/linux/s390/Dist: Move to...
371         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: ...here.
372         * sysdeps/unix/sysv/linux/s390/Makefile: Move to...
373         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: ...here.
374         * sysdeps/unix/sysv/linux/s390/Versions: Move to...
375         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: ...here.
376         * sysdeps/unix/sysv/linux/s390/alphasort64.c: Move to...
377         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: ...here.
378         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Move to...
379         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: ...here.
380         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Move to...
381         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: ...here.
382         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Move to...
383         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: ...here.
384         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Move to...
385         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: ...here.
386         * sysdeps/unix/sysv/linux/s390/chown.c: Move to...
387         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: ...here.
388         * sysdeps/unix/sysv/linux/s390/clone.S: Move to...
389         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: ...here.
390         * sysdeps/unix/sysv/linux/s390/fchown.c: Move to...
391         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: ...here.
392         * sysdeps/unix/sysv/linux/s390/fcntl.c: Move to...
393         * sysdeps/unix/sysv/linux/s390/s390-32/fcntl.c: ...here.
394         * sysdeps/unix/sysv/linux/s390/fxstat.c: Move to...
395         * sysdeps/unix/sysv/linux/s390/s390-32/fxstat.c: ...here.
396         * sysdeps/unix/sysv/linux/s390/getdents64.c: Move to...
397         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: ...here.
398         * sysdeps/unix/sysv/linux/s390/getegid.c: Move to...
399         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: ...here.
400         * sysdeps/unix/sysv/linux/s390/geteuid.c: Move to...
401         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: ...here.
402         * sysdeps/unix/sysv/linux/s390/getgid.c: Move to...
403         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: ...here.
404         * sysdeps/unix/sysv/linux/s390/getgroups.c: Move to...
405         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: ...here.
406         * sysdeps/unix/sysv/linux/s390/getresgid.c: Move to...
407         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: ...here.
408         * sysdeps/unix/sysv/linux/s390/getresuid.c: Move to...
409         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: ...here.
410         * sysdeps/unix/sysv/linux/s390/getrlimit.c: Move to...
411         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: ...here.
412         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: Move to...
413         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: ...here.
414         * sysdeps/unix/sysv/linux/s390/getuid.c: Move to...
415         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: ...here.
416         * sysdeps/unix/sysv/linux/s390/lchown.c: Move to...
417         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: ...here.
418         * sysdeps/unix/sysv/linux/s390/lockf64.c: Move to...
419         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: ...here.
420         * sysdeps/unix/sysv/linux/s390/lxstat.c: Move to...
421         * sysdeps/unix/sysv/linux/s390/s390-32/lxstat.c: ...here.
422         * sysdeps/unix/sysv/linux/s390/mmap.S: Move to...
423         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: ...here.
424         * sysdeps/unix/sysv/linux/s390/mmap64.S: Move to...
425         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: ...here.
426         * sysdeps/unix/sysv/linux/s390/msgctl.c: Move to...
427         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: ...here.
428         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: Move to...
429         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: ...here.
430         * sysdeps/unix/sysv/linux/s390/readdir64.c: Move to...
431         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: ...here.
432         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: Move to...
433         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: ...here.
434         * sysdeps/unix/sysv/linux/s390/register-dump.h: Move to...
435         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: ...here.
436         * sysdeps/unix/sysv/linux/s390/scandir64.c: Move to...
437         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: ...here.
438         * sysdeps/unix/sysv/linux/s390/semctl.c: Move to...
439         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: ...here.
440         * sysdeps/unix/sysv/linux/s390/setegid.c: Move to...
441         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: ...here.
442         * sysdeps/unix/sysv/linux/s390/seteuid.c: Move to...
443         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: ...here.
444         * sysdeps/unix/sysv/linux/s390/setfsgid.c: Move to...
445         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: ...here.
446         * sysdeps/unix/sysv/linux/s390/setfsuid.c: Move to...
447         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: ...here.
448         * sysdeps/unix/sysv/linux/s390/setgid.c: Move to...
449         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: ...here.
450         * sysdeps/unix/sysv/linux/s390/setgroups.c: Move to...
451         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: ...here.
452         * sysdeps/unix/sysv/linux/s390/setregid.c: Move to...
453         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: ...here.
454         * sysdeps/unix/sysv/linux/s390/setresgid.c: Move to...
455         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: ...here.
456         * sysdeps/unix/sysv/linux/s390/setresuid.c: Move to...
457         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: ...here.
458         * sysdeps/unix/sysv/linux/s390/setreuid.c: Move to...
459         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: ...here.
460         * sysdeps/unix/sysv/linux/s390/setrlimit.c: Move to...
461         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: ...here.
462         * sysdeps/unix/sysv/linux/s390/setuid.c: Move to...
463         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: ...here.
464         * sysdeps/unix/sysv/linux/s390/shmctl.c: Move to...
465         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: ...here.
466         * sysdeps/unix/sysv/linux/s390/socket.S: Move to...
467         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: ...here.
468         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Move to...
469         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: ...here.
470         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Move to...
471         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: ...here.
472         * sysdeps/unix/sysv/linux/s390/syscall.S: Move to...
473         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: ...here.
474         * sysdeps/unix/sysv/linux/s390/syscalls.list: Move to...
475         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: ...here.
476         * sysdeps/unix/sysv/linux/s390/sysdep.S: Move to...
477         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: ...here.
478         * sysdeps/unix/sysv/linux/s390/sysdep.h: Move to...
479         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: ...here.
480         * sysdeps/unix/sysv/linux/s390/versionsort64.c: Move to...
481         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: ...here.
482         * sysdeps/unix/sysv/linux/s390/xstat.c: Move to...
483         * sysdeps/unix/sysv/linux/s390/s390-32/xstat.c: ...here.
485 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
487         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: New file.
488         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: New file.
489         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: New file.
490         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: New file.
491         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: New file.
492         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: New file.
493         * sysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: New file.
494         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: New file.
495         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: New file.
496         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: New file.
497         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: New file.
498         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: New file.
499         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: New file.
500         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: New file.
501         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: New file.
502         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
503         * sysdeps/unix/sysv/linux/s390/s390-64/fstatfs64.c: New file.
504         * sysdeps/unix/sysv/linux/s390/s390-64/ftruncate64.c: New file.
505         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: New file.
506         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat64.c: New file.
507         * sysdeps/unix/sysv/linux/s390/s390-64/getdents.c: New file.
508         * sysdeps/unix/sysv/linux/s390/s390-64/getdents64.c: New file.
509         * sysdeps/unix/sysv/linux/s390/s390-64/getrlimit64.c: New file.
510         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: New file.
511         * sysdeps/unix/sysv/linux/s390/s390-64/glob64.c: New file.
512         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
513         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: New file.
514         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat64.c: New file.
515         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: New file.
516         * sysdeps/unix/sysv/linux/s390/s390-64/mmap64.c: New file.
517         * sysdeps/unix/sysv/linux/s390/s390-64/pread64.c: New file.
518         * sysdeps/unix/sysv/linux/s390/s390-64/pwrite64.c: New file.
519         * sysdeps/unix/sysv/linux/s390/s390-64/readdir.c: New file.
520         * sysdeps/unix/sysv/linux/s390/s390-64/readdir64.c: New file.
521         * sysdeps/unix/sysv/linux/s390/s390-64/readdir64_r.c: New file.
522         * sysdeps/unix/sysv/linux/s390/s390-64/readdir_r.c : New file.
523         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: New file.
524         * sysdeps/unix/sysv/linux/s390/s390-64/setrlimit64.c: New file.
525         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: New file.
526         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: New file.
527         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: New file.
528         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: New file.
529         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: New file.
530         * sysdeps/unix/sysv/linux/s390/s390-64/statfs64.c: New file.
531         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: New file.
532         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: New file.
533         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: New file.
534         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: New file.
535         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: New file.
536         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: New file.
537         * sysdeps/unix/sysv/linux/s390/s390-64/truncate64.c: New file.
538         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: New file.
539         * sysdeps/unix/sysv/linux/s390/s390-64/xstat64.c: New file.
541 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
543         * sysdeps/s390/Dist: Move to...
544         * sysdeps/s390/390-32/Dist: ...here.
545         * sysdeps/s390/Implies: Move to...
546         * sysdeps/s390/s390-32/Implies: ...here.
547         * sysdeps/s390/Makefile: Move to...
548         * sysdeps/s390/s390-32/Makefile: ...here.
549         * sysdeps/s390/Versions: Move to...
550         * sysdeps/s390-32/s390/Versions: ...here.
551         * sysdeps/s390/add_n.S: Move to...
552         * sysdeps/s390/s390-32/add_n.S: ...here.
553         * sysdeps/s390/addmul_1.S: Move to...
554         * sysdeps/s390/s390-32/addmul_1.S: ...here.
555         * sysdeps/s390/atomicity.h: Move to...
556         * sysdeps/s390/s390-32/atomicity.h: ...here.
557         * sysdeps/s390/backtrace.c: Move to...
558         * sysdeps/s390/s390-32/backtrace.c: ...here.
559         * sysdeps/s390/bcopy.S: Move to...
560         * sysdeps/s390/s390-32/bcopy.S: ...here.
561         * sysdeps/s390/bits/byteswap.h: Move to...
562         * sysdeps/s390/s390-32/bits/byteswap.h: ...here.
563         * sysdeps/s390/bits/huge_val.h: Move to...
564         * sysdeps/s390/s390-32/bits/huge_val.h: ...here.
565         * sysdeps/s390/bsd-_setjmp.S: Move to...
566         * sysdeps/s390/s390-32/bsd-_setjmp.S: ...here.
567         * sysdeps/s390/bsd-setjmp.S: Move to...
568         * sysdeps/s390/s390-32/bsd-setjmp.S: ...here.
569         * sysdeps/s390/bzero.S: Move to...
570         * sysdeps/s390/s390-32/bzero.S: ...here.
571         * sysdeps/s390/elf/bsd-_setjmp.S: Move to...
572         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: ...here.
573         * sysdeps/s390/elf/bsd-setjmp.S: Move to...
574         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: ...here.
575         * sysdeps/s390/elf/start.S: Move to...
576         * sysdeps/s390/s390-32/elf/start.S: ...here.
577         * sysdeps/s390/ffs.c: Move to...
578         * sysdeps/s390/s390-32/ffs.c: ...here.
579         * sysdeps/s390/memchr.S: Move to...
580         * sysdeps/s390/s390-32/memchr.S: ...here.
581         * sysdeps/s390/memcpy.S: Move to...
582         * sysdeps/s390/s390-32/memcpy.S: ...here.
583         * sysdeps/s390/memset.S: Move to...
584         * sysdeps/s390/s390-32/memset.S: ...here.
585         * sysdeps/s390/mul_1.S: Move to...
586         * sysdeps/s390/s390-32/mul_1.S: ...here.
587         * sysdeps/s390/s390-mcount.S: Move to...
588         * sysdeps/s390/s390-32/s390-mcount.S: ...here.
589         * sysdeps/s390/strcpy.S: Move to...
590         * sysdeps/s390/s390-32/strcpy.S: ...here.
591         * sysdeps/s390/strncpy.S: Move to...
592         * sysdeps/s390/s390-32/strncpy.S: ...here.
593         * sysdeps/s390/sub_n.S: Move to...
594         * sysdeps/s390/s390-32/sub_n.S: ...here.
596 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
598         * sysdeps/s390/s390-64/Dist: New file.
599         * sysdeps/s390/s390-64/Implies: New file.
600         * sysdeps/s390/s390-64/Makefile: New file.
601         * sysdeps/s390/s390-64/__longjmp.c: New file.
602         * sysdeps/s390/s390-64/add_n.S: New file.
603         * sysdeps/s390/s390-64/atomicity.h: New file.
604         * sysdeps/s390/s390-64/backtrace.c: New file.
605         * sysdeps/s390/s390-64/bcopy.S: New file.
606         * sysdeps/s390/s390-64/bits/byteswap.h: New file.
607         * sysdeps/s390/s390-64/bits/huge_val.h: New file.
608         * sysdeps/s390/s390-64/bits/setjmp.h: New file.
609         * sysdeps/s390/s390-64/bits/string.h: New file.
610         * sysdeps/s390/s390-64/bsd-_setjmp.S: New file.
611         * sysdeps/s390/s390-64/bsd-setjmp.S: New file.
612         * sysdeps/s390/s390-64/bzero.S: New file.
613         * sysdeps/s390/s390-64/dl-machine.h: New file.
614         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: New file.
615         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: New file.
616         * sysdeps/s390/s390-64/elf/setjmp.S: New file.
617         * sysdeps/s390/s390-64/elf/start.S: New file.
618         * sysdeps/s390/s390-64/ffs.c: New file.
619         * sysdeps/s390/s390-64/initfini.c: New file.
620         * sysdeps/s390/s390-64/memchr.S: New file.
621         * sysdeps/s390/s390-64/memcpy.S: New file.
622         * sysdeps/s390/s390-64/memset.S: New file.
623         * sysdeps/s390/s390-64/s390x-mcount.S: New file.
624         * sysdeps/s390/s390-64/setjmp.S: New file.
625         * sysdeps/s390/s390-64/strcpy.S: New file.
626         * sysdeps/s390/s390-64/strncpy.S: New file.
627         * sysdeps/s390/s390-64/sub_n.S: New file.
628         * sysdeps/s390/s390-64/sysdep.h: New file.
630 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
632         * scripts/config.guess: Add support for Linux on 64 bit S/390.
633         * scripts/config.sub: Likewise.
635 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
637         * configure.in: Add support for 64 bit S/390.
639         * elf/elf.h: Add new relocations for 64 bit S/390.
641         * shlib-versions: Add rules for Linux on 64 bit S/390.
643 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
645         * sysdeps/s390/__longjmp.c: Move to...
646         * sysdeps/s390/s390-32/__longjmp.c: ...here.  Add code
647         to load the floating point registers that should be saved
648         according to the ABI.
650         * sysdeps/s390/bits/setjmp.h: Move to...
651         * sysdeps/s390/s390-32/bits/setjmp.h: ...here.  Avoid
652         the use of long long in the __jmp_buf type definition.
654         * sysdeps/s390/bits/string.h: Move to...
655         * sysdeps/s390/s390-32/bits/string.h: ...here.  Add several missing
656         #ifndef _FORCE_INLINES.
658         * sysdeps/s390/dl-machine.h: Move to...
659         * sysdeps/s390/s390-32/dl-machine.h: ...here.  Add a check for the
660         executables EI_CLASS in elf_machine_matches_host.
662         * sysdeps/s390/elf/setjmp.S: Move to...
663         * sysdeps/s390/s390-32/elf/setjmp.S: ...here.  Replace
664         branches to globally defined symbol __sigsetjmp by branches to
665         a local label (this avoids the generation of a R_390_PC16DBL
666         relocation in -fpic code).
668         * sysdeps/s390/gmp-mparam.h: Use defines from <bits/wordsize.h> to
669         calculate BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB and BITS_PER_LONGINT.
671         * sysdeps/s390/initfini.c: Move to...
672         * sysdeps/s390/s390-32/initfini.c: ...here.  Replace ALIGN with
673         ".align 4,0x07".
675         * sysdeps/s390/setjmp.S: Move to...
676         * sysdeps/s390/s390-32/setjmp.S: ...here.  Add code to store the
677         floating point registers that should be saved according to the ABI.
679         * sysdeps/s390/sys/ucontext.h: Remove since it is unused.
681         * sysdeps/unix/sysv/linux/s390/sysdep.h: Move to...
682         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: ...here. Include
683         sysdeps/s390/s390-32/sysdep.h instead of sysdeps/s390/sysdep.h.
685 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
687         * configure.in: Change machine=s390 to machine=s390/s390-32.
689         * elf/elf.h: Correct comment for R_390_PLT16DBL.
691 2001-03-12  Jakub Jelinek  <jakub@redhat.com>
693         * csu/Makefile (abi-tag.h): Define OS and version separately, allow
694         version to be overriden from config.h.
695         * csu/abi-note.S: Use OS and version separately, include config.h.
696         * elf/dl-load.c (_dl_osversion): New.
697         (_dl_map_object_from_fd): Kill some warnings.
698         (open_verify): Check .note.ABI-tag of the library if present.
699         * elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
700         * elf/cache.c (struct cache_entry): Add osversion.
701         (print_entry): Print osversion.
702         (print_cache): Pass osversion to it.
703         (compare): Sort according to osversion.
704         (save_cache): Set osversion.
705         (add_to_cache): Add osversion argument.
706         * sysdeps/generic/ldconfig.h (add_to_cache, process_file,
707         process_elf_file): Add osversion argument.
708         * elf/readlib.c (process_file): Likewise.
709         * sysdeps/generic/readelflib.c (process_elf_file): Likewise.
710         * sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
711         process_elf32_file, process_elf64_file): Likewise.
712         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
713         process_elf32_file, process_elf64_file): Likewise.
714         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
715         process_elf32_file, process_elf64_file): Likewise.
716         * elf/ldconfig.c (manual_link): Pass it.
717         (search_dir): Issue diagnostic if two libs with the same soname in
718         the same directory have different .note.ABI-tag.  Record osversion in
719         dlib_entry and use it from there.
720         (struct lib_entry): Remove.
721         (struct dlib_entry): Add osversion.
722         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
723         osversion.
724         * sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
725         field with osversion.
726         * sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
727         * sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
728         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
729         version in _dl_osversion.
730         * sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
731         * Makerules (build-shlib-helper, build-module-helper): New.
732         (build-shlib, build-module-helper): Make sure .note.ABI-tag comes
733         early.
734         * config.h.in (__ABI_TAG_VERSION): Add.
735         * elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
736         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
737         Handle LD_ASSUME_KERNEL.
738         * sysdeps/unix/sysv/linux/dl-librecon.h: New.
740 2001-03-15  Ulrich Drepper  <drepper@redhat.com>
742         * timezone/antarctica: Update from tzdata2001a.
743         * timezone/asia: Likewise.
744         * timezone/australasia: Likewise.
745         * timezone/backward: Likewise.
746         * timezone/etcetera: Likewise.
747         * timezone/europe: Likewise.
748         * timezone/leapseconds: Likewise.
749         * timezone/northamerica: Likewise.
750         * timezone/southamerica: Likewise.
751         * timezone/systemv: Likewise.
752         * timezone/yearistype: Likewise.
753         * timezone/zone.tab: Likewise.
754         * timezone/tzdump.c: Update from tzcode2001a.
756 2001-03-15  H.J. Lu  <hjl@gnu.org>
758         * intl/Makefile: Fix a typo.
760 2001-03-14  David Mosberger  <davidm@hpl.hp.com>
762         * gmon/gmon.c (write_call_graph): Avoid unaligned accesses when
763         writing arc structures.
765 2001-03-15  H.J. Lu  <hjl@gnu.org>
767         * elf/Makefile ($(objpfx)tst-pathopt.out): Protected against
768         cross-compiling.
770 2001-03-13  Andreas Schwab  <schwab@suse.de>
772         * posix/PTESTS2C.sed: Replace literal CRs by `\r'.
774 2001-03-15  Ulrich Drepper  <drepper@redhat.com>
776         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Fix test
777         for control message fitting into message data.
778         Patch by James Antill <james@and.org>.
780         * posix/tst-fnmatch.input: Add test case for FNM_PERIOD handling with
781         FNM_EXTMATCH.
783         * posix/fnmatch_loop.c: Optimize handling of ?() and @().
784         * posix/fnmatch.c: Define STRLEN and STRCAT appropriately.
786         * posix/Versions [libc] (GLIBC_2.2.3): Add fnmatch.
787         * posix/fnmatch.c: Define with new default version GLIBC_2.2.3 to
788         avoid running binaries with libc versions without FNM_EXTMATCH support.
790         * include/wchar.h: Add prototype for __wcscat.
791         * wcsmbs/wcscat.c: Define __wcscat and make wcscat weak alias.
793         * posix/fnmatch.h (FNM_EXTMATCH): Define.
794         * posix/fnmatch.c (NO_LEADING_PERIOD): Define.
795         (posixly_correct): Move global variable here.
796         (INT, EXT, END): Name new functions defined in fnmatch_loop.c.
797         (fnmatch): Pretty printing.
798         * posix/fnmatch_loop.c: Add code to handle FNM_EXTMATCH.
799         * posix/tst-fnmatch.c: Recognize EXTMATCH flag.
800         * posix/tst-fnmatch.input: Add tests for extended matching.
802         * posix/testfnm.c: Add test for patterns with multiple ** before /.
803         * posix/fnmatch_loop.c: Fix problem with the test above.
805 2001-03-14  Ulrich Drepper  <drepper@redhat.com>
807         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Remove
808         reference to usqrt.
810         * resolv/res_data.c (fp_nquery): Call __res_ninit not __res_init.
812 2001-03-12  Andreas Jaeger  <aj@suse.de>
814         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
815         Use EM_X86_64 instead of EM_X8664.
817 2001-03-12  Ulrich Drepper  <drepper@redhat.com>
819         * sysdeps/ieee754/dbl-64/upow.h: Define nZERO and nINF.
821         * sysdeps/ieee754/dbl-64/e_remainder.c: Fix handling of boundary
822         conditions.
824         * sysdeps/ieee754/dbl-64/e_pow.c: Fix handling of boundary
825         conditions.
827         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Handle Inf and NaN
828         correctly.
829         (__cos): Likewise.
831         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Handle NaN
832         correctly.
833         (__ieee754_acos): Likewise.
835 2001-03-12  Andreas Jaeger  <aj@suse.de>
837         * sysdeps/unix/sysv/linux/s390/sysdep.h (_LINUX_S390_SYSDEP_H):
838         Fix typo.  Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
840         * sysdeps/s390/bits/string.h: Protect __STRING_INLINE against
841         redefinition.
843 2001-03-11  Roland McGrath  <roland@frob.com>
845         * sysdeps/mach/hurd/configure.in: Add a sanity check on $prefix.
847 2001-03-11  Ulrich Drepper  <drepper@redhat.com>
849         * sysdeps/ieee754/dbl-64/endian.h: Define also one of BIG_ENDI and
850         LITTLE_ENDI.
852         * sysdeps/ieee754/dbl-64/MathLib.h (Init_Lib): Use void as
853         parameter list.
855         Last-bit accurate math library implementation by IBM Haifa.
856         Contributed by Abraham Ziv <ziv@il.ibm.com>, Moshe Olshansky
857         <olshansk@il.ibm.com>, Ealan Henis <ealan@il.ibm.com>, and
858         Anna Reitman <reitman@il.ibm.com>.
859         * math/Makefile (dbl-only-routines): New variable.
860         (libm-routines): Add $(dbl-only-routines).
861         * sysdeps/ieee754/dbl-64/e_acos.c: Empty, definition is in e_asin.c.
862         * sysdeps/ieee754/dbl-64/e_asin.c: Replaced with accurate asin
863         implementation.
864         * sysdeps/ieee754/dbl-64/e_atan2.c: Replaced with accurate atan2
865         implementation.
866         * sysdeps/ieee754/dbl-64/e_exp.c: Replaced with accurate exp
867         implementation.
868         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Don't use __kernel_sin and
869         __kernel_cos.
870         * sysdeps/ieee754/dbl-64/e_log.c: Replaced with accurate log
871         implementation.
872         * sysdeps/ieee754/dbl-64/e_remainder.c: Replaced with accurate
873         remainder implementation.
874         * sysdeps/ieee754/dbl-64/e_pow.c: Replaced with accurate pow
875         implementation.
876         * sysdeps/ieee754/dbl-64/e_sqrt.c: Replaced with accurate sqrt
877         implementation.
878         * sysdeps/ieee754/dbl-64/k_cos.c: Empty, definition is in s_sin.c.
879         * sysdeps/ieee754/dbl-64/k_sin.c: Empty, definition is in s_sin.c.
880         * sysdeps/ieee754/dbl-64/s_atan.c: Replaced with accurate atan
881         implementation.
882         * sysdeps/ieee754/dbl-64/s_cos.c: Empty, definition is in s_sin.c.
883         * sysdeps/ieee754/dbl-64/s_sin.c: Replaced with accurate sin/cos
884         implementation.
885         * sysdeps/ieee754/dbl-64/s_sincos.c: Rewritten to not use __kernel_sin
886         and __kernel_cos.
887         * sysdeps/ieee754/dbl-64/s_tan.c: Replaced with accurate tan
888         implementation.
889         * sysdeps/ieee754/dbl-64/Dist: Add new non-code files.
890         * sysdeps/ieee754/dbl-64/MathLib.h: New file.
891         * sysdeps/ieee754/dbl-64/asincos.tbl: New file.
892         * sysdeps/ieee754/dbl-64/atnat.h: New file.
893         * sysdeps/ieee754/dbl-64/atnat2.h: New file.
894         * sysdeps/ieee754/dbl-64/branred.c: New file.
895         * sysdeps/ieee754/dbl-64/branred.h: New file.
896         * sysdeps/ieee754/dbl-64/dla.h: New file.
897         * sysdeps/ieee754/dbl-64/doasin.c: New file.
898         * sysdeps/ieee754/dbl-64/doasin.h: New file.
899         * sysdeps/ieee754/dbl-64/dosincos.c: New file.
900         * sysdeps/ieee754/dbl-64/dosincos.h: New file.
901         * sysdeps/ieee754/dbl-64/endian.h: New file.
902         * sysdeps/ieee754/dbl-64/halfulp.c: New file.
903         * sysdeps/ieee754/dbl-64/mpa.c: New file.
904         * sysdeps/ieee754/dbl-64/mpa.h: New file.
905         * sysdeps/ieee754/dbl-64/mpa2.h: New file.
906         * sysdeps/ieee754/dbl-64/mpatan.c: New file.
907         * sysdeps/ieee754/dbl-64/mpatan.h: New file.
908         * sysdeps/ieee754/dbl-64/mpatan2.c: New file.
909         * sysdeps/ieee754/dbl-64/mpexp.c: New file.
910         * sysdeps/ieee754/dbl-64/mpexp.h: New file.
911         * sysdeps/ieee754/dbl-64/mplog.c: New file.
912         * sysdeps/ieee754/dbl-64/mplog.h: New file.
913         * sysdeps/ieee754/dbl-64/mpsqrt.c: New file.
914         * sysdeps/ieee754/dbl-64/mpsqrt.h: New file.
915         * sysdeps/ieee754/dbl-64/mptan.c: New file.
916         * sysdeps/ieee754/dbl-64/mydefs.h: New file.
917         * sysdeps/ieee754/dbl-64/powtwo.tbl: New file.
918         * sysdeps/ieee754/dbl-64/root.tbl: New file.
919         * sysdeps/ieee754/dbl-64/sincos.tbl: New file.
920         * sysdeps/ieee754/dbl-64/sincos32.c: New file.
921         * sysdeps/ieee754/dbl-64/sincos32.h: New file.
922         * sysdeps/ieee754/dbl-64/slowexp.c: New file.
923         * sysdeps/ieee754/dbl-64/slowpow.c: New file.
924         * sysdeps/ieee754/dbl-64/uasncs.h: New file.
925         * sysdeps/ieee754/dbl-64/uatan.tbl: New file.
926         * sysdeps/ieee754/dbl-64/uexp.h: New file.
927         * sysdeps/ieee754/dbl-64/uexp.tbl: New file.
928         * sysdeps/ieee754/dbl-64/ulog.h: New file.
929         * sysdeps/ieee754/dbl-64/ulog.tbl: New file.
930         * sysdeps/ieee754/dbl-64/upow.h: New file.
931         * sysdeps/ieee754/dbl-64/upow.tbl: New file.
932         * sysdeps/ieee754/dbl-64/urem.h: New file.
933         * sysdeps/ieee754/dbl-64/uroot.h: New file.
934         * sysdeps/ieee754/dbl-64/usncs.h: New file.
935         * sysdeps/ieee754/dbl-64/utan.h: New file.
936         * sysdeps/ieee754/dbl-64/utan.tbl: New file.
937         * sysdeps/i386/fpu/branred.c: New file.
938         * sysdeps/i386/fpu/doasin.c: New file.
939         * sysdeps/i386/fpu/dosincos.c: New file.
940         * sysdeps/i386/fpu/halfulp.c: New file.
941         * sysdeps/i386/fpu/mpa.c: New file.
942         * sysdeps/i386/fpu/mpatan.c: New file.
943         * sysdeps/i386/fpu/mpatan2.c: New file.
944         * sysdeps/i386/fpu/mpexp.c: New file.
945         * sysdeps/i386/fpu/mplog.c: New file.
946         * sysdeps/i386/fpu/mpsqrt.c: New file.
947         * sysdeps/i386/fpu/mptan.c: New file.
948         * sysdeps/i386/fpu/sincos32.c: New file.
949         * sysdeps/i386/fpu/slowexp.c: New file.
950         * sysdeps/i386/fpu/slowpow.c: New file.
951         * sysdeps/ia64/fpu/branred.c: New file.
952         * sysdeps/ia64/fpu/doasin.c: New file.
953         * sysdeps/ia64/fpu/dosincos.c: New file.
954         * sysdeps/ia64/fpu/halfulp.c: New file.
955         * sysdeps/ia64/fpu/mpa.c: New file.
956         * sysdeps/ia64/fpu/mpatan.c: New file.
957         * sysdeps/ia64/fpu/mpatan2.c: New file.
958         * sysdeps/ia64/fpu/mpexp.c: New file.
959         * sysdeps/ia64/fpu/mplog.c: New file.
960         * sysdeps/ia64/fpu/mpsqrt.c: New file.
961         * sysdeps/ia64/fpu/mptan.c: New file.
962         * sysdeps/ia64/fpu/sincos32.c: New file.
963         * sysdeps/ia64/fpu/slowexp.c: New file.
964         * sysdeps/ia64/fpu/slowpow.c: New file.
965         * sysdeps/m68k/fpu/branred.c: New file.
966         * sysdeps/m68k/fpu/doasin.c: New file.
967         * sysdeps/m68k/fpu/dosincos.c: New file.
968         * sysdeps/m68k/fpu/halfulp.c: New file.
969         * sysdeps/m68k/fpu/mpa.c: New file.
970         * sysdeps/m68k/fpu/mpatan.c: New file.
971         * sysdeps/m68k/fpu/mpatan2.c: New file.
972         * sysdeps/m68k/fpu/mpexp.c: New file.
973         * sysdeps/m68k/fpu/mplog.c: New file.
974         * sysdeps/m68k/fpu/mpsqrt.c: New file.
975         * sysdeps/m68k/fpu/mptan.c: New file.
976         * sysdeps/m68k/fpu/sincos32.c: New file.
977         * sysdeps/m68k/fpu/slowexp.c: New file.
978         * sysdeps/m68k/fpu/slowpow.c: New file.
980         * iconvdata/gconv-modules: Add a number of alias, mostly for IBM
981         codepages.
983 2001-03-11  Andreas Jaeger  <aj@suse.de>
985         * elf/elf.h (EM_*): Synch with official list.
987 2001-03-07  David Mosberger  <davidm@hpl.hp.com>
989         * sysdeps/ia64/bits/fenv.h (FE_NONIEEE_ENV): New macro.
991 2001-03-07  Jes Sorensen  <jes@linuxcare.com>
993         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Remove unused
994         variables addr & len.
996 2001-02-22  Jes Sorensen  <jes@linuxcare.com>
998         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Remove
999         punctuation in asm constraint.
1001 2001-03-07  Mark Kettenis  <kettenis@gnu.org>
1003         * resolv/netdb.h [__USE_GNU]: Define __need_timespec and include
1004         <time.h> to get definition of `struct timespec'.
1006 2001-03-08  Jakub Jelinek  <jakub@redhat.com>
1008         * elf/rtld.c (dl_main): If tracing, warn about undefined symbols if
1009         LD_WARN=1, not if LD_WARN is unset.
1011 2001-03-07  Andreas Schwab  <schwab@suse.de>
1013         * elf/ldconfig.h: Moved to ...
1014         * sysdeps/generic/ldconfig.h: ... here.
1015         * sysdeps/unix/sysv/linux/i386/ldconfig.h: New file.
1016         * sysdeps/unix/sysv/linux/m68k/ldconfig.h: New file.
1017         * sysdeps/unix/sysv/linux/ia64/ldconfig.h: New file.
1018         * elf/readlib.c (interpreters, known_libs): Use
1019         SYSDEP_KNOWN_INTERPRETER_NAMES and SYSDEP_KNOWN_LIBRARY_NAMES
1020         instead of hard coding old names.
1022 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
1024         * catgets/Makefile (generated): Add test-gencat.h.
1025         (sample.SJIS.cat): Also generate header.
1026         * catgets/sample.SJIS: Add new set and message, both with symbolic
1027         names.
1028         * catgets/test-gencat.sh: Also compare generated header with what
1029         we expect.
1031 2001-03-07  Jakub Jelinek  <jakub@redhat.com>
1033         * catgets/gencat.c (read_input_file): Preserve properly symbolic
1034         names.
1036 2001-03-06  Andreas Jaeger  <aj@suse.de>
1038         * sysdeps/s390/dl-machine.h (elf_machine_relplt): Removed, it's not
1039         needed.
1040         (elf_machine_pltrel_p): Likewise.
1041         * sysdeps/powerpc/dl-machine.h: Likewise.
1042         * sysdeps/generic/dl-machine.h (elf_machine_pltrel_p): Likewise.
1044 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
1046         * sysdeps/unix/sysv/linux/arm/Dist: Add dl-procinfo.c and
1047         dl-procinfo.h.
1049 2001-03-05  Philip Blundell  <philb@gnu.org>
1051         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: New file.
1052         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: New file.
1053         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1054         (sysdep-dl-routines, sysdep_routines, sysdep-rtld-routines): Add
1055         dl-procinfo.
1057 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
1059         * dlfcn/tstatexit.c (main): Don't perform the test if __dso_handle
1060         is not available.
1061         * dlfcn/tstcxaatexit.c (main): Likewise.
1063 2001-03-10  Andreas Jaeger  <aj@suse.de>
1065         * sysdeps/i386/fpu/libm-test-ulps: Revert last patch.
1067 2001-03-09  Andreas Jaeger  <aj@suse.de>
1069         * sysdeps/s390/dl-machine.h (elf_machine_matches_host): Handle
1070         both new and old EM_S390 values.
1071         (EM_S390_OLD): New constant.
1073         * elf/elf.h (EM_S390): Use official value.
1075 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
1077         * conform/data/sys/socket.h-data: Allow SO* symbols.
1079 2001-03-07  Andreas Schwab  <schwab@suse.de>
1081         * sysdeps/ia64/fpu/Makefile: Modify sysdep_routines instead of
1082         routines, and sysdep-CPPFLAGS instead of CPPFLAGS.
1084 2001-03-07  Andreas Jaeger  <aj@suse.de>
1086         * resolv/Makefile (routines): Only build gai_sigqueue when threads
1087         are available.
1089 2001-03-07  Jakub Jelinek  <jakub@redhat.com>
1091         * elf/ldconfig.c (_dl_sysdep_message): Remove.
1092         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Include
1093         ldsodefs.h.
1094         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
1096         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Use
1097         _dl_error_printf instead of _dl_sysdep_error.
1098         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1099         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h (_dl_procinfo):
1100         Use _dl_printf instead of _dl_sysdep_message.
1101         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h (_dl_procinfo):
1102         Likewise.
1104 2001-03-06  Ben Collins  <bcollins@debian.org>
1106         * manual/arith.texi (Integers): Fix documentation of fast and
1107         least integer typedefs.
1109 2001-03-06  Jakub Jelinek  <jakub@redhat.com>
1111         * resolv/Depend: New file.
1112         * resolv/Makefile (extra-libs, tests): Build libanl and ga_test only
1113         when libpthread is built.
1115 2001-03-06  Andreas Jaeger  <aj@suse.de>
1117         * sysdeps/i386/fpu/libm-test-ulps: Add some deltas.
1119         * sysdeps/sh/dl-machine.h (elf_machine_rela): Add missing comma.
1120         Patch by kaz Kojima <kkojima@rr.iij4u.or.jp>.
1122 2001-03-05  Ulrich Drepper  <drepper@redhat.com>
1124         * stdlib/Versions: Remove __new_exitfn again.  Not needed.
1126 2001-03-05  Andreas Jaeger  <aj@suse.de>
1128         * stdlib/msort.c (qsort): Don't use alloca in a function call.
1130 2001-03-05  Ulrich Drepper  <drepper@redhat.com>
1132         * sysdeps/unix/sysv/linux/bits/stat.h (__S_TYPEISMQ, __S_TYPEISSEM,
1133         __S_TYPEISSHM): Rewrite to enforce correct use the macros.  They still
1134         always return zero.
1135         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
1136         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1137         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1138         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1139         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1140         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1141         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1143 2001-03-04  Andreas Jaeger  <aj@suse.de>
1145         * stdlib/longlong.h: Don't use multi-line strings.
1146         * iconvdata/tst-loading.c: Likewise.
1148         * csu/Makefile ($(objpfx)version-info.h): Don't use multi-line
1149         string.
1151 2001-03-04  Ulrich Drepper  <drepper@redhat.com>
1153         * sysdeps/ia64/fpu/libm-test-ulps: Adjust for addition of lgammal.
1155         * rt/lio_listio.c: Add a few asserts.
1157         * elf/global.c: New file.
1158         * elf/globalmod1.c: New file.
1159         * elf/Makefile: Add rules to build and run global.
1161         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_ASYNCNL.
1162         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1163         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1164         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1165         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
1167         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: New file.
1168         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
1170         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Fix handling of boundary cases.
1172         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Always initialize sign variable.
1173         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1175         * sysdeps/i386/fpu/libm-test-ulps: Adjust after addition of lgammal.
1177         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Fix typo in last change.
1179 2001-03-04  Andreas Jaeger  <aj@suse.de>
1181         * resolv/tst-aton.c: Add testcase for IP with four periods.
1183         * resolv/inet_addr.c: Don't recognize an IP with four periods.
1184         Patch by Andre' Breiler <A.Breiler@gmx.net>.
1186 2001-02-27  Philip Blundell  <pb@futuretv.com>
1188         * elf/elf.h: Add new ARM definitions from latest (B-01)
1189         specification.  Correct naming of EF_ARM_ALIGN8 et al.
1191 2001-03-04  Ulrich Drepper  <drepper@redhat.com>
1193         * stdio-common/tst-printf.sh: Remove bashisms.
1194         Patch by Matthew Clarke <Matthew_Clarke@mindlink.bc.ca>.
1196 2001-03-03  Ulrich Drepper  <drepper@redhat.com>
1198         * Versions.def: Add libanl definition.
1199         * shlib-versions: Add entry for libanl.
1200         * resolv/Makefile (distribute): Add gai_misc.h and ga_test.c.
1201         (routines): Add gai_sigqueue.
1202         (extra-libs): Add libanl.
1203         (libanl-routines): New variable.
1204         Add rules to build libanl and ga_test.
1205         * resolv/Versions [libc] (GLIBC_2.2.3): Add __gai_sigqueue.
1206         [libanl]: New library.
1207         * resolv/netdb.h: Add definitions for libanl.
1208         * resolv/getaddrinfo_a.c: New file.
1209         * resolv/gai_cancel.c: New file.
1210         * resolv/gai_error.c: New file.
1211         * resolv/gai_misc.c: New file.
1212         * resolv/gai_misc.h: New file.
1213         * resolv/gai_notify.c: New file.
1214         * resolv/gai_suspend.c: New file.
1215         * resolv/ga_test.c: New file.
1216         * sysdeps/generic/gai_sigqueue.c: New file.
1217         * sysdeps/unix/sysv/linux/gai_sigqueue.c: New file.
1218         * sysdeps/generic/bits/siginfo.h: Allow __need_sigevent_t being defined
1219         and provide only that definition.
1220         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
1221         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1222         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1223         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1224         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1225         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
1227         * rt/aio_misc.c: Fix typos in comments.
1228         * rt/lio_listio.c: Pretty printing.  Little optimization in request
1229         list handling.
1231         * elf/rtld.c: Remove commented out code.
1233         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC):
1234         Update for real 2.4 kernels.
1236 2001-03-01  Ulrich Drepper  <drepper@redhat.com>
1238         * elf/dl-load.c: Pretty printing.
1240         * elf/dl-object.c (_dl_new_object): Don't add the loader's scope
1241         twice.
1243 2001-02-28  Ulrich Drepper  <drepper@redhat.com>
1245         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1246         relocations which are not in ld.so if RTLD_BOOTSTRAP is defined.
1248         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
1250         * elf/dl-misc.c (_dl_debug_vdprintf): Fix typo visible on 64-bit
1251         machines.
1253         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (C_TEXT): Define.
1255 2001-02-27  Ulrich Drepper  <drepper@redhat.com>
1257         * sysdeps/powerpc/elf/libc-start.c: Use new output functions and
1258         _dl_debug_mask.
1260         * elf/Versions [ld]: Don't export _dl_debug_message anymore.  Export
1261         _dl_debug_printf.
1262         * elf/dl-misc.c: Remove definition of _dl_sysdep_output and
1263         _dl_debug_message.  Define _dl_debug_vdprintf, _dl_debug_printf,
1264         _dl_debug_printf_c, and _dl_printf.
1265         * sysdeps/generic/ldsodefs.h: Don't declare _dl_sysdep_output,
1266         _dl_debug_message, _dl_sysdep_message, _dl_sysdep_error, and
1267         _dl_sysdep_fatal.  Declare _dl_debug_printf, _dl_debug_printf_c,
1268         _dl_printf, _dl_error_printf, and _dl_fatal_printf.
1269         * elf/dl-close.c: Replace use of old output functions with the new
1270         ones.
1271         * elf/dl-deps.c: Likewise.
1272         * elf/dl-error.c: Likewise.
1273         * elf/dl-fini.c: Likewise.
1274         * elf/dl-init.c: Likewise.
1275         * elf/dl-load.c: Likewise.
1276         * elf/dl-lookup.c: Likewise.
1277         * elf/dl-minimal.c: Likewise.
1278         * elf/dl-open.c: Likewise.
1279         * elf/dl-profile.c: Likewise.
1280         * elf/dl-reloc.c: Likewise.
1281         * elf/dl-version.c: Likewise.
1282         * elf/do-lookup.h: Likewise.
1283         * elf/rtld.c: Likewise.
1284         * sysdeps/generic/dl-cache.c: Likewise.
1285         * sysdeps/generic/dl-sysdep.c: Likewise.
1286         * sysdeps/generic/libc-start.c: Likewise.
1287         * sysdeps/i386/dl-machine.h: Likewise.
1288         * sysdeps/arm/dl-machine.h: Likewise.
1289         * sysdeps/hppa/dl-machine.h: Likewise.
1290         * sysdeps/m68k/dl-machine.h: Likewise.
1291         * sysdeps/powerpc/dl-machine.h: Likewise.
1292         * sysdeps/s390/dl-machine.h: Likewise.
1293         * sysdeps/sh/dl-machine.h: Likewise.
1294         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1295         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1296         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
1298         * sysdeps/generic/ldsodefs.h: Remove _dl_secure declaration.
1300         * dlfcn/Makefile: Don't run tstatexit test unless .hidden is
1301         supported by assembler.
1303         * sysdeps/generic/ldsodefs.h: Remove commented-out variable
1304         declaractions.
1306         * elf/rtld.c: Little optimizations in handling _dl_lazy.
1308         * elf/cache.c (save_cache): Portability changes.
1309         * elf/dl-profile.c (_dl_start_profile): Likewise.
1311         * elf/sln.c: Cleanups.  Remove arbitrary limits.
1313         * elf/dl-close.c: Replace _dl_debug_* variables with _dl_debug_mask.
1314         * elf/dl-deps.c: Likewise.
1315         * elf/dl-fini.c: Likewise.
1316         * elf/dl-init.c: Likewise.
1317         * elf/dl-load.c: Likewise.
1318         * elf/dl-lookup.c: Likewise.
1319         * elf/dl-open.c: Likewise.
1320         * elf/dl-reloc.c: Likewise.
1321         * elf/dl-support.c: Likewise.
1322         * elf/dl-version.c: Likewise.
1323         * elf/do-lookup.h: Likewise.
1324         * elf/rtld.c: Likewise.
1325         * sysdeps/generic/dl-cache.c: Likewise.
1326         * sysdeps/generic/ldsodefs.h: Likewise.
1327         * sysdeps/generic/libc-start.c: Likewise.
1328         * elf/Versions: Don't export _dl_debug_impcalls and _dl_debug_files.
1329         Export _dl_debug_mask.
1330         * Versions.def: Define GLIBC_2.2.3 for ld.
1332 2001-02-26  Greg McGary  <greg@mcgary.org>
1334         * sysdeps/unix/make-syscalls.sh (ptr): Handle `V' keyletter.
1336 2001-02-26  Paul Eggert  <eggert@twinsun.com>
1338         Modify mkstemp.c and tempname.c so that they can be used by
1339         GNU applications on non-glibc platforms.
1341         * misc/mkstemp.c (__GT_FILE): Define to zero if not defined.
1343         * sysdeps/posix/tempname.c: Include <config.h> if HAVE_CONFIG_H.
1344         Include <stddef.h>, <stdint.h>, <string.h> only if
1345         STDC_HEADERS || _LIBC.
1346         Include <fcntl.h> only if HAVE_FCNTL_H || _LIBC.
1347         Include <unistd.h> only if HAVE_UNISTD_H || _LIBC.
1348         Include <sys/time.h> only if HAVE_SYS_TIME_H || _LIBC.
1349         (__set_errno): Define this macro if <errno.h> doesn't.
1350         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
1351         Define these macros if <stdio.h> doesn't.
1352         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
1353         Define these macros if <sys/stat.h> doesn't.
1354         Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
1355         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64,
1356         lxstat64, __xstat64): Define if not _LIBC.
1357         (struct_stat64): New macro.
1358         (direxists, __gen_tempname): Use it, to avoid a
1359         portability problem with Solaris 8.
1360         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
1361         (__gen_tempname): Invoke gettimeofday only if
1362         HAVE_GETTIMEOFDAY || _LIBC; otherwise, fall back on plain "time".
1363         Use portable macros like S_IRUSR | S_IWUSR rather than nonportable
1364         octal values like 0600.
1366 2001-02-26  Ulrich Drepper  <drepper@redhat.com>
1368         * sysdeps/ieee754/ldbl-96/e_jnl.c: New file.
1369         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
1371         * sysdeps/i386/fpu/libm-test-ulps: Update for jnl and ynl introduction.
1372         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
1374         * posix/wordexp-test.c (testit): Remove warnings.
1376         * dlfcn/Makefile (distribute): Add modatexit.c and modcxaatexit.c.
1377         (tests): Add tstatexit and tstcxaatexit.
1378         (module-names): Add modatexit and modcxaatexit.
1379         Add rules to build and run tstatexit and tstcxaatexit.
1380         * dlfcn/modatexit.c: New file.
1381         * dlfcn/modcxaatexit.c: New file.
1382         * dlfcn/tstatexit.c: New file.
1383         * dlfcn/tstcxaatexit.c: New file.
1385         * io/Makefile: Pass -DHAVE_DOT_HIDDEN to stat and mknod functions if
1386         .hidden is available.
1387         * io/stat.c: If .hidden is available use it to avoid exporting
1388         functions.
1389         * io/fstat.c: Likewise.
1390         * io/lstat.c: Likewise.
1391         * io/stat64.c: Likewise.
1392         * io/fstat64.c: Likewise.
1393         * io/lstat64.c: Likewise.
1394         * sysdeps/generic/mknod.c: Likewise.
1396         * malloc/mtrace.c: Use __cxa_atexit and not atexit.
1397         * sysdeps/generic/bb_init_func.c: Likewise.
1398         * sysdeps/generic/libc-start.c: Likewise.
1400         * stdlib/atexit.c (__new_exitfn): Move to cxa_atexit.c.
1401         (atexit): Implement using __cxa_atexit.
1402         Use .hidden if availble to avoid exporting atexit.
1403         * stdlib/cxa_atexit.c (__new_exitfn): Moved to here from atexit.c.
1404         * stdlib/Versions: Export __new_exitfn for GLIBC_2.2.3.
1405         * stdlib/Makefile (routines): Add old_atexit.
1406         (static-only-routines): Add atexit.
1407         Pass -DHAVE_DOT_HIDDEN for atexit.c if .hidden is available.
1408         * stdlib/old_atexit.c: New file.
1410         * intl/Makefile: Remove bogus endif.
1412 2001-02-26  Andreas Jaeger  <aj@suse.de>
1414         * iconvdata/Makefile (tests): Fix typo in last patch.
1416         * intl/Makefile (tests): Run mtrace-tst-gettext only when perl is
1417         available.
1418         Reported by Achim Gottinger <achim@gentoo.org>.
1420 2001-02-25  Andreas Jaeger  <aj@suse.de>
1422         * intl/Makefile (plural.c): Reorder rules so that they work if
1423         BISON doesn't exist.
1425 2001-02-25  Ulrich Drepper  <drepper@redhat.com>
1427         * intl/locale.alias: Don't use nb_NO but define aliases for it.
1429 2001-02-23  Ulrich Drepper  <drepper@redhat.com>
1431         * sysdeps/i386/strtok.S: Continue to return NULL after the first
1432         time this happened.
1434 2001-02-23  Andreas Jaeger  <aj@suse.de>
1436         * string/tester.c (test_strtok_r): Add testcase.
1437         (test_strtok_r): Always initialize cp for proper checking.
1439         * sysdeps/generic/strtok.c (strtok): Handle case of first strtok
1440         returning NULL correctly.
1441         Patch by Fumitoshi UKAI <ukai@debian.or.jp>.
1442         * sysdeps/generic/strtok_r.c (__strtok_r): Likewise.
1444 2001-02-23  Ulrich Drepper  <drepper@redhat.com>
1446         * sysdeps/unix/sysv/aix/bits/types.h: Define __need_NULL before
1447         including <stddef.h>.
1448         * sysdeps/unix/sysv/aix/write.c: Define alias __libc_write.
1449         * include/libc-symbols.h (weak_alias): Don't use .weak if
1450         HAVE_ASM_GLOBAL_DOT_NAME is defined.
1451         Patches by Michael Keezer <mkeezer@redhat.com>.
1453         * sysdeps/generic/ftime.c: Don't include <sys/time.h> at all.
1454         Patch by Michael Keezer <mkeezer@redhat.com>.
1456         * sysdeps/unix/sysv/aix/Dist: Remove restf.S and savef.S.
1457         * sysdeps/unix/sysv/aix/Makefile [$(subdir) == misc]
1458         (sysdep_routines): Remove restf.S and savef.S.
1459         * sysdeps/unix/sysv/aix/restf.S. Removed.
1460         * sysdeps/unix/sysv/aix/savef.S. Removed.
1461         * sysdeps/powerpc/fprrest.S: Use C_TEXT to define label.  Also define
1462         alternative names used on some platforms.
1463         * sysdeps/powerpc/fprsave.S: Likewise.
1464         * sysdeps/powerpc/gprrest0.S: Likewise.
1465         * sysdeps/powerpc/gprrest1.S: Likewise.
1466         * sysdeps/powerpc/gprsave0.S: Likewise.
1467         * sysdeps/powerpc/gprsave1.S: Likewise.
1468         Patch by Michael Keezer <mkeezer@redhat.com>.
1470 2001-02-22  Ulrich Drepper  <drepper@redhat.com>
1472         * sysdeps/i386/elf/start.S (_fp_hw): Actually define label.
1474 2001-02-22  Andreas Jaeger  <aj@suse.de>
1476         * string/tst-strtok.c (main): Fix error messages.
1478 2001-02-22  Andreas Jaeger  <aj@suse.de>
1480         * math/Makefile: Remove omit-long-double-fcts.
1482 2001-02-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1484         * sysdeps/mips/bsd-_setjmp.S (_setjmp): Reorder instructions to
1485         avoid problems on MIPS I.
1486         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
1488         * sysdeps/mips/dl-machine.h (RTLD_START): Remove duplicate ".set
1489         noreorder".
1491 2001-02-21  Ulrich Drepper  <drepper@redhat.com>
1493         * posix/fnmatch_loop.c: Handle ranges outside glibc correctly.
1495         * sysdeps/generic/ftime.c: Include <time.h>.
1497         * configure.in: Don't check for libgd if user passed --without-gd.
1498         Patch by Achim Gottinger <achim@gentoo.org>.
1500         * sysdeps/i386/i686/strtok.S: Continue to return NULL after the
1501         first time this happened.
1502         * string/Makefile (tests): Add tst-strtok.
1504 2001-02-21  Andreas Jaeger  <aj@suse.de>
1506         * string/tst-strtok.c: New testcase, reported by
1507         Andrew Church <achurch@achurch.org>.
1509 2001-02-20  Ulrich Drepper  <drepper@redhat.com>
1511         * libio/iofwide.c: Remove fwide alias.
1513 2001-02-20  Andreas Jaeger  <aj@suse.de>
1515         * iconvdata/Makefile (tests): Only run mtrace-tst-loading if perl
1516         is available.
1517         Reported by Achim Gottinger <achim@gentoo.org>.
1519 2001-02-19  Ulrich Drepper  <drepper@redhat.com>
1521         * iconv/tst-iconv1.c (main): Remove debugging code.
1523         * sysdeps/ieee754/flt-32/e_powf.c: Handle x == +-1 correctly.
1524         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1526         * sysdeps/generic/e_scalb.c: Set invalid exception for invalid
1527         parameters.
1528         * sysdeps/generic/e_scalbf.c: Likewise.
1529         * sysdeps/generic/e_scalbl.c: Likewise.
1531         * sysdeps/ia64/fpu/Makefile (libm-sysdep-routines): Add libm_error,
1532         libm_frexp4, libm_frexp4f, libm_frexp4l, and all the functions also
1533         in libc.
1534         (routines): Replace libm_error with libc_libm_error.
1535         * sysdeps/ia64/fpu/Dist: Add libc_libm_error.c.
1536         * sysdeps/ia64/fpu/libc_libm_error.c: New file.
1538 2001-02-18  Mark Kettenis  <kettenis@gnu.org>
1540         * malloc/mtrace.c [USE_IN_LIBIO]: Define fopen as _IO_fopen64.
1541         (mtrace): Revert 2001-02-13 patch: use fopen instead of fopen64.
1543 2001-02-17  H.J. Lu  <hjl@gnu.org>
1545         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use clone2 and don't use
1546         scratch registers across the system call.
1548 2001-02-19  Andreas Jaeger  <aj@suse.de>
1550         * malloc/Makefile (tests): Run mtrace only when perl is available.
1551         Reported by Achim Gottinger <achim@gentoo.org>.
1553 2001-02-19  Ulrich Drepper  <drepper@redhat.com>
1555         * sysdeps/ieee754/ldbl-96/e_j1l.c: New file.
1556         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
1558         * sysdeps/i386/fpu/libm-test-ulps: Adjust error values for j1 and y1.
1559         * sysdeps/ia64/fpu/libm-test-ulps: Adjust error values for y1.
1560         * math/libm-test.inc (j1_test): Mark constants as long double.
1561         (jn_test): Likewise.
1562         (y1_test): Likewise.
1563         (yn_test): Likewise.
1565         * libio/iogetline.c: Move return until after last statement.
1567         * localedata/show-ucs-data.c: Don't show < > for better readability.
1569         * sysdeps/ia64/fpu/Dist: New file.
1570         * sysdeps/ia64/fpu/Makefile: New file.
1571         * sysdeps/ia64/fpu/Versions: New file.
1572         * sysdeps/ia64/fpu/e_acos.S: New file.
1573         * sysdeps/ia64/fpu/e_acosf.S: New file.
1574         * sysdeps/ia64/fpu/e_acosl.S: New file.
1575         * sysdeps/ia64/fpu/e_asin.S: New file.
1576         * sysdeps/ia64/fpu/e_asinf.S: New file.
1577         * sysdeps/ia64/fpu/e_asinl.S: New file.
1578         * sysdeps/ia64/fpu/e_atan2.S: New file.
1579         * sysdeps/ia64/fpu/e_atan2f.S: New file.
1580         * sysdeps/ia64/fpu/e_atan2l.c: New file.
1581         * sysdeps/ia64/fpu/e_cosh.S: New file.
1582         * sysdeps/ia64/fpu/e_coshf.S: New file.
1583         * sysdeps/ia64/fpu/e_coshl.S: New file.
1584         * sysdeps/ia64/fpu/e_exp.S: New file.
1585         * sysdeps/ia64/fpu/e_expf.S: New file.
1586         * sysdeps/ia64/fpu/e_expl.c: New file.
1587         * sysdeps/ia64/fpu/e_fmod.S: New file.
1588         * sysdeps/ia64/fpu/e_fmodf.S: New file.
1589         * sysdeps/ia64/fpu/e_fmodl.S: New file.
1590         * sysdeps/ia64/fpu/e_hypot.S: New file.
1591         * sysdeps/ia64/fpu/e_hypotf.S: New file.
1592         * sysdeps/ia64/fpu/e_hypotl.S: New file.
1593         * sysdeps/ia64/fpu/e_log.S: New file.
1594         * sysdeps/ia64/fpu/e_log10.c: New file.
1595         * sysdeps/ia64/fpu/e_log10f.c: New file.
1596         * sysdeps/ia64/fpu/e_log10l.c: New file.
1597         * sysdeps/ia64/fpu/e_logf.S: New file.
1598         * sysdeps/ia64/fpu/e_logl.c: New file.
1599         * sysdeps/ia64/fpu/e_pow.S: New file.
1600         * sysdeps/ia64/fpu/e_powf.S: New file.
1601         * sysdeps/ia64/fpu/e_powl.S: New file.
1602         * sysdeps/ia64/fpu/e_rem_pio2.c: New file.
1603         * sysdeps/ia64/fpu/e_rem_pio2f.c: New file.
1604         * sysdeps/ia64/fpu/e_remainder.S: New file.
1605         * sysdeps/ia64/fpu/e_remainderf.S: New file.
1606         * sysdeps/ia64/fpu/e_remainderl.S: New file.
1607         * sysdeps/ia64/fpu/e_scalb.S: New file.
1608         * sysdeps/ia64/fpu/e_scalbf.S: New file.
1609         * sysdeps/ia64/fpu/e_scalbl.S: New file.
1610         * sysdeps/ia64/fpu/e_sinh.S: New file.
1611         * sysdeps/ia64/fpu/e_sinhf.S: New file.
1612         * sysdeps/ia64/fpu/e_sinhl.S: New file.
1613         * sysdeps/ia64/fpu/e_sqrt.S: New file.
1614         * sysdeps/ia64/fpu/e_sqrtf.S: New file.
1615         * sysdeps/ia64/fpu/e_sqrtl.S: New file.
1616         * sysdeps/ia64/fpu/k_rem_pio2.c: New file.
1617         * sysdeps/ia64/fpu/k_rem_pio2f.c: New file.
1618         * sysdeps/ia64/fpu/k_rem_pio2l.c: New file.
1619         * sysdeps/ia64/fpu/libm_atan2_reg.S: New file.
1620         * sysdeps/ia64/fpu/libm_error.c: New file.
1621         * sysdeps/ia64/fpu/libm_frexp4.S: New file.
1622         * sysdeps/ia64/fpu/libm_frexp4f.S: New file.
1623         * sysdeps/ia64/fpu/libm_frexp4l.S: New file.
1624         * sysdeps/ia64/fpu/libm_reduce.S: New file.
1625         * sysdeps/ia64/fpu/libm_support.h: New file.
1626         * sysdeps/ia64/fpu/libm_tan.S: New file.
1627         * sysdeps/ia64/fpu/s_atan.S: New file.
1628         * sysdeps/ia64/fpu/s_atanf.S: New file.
1629         * sysdeps/ia64/fpu/s_atanl.S: New file.
1630         * sysdeps/ia64/fpu/s_cbrt.S: New file.
1631         * sysdeps/ia64/fpu/s_cbrtf.S: New file.
1632         * sysdeps/ia64/fpu/s_cbrtl.S: New file.
1633         * sysdeps/ia64/fpu/s_ceil.S: New file.
1634         * sysdeps/ia64/fpu/s_ceilf.S: New file.
1635         * sysdeps/ia64/fpu/s_ceill.S: New file.
1636         * sysdeps/ia64/fpu/s_cos.S: New file.
1637         * sysdeps/ia64/fpu/s_cosf.S: New file.
1638         * sysdeps/ia64/fpu/s_cosl.S: New file.
1639         * sysdeps/ia64/fpu/s_expm1.S: New file.
1640         * sysdeps/ia64/fpu/s_expm1f.S: New file.
1641         * sysdeps/ia64/fpu/s_expm1l.S: New file.
1642         * sysdeps/ia64/fpu/s_floor.S: New file.
1643         * sysdeps/ia64/fpu/s_floorf.S: New file.
1644         * sysdeps/ia64/fpu/s_floorl.S: New file.
1645         * sysdeps/ia64/fpu/s_frexp.c: New file.
1646         * sysdeps/ia64/fpu/s_frexpf.c: New file.
1647         * sysdeps/ia64/fpu/s_frexpl.c: New file.
1648         * sysdeps/ia64/fpu/s_ilogb.S: New file.
1649         * sysdeps/ia64/fpu/s_ilogbf.S: New file.
1650         * sysdeps/ia64/fpu/s_ilogbl.S: New file.
1651         * sysdeps/ia64/fpu/s_ldexp.S: New file.
1652         * sysdeps/ia64/fpu/s_ldexpf.S: New file.
1653         * sysdeps/ia64/fpu/s_ldexpl.S: New file.
1654         * sysdeps/ia64/fpu/s_log1p.S: New file.
1655         * sysdeps/ia64/fpu/s_log1pf.S: New file.
1656         * sysdeps/ia64/fpu/s_log1pl.S: New file.
1657         * sysdeps/ia64/fpu/s_logb.S: New file.
1658         * sysdeps/ia64/fpu/s_logbf.S: New file.
1659         * sysdeps/ia64/fpu/s_logbl.S: New file.
1660         * sysdeps/ia64/fpu/s_matherrf.c: New file.
1661         * sysdeps/ia64/fpu/s_matherrl.c: New file.
1662         * sysdeps/ia64/fpu/s_modf.S: New file.
1663         * sysdeps/ia64/fpu/s_modff.S: New file.
1664         * sysdeps/ia64/fpu/s_modfl.S: New file.
1665         * sysdeps/ia64/fpu/s_nearbyint.S: New file.
1666         * sysdeps/ia64/fpu/s_nearbyintf.S: New file.
1667         * sysdeps/ia64/fpu/s_nearbyintl.S: New file.
1668         * sysdeps/ia64/fpu/s_rint.S: New file.
1669         * sysdeps/ia64/fpu/s_rintf.S: New file.
1670         * sysdeps/ia64/fpu/s_rintl.S: New file.
1671         * sysdeps/ia64/fpu/s_round.S: New file.
1672         * sysdeps/ia64/fpu/s_roundf.S: New file.
1673         * sysdeps/ia64/fpu/s_roundl.S: New file.
1674         * sysdeps/ia64/fpu/s_scalbn.S: New file.
1675         * sysdeps/ia64/fpu/s_scalbnf.S: New file.
1676         * sysdeps/ia64/fpu/s_scalbnl.S: New file.
1677         * sysdeps/ia64/fpu/s_significand.S: New file.
1678         * sysdeps/ia64/fpu/s_significandf.S: New file.
1679         * sysdeps/ia64/fpu/s_significandl.S: New file.
1680         * sysdeps/ia64/fpu/s_sin.c: New file.
1681         * sysdeps/ia64/fpu/s_sincos.c: New file.
1682         * sysdeps/ia64/fpu/s_sincosf.c: New file.
1683         * sysdeps/ia64/fpu/s_sincosl.c: New file.
1684         * sysdeps/ia64/fpu/s_sinf.c: New file.
1685         * sysdeps/ia64/fpu/s_sinl.c: New file.
1686         * sysdeps/ia64/fpu/s_tan.S: New file.
1687         * sysdeps/ia64/fpu/s_tanf.S: New file.
1688         * sysdeps/ia64/fpu/s_tanl.S: New file.
1689         * sysdeps/ia64/fpu/s_trunc.S: New file.
1690         * sysdeps/ia64/fpu/s_truncf.S: New file.
1691         * sysdeps/ia64/fpu/s_truncl.S: New file.
1692         * sysdeps/ia64/fpu/w_acos.c: New file.
1693         * sysdeps/ia64/fpu/w_acosf.c: New file.
1694         * sysdeps/ia64/fpu/w_acosl.c: New file.
1695         * sysdeps/ia64/fpu/w_asin.c: New file.
1696         * sysdeps/ia64/fpu/w_asinf.c: New file.
1697         * sysdeps/ia64/fpu/w_asinl.c: New file.
1698         * sysdeps/ia64/fpu/w_atan2.c: New file.
1699         * sysdeps/ia64/fpu/w_atan2f.c: New file.
1700         * sysdeps/ia64/fpu/w_atan2l.c: New file.
1701         * sysdeps/ia64/fpu/w_cosh.c: New file.
1702         * sysdeps/ia64/fpu/w_coshf.c: New file.
1703         * sysdeps/ia64/fpu/w_coshl.c: New file.
1704         * sysdeps/ia64/fpu/w_exp.c: New file.
1705         * sysdeps/ia64/fpu/w_expf.c: New file.
1706         * sysdeps/ia64/fpu/w_fmod.c: New file.
1707         * sysdeps/ia64/fpu/w_fmodf.c: New file.
1708         * sysdeps/ia64/fpu/w_fmodl.c: New file.
1709         * sysdeps/ia64/fpu/w_hypot.c: New file.
1710         * sysdeps/ia64/fpu/w_hypotf.c: New file.
1711         * sysdeps/ia64/fpu/w_hypotl.c: New file.
1712         * sysdeps/ia64/fpu/w_log.c: New file.
1713         * sysdeps/ia64/fpu/w_log10.c: New file.
1714         * sysdeps/ia64/fpu/w_log10f.c: New file.
1715         * sysdeps/ia64/fpu/w_log10l.c: New file.
1716         * sysdeps/ia64/fpu/w_logf.c: New file.
1717         * sysdeps/ia64/fpu/w_logl.c: New file.
1718         * sysdeps/ia64/fpu/w_pow.c: New file.
1719         * sysdeps/ia64/fpu/w_powf.c: New file.
1720         * sysdeps/ia64/fpu/w_powl.c: New file.
1721         * sysdeps/ia64/fpu/w_remainder.c: New file.
1722         * sysdeps/ia64/fpu/w_remainderf.c: New file.
1723         * sysdeps/ia64/fpu/w_remainderl.c: New file.
1724         * sysdeps/ia64/fpu/w_scalb.c: New file.
1725         * sysdeps/ia64/fpu/w_scalbf.c: New file.
1726         * sysdeps/ia64/fpu/w_scalbl.c: New file.
1727         * sysdeps/ia64/fpu/w_sqrt.c: New file.
1728         * sysdeps/ia64/fpu/w_sqrtf.c: New file.
1729         * sysdeps/ia64/fpu/w_sqrtl.c: New file.
1730         * sysdeps/ia64/fpu/libm-test-ulps: Adjust for long double
1731         implementation.
1732         * sysdeps/ia64/fpu/bits/mathdef.h: Correct float_t and double_t types.
1733         Change FP_ILOGBNAN for new implementation.
1734         * Verions.def: Add 2.2.3 versions.
1736 2001-02-18  Ulrich Drepper  <drepper@redhat.com>
1738         * math/libm-test.inc (scalb_test): Require invalid exception being
1739         raised for invalid parameters.
1740         * sysdeps/i386/fpu/e_scalb.S: Raise invalid exception if necessary.
1741         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1742         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1744 2001-02-18  Mark Kettenis  <kettenis@gnu.org>
1746         * sysdeps/mach/getsysstats.c (__get_phys_pages): Change return
1747         value to long int.
1748         (__get_avphys_pages): Likewise.
1750 2001-02-18  Ulrich Drepper  <drepper@redhat.com>
1752         * math/libm-test.inc (pow_test): Correct expected results for x == +-1.
1753         * sysdeps/i386/fpu/e_pow.S: Handle x == +-1 correctly.
1754         * sysdeps/i386/fpu/e_powf.S: Likewise.
1755         * sysdeps/i386/fpu/e_powl.S: Likewise.
1757         * sysdeps/i386/fpu/bits/mathinline.h: Remove pow inline code.
1759 2001-02-17  Ulrich Drepper  <drepper@redhat.com>
1761         * math/Makefile (libm-calls): It's e_exp2 not s_exp2.
1763         * sysdeps/generic/s_exp2l.c: Renamed to...
1764         * sysdeps/generic/e_exp2l.c: ...this.   New file.
1765         * sysdeps/i386/fpu/s_exp2.S: Renamed to...
1766         * sysdeps/i386/fpu/e_exp2.S: ...this.   New file.
1767         * sysdeps/i386/fpu/s_exp2f.S: Renamed to...
1768         * sysdeps/i386/fpu/e_exp2f.S: ...this.   New file.
1769         * sysdeps/i386/fpu/s_exp2l.S: Renamed to...
1770         * sysdeps/i386/fpu/e_exp2l.S: ...this.   New file.
1771         * sysdeps/ieee754/flt-32/s_exp2f.c: Renamed to...
1772         * sysdeps/ieee754/flt-32/e_exp2f.c: ...this.   New file.
1773         * sysdeps/ieee754/dbl-64/s_exp2.c: Renamed to...
1774         * sysdeps/ieee754/dbl-64/e_exp2.c: ...this.   New file.
1775         * sysdeps/m68k/fpu/s_exp2.c: Renamed to...
1776         * sysdeps/m68k/fpu/e_exp2.c: ...this.   New file.
1777         * sysdeps/m68k/fpu/s_exp2f.c: Renamed to...
1778         * sysdeps/m68k/fpu/e_exp2f.c: ...this.   New file.
1779         * sysdeps/m68k/fpu/s_exp2l.c: Renamed to...
1780         * sysdeps/m68k/fpu/e_exp2l.c: ...this.   New file.
1782 2001-02-17  Andreas Jaeger  <aj@suse.de>
1784         * configure.in: Allow gcc 3.
1786 2001-02-16  Ulrich Drepper  <drepper@redhat.com>
1788         * math/w_acos.c: Move to ...
1789         * sysdeps/generic/w_acos.c: ...here.  New file.
1790         * math/w_acosf.c: Move to ...
1791         * sysdeps/generic/w_acosf.c: ...here.  New file.
1792         * math/w_acosh.c: Move to ...
1793         * sysdeps/generic/w_acosh.c: ...here.  New file.
1794         * math/w_acoshf.c: Move to ...
1795         * sysdeps/generic/w_acoshf.c: ...here.  New file.
1796         * math/w_acoshl.c: Move to ...
1797         * sysdeps/generic/w_acoshl.c: ...here.  New file.
1798         * math/w_acosl.c: Move to ...
1799         * sysdeps/generic/w_acosl.c: ...here.  New file.
1800         * math/w_asin.c: Move to ...
1801         * sysdeps/generic/w_asin.c: ...here.  New file.
1802         * math/w_asinf.c: Move to ...
1803         * sysdeps/generic/w_asinf.c: ...here.  New file.
1804         * math/w_asinl.c: Move to ...
1805         * sysdeps/generic/w_asinl.c: ...here.  New file.
1806         * math/w_atan2.c: Move to ...
1807         * sysdeps/generic/w_atan2.c: ...here.  New file.
1808         * math/w_atan2f.c: Move to ...
1809         * sysdeps/generic/w_atan2f.c: ...here.  New file.
1810         * math/w_atan2l.c: Move to ...
1811         * sysdeps/generic/w_atan2l.c: ...here.  New file.
1812         * math/w_atanh.c: Move to ...
1813         * sysdeps/generic/w_atanh.c: ...here.  New file.
1814         * math/w_atanhf.c: Move to ...
1815         * sysdeps/generic/w_atanhf.c: ...here.  New file.
1816         * math/w_atanhl.c: Move to ...
1817         * sysdeps/generic/w_atanhl.c: ...here.  New file.
1818         * math/w_cosh.c: Move to ...
1819         * sysdeps/generic/w_cosh.c: ...here.  New file.
1820         * math/w_coshf.c: Move to ...
1821         * sysdeps/generic/w_coshf.c: ...here.  New file.
1822         * math/w_coshl.c: Move to ...
1823         * sysdeps/generic/w_coshl.c: ...here.  New file.
1824         * math/w_drem.c: Move to ...
1825         * sysdeps/generic/w_drem.c: ...here.  New file.
1826         * math/w_dremf.c: Move to ...
1827         * sysdeps/generic/w_dremf.c: ...here.  New file.
1828         * math/w_dreml.c: Move to ...
1829         * sysdeps/generic/w_dreml.c: ...here.  New file.
1830         * math/w_exp10.c: Move to ...
1831         * sysdeps/generic/w_exp10.c: ...here.  New file.
1832         * math/w_exp10f.c: Move to ...
1833         * sysdeps/generic/w_exp10f.c: ...here.  New file.
1834         * math/w_exp10l.c: Move to ...
1835         * sysdeps/generic/w_exp10l.c: ...here.  New file.
1836         * math/w_exp2.c: Move to ...
1837         * sysdeps/generic/w_exp2.c: ...here.  New file.
1838         * math/w_exp2f.c: Move to ...
1839         * sysdeps/generic/w_exp2f.c: ...here.  New file.
1840         * math/w_exp2l.c: Move to ...
1841         * sysdeps/generic/w_exp2l.c: ...here.  New file.
1842         * math/w_fmod.c: Move to ...
1843         * sysdeps/generic/w_fmod.c: ...here.  New file.
1844         * math/w_fmodf.c: Move to ...
1845         * sysdeps/generic/w_fmodf.c: ...here.  New file.
1846         * math/w_fmodl.c: Move to ...
1847         * sysdeps/generic/w_fmodl.c: ...here.  New file.
1848         * math/w_hypot.c: Move to ...
1849         * sysdeps/generic/w_hypot.c: ...here.  New file.
1850         * math/w_hypotf.c: Move to ...
1851         * sysdeps/generic/w_hypotf.c: ...here.  New file.
1852         * math/w_hypotl.c: Move to ...
1853         * sysdeps/generic/w_hypotl.c: ...here.  New file.
1854         * math/w_j0.c: Move to ...
1855         * sysdeps/generic/w_j0.c: ...here.  New file.
1856         * math/w_j0f.c: Move to ...
1857         * sysdeps/generic/w_j0f.c: ...here.  New file.
1858         * math/w_j0l.c: Move to ...
1859         * sysdeps/generic/w_j0l.c: ...here.  New file.
1860         * math/w_j1.c: Move to ...
1861         * sysdeps/generic/w_j1.c: ...here.  New file.
1862         * math/w_j1f.c: Move to ...
1863         * sysdeps/generic/w_j1f.c: ...here.  New file.
1864         * math/w_j1l.c: Move to ...
1865         * sysdeps/generic/w_j1l.c: ...here.  New file.
1866         * math/w_jn.c: Move to ...
1867         * sysdeps/generic/w_jn.c: ...here.  New file.
1868         * math/w_jnf.c: Move to ...
1869         * sysdeps/generic/w_jnf.c: ...here.  New file.
1870         * math/w_jnl.c: Move to ...
1871         * sysdeps/generic/w_jnl.c: ...here.  New file.
1872         * math/w_lgamma.c: Move to ...
1873         * sysdeps/generic/w_lgamma.c: ...here.  New file.
1874         * math/w_lgammaf.c: Move to ...
1875         * sysdeps/generic/w_lgammaf.c: ...here.  New file.
1876         * math/w_lgammaf_r.c: Move to ...
1877         * sysdeps/generic/w_lgammaf_r.c: ...here.  New file.
1878         * math/w_lgammal.c: Move to ...
1879         * sysdeps/generic/w_lgammal.c: ...here.  New file.
1880         * math/w_lgammal_r.c: Move to ...
1881         * sysdeps/generic/w_lgammal_r.c: ...here.  New file.
1882         * math/w_lgamma_r.c: Move to ...
1883         * sysdeps/generic/w_lgamma_r.c: ...here.  New file.
1884         * math/w_log10.c: Move to ...
1885         * sysdeps/generic/w_log10.c: ...here.  New file.
1886         * math/w_log10f.c: Move to ...
1887         * sysdeps/generic/w_log10f.c: ...here.  New file.
1888         * math/w_log10l.c: Move to ...
1889         * sysdeps/generic/w_log10l.c: ...here.  New file.
1890         * math/w_log.c: Move to ...
1891         * sysdeps/generic/w_log.c: ...here.  New file.
1892         * math/w_logf.c: Move to ...
1893         * sysdeps/generic/w_logf.c: ...here.  New file.
1894         * math/w_logl.c: Move to ...
1895         * sysdeps/generic/w_logl.c: ...here.  New file.
1896         * math/w_pow.c: Move to ...
1897         * sysdeps/generic/w_pow.c: ...here.  New file.
1898         * math/w_powf.c: Move to ...
1899         * sysdeps/generic/w_powf.c: ...here.  New file.
1900         * math/w_powl.c: Move to ...
1901         * sysdeps/generic/w_powl.c: ...here.  New file.
1902         * math/w_remainder.c: Move to ...
1903         * sysdeps/generic/w_remainder.c: ...here.  New file.
1904         * math/w_remainderf.c: Move to ...
1905         * sysdeps/generic/w_remainderf.c: ...here.  New file.
1906         * math/w_remainderl.c: Move to ...
1907         * sysdeps/generic/w_remainderl.c: ...here.  New file.
1908         * math/w_scalb.c: Move to ...
1909         * sysdeps/generic/w_scalb.c: ...here.  New file.
1910         * math/w_scalbf.c: Move to ...
1911         * sysdeps/generic/w_scalbf.c: ...here.  New file.
1912         * math/w_scalbl.c: Move to ...
1913         * sysdeps/generic/w_scalbl.c: ...here.  New file.
1914         * math/w_sinh.c: Move to ...
1915         * sysdeps/generic/w_sinh.c: ...here.  New file.
1916         * math/w_sinhf.c: Move to ...
1917         * sysdeps/generic/w_sinhf.c: ...here.  New file.
1918         * math/w_sinhl.c: Move to ...
1919         * sysdeps/generic/w_sinhl.c: ...here.  New file.
1920         * math/w_sqrtl.c: Move to ...
1921         * sysdeps/generic/w_sqrtl.c: ...here.  New file.
1922         * math/w_tgamma.c: Move to ...
1923         * sysdeps/generic/w_tgamma.c: ...here.  New file.
1924         * math/w_tgammaf.c: Move to ...
1925         * sysdeps/generic/w_tgammaf.c: ...here.  New file.
1926         * math/w_tgammal.c: Move to ...
1927         * sysdeps/generic/w_tgammal.c: ...here.  New file.
1929         * locale/programs/ld-address.c (address_finish): Add 'S' to allow
1930         formats for postal_fmt.
1932 2001-02-16  Jakub Jelinek  <jakub@redhat.com>
1934         * sysdeps/unix/sysv/linux/alpha/syscalls.list (ftruncate): Add
1935         __ftruncate64 alias.
1936         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (ftruncate):
1937         Likewise.
1939 2001-02-15  David Mosberger  <davidm@hpl.hp.com>
1941         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): No need to
1942         do "loadrs".  Writing to bspstore already takes care of
1943         invalidating the "clean" partition.
1945 2001-02-16  Andreas Schwab  <schwab@suse.de>
1947         * sysdeps/m68k/fpu/s_nextafterl.c: New file.
1948         * sysdeps/m68k/fpu/s_fpclassifyl.c: New file.
1950 2001-02-15  Jakub Jelinek  <jakub@redhat.com>
1952         * posix/regex.c (init_syntax_once): Add prototype.
1953         (TRANSLATE): If MBS_SUPPORT, translate all characters up to '\xff'.
1954         (re_search_2): Avoid warning.
1955         (count_mbs_length): Add prototype.
1956         * posix/tst-regex3.c: New file.
1957         * posix/Makefile (tests): Add bug-regex3.
1959 2001-02-15  Ulrich Drepper  <drepper@redhat.com>
1961         * stdio-common/Makefile (tests): Add tst-gets.
1962         * stdio-common/tst-gets.c: New file.
1963         * stdio-common/tst-gets.input: New file.
1965         * elf/elf.h (DT_CHECKSUM): Define.
1967         * sysdeps/generic/strtoll.c: Don't export __strto*_internal as
1968         default symbol.
1969         * sysdeps/generic/strtoull.c: Likewise.
1971 2001-02-14  Wolfram Gloger  <wg@malloc.de>
1973         * malloc/malloc.c (new_heap): When allocating large chunk aligned
1974         to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes'
1975         between the heaps.
1977 2001-02-14  Ulrich Drepper  <drepper@redhat.com>
1979         * math/libm-test.inc (j0_test): Check whether sincos is available.
1980         (j1_test): Likewise.
1981         (jn_test): Likewise.
1982         (y0_test): Likewise.
1983         (y1_test): Likewise.
1984         (yn_test): Likewise.
1986         * posix/tst-gnuglob.c: Make a few entries DT_UNKNOWN and teach
1987         fake filesystem routines to handle this.
1989         * time/sys/time.h: Make settimeofday and adjtime available if
1990         _BSD_SOURCE.
1992         * time/sys/time.h: Make timer* macros available for BSD.
1994         * iconvdata/gb18030.c: Update for Dec 2000 re-release of GB18030.
1995         Patch by Yong Li <rigel863@yahoo.com>.
1997         * sysdeps/generic/glob.c (CONVERT_DIRENT_DIRENT64): Fix copying of
1998         name.
2000         * posix/Makefile (tests): Add tst-gnuglob.
2001         * posix/tst-gnuglob.c: New file.
2003 2001-02-13  H.J. Lu  <hjl@gnu.org>
2005         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __ftruncate64.
2007 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
2009         * locale/programs/ld-paper.c (paper_output): Pretty printing.
2011         * iconvdata/Makefile (modules): Add GBBIG5.
2012         (distribute): Add gbbig5.c.
2013         * iconvdata/gconv-modules: Add entries for GBBIG5 module.
2015         * iconvdata/gbbig5.c: New file.
2016         Contributed by Yong Li <rigel863@yahoo.com>.
2018 2001-02-13  Philip Blundell  <pb@futuretv.com>
2020         * manual/crypt.texi: Remove outdated references to crypt add-on.
2022         * manual/creature.texi: Improve wording slightly.
2024 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
2026         * io/ftw.c: Always use readdir64.
2027         * io/ftw64.c: Likewise.
2028         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2029         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2030         * sysdeps/generic/glob.c: Likewise.  Convert results of gl_readdir
2031         callback to dirent.  Still allow compiling outside glibc.
2032         * sysdeps/gnu/glob64.c: Define COMPILE_GLOB64.
2033         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
2035         * malloc/mtrace.c: Use fopen64.
2036         * posix/spawni.c: Use __open64.
2037         * sysdeps/unix/opendir.c: Likewise.
2038         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2040         * sysdeps/generic/ftruncate64.c: Define __ftruncate64 and make old
2041         name a weak alias.
2042         * sysdeps/unix/sysv/aix/ftruncate64.c: Likewise.
2043         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
2044         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2045         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2047         * resolv/res_data.c: Add cast to avoid warning.
2049         * include/unistd.h: Declare __ftruncate64.
2051         * sysdeps/generic/utmp_file.c: Use LFS functions and types.
2053         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use __lseek64
2054         instead of __lseek.
2056 2001-02-13  Andreas Jaeger  <aj@suse.de>
2058         * login/getutent_r.c: Include <stdlib.h> for NULL.
2059         * login/getutid_r.c: Likewise.
2061 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
2063         * sysdeps/dbl-64/e_j0.c: Little optimization, use sincos.
2064         * sysdeps/dbl-64/e_j1.c: Likewise.
2065         * sysdeps/dbl-64/e_jn.c: Likewise.
2066         * sysdeps/flt-32/e_j0f.c: Likewise.
2067         * sysdeps/flt-32/e_j1f.c: Likewise.
2068         * sysdeps/ldbl-96/e_j0l.c: Likewise.
2070 2000-12-02  H.J. Lu  <hjl@gnu.org>
2072         * resolv/res_libc.c (res_init): Don't make it default.
2074 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
2076         * manual/debug.texi: Improved the wording.
2077         Patch by Philip Blundell <pb@futuretv.com>.
2079 2001-02-12  Andreas Jaeger  <aj@suse.de>
2081         * posix/Makefile (tests): Don't run bug-regex2 when
2082         cross-compiling.
2084         * libio/Makefile (tests): Don't run test-freopen when
2085         cross-compiling.
2087         * manual/stdio.texi (Streams and I18N): Fix typos.
2089 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
2091         * sysdeps/i386/fpu/libm-test-ulps: Adjust for errors in y0l.
2093         * math/libm-test.inc (j0_test): Make expected results long double
2094         constants.
2095         (y0_test): Likewise.
2097         * sysdeps/ieee754/ldbl-96/e_j0l.c: New file.
2098         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
2100 2001-02-11  Jakub Jelinek  <jakub@redhat.com>
2102         * sysdeps/generic/strtoll.c (__strtoq_internal): Ressurect alias
2103         which was exported from libc.
2104         * sysdeps/generic/strtoull.c (__strtouq_internal): Likewise.
2106 2001-02-12  Andreas Jaeger  <aj@suse.de>
2108         * manual/arith.texi (Parsing of Integers): Fix some wordings.
2110 2001-02-11  Ulrich Drepper  <drepper@redhat.com>
2112         * sysdeps/generic/getsysstat.c: Change return value of get_phys_pages
2113         and get_avphys_page to long int.
2114         * sysdeps/unix/sysv/linux/getsysstat.c: Likewise.
2115         * include/sys/sysinfo.h: Likewise.
2116         * sysdeps/generic/sys/sysinfo.h: Likewise.
2117         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
2119         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Fail if we
2120         cannot return as many values as the user asked for.
2122 2001-02-11  Andreas Jaeger  <aj@suse.de>
2124         * manual/resource.texi (Memory Resources): Fix typo.
2126         * libio/Makefile ($(objpfx)test-freopen.out): Pass
2127         run-program-prefix.
2129         * libio/test-freopen.sh: Use run_program_prefix.
2131 2001-02-10  Andreas Jaeger  <aj@suse.de>
2133         * stdlib/Makefile (tests): Don't run tst-fmtmsg when
2134         cross-compiling.
2135         ($(objpfx)tst-fmtmsg.out): Pass run-program-prefix.
2137         * stdlib/tst-fmtmsg.sh (test): Use run_program_prefix for static
2138         only builds.
2140         * elf/Makefile (tests): Only run tst-pathopt with shared libs.
2142         * posix/Makefile: Fix typo, it's build-static-nss.
2144         * iconv/Makefile (extra-objs): New.
2146 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
2148         * sysdeps/unix/stime.c: Include <time.h>.
2150         * sysdeps/mach/hurd/setitimer.c: Include <time.h>.
2152 2001-02-10  Andreas Jaeger  <aj@suse.de>
2154         * manual/string.texi (Search Functions): Fix typo.
2156 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
2158         * sysdeps/unix/bsd/times.c: Reorder includes and add <time.h>.
2159         (timeval_to_clock_t): Add clk_tck argument and use that instead of
2160         CLK_TCK.
2161         (__times): Use __getclktck to get the number of clock ticks per
2162         second and use its return value instead of CLK_TCK.
2164 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
2166         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (_HAVE_SA_LEN): Define.
2168 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
2170         * sysdeps/mach/gettimeofday.c: Include <stddef.h>.
2172 2001-02-10  Andreas Jaeger  <aj@suse.de>
2174         * wctype/wcfuncs.c (func): Add prototype declarations to avoid
2175         warning.
2177 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
2179         * posix/Makefile: Add rules to build and run bug-regex2.
2180         * posix/bug-regex2.c: New file.
2182 2001-02-10  Jakub Jelinek  <jakub@redhat.com>
2184         * posix/regex.c (convert_mbs_to_wcs): Change is_binary to char *.
2185         (regex_compile): Likewise.
2186         (FREE_VARIABLES): Don't free is_binary1 and is_binary2.
2187         (re_match_2_internal): Use just is_binary instead of two variables.
2188         Use REGEX_TALLOC to allocate it and FREE_VAR to free on failure.
2190 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
2192         * version.h (VERSION): Bump to 2.2.2.
2194         * iconv/Makefile (distribute): Add iconv_charmap.c and
2195         dummy-repertoire.c.
2196         * elf/Makefile (distribute): Add firstobj.c.
2197         * Makefile (distribute): Add include/pthread.h.
2199         * configure.in: Require makeinfo version 4.
2201         * libio/tst_wscanf.c (main): Add cast to avoid warning.
2202         * libio/tst_swscanf.c (main): Likewise..
2204 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2206         * sysdeps/generic/setenv.c (unsetenv): Remove const from len.
2207         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
2208         __NO_MATH_INLINES.
2209         * sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
2210         if not RTLD_BOOTSTRAP.
2211         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2212         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2214 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
2216         * locale/programs/linereader.c (get_ident): Stop loop if EOF.  Use
2217         lr_ungetc to push back last read character.
2218         * locale/programs/linereader.h (lr_ungetc): Don't push back is
2219         character is EOF.
2220         (lr_ignore_rest): Don't warn about garbage if it is really the end
2221         of the file.
2223         * manual/Makefile: Use ifnottext and not ifinfo to protect Top node
2224         definition.
2226 2001-02-08  Ulrich Drepper  <drepper@redhat.com>
2228         * Makerules (build-shlib): Work around different order of
2229         processing of -B option in different gcc versions.
2231         * posix/regex.c: Fix alignment problem.
2232         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
2234         * sysdeps/alpha/strrchr.S: Little optimization.
2235         Patch by Richard Henderson <rth@redhat.com>.
2237         * sysdeps/alpha/alphaev67/strrchr.S: New file.
2238         Contributed by Rick Gorton <rick.gorton@alpha-processor.com>.
2240 2001-02-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2242         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Correct function name
2243         in the assembler end directive.
2245 2001-02-08  Andreas Jaeger  <aj@suse.de>
2247         * manual/stdio.texi (Closing Streams): Fix typos.
2249 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
2251         * sysdeps/alpha/alphaev67/strncat.S: Align last write address.
2252         Patch by Richard Henderson <rth@redhat.com>.
2253         Reported by Claus-Justus Heine <heine@instmath.rwth-aachen.de>.
2255         * stdlib/strfmon.c [USE_IN_LIBIO]: Define lock variable and store
2256         pointer in FILE structure before calling _IO_init.
2257         * stdlib/Makefile: Add -D_IO_MTSAFE_IO to CFLAGS for strfmon and
2258         strfmon_l if necessary.
2259         Reported by Jury Gerold <gjury@grips.com>.
2261         * sysdeps/gnu/netinet/tcp.h: Correct values of TCP_ macros.
2262         Patch by Pekka.Pietikainen@cern.ch.
2264         * posix/regex.c: Correct several problems with 64-bit architectures
2265         introduced in the MBS changes.
2266         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
2268 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
2270         * math/tgmath.h: Only add l suffixes if __NO_LONG_DOUBLE_MATH is
2271         not defined.
2272         * sysdeps/alpha/fpu/bits/mathinline.h: Honour __NO_MATH_INLINES.
2274 2001-02-07  Andreas Jaeger  <aj@suse.de>
2276         * manual/install.texi (Tools for Compilation): Fix typo.
2277         Reported by Pavel Machek <pavel@bug.ucw.cz>.
2279 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
2281         * stdlib/strtod.c: Never stop prematurely reading digits before the
2282         decimal point is found.  Compute exponent limit for negative exponents
2283         correctly.  For numbers ending in all zeros eat the zeros even before
2284         the decimal point if the exponent is negative [PR libc/2072].
2285         * stdlib/Makefile (tests): Add bug-strtod.
2286         * stdlib/bug-strtod.c: New file.
2288 2001-02-07  Andreas Jaeger  <aj@suse.de>
2290         * posix/bug-regex1.c: Include <wchar.h> for fwide.
2292 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
2294         * posix/regex.c (regex_compile): Don't store pointer in wchar_t array.
2295         Store index.
2296         (compile_range): Handle index being passed, not pointer.
2297         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
2299         * posix/regex.c: Fix a cast in the code for bracket handling which
2300         caused 8-bit uncleanliness.
2301         Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.
2303         * posix/Makefile (tests): Add bug-regex1.
2304         * posix/bug-regex1.c: New file.
2305         Contributed by Jim Meyering <jim@meyering.net>.
2307         * posix/regex.c: Many cleanups for incorrect format strings.
2309 2001-02-06  Andreas Jaeger  <aj@suse.de>
2311         * time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
2313 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
2315         * locale/programs/locale.c (write_locales): Use scandir to read
2316         directory so that the entries are sorted.
2318 2001-02-06  Andreas Jaeger  <aj@suse.de>
2320         * include/pthread.h: New file.
2322         * wctype/wctype.h: Move internal interfaces from here to...
2323         * include/wctype.h: ...here.
2325         * wcsmbs/wchar.h: Move __wcslen from here to...
2326         * include/wchar.h: ...here.
2328         * posix/sys/wait.h: Move __wait from here to...
2329         * include/sys/wait.h: ...here.
2331         * string/string.h: Move __ffs and __strerror_r from here to...
2332         * include/string.h: ...here.
2334         * stdlib/stdlib.h: Move __on_exit from here to...
2335         * include/stdlib.h: ...here.
2337         * libio/stdio.h: Move __vsnprintf from here to...
2338         * include/stdio.h: ...here.
2340 2001-02-06  Andreas Schwab  <schwab@suse.de>
2342         * sysdeps/unix/sysv/linux/ia64/ioperm.c: Don't include kernel
2343         headers.
2345         * timezone/Makefile: Don't assume that $(inst_zonedir) is a subdir
2346         of $(inst_datadir).
2348 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
2350         * iconvdata/Makefile: Add dependency for bug-iconv2.out.
2352 2001-02-06  Andreas Jaeger  <aj@suse.de>
2354         * elf/firstobj.c: Add prototype.
2356         * posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
2357         (truncate_wchar): Likewise.
2359 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
2361         * locale/programs/locale.c: Implement --verbose option for -a
2362         which prints detailed information about the locales.
2364 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
2366         * sunrpc/xdr_rec.c (set_input_fragment): Change type of header
2367         variable to uint32_t.
2368         Reported by Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>.
2370 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
2372         * locale/C-translit.h.in: Add transliterations for CJK units of
2373         measurement.
2375 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
2377         * elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
2378         string.  Include <inttypes.h> instead of <stdint.h>.
2380         * localedata/Makefile (tests): Add bug-iconv-trans.
2381         Define bug-iconv-trans-ENV.
2382         * localedata/bug-iconv-trans.c: New file.
2384 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
2386         * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output
2387         pointer, to avoid accumulating output from incomplete (unsuccessful)
2388         transliteration attempts.
2390 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
2392         * elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
2393         string.  Include <inttypes.h> instead of <stdint.h>.
2395         * configure.in: Add check for bison.
2396         * config.make.in: Define BISON variable.
2397         * intl/Makefile: Use BISON instead of YACC when generating plural.c.
2398         Rename YFLAGS to BISONFLAGS.
2400 2001-02-05  Andreas Jaeger  <aj@suse.de>
2402         * io/test-lfs.c (do_test): Test lseek64 return value, call
2403         test_ftello.
2404         (test_ftello): New function to test ftello64 and fseeko64.
2406         * signal/signal.h: Move __sigaction from here to...
2407         * include/signal.h: ...here.
2409         * io/fcntl.h: Move __fcntl and __open to...
2410         * include/fcntl.h: ...here.
2412 2001-02-04  Philip Blundell  <philb@gnu.org>
2414         * configure.in: Distinguish ARM from Thumb.
2416 2001-02-04  Philip Blundell  <philb@gnu.org>
2418         * sysdeps/arm/dl-machine.h (elf_machine_rel): Correct handling of
2419         PC24 relocs with negative value.
2421 2001-02-04  Ulrich Drepper  <drepper@redhat.com>
2423         * iconv/Makefile (iconv_prog-modules): Define.  Add vpath to find
2424         files in locale/programs.  Add CFLAGS definition to allow compiling
2425         localedef files.
2426         * iconv/dummy-repertoire.c: New file.
2427         * iconv/iconv_charmap.c: New file.
2428         * iconv/iconv_prog.h: New file.
2429         * iconv/iconv_prog.c: Make verbose and omit_invalid global.
2430         (main): If parameter for -f and -t contain slashes try first to resolve
2431         the strings as filenames of charmap files.  Use them for conversion
2432         in this case.
2433         * iconvdata/run-iconv-test.sh: If charmaps exist also run tests with
2434         iconv getting charmap names as parameters.
2435         * locale/programs/linereader.c (lr_token): Take extra parameters
2436         verbose and pass it to get_string.
2437         (get_string): Take extra parameters verbose.
2438         * locale/programs/charmap.c (parse_charmap): Take extra parameters
2439         verbose and be_quiet.  Change all callers of lr_token and
2440         parse_charmap.
2441         * locale/programs/charmap.h: Likewise.
2442         * locale/programs/ld-address.c: Likewise.
2443         * locale/programs/ld-collate.c: Likewise.
2444         * locale/programs/ld-ctype.c: Likewise.
2445         * locale/programs/ld-identification.c: Likewise.
2446         * locale/programs/ld-measurement.c: Likewise.
2447         * locale/programs/ld-messages.c: Likewise.
2448         * locale/programs/ld-monetary.c: Likewise.
2449         * locale/programs/ld-name.c: Likewise.
2450         * locale/programs/ld-numeric.c: Likewise.
2451         * locale/programs/ld-paper.c: Likewise.
2452         * locale/programs/ld-telephone.c: Likewise.
2453         * locale/programs/ld-time.c: Likewise.
2454         * locale/programs/linereader.c: Likewise.
2455         * locale/programs/linereader.h: Likewise.
2456         * locale/programs/localedef.c: Likewise.
2457         * locale/programs/locfile.c: Likewise.
2458         * locale/programs/locfile.h: Likewise.
2459         * locale/programs/repertoire.c: Likewise.
2461 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
2463         * iconv/iconv_prog.c (main): If output file name is "-" write to
2464         stdout.
2465         (main): If -f or -t argument is missing use charset of the current
2466         locale.
2468 2001-02-03  Andreas Jaeger  <aj@suse.de>
2470         * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
2471         boundary for SSE/SSE-2 alignment.
2473         * posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
2474         annexc.
2476 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
2478         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: File was using crlf.
2479         Remove comma at end of enum.
2481         * elf/dl-init.c: Add a few __builtin_expect.
2483         * hesiod/hesiod.c: Remove unnecessary code.  Remove all uses of strcat.
2485 2001-02-02  Ulrich Drepper  <drepper@redhat.com>
2487         * hesiod/hesiod.c (hesiod_resolve): Also search HS records if
2488         errno is ECONNREFUSED.
2490         * posix/Makefile: Define MBS_SUPPORT for regex.c.
2491         * posix/regex.c: Implement multibyte character handling.
2492         Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
2494         * string/tst-svc.input: Add two more test cases.
2495         * string/tst-svc.expect: Modify to reflect new test cases.
2497 2001-02-01  Jakub Jelinek  <jakub@redhat.com>
2499         * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
2500         tp->name tests with tp->name[0] tests.
2502 2001-01-29  Ben Collins  <bcollins@debian.org>
2504         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
2505         Fix check for name == NULL.
2507 2001-02-01  Ulrich Drepper  <drepper@redhat.com>
2509         * elf/Makefile: Add rules to build and run initfirst test.
2510         * elf/initfirst.c: New file.
2511         * elf/firstobj.c: New file.
2513         * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so).
2514         * configure.in: Test for -z initfirst linker option.
2515         * config.make.in: Add have-z-initfirst.
2516         * elf/dl-init.c (_dl_init): Split out actual initialization code in
2517         new function call_init.  If _dl_initfirst is non-NULL initialize first.
2518         * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set
2519         remember object in _dl_initfirst.
2520         * elf/soinit.c: Remove special support for calling
2521         __pthread_initialize_minimal.
2523         * conform/conformtest.pl: Add missing $prepend in type test.
2525 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
2527         * elf/elf.h (SHT_CHECKSUM): New definition.
2529         * posix/fnmatch_loop.c: Remove incorrect reverse condition in
2530         [. .] matching.  Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
2531         * posix/tst-fnmatch.input: Add tests for [. .] in locales.
2533 2001-01-31  Mark Kettenis  <kettenis@gnu.org>
2535         * misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
2536         to get definition of `struct timeval'.
2538 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
2540         * posix/tst-fnmatch.input: Add test cases for de_DE.UTF-8 locale.
2541         * posix/fnmatch_loop.c: Fix handling of [= =] for multibyte charsets.
2543 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
2545         * iconv/gconv_open.c (__gconv_open): Set conv_flags if IGNORE is
2546         seen, not flags.
2548         * nis/nis_findserv.c: Include <time.h>.
2550 2001-01-30  Yong Li  <yong.li@asu.edu>
2552         * iconv/iconv_prog.c (main): Correct error handling method name.
2554 2001-01-29  Ben Collins  <bcollins@debian.org>
2556         * sysdeps/sparc/fpu/fraiseexcpt.c: Include <float.h>.
2557         * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
2558         * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
2559         * sysdeps/s390/fpu/fraiseexcpt.c: Likewise.
2561 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
2563         * locale/programs/ld-measurement.c (measurement_finish): Fix a typo.
2564         Patch by Marko Myllynen <myllynen@lut.fi>.
2566         * string/bits/string2.h (__strpbrk_c2): Correct parameter types
2567         (int instead of char).
2568         (__strpbrk_c3): Likewise.
2569         Reported by GOTO Masanori <gotom@debian.or.jp>.
2571         * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
2572         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
2573         * include/sys/socket.h: Add SA_LEN here for internal use.
2574         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
2576 2001-01-29  Ulrich Drepper  <drepper@redhat.com>
2578         * malloc/Makefile: Don't build memusagestat if cross-compiling.
2580         * sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
2582         * math/libm-test.inc (rint_test): Add a few more tests for round
2583         to even rounding.
2585 2001-01-28  Ulrich Drepper  <drepper@redhat.com>
2587         * conform/data/pthread.h-data: Correct return type of pthread_exit.
2589         * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
2591         * conform/data/stdlib.h-data: Add _Exit.
2593         * inet/arpa/inet.h: Don't include <sys/types.h>.  Define socklen_t
2594         if not already happened.
2595         * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>.
2596         Don't include <limits.h> and <bits/sockaddr.h>.
2598         * conform/data/netinet/in.h-data: Allow all of <inttypes.h>.
2600         * conform/data/spawn.h-data: Allow all of <sched.h>.
2602         * sysdeps/ia64/fpu/fraiseexcpt.c: Include <float.h>.  Removed
2603         unused variable.
2605         * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning.
2606         * sunrpc/xdr_sizeof.c (x_inline): Likewise.
2608         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include <float.h>.
2610         * conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
2611         * libio/stdio.h: Define va_list correctly.
2613         * conform/data/pthread.h-data: Make priority protocol related
2614         functions optional.  Fix typos.
2616         * posix/sched.h: Define sched_priority as __sched_priority.
2617         * sysdeps/generic/bits/sched.h (struct sched_param): Rename element
2618         to __sched_priority.
2619         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2621 2001-01-27  Ulrich Drepper  <drepper@redhat.com>
2623         * sysdeps/generic/clock_getcpuclockid.c: Include <time.h> instead
2624         of <sys/time.h>.
2626         * sysdeps/unix/stime.c: Include <stddef.h> for NULL.
2627         * sysdeps/unix/time.c: Likewise.
2629         * conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
2630         * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
2631         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
2632         * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
2633         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
2634         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
2635         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
2636         * time/time.h: Likewise.
2638         * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
2639         * conform/data/complex.h-data: New file.
2640         * conform/data/tgmath.h-data: New file.
2642         * conform/data/wchar.h-data: Add missing functions.
2644         * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
2646         * conform/data/termios.h-data: Add missing const in tcsetattr()
2647         prototype.
2649         * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
2650         Don't define pid_t here.
2652         * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
2654         * conform/data/sys/time.h-data: Allow sys/select.h.
2655         * conform/data/sys/un.h-data: Fix typo.
2656         * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
2657         * sysdeps/posix/clock_getres.c: Include <time.h> instead of
2658         <sys/time.h>.
2659         * sysdeps/unix/clock_nanosleep.c: Likewise.
2660         * sysdeps/unix/i386/clock_getcpuclockid.c: Likewise.
2661         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
2662         * sysdeps/unix/clock_gettime.c: Also include <time.h>.
2663         * sysdeps/unix/clock_settime.c: Likewise.
2665         * sysdeps/generic/pselect.c: Include <stddef.h> for NULL.
2666         * login/getutent.c: Likewise.
2667         * login/getutid.c: Likewise.
2668         * login/getutline.c: Likewise.
2670         * socket/sys/un.h: Define SUN_LEN only if __USE_MISC.
2672         * sysdeps/unix/sysv/linux/bits/statvfs.h: Change type of f_fsid field
2673         to unsigned long.  Add __f_unused.  Define _STATVFSBUF_F_UNUSED.
2674         * sysdeps/unix/sysv/linux/internal_statvfs.c: Adjust initialization of
2675         f_fsid field after change in struct statvfs.
2676         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: New file.
2677         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: New file.
2678         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: New file.
2680         * conform/data/sys/stat.h-data: Remove isfdtype.  Use
2681         optional-macro.
2683         * conform/data/sys/socket.h-data: Fix typos.  Correct getsockopt,
2684         recvfrom, send, and socketpair prototypes.  Add allow lines.
2685         * socket/sys/socket.h: Include <sys/uio.h>.
2686         Don't use fancy __SOCKADDR_ARG definition unless __USE_GNU.
2687         Fix type of second parameter of listen.
2688         Don't declare isfdtype unless __USE_MISC.
2689         * sysdeps/generic/listen.c: Fix type of second parameter of listen.
2690         * sysdeps/mach/hurd/listen.c: Likewise.
2691         * sysdeps/generic/bits/socket.h (struct sockaddr_storage): Define
2692         ss_family and __ss_family.
2693         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2694         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2695         (struct msghdr): Change type of msg_iovlen to int and type of
2696         msg_controllen to socklen_t.
2697         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file.
2698         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: New file.
2699         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: New file.
2700         * inet/rcmd.c (rcmd_af): __ss_family is now ss_family.
2701         (rresvport_af): Likewise.
2703         * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant.
2704         * conform/conformtest.pl: Implement handling of symbol.
2706         * signal/signal.h: Fix handling of __need_* symbols.
2707         * misc/sys/select.c: Define fd_set here.  Remove __fd_set.  Define
2708         fd_mask only if __USE_MISC.  Declare pselect for __USE_XOPEN2K.
2709         * include/sys/select.h: Use fd_set not __fd_set.
2710         * sysdeps/generic/bits/select.h: Likewise.
2711         * sysdeps/i386/bits/select.h: Likewise.
2712         * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS,
2713         __FDELT, __FDMASK, and __fd_set here.
2714         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
2715         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
2716         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2717         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2718         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2719         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2720         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2721         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
2722         * time/sys/time.h: Define struct timeval before including <time.h>
2723         and <sys/select.h>.
2725         * conform/data/sys/time.h-data: fd_set is a typedef.
2726         * conform/data/sys/select.h-data: New file.
2727         * conform/data/sys/mman.h-data: Make typed mem stuff optional.
2728         * conform/conformtest.pl (@headers): Add sys/select.h.
2729         (type, optional-type): Unless testing a typedef instantiate object.
2730         Implement optional-function.
2732         * math/test-misc.c: Include <float.h>.
2734 2001-01-27  Andreas Jaeger  <aj@suse.de>
2736         * misc/efgcvt_r.c: Include <float.h>.
2738 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
2740         * conform/data/stdlib.h-data: Account for XPG6 changes.
2741         * stdlib/stdlib.h (__random): Change return value type to long.
2742         (posix_memalign): Cleanup parameter names.
2743         (setenv, unsetenv): Make available for __USE_XOPEN2K.
2744         Change return type of unsetenv to int.
2745         (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
2746         * include/stdlib.h: Change return type of unsetenv to int.
2747         Change return type of random to long int.
2748         * sysdeps/generic/setenv.c (unsetenv): Change return type to int.
2749         Return -1 and set errno if parameter is invalid.
2750         * stdlib/random.c (__random): Change return value type to long.
2752         * conform/data/stdio.h-data: Account for changes in XPG6.
2754         * conform/data/spawn.h-data: Correct posix_spawnattr_setflags
2755         prototype.
2757         * conform/conformtest.pl: Define $mustprepend{"signal.h"}.
2758         * conform/data/signal.h-data: Fix sigev_notify_function entry.
2759         Fix typo (SIGVALRM -> SIGVTALRM).
2760         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
2761         with real type.
2762         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2763         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2764         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
2765         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2766         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
2768         * conform/conformtest.pl: Implement optional-element.  Define
2769         $mustprepend{"sched.h"}.
2770         * conform/data/sched.h-data: Make sporadic scheduler definitions
2771         optional.
2773         * pwd/pwd.h: Don't define getpwent_r for XPG.
2775         * io/sys/poll.h: Define nfds_t and use it in poll prototype.
2776         * sysdeps/generic/poll.c: Use nfds_t type in function definition.
2777         * sysdeps/mach/hurd/poll.c: Likewise.
2778         * sysdeps/unix/bsd/poll.c: Likewise.
2779         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2780         * sysdeps/unix/sysv/aix/poll.c: Likewise.
2781         * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.
2782         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
2783         * sysdeps/unix/sysv/linux/m68k/bits/poll.h: Likewise.
2784         * sysdeps/unix/sysv/linux/mips/bits/poll.h: Likewise.
2785         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
2786         * conform/data/poll.h-data: Fix typo in poll prototype.
2788         * sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
2789         only if __USE_MISC.
2790         * conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
2792         * sysdeps/gnu/net/if.h: Cleanup namespace.  Define IF_NAMESIZE.
2794         * inet/netinet/in.h: Make IPPROTO_ constants also macros.
2796         * conform/conformtest.pl: Implement optional-type.
2798         * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>.  Include
2799         <rpc/netdb.h> only if __USE_MISC.  Include <stdint.h> instead of
2800         defining uint32_t here.  Define IPPORT_RESERVED.
2801         (struct hostent): Type of h_length element is int.
2802         (getnameinfo): Type of flags parameter is unsigned int.
2803         * inet/getnameinfo.c (getnameinfo): flags argument is unsigned.
2804         * conform/data/netdb.h-data: Add many missing definitions.
2806         * conform/conformtest.pl: Implement optional-macro.
2807         * conform/data/math.h-data: Update for XPG6.
2809         * math/math.h (HUGE): Define as FLT_MAX value but don't use
2810         FLT_MAX.  Don't include <float.h>.
2811         (MAXFLOAT): Likewise.
2813         * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
2815         * include/bits/xopen_lim.h: Don't define FOPEN_MAX here.
2817         * conform/data/limits.h-data: Mark constants as optional wherever
2818         appropriate.
2820         * posix/bits/posix2_lim.h: Set correct values for
2821         _POSIX2_COLL_WEIGHTS_MAX and _POSIX2_CHARCLASS_NAME_MAX.  Remove
2822         EQUIV_CLASS_MAX.
2824         * posix/bits/posix1_lim.h: Define _POSIX_TZNAME_MAX as 6.
2825         Required by POSIX.
2827         * intl/loadmsgcat.c: Include <locale.h.> for _LIBC.
2829         * conform/data/netinet/in.h-data: Add reserved prefixes.
2831         * conform/data/arpa/inet.h-data: Fix a few typos.
2833 2001-01-26  Andreas Jaeger  <aj@suse.de>
2835         * sysdeps/generic/strtol.c: Include <locale.h>
2836         * stdlib/strtod.c: Likewise
2837         * stdlib/strfmon.c: Likewise.
2838         * string/strcoll.c: Likewise.
2839         * string/strxfrm.c: Likewise.
2840         * wctype/wcfuncs_l.c: Likewise.
2841         * wctype/wctype_l.c: Likewise.
2842         * wctype/wctrans_l.c: Likewise.
2844         * include/bits/locale.h: New file.
2846 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
2848         * locale/langinfo.h: Correct logic in #ifs when defining YESSTR
2849         and NOSTR.
2851         * locale/Makefile (headers): Add bits/locale.h.
2852         * locale/langinfo.h: Don't include <locale.h>.  Include <bits/locale.h>
2853         and use __LC_ constants instead of LC_.
2854         * locale/locale.h: Include <bits/locale.h> and define LC_ constants
2855         using __LC_ constants.
2856         * locale/bits/locale.h: New file.
2857         * locale/loadlocale.c: Include <locale.h>.
2858         * locale/nl_langinfo.h: Likewise.
2860         * posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
2862         * io/sys/stat.h: Define S_IFSOCK for XPG6.
2864         * conform/data/fcntl.h-data: posix_madvise is not expected here.
2866         * conform/conformtest.pl: Fix handling of macro-str.
2868         * conform/data/inttypes.h-data: Add missing definition and all of
2869         stdint.h-data.
2871         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20.
2873 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
2875         * conform/conformtest.pl (@headers): Add stdint.h.
2876         * conform/data/stdint.h-data: New file.
2878         * conform/conformtest.pl: Recognize options --headers and
2879         --dialect.  Add dialect-specific CFLAGS.
2881         * conform/conformtest.pl: Implement handling of recursive
2882         allow-header.
2884         * conform/data/locale.h-data: Add new struct lconv members.
2886         * posix/wordexp.h: Correct definition of wordexp_t.
2887         * posix/wordexp.c: Moved to ...
2888         * sysdeps/generic/wordexp.c: ...here.  New file.
2889         * sysdeps/unix/sysv/linux/alpha/wordexp.c: New file.
2890         * sysdeps/unix/sysv/linux/ia64/wordexp.c: New file.
2891         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: New file.
2892         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.2.2): Add
2893         wordexp.
2894         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2895         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2897         * math/tgmath.h: Pretty printing.
2899         * math/Makefile (tests): Add test-tgmath.
2900         (CFLAGS-test-tgmath.c): New variable.
2901         * math/test-tgmath.c: New file.  Contributed by Jakub Jelinek.
2903         * conform/conformtest.pl: Handle allow-header in secondary headers
2904         correctly.
2906         * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
2907         #ifdef.
2909         * conform/data/netinet/in.h-data: Use correct comment character.
2910         * conform/data/sys/stat.h-data: Likewise.
2912 2001-01-25  Jakub Jelinek  <jakub@redhat.com>
2914         * math/tgmath.h (__TGMATH_BINARY_FIRST_REAL_ONLY,
2915         __TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2916         __TGMATH_TERNARY_REAL_ONLY): Use proper arguments to
2917         __builtin_classify_type, add ##f suffixes where appropriate.
2918         (__TGMATH_UNARY_REAL_IMAG): Remove extraneous left parenthesis.
2919         (__TGMATH_BINARY_REAL_IMAG): Likewise, use proper arguments to
2920         __builtin_classify_type.
2921         (fma): Fix spelling of first argument.
2923 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
2925         * conform/data/unistd.h-data: Mark functions removed in XPG6
2926         correctly.
2928         * posix/unistd.h: Don't make functions removed in XPG6 available if
2929         __USE_XOPEN2K.
2931         * conform/conformtest.pl: Implement optional-constant.
2932         * conform/data/unistd.h-data: Use optional-constant wherever
2933         appropriate.
2935         * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS
2936         constants and add _SC_STREAMS.
2937         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2939         * sysdeps/unix/sysv/linux/statvfs64.c: Rename to __statvfs64 and
2940         make old name weak alias.
2941         * sysdeps/generic/statvfs64.c: Likewise.
2942         * sysdeps/unix/sysv/linux/fstatvfs64.c: Rename to __fstatvfs64 and
2943         make old name weak alias.
2944         * sysdeps/generic/fstatvfs64.c: Likewise.
2945         * include/sys/statvfs.h: New file.
2947         * sysdeps/generic/bits/confname.h: Define _PC_REC_INCR_XFER_SIZE,
2948         _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, and
2949         _PC_REC_XFER_ALIGN.
2950         * sysdeps/posix/pathconf.c (__pathconf): Implement handling of
2951         _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
2952         _PC_REC_MIN_XFER_SIZE, and _PC_REC_XFER_ALIGN.
2953         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
2955         * conform/conformtest.pl: Run Unix tests for XPG6.
2956         Implement handling of known namespace violations.
2957         Improve printing of results.
2959         * posix/unistd.h (usleep): Correct return type.
2960         * sysdeps/unix/sysv/linux/usleep.c: Correct return type.
2961         * sysdeps/unix/bsd/usleep.c: Correct return type.
2962         * sysdeps/mach/usleep.c: Correct return type.
2963         * sysdeps/generic/usleep.c: Correct return type.
2965         * posix/unistd.h (sync): Correct return type.
2966         * sysdeps/generic/sync.c: Likewise.
2967         * sysdeps/mach/hurd/sync.c: Likewise.
2969         * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
2971         * posix/unistd.h: Make seteuid and setegid available for XPG6.
2973         * wcsmbs/wchar.h: Get FILE definition for XPG5.
2975         * conform/data/ctype.h-data: Use correct comment form.
2976         * conform/data/errno.h-data: Likewise.
2977         * conform/data/math.h-data: Likewise.
2978         * conform/data/mqueue.h-data: Likewise.
2979         * conform/data/netdb.h-data: Likewise.
2980         * conform/data/pthread.h-data: Likewise.
2982 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
2984         * conform/data/wordexp.h-data: Fix typo.
2986         * conform/conformtest.pl: Handle allow-header correctly.
2988         * conform/data/time.h-data: Use correct comment form.
2990         * conform/conformtest.pl (checknamespace): Ignore #undef lines.
2992         * configure.in: Comment out binutils version test.
2994         * stdlib/strtod.c (str_to_mpn): Correct parsing of thousands
2995         separators.
2996         Reported by Lagardere Jean-Francois <LAGARDEREJ@thmulti.com>.
2998         * stdlib/tst-strtod.c (locale_test): New function.
2999         (main): Call locale_test.
3000         * stdlib/Makefile (tst-strtod-ENV): New variable.
3002 2001-01-24  Mark Kettenis  <kettenis@gnu.org>
3004         * hurd/hurdsig.c (_hurdsig_getenv): Remove spurious innermost
3005         declaration of value such that we actually return the value of the
3006         environment variable.
3008 2001-01-24  Andreas Jaeger  <aj@suse.de>
3010         * sysdeps/unix/sysv/linux/init-first.c: Remove extra __sysctl
3011         prototype.
3012         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3014         * include/sys/sysctl.h: New file.
3016 2001-01-23  Andreas Jaeger  <aj@suse.de>
3018         * stdlib/Makefile ($(objpfx)isomac.out): Also pass sysincludes to
3019         isomac.
3021         * elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
3022         arguments.  Reported by Jiri Kubicek <kubicek@bitsmart.com>,
3023         closes PR libc/2039.
3025         * manual/install.texi (Tools for Compilation): Change required
3026         binutils version.
3028 2001-01-22  Andreas Jaeger  <aj@suse.de>
3030         * configure.in: Add test for new enough binutils version, move
3031         compiler/binutils test up.
3033         * Versions.def: Add version GLIBC_2.2.2.
3035 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
3037         * iconvdata/TESTS: UTF-8 test data for IBM932 and IBM943 are now
3038         available.
3039         * iconvdata/testdata/IBM932: New file.
3040         * iconvdata/testdata/IBM932..UTF8: New file.
3041         * iconvdata/testdata/IBM943: New file.
3042         * iconvdata/testdata/IBM943..UTF8: New file.
3043         Contributed by Masahide Washizawa <washi@jp.ibm.com>.
3045 2001-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3047         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset.
3049 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
3051         * malloc/malloc.c: Remove a few unnecessary initializers of global
3052         variables.
3054 2000-12-09  H.J. Lu  <hjl@gnu.org>
3056         * nss/Makefile (routines): Add digits_dots.
3057         * nss/Versions (libc): Add __nss_hostname_digits_dots to GLIBC_2.2.2.
3058         * nss/digits_dots.c (__nss_hostname_digits_dots): Turn template
3059         into a function.
3060         * nss/nsswitch.h (__nss_hostname_digits_dots): New internal NSS
3061         function.
3062         * nss/getXXbyYY.c (H_ERRNO_VAR_P): New definition.
3063         (TYPE_VAR_P): Likewise.
3064         (FLAGS_VAR): Likewise.
3065         (AF_VAR_P): Likewise.
3066         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
3067         instead of including digits_dots.c.
3068         * nss/getXXbyYY_r.c (H_ERRNO_VAR_P): New definition.
3069         (TYPE_VAR_P): Likewise.
3070         (FLAGS_VAR): Likewise.
3071         (AF_VAR_P): Likewise.
3072         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
3073         instead of including digits_dots.c.
3075 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
3077         * sysdeps/posix/getaddrinfo.c: Reduce .data size.
3079 2001-01-21  Andreas Jaeger  <aj@suse.de>
3081         * elf/constload2.c: Add prototype for init.
3083 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
3085         * stdlib/stdlib.h (drand48_data): Make available only for
3086         __USE_MISC.  Rename elements to protect namespace.  Change type
3087         and position of a and init element.
3088         * stdlib/drand48-iter.c: Don't handle unsigned short > 16 bit
3089         differently.  Adjust for drand48_data change.  Don't compute a here,
3090         it comes from drand48_data.
3091         * stdlib/lcong48_r.c: Don't handle unsigned short > 16 bit
3092         differently.  Adjust for drand48_data change.  Compute a here.
3093         * stdlib/srand48_r.c: Likewise.
3094         * stdlib/drand48.c: Adjust for drand48_data change.
3095         * stdlib/lrand48.c: Likewise.
3096         * stdlib/mrand48.c: Likewise.
3097         * stdlib/seek48.c: Likewise.
3098         * stdlib/drand48_r.c: Likewise.
3099         * stdlib/lrand48_r.c: Likewise.
3100         * stdlib/mrand48_r.c: Likewise.
3101         * stdlib/seed48_r.c: Likewise.  Don't handle unsigned short > 16 bit
3102         differently.
3103         * stdlib/erand48_r.c: Don't handle unsigned short > 16 bit differently.
3104         * stdlib/jrand48_r.c: Likewise.
3106         * po/sv.po: Update from translation team.
3108 2001-01-21  Andreas Jaeger  <aj@suse.de>
3110         * stdio-common/vfprintf.c (vfprintf): Add casts.
3112 2001-01-20  Ulrich Drepper  <drepper@redhat.com>
3114         * iconvdata/run-iconv-test.sh: Reorgnize a bit to allow running only
3115         the ASCII test.
3116         * iconvdata/TESTS: Add entries for IBM932 and IBM943.
3118         * iconvdata/Makefile (modules): Add IBM932 and IBM943.
3119         * iconvdata/gconv-modules: Add entries for IBM932 and IBM943.
3120         * iconvdata/ibm932.c: New file.
3121         * iconvdata/ibm932.h: New file.
3122         * iconvdata/ibm943.c: New file.
3123         * iconvdata/ibm943.h: New file.
3124         Patches by Masahide Washizawa <washi@jp.ibm.com>.
3126         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix typo
3127         preventing optimization from being done.  Set the correct type bit
3128         in seen.  Don't define and use _dl_base_addr unless
3129         NEED_DL_BASE_ADDR is defined.
3131         * io/ftw.c (ftw_dir): Add slash after directory name if there
3132         wasn't any.  Reported by loris <loris@iol.it>.
3133         * io/Makefile (tests): Add bug-ftw2.
3134         * io/bug-ftw2.c: New file.
3136 2001-01-19  Ulrich Drepper  <drepper@redhat.com>
3138         * stdlib/jrand48_r.c (__jrand48_r): Correct constructing of
3139         results.  Reported by Jeff Higham <jhigham@algorithmics.com>.
3140         * stdlib/tst-rand48.c: New file.
3141         * stdlib/Makefile (tests): Add tst-rand48.
3143         * locale/newlocale.c (__newlocale): Fix test for setting all
3144         categories.
3146 2001-01-19  Mark Kettenis  <kettenis@gnu.org>
3148         * sysdeps/mach/hurd/chroot.c (chroot): Revert 1999-02-27 changes,
3149         but change looking up the initial directory port in a similar way
3150         as done by _hurd_change_directory_port_from_name.
3151         * hurd/fchroot.c (fchroot): Likewise.
3153 2001-01-18  Ulrich Drepper  <drepper@redhat.com>
3155         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If HAVE_AUX_XID is
3156         defined don't look whether the AT_*ID values were set.
3157         If HAVE_AUX_PAGESIZE is defined don't look whether the pagesize is set.
3158         (_dl_show_auxv): Rewrite to avoid switch statement.
3159         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3160         __ASSUME_AT_PAGESIZE for kernel >= 2.4.1.
3161         * sysdeps/unix/sysv/linux/ldsodefs.h: Define HAVE_AUX_XID.
3162         Define HAVE_AUX_PAGESIZE if __ASSUME_AT_PAGESIZE is defined.
3164         * sysdeps/unix/sysv/linux/fxstat64.c: Add one __builtin_expect.
3165         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3166         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3168         * elf/rtld.c (process_envvars): Call __strtoul_internal instead of
3169         strtoul.
3170         * elf/dl-minimal.c (strtol, __strtol_internal, strtoul): Removed.
3171         (__sigjmp_save): Set __mask_was_saved to zero since we don't save
3172         anything.
3173         * dlfcn/eval.c (__strtol_internal): Define here.
3174         (eval): Use __strtol_internal instead of strtol.
3176         * elf/elf.h: Add a few more EF_MIPS_* constants.
3178 2001-01-17  Ulrich Drepper  <drepper@redhat.com>
3180         * manual/Makefile (chapters): Add debug.
3181         * manual/debug.texi: New file.
3182         * manual/examples/execinfo.c: New file.
3183         Patch by suckfish@ihug.co.nz.
3185 2001-01-17  Andreas Schwab  <schwab@suse.de>
3187         * sysdeps/m68k/bits/byteswap.h (__bswap_32): Add cast to avoid
3188         invalid asm.
3190 2001-01-17  Andreas Jaeger  <aj@suse.de>
3192         * nscd/connections.c (nscd_run): Use proper format specifier.
3194 2001-01-16  Ulrich Drepper  <drepper@redhat.com>
3196         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Move x86_cap_flags and
3197         x86_platforms data into new file after prepending _dl_.  Change
3198         users.
3199         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: New file.
3200         * sysdeps/unix/sysv/linux/i386/Dist: Add dl-procinfo.c.
3201         * sysdeps/unix/sysv/linux/i386/Makefile: Add rules to build
3202         dl-procinfo.c.
3204         * setjmp/setjmp.h: Cleanup definition of setjmp macro.
3206         * sysdeps/i386/elf/bsd-setjmp.S: Real implementation.
3207         * sysdeps/i386/elf/bsd-_setjmp.S: Removed.
3208         * sysdeps/i386/elf/setjmp.S (setjmp): Removed here.
3209         (_setjmp): Likewise.
3210         * sysdeps/i386/bsd-_setjmp.S: Real implementation.
3211         * sysdeps/i386/bsd-setjmp.S: Real implementation.
3212         * sysdeps/i386/bits/setjmp.h: Remove PUSH_SIGNAL_MASK definition.
3213         * sysdeps/i386/setjmp.S: Remove PIC support.  This is the non-ELF
3214         version.
3216 2001-01-16  Andreas Jaeger  <aj@suse.de>
3218         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (SIGCONTEXT): Fix
3219         misapplied last patch.
3221 2001-01-15  Ulrich Drepper  <drepper@redhat.com>
3223         * stdlib/random.c (__initstate): Clean up a cast.
3224         (__setstate): Likewise.
3226         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select
3227         syscall handling.  The generic Linux version should work.
3229 2001-01-15  Andreas Jaeger  <aj@suse.de>
3231         * sysdeps/unix/sysv/linux/sys/sendfile.h: Fix typo.
3233         * stdio-common/tstscanf.c (main): Add two testcases for '*' modifier.
3235 2001-01-14  Jakub Jelinek  <jakub@redhat.com>
3237         * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
3238         netgroup_keys, print_rpc, rpc_keys, print_shadow, shadow_keys):
3239         New functions.
3240         (group_keys, hosts_keys, network_keys, passwd_keys, protocols_keys):
3241         If number is 0, list all.
3242         (services_keys): Likewise.  Lookup aliases as well.
3243         (databases): New table.
3244         (build_doc): Prepare argp doc text with list of supported databases.
3245         (main): Change to table driven processing.
3247 2001-01-14  Thorsten Kukuk <kukuk@suse.de>
3249         * sunrpc/xdr.c (xdr_long, xdr_u_long): Fix comments about these
3250         functions.
3252 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
3254         * sunrpc/xdr.c (xdr_long, xdr_u_long): Return FALSE if trying to
3255         encode value which does not fit in the 32bit type.
3257 2001-01-15  Hiroyuki Machida <machida@sm.sony.co.jp>
3259         * sysdeps/unix/sysv/linux/mips/register-dump.h (REGISTER_DUMP):
3260         Change type of CTX to (struct sigcontext *).
3261         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Likewise.
3262         (GET_FRAME): Likewise.
3263         (GET_STACK): Likewise.
3264         (SIGCONTEXT): Likewise. Add 2nd arg _code.
3265         (SIGCONTEXT_EXTRA_ARGS): Add 2nd arg _code.
3267 2001-01-13  Ulrich Drepper  <drepper@redhat.com>
3269         * manual/texinfo.tex: Update from upstream version.
3271 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
3273         * inet/ether_ntoh.c (lookup_function): Change arguments to match
3274         _nss_*_getntohost_r prototype.
3275         (ether_ntohost): Pass errno pointer to NSS function.
3277 2001-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3279         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
3280         (MAP_LOCKED): New definition.
3281         (MAP_NORESERVE): New definition.
3283 2001-01-12  Ulrich Drepper  <drepper@redhat.com>
3285         * assert/assert.h: Use static_cast instead of C-style cast for C++.
3286         Patch by Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>.
3288 2001-01-12  Ben Collins  <bcollins@debian.org>
3290         * sysdeps/generic/segfault.c (install_handler): Use access, not
3291         __access.
3293 2001-01-12  Andreas Jaeger  <aj@suse.de>
3295         * posix/fnmatch_loop.c (FCT): Remove signed warnings.
3296         * posix/wordexp.c (do_parse_glob): Likewise.
3297         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
3298         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
3299         * elf/dl-open.c (_dl_open): Likewise.
3300         * elf/dl-close.c (_dl_close): Likewise.
3301         * elf/dl-load.c (_dl_map_object): Likewise.
3302         * iconv/iconv_prog.c (process_fd): Likewise.
3303         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
3305         * locale/localeinfo.h (struct locale_data): Use __flexarr instead
3306         of a zero-length array.
3308 2001-01-11  Jakub Jelinek  <jakub@redhat.com>
3310         * stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
3311         * stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
3312         * stdlib/cxa_on_exit.c: Remove.
3313         * stdlib/Makefile: Revert last patch.
3314         * stdlib/Versions: Likewise.
3315         * include/stdlib.h: Likewise.
3316         * stdlib/exit.h: Revert last patch.
3317         (struct exit_function): Add second argument to cxa fn.
3318         * stdlib/exit.c: Revert last patch.
3319         (exit): Add hidden second argument.
3321 2001-01-11  H.J. Lu  <hjl@gnu.org>
3323         * elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
3324         * elf/dl-open.c (_dl_open): Here.
3325         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
3326         Make it static.
3327         (_dl_static_init): Initialize the variables every time when possible.
3328         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
3329         Undefine it first.
3331 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
3333         * stdlib/Makefile (routines): Add cxa_on_exit.
3334         * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit.
3335         * stdlib/cxa_on_exit.c: New file.
3336         * include/stdlib.h: Add prototype for __cxa_on_exit.
3337         * stdlib/exit.c: Handle ef_cxa2.
3338         * stdlib/exit.h (enum): Add ef_cxa2.
3339         (struct exit_function): Add cxa2.
3341         * Versions.def [ld]: Add GLIBC_2.2.1.
3343 2001-01-10  H.J. Lu  <hjl@gnu.org>
3345         * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries.
3346         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add
3347         dl-static.
3348         * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init.
3349         * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined.
3350         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file.
3351         * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file.
3352         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c.
3354 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
3356         * libio/stdio.h: Remove definition of off_t.
3358 2001-01-11  Andreas Jaeger  <aj@suse.de>
3360         * wcsmbs/tst-mbrtowc.c (utf8_test): New function by Markus Kuhn
3361         <mkuhn@acm.org>.
3363 2001-01-10  Ulrich Drepper  <drepper@redhat.com>
3365         * sunrpc/Makefile (distribute): Add errqueue.h.
3367 2001-01-10  H.J. Lu  <hjl@gnu.org>
3369         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
3370         r9, r10 and r11 for language specific registers.
3372 2001-01-10  Jakub Jelinek  <jakub@redhat.com>
3374         * sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
3375         UDP socket.
3376         (clntudp_call): Handle MSG_ERRQUEUE.
3377         * sysdeps/generic/errqueue.h: New file.
3378         * sysdeps/unix/sysv/linux/errqueue.h: New file.
3380 2001-01-10  H.J. Lu  <hjl@gnu.org>
3382         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_getpagesize): Removed.
3384 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3386         * CONFORMANCE: Update.
3388 2001-01-09  Ulrich Drepper  <drepper@redhat.com>
3390         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
3391         Minimal cleanups.  Add assert to ensure memory handling is correct.
3393         * manual/conf.texi (File Minimums): Fix _POSIX_PATH_MAX value.
3394         Reported by Ben Collins <bcollins@debian.org>.
3396         * time/strftime.c (my_strftime): Mark previous GNU extensions
3397         which are now in C99 as such.
3399 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
3401         * elf/rtld.c (process_envvars): Place output files for profiling
3402         in SUID binaries in /var/profile.
3404         * elf/dl-load.c (_dl_map_object): Don't look in cache for
3405         preloading in SUID binaries.
3407         * elf/dl-profile.c (_dl_start_profile): Open the output file with
3408         O_NOFOLLOW if possible.
3410         * include/stdlib.h: Add __posix_openpt declaration.
3411         * stdlib/stdlib.h: Add posix_openpt declaration.
3412         * login/Versions: Add posix_openpt for GLIBC_2.2.1.
3413         * sysdeps/generic/getpt.c: Define posix_openpt.
3414         * sysdeps/unix/bsd/getpt.c: Likewise.
3415         * sysdeps/unix/sysv/linux/getpt.c: Likewise.
3417         * time/Makefile (tests): Add tst-mktime.
3418         * time/tst-mktime.c: New file.
3420         * posix/tst-dir.c (main): One more mkdir() test.
3422         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
3423         Remove getpagesize syscall.  We assume that the pagesize is always
3424         determined from the auxiliary vector.
3426         * intl/dcigettext.c: Fix a few warnings.
3427         Patch by Bruno Haible <haible@ilog.fr>.
3429 2001-01-08  Andreas Jaeger  <aj@suse.de>
3431         * io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
3432         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
3434 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
3436         * sysdeps/generic/segfault.c (install_handler): Check output file
3437         name with access().
3439         * resolv/res_query.c: Use simply getenv() for HOSTALIASES.
3440         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.
3442         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma.
3444         * malloc/memusage.c (me): Use access() to determine whether we
3445         should write the output file or not.
3447         * libio/bits/stdio.h (printf): Define macro to map printf call to
3448         fprintf which gcc can optimize.
3449         * stdio-common/printf.c: Undefine printf.
3451 2001-01-07  Ulrich Drepper  <drepper@redhat.com>
3453         * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last
3454         patch.  We must use unsigned int for l member of union.
3456         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call
3457         _dl_aux_init for shared libraries.
3459         * sysdeps/unix/sysv/linux/glob64.c: Moved to ...
3460         * sysdeps/gnu/glob64.c: ...here.  New file.
3462 2001-01-07  Ben Collins  <bcollins@debian.org>
3464         * manual/examples/longopt.c: Make the "struct option" a little
3465         more like it should be, adding usage of required_argument,
3466         noargument and such, and also setting the options string right.
3468         * manual/sysinfo.texi (Load Average): New section, documents
3469         getloadavg().
3471 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
3473         * version.h (VERSION): Bump to 2.2.1.
3475         * sysdeps/unix/sysv/linux/mips/Dist: Remove sys/acct.h.
3476         * sysdeps/alpha/Dist: Add alphaev6/stxncpy.S and alphaev6/stxcpy.S.
3477         * sysdeps/unix/sysv/aix/Dist: Add uitrunc.c, savef.S, and restf.S.
3478         * dlfcn/Makefile (distribute): Add errmsg1mod.c.
3479         * Makefile (distribute): Add include/libc-internal.h.
3480         * libio/Makefile (distribute): Avoid overwriting.
3482         * iconvdata/ibm937.c (BODY to IBM937): Correct several mistakes in
3483         buffer and table handling.
3485 2001-01-05  H.J. Lu  <hjl@gnu.org>
3487         * elf/dl-support.c (non_dynamic_init): Move the auxiliary
3488         vector checking to ...
3489         (_dl_aux_init): Here. New function. Defined only if
3490         HAVE_AUX_VECTOR is defined.
3492         * sysdeps/generic/libc-start.c (__libc_start_main): Call
3493         _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined.
3495         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call
3496         _dl_aux_init.
3498         * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed.
3499         (HAVE_AUX_VECTOR): Defined.
3500         (_dl_aux_init): Declared.
3502 2001-01-05  Ben Collins  <bcollins@debian.org>
3504         * manual/string.texi (Finding Tokens in a String): Document XPG
3505         basename() and dirname(), as well as GNU basename().
3507 2001-01-05  Jakub Jelinek  <jakub@redhat.com>
3509         * Makeconfig (preprocess-version): Replace -traditional with
3510         -x assembler-with-cpp.
3512 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3514         * math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
3515         for GCC 2.97 or later.
3517 2001-01-05  Ben Collins  <bcollins@debian.org>
3519         * manual/stdio.texi (getline): Clarify the return value in the
3520         case of EOF being reached before a newline.
3522 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
3524         * sunrpc/pmap_clnt.c (__get_myaddress): Return TRUE if successful,
3525         FALSE otherwise.
3526         (pmap_set, pmap_unset): Check __get_myaddress return value.
3528 2001-01-05  Mark Kettenis  <kettenis@gnu.org>
3530         * sysdeps/generic/netinet/if_ether.h: Include <sys/types.h>.
3531         (struct ether_addr): Declare ether_addr_octet member as
3532         `u_int8_t'.  Add __attribute__ ((__packed__)).
3534 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
3536         * sysdeps/mach/hurd/readdir64.c: New file.
3537         * sysdeps/mach/hurd/readdir64_r.c: New file.
3539 2001-01-07  Mark Kettenis  <kettenis@gnu.org>
3541         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Add comment about
3542         `struct statfs' and `struct statvfs' being identical.
3543         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3545 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
3547         * sysdeps/mach/hurd/fstatfs64.c: New file.
3548         * sysdeps/mach/hurd/fstatvfs64.c: New file.
3549         * sysdeps/mach/hurd/statfs64.c: New file.
3550         * sysdeps/mach/hurd/statvfs64.c: New file.
3551         * sysdeps/mach/hurd/statfsconv.c: New file.
3552         * sysdeps/mach/hurd/Dist: Add statfsconv.c.
3554 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
3556         * iconv/skeleton.c: Reset outbuf for next round of the loop.
3557         Reported by Owen Taylor <otaylor@redhat.com>.
3558         * iconv/Makefile (tests): Add tst-iconv3.
3559         * iconv/tst-iconv3.c: New file.
3561         * iconvdata/ibm930.c: Fix handling of state.  Optimize a bit.
3562         * iconvdata/ibm933.c: Likewise.
3563         * iconvdata/ibm935.c: Likewise.
3564         * iconvdata/ibm937.c: Likewise.
3565         * iconvdata/ibm939.c: Likewise.
3566         * iconvdata/ibm930.h: Adjust single byte table for optimization.
3567         * iconvdata/ibm933.h: Likewise.
3568         * iconvdata/ibm935.h: Likewise.
3569         * iconvdata/ibm939.h: Likewise.
3571         * iconvdata/testdata/IBM930: Add misssing SI.
3572         * iconvdata/testdata/IBM933: Likewise.
3573         * iconvdata/testdata/IBM935: Likewise.
3574         * iconvdata/testdata/IBM937: Likewise.
3575         * iconvdata/testdata/IBM939: Likewise.
3577 2001-01-06  Andreas Jaeger  <aj@suse.de>
3579         * configure.in: Check for old add-ons that shouldn't be used with
3580         current glibc anymore.
3582 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
3584         * sysdeps/mach/hurd/readdir_r.c (__readdir_r): Return error number
3585         instead of -1 on failure.  Don't forget to copy file name into
3586         *ENTRY if successful.  Set *RESULT to NULL upon reaching the end
3587         of the directory.
3589 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
3591         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Don't forget to
3592         copy st_atime member.
3594 2001-01-05  Ulrich Drepper  <drepper@redhat.com>
3596         * io/ftw.c (ftw_dir): Don't add a second slash at the beginning
3597         for searches from the root directory.
3598         Reported by loris <loris@iol.it> [PR libc/1991].
3599         * io/Makefile (tests): Add bug-ftw1.
3600         * io/bug-ftw1.c: New file.
3602         * elf/dl-support.c (non_dynamic_init): Don't define DL_FIND_AUXV
3603         if it is not available.  Instead use it only if it is available.
3604         * sysdeps/unix/sysv/linux/ldsodefs.h: New file.
3606         * iconv/gconv_simple.c (internal_ics4_loop): Correct test for
3607         overflowing output buffer.
3608         (internal_ucs4_loop_unaligned): Likewise.
3609         (ucs4_internal_loop): Likewise.
3610         (ucs4_internal_loop_unaligned): Likewise.
3611         (internal_ucs4le_loop): Likewise.
3612         (internal_ucs4le_loop_unaligned): Likewise.
3613         (ucs4le_internal_loop): Likewise.
3614         (ucs4le_internal_loop_unaligned): Likewise.
3615         Reported by Owen Taylor <otaylor@redhat.com>.
3616         * iconv/Makefile (tests): Add tst-iconv2.
3617         * iconv/tst-iconv2.c: New file.
3619 2001-01-04  H.J. Lu  <hjl@gnu.org>
3621         * elf/dl-support.c (DL_FIND_AUXV): New.  Defined if not defined.
3622         (_dl_clktck): Declared.
3623         (non_dynamic_init): Take 3 arguments.
3624         Set _dl_pagesize, _dl_platform and _dl_clktck from AUX.
3626 2001-01-01  Bruno Haible  <haible@clisp.cons.org>
3628         Finish implementation of plural form handling.
3629         * intl/dcigettext.c (known_translation_t): Rename 'domain' field to
3630         'domainname'.  Remove 'plindex' field. Add 'domain' and
3631         'translation_length' fields.
3632         (transcmp): Don't compare 'plindex' fields.
3633         (plural_lookup): New function.
3634         (DCIGETTEXT): Change cache handing in the plural case.  Don't call
3635         plural_eval before the translation and its catalog file have been
3636         found. Remove plindex from cache key.  Add 'translation_length' and
3637         'domain' to cache result.
3638         (_nl_find_msg): Remove index argument, return length of translation
3639         to the caller instead.  Weaken comparison of string lengths, to account
3640         for plural entries.  Call iconv() on the entire result string, not
3641         only on the portion needed so far.
3642         * intl/loadinfo.h (_nl_find_msg): Remove index argument, add lengthp
3643         argument.
3644         * intl/loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change.
3646 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
3648         * intl/plural.y (yylex): Minimal improvement in number scanner.
3650 2000-07-31  Bruno Haible  <haible@clisp.cons.org>
3652         * intl/plural.y: Include config.h. Needed to define 'inline' away for
3653         C compilers that don't support it.
3654         (yylex): Don't use gcc specific case range syntax.
3655         * intl/loadmsgcat.c (INIT_GERMANIC_PLURAL): New macro, for old
3656         compilers.
3658 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
3660         * intl/finddomain.c: Remove unneeded includes.
3662 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
3664         * intl/localealias.c (memcpy): Return first argument, just like the
3665         real memcpy function does.
3666         * intl/bindtextdom.c (memcpy): Likewise.
3667         * intl/finddomain.c (memcpy): Likewise.
3668         * intl/l10nflist.c (memcpy): Likewise.
3669         * intl/textdomain.c (memcpy): Likewise.
3670         From Paul Eggert <eggert@twinsun.com>.
3672 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
3674         * resolv/resolv.h (struct __res_state): Add nsinit field.
3675         * resolv/res_send.c (res_nsend): Use it instead of nscount.
3676         * resolv/res_init.c (__res_vinit): Initialize it.
3677         (res_nclose): Clear it instead of nscount.
3679 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
3681         * malloc/mtrace.pl: Fix matching of addresses.
3682         Patch by Aharon Robbins <arnold@skeeve.com>.
3684         * Versions.def (ld): Add GLIBC_2.2.
3686         * catgets/gencat.c: Copyright 2001.
3687         * csu/version.c: Likewise.
3688         * debug/catchsegv.sh: Likewise.
3689         * debug/xtrace.sh: Likewise.
3690         * elf/ldconfig.c: Likewise.
3691         * elf/sprof.c: Likewise.
3692         * iconv/iconv_prog.c: Likewise.
3693         * locale/locale.c: Likewise.
3694         * locale/localedef.c: Likewise.
3695         * malloc/memusage.sh: Likewise.
3696         * malloc/mtrace.pl: Likewise.
3697         * nscd/nscd.c: Likewise.
3698         * posix/getconf.c: Likewise.
3700 2001-01-04  Mark Kettenis  <kettenis@gnu.org>
3702         * include/stdio.h: Only provide __getwc_unlocked prototype if
3703         USE_IN_LIBIO is defined.
3705 2001-01-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3707         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
3708         handling.
3710 2001-01-03  Andreas Schwab  <schwab@suse.de>
3712         * sysdeps/generic/strtoll.c: Remove unused __strtoq_internal alias.
3713         * sysdeps/generic/strtoull.c: Remove unused __strtouq_internal alias.
3715         * sysdeps/wordsize-64/strtol.c: Add strtoq alias and fix strtoll alias.
3716         * sysdeps/wordsize-64/strtoul.c: Add strtouq alias and fix
3717         strtoull alias.
3718         * sysdeps/wordsize-64/wcstol.c: Add wcstoq alias and fix wcstoll alias.
3719         * sysdeps/wordsize-64/wcstoul.c: Add wcstouq alias and fix
3720         wcstoull alias.
3722         * sysdeps/generic/strtoul.c: Make sure we find strtol.c in this
3723         directory.
3724         * sysdeps/generic/strtol_l.c: Likewise.
3725         * sysdeps/generic/strtoul_l.c: Likewise.
3726         * sysdeps/generic/wcstoul.c: Likewise, for wcstol.c.
3728         * sysdeps/wordsize-64/strtol_l.c: Fix alias.
3729         * sysdeps/wordsize-64/strtoul_l.c: Likewise.
3730         * sysdeps/wordsize-64/wcstol_l.c: Fix alias.
3731         * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
3733 2001-01-04  Andreas Jaeger  <aj@suse.de>
3735         * nss/nsswitch.c: Include files for missing prototypes, remove
3736         buggy declaration of prototypes.
3738 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3740         * resolv/Versions: Fix bracing.
3741         * sysdeps/powerpc/soft-fp/Versions: Likewise.
3742         * sysdeps/sparc/sparc64/soft-fp/Versions: Likewise.
3744 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3746         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
3748 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
3750         * manual/Makefile (TEXI2PDF): Change to texi2dvi --pdf.
3751         Suggested by Minko Markov <mmarkov@home.com>.
3753 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3755         * sysdeps/powerpc/elf/start.S (__data_start): Make it global.
3756         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): Print the name of
3757         the failing symbol.
3758         (__process_machine_rela): Pass symbol to dl_reloc_overflow().
3760 2001-01-02  Ben Collins  <bcollins@debian.org>
3762         * time/tzset.c (tzset_internal): Make sure we fall back to UTC
3763         if TZ is not set and TZDEFAULT is not present.
3765 2001-01-01  Ben Collins  <bcollins@debian.org>
3767         * string/strings.h: Make sure we declare our functions even if
3768         string.h is already included, based on whether or not __USE_BSD is
3769         defined.
3771 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
3773         * dlfcn/dlerror.c (dlerror): Handle call of dlerror() before any
3774         other dlopen() and dlsym().
3775         Based on a patch by Ben Collins <bcollins@debian.org>.
3777 2001-01-02  Andreas Jaeger  <aj@suse.de>
3779         * dlfcn/errmsg1.c (main): Call dlerror initially.
3780         Reported by Ben Collins <bcollins@debian.org>.
3782 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
3784         * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
3785         value is ignored if the selected locale is the C locale.
3786         * intl/tst-gettext.c: Set locale for above change.
3787         * intl/tst-translit.c: Likewise.
3789 2001-01-02  Andreas Jaeger  <aj@suse.de>
3791         * libio/wgenops.c (_IO_wdoallocbuf): Use correct wide access macro.
3792         (_IO_switch_to_wget_mode): Likewise.
3793         (_IO_sputbackwc): Likewise.
3794         (_IO_sungetwc): Use wint_t for result.
3796         * stdio-common/vfscanf.c (__vfscanf): Use WINT_T for done.
3798         * sysdeps/generic/strtol.c (strtol): Make cnt size_t for correct
3799         signedness.
3801         * sysdeps/generic/printf_fphex.c (putc): Cast _IO_putwc_unlocked
3802         to (int) to avoid warnings.
3803         * stdio-common/printf_fp.c (putc): Likewise.
3804         * stdio-common/printf_size.c (putc): Likewise.
3806         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make
3807         constant unsigned.
3809 2001-01-01  Andreas Jaeger  <aj@suse.de>
3811         * inet/rcmd.c (rcmd_af): Use socklen_t for len.
3813 2000-12-31  Andreas Jaeger  <aj@suse.de>
3815         * include/libc-internal.h: Add prototype for __libc_freeres.
3817         * sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
3818         for prototypes, remove redundant prototypes.
3819         * gmon/gmon.c: Likewise.
3820         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
3821         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
3822         * malloc/mtrace.c: Likewise.
3824         * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
3825         prototypes.
3826         * elf/soinit.c: Likewise.
3827         * sysdeps/generic/prof-freq.c: Likewise.
3828         * sysdeps/mach/hurd/profil.c: Likewise.
3829         * debug/noophooks.c: Likewise.
3830         * debug/pcprofile.c: Likewise.
3831         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
3832         * sysdeps/generic/get_clockfreq.c: Likewise.
3833         * malloc/set-freeres.c: Likewise.
3835         * locale/localeinfo.h: Add internal prototypes.
3837         * elf/rtld.c (dl_main): Fix prototype.
3839         * iconvdata/tst-table-to.c (main): Use return instead of exit to
3840         avoid warning.
3842         * nis/rpcsvc/yp_prot.h: Remove __P.
3843         * nis/rpcsvc/ypupd.h: Likewise.
3844         * nis/rpcsvc/yp.h: Likewise.
3846         * sunrpc/rpc_main.c: Add noreturn attributes.
3847         * sunrpc/rpc_scan.h: Likewise.
3849         * sunrpc/rpc_hout.c (storexdrfuncdecl): Make static.
3851         * sunrpc/rpcinfo.c: Add noreturn attribute to brdcst.
3853         * sunrpc/proto.h: Add noreturn attributes to error and crash.
3855         * posix/bsd-getpgrp.c: Add prototype to avoid warning.
3857         * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
3859         * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
3861         * include/rpc/rpc_msg.h: Add prototypes for some functions.
3862         * include/rpc/auth.h: Likewise.
3863         * include/rpc/auth_des.h: Likewise.
3864         * include/rpc/clnt.h: Likewise.
3865         * include/rpc/rpc.h: Likewise.
3866         * include/rpc/svc.h: Likewise.
3867         * include/rpc/svc_auth.h: Likewise.
3869         * include/rpc/des_crypt.h: New file.
3871         * malloc/memusagestat.c (main): Use return instead of exit to
3872         avoid warning.
3873         * io/pwd.c (main): Likewise.
3874         * iconvdata/tst-table-from.c (main): Likewise.
3875         * ctype/test_ctype.c (main): Likewise.
3876         * setjmp/tst-setjmp.c (main): Likewise.
3877         * signal/tst-signal.c (main): Likewise.
3878         * stdlib/tst-strtol.c (main): Likewise.
3879         * stdlib/tst-strtod.c (main): Likewise.
3880         * stdlib/tst-strtoll.c (main): Likewise.
3881         * stdlib/tst-xpg-basename.c (main): Likewise.
3882         * dirent/tst-seekdir.c (main): Likewise.
3883         * grp/testgrp.c (main): Likewise.
3884         * inet/test_ifindex.c (main): Likewise.
3885         * io/test-utime.c (main): Likewise.
3886         * posix/test-vfork.c (main): Likewise.
3887         * posix/testfnm.c (main): Likewise.
3888         * stdio-common/temptest.c (main): Likewise.
3889         * stdio-common/test_rdwr.c (main): Likewise.
3890         * stdio-common/tst-fileno.c (main): Likewise.
3891         * stdio-common/tst-sscanf.c (main): Likewise.
3892         * stdio-common/tstscanf.c (main): Likewise.
3893         * string/bug-strncat1.c (main): Likewise.
3894         * string/bug-strpbrk1.c (main): Likewise.
3895         * string/bug-strspn1.c (main): Likewise.
3896         * string/test-ffs.c (main): Likewise.
3897         * string/tst-inlcall.c (main): Likewise.
3898         * string/tst-svc.c (main): Likewise.
3899         * timezone/test-tz.c (main): Likewise.
3900         * wctype/test_wcfuncs.c (main): Likewise.
3901         * wctype/test_wctype.c (main): Likewise.
3903         * stdlib/tst-random.c: Add attribute noreturn to fail.
3905 2000-12-28  Wolfram Gloger  <wg@malloc.de>
3907         * malloc/malloc.c (MALLOC_COPY): Handle case if source and
3908         destination overlap.  Assume dest is always below source if
3909         overlapping.
3911 2000-12-30  Ulrich Drepper  <drepper@redhat.com>
3913         * elf/dl-close.c (_dl_close): We can ignore the NODELETE flag if the
3914         object was not yet initialized.
3916 2000-12-28  H.J. Lu  <hjl@gnu.org>
3918         * elf/dl-deps.c (_dl_map_object_deps): Make sure the DSO state
3919         is always consistent even if its dependency is failed.
3921         * elf/dl-open.c (_dl_open): Increment the open count before
3922         calling _dl_close () in case of failure.
3924         * elf/neededtest4.c: New file.
3925         * elf/neededobj5.c: New file.
3926         * elf/neededobj6.c: New file.
3928         * elf/Makefile (distribute): Add neededobj5.c and neededobj6.c.
3929         (tests): Add neededtest4.
3930         (modules-names): Add neededobj5 and neededobj6.
3931         ($(objpfx)neededobj6.so): New target.
3932         ($(objpfx)neededtest4): New target.
3933         ($(objpfx)neededtest4.out): New target.
3935 2000-12-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3937         * misc/sys/cdefs.h (__attribute_format_strfmon__): Define.
3938         * stdlib/monetary.h: Add strfmon format attributes.
3940 2000-12-28  Roland McGrath  <roland@frob.com>
3942         * sysdeps/mach/hurd/ioctl.c (do_ioctl): Avoid double-increment after
3943         __mempcpy does it for us.
3945 2000-12-28  Andreas Jaeger  <aj@suse.de>
3947         * sysdeps/generic/dl-environ.c: Add prototype for unsetenv.
3949         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for
3950         __new_setrlimit.
3952         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for
3953         __old_getrlimit64.
3955         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for
3956         __new_getrlimit.
3958         * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for
3959         __chown_is_lchown and __real_chown.
3961         * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
3962         _dl_reloc_bad_type.
3964         * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
3965         up GCC's warning about "deprecated use of label at end of compound
3966         statement."
3967         * sunrpc/rpc_cout.c (emit_inline): Likewise.
3969         * gmon/bb_exit_func.c: Include <sys/gmon.h> for internal
3970         prototypes.
3971         Remove struct bb and __bb_head since those are declared by
3972         sys/gmon.h.
3974 2000-12-22  Ben Collins  <bcollins@debian.org>
3976         * manual/charset.texi: Fix typo in description of WCHAR_MAX.
3978         * manual/argp.texi: Document argp_domain as part of struct argp.
3980 2000-12-28  Andreas Jaeger  <aj@suse.de>
3982         * catgets/Makefile (generated): Add sample.SJIS.cat.
3984         * sunrpc/rpc_dtable.c: Include rpc/clnt.h for prototypes.
3986         * elf/dl-minimal.c: Add prototypes.
3988         * include/locale.h: Add internal prototypes.
3989         * include/sys/gmon.h: Likewise.
3991         * dlfcn/errmsg1mod.c: Add prototype for foo to shut up GCC.
3993 2000-12-27  Ben Collins  <bcollins@debian.org>
3995         * elf/dl-open.c (_dl_open): Correctly set the new objname pointer
3996         when reallocating the error strings.
3997         Reported by Kalle Olavi Niemitalo <kon@iki.fi>
3999 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
4001         * dlfcn/Makefile (tests): Add errmsg1.
4002         (modules-names): Add errmsg1mod.
4003         Add rules to run errmsg1.
4004         * dlfcn/errmsg1.c: New file.
4005         * dlfcn/errmsg1mod.c: New file.
4007         * dlfcn/dlerror.c (dlerror): Always create output string which
4008         includes object file name.
4010         * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop
4011         if we would go through it only once.
4012         Patch by Rick Gorton <rick.gorton@api-networks.com>.
4014         * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter.
4015         Patch by Richard Henderson <rth@redhat.com>.
4017 2000-12-27  Jakub Jelinek  <jakub@redhat.com>
4019         * malloc/malloc.c (memmove): Add prototypes.
4020         (MALLOC_MEMMOVE): Define.
4021         (chunk_realloc): Use it instead of MALLOC_COPY if source and
4022         destination might overlap.
4024 2000-12-27  Andreas Jaeger  <aj@suse.de>
4026         * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested
4027         function.
4028         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4029         * locale/programs/locale.c (show_locale_vars): Likewise.
4030         (show_info): Likewise.
4031         * locale/programs/ld-collate.c (collate_output): Likewise.
4032         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
4033         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4034         * stdlib/rpmatch.c (rpmatch): Likewise.
4036         * setjmp/tst-setjmp.c: Make local functions static.
4037         * setjmp/jmpbug.c: Likewise.
4038         * signal/tst-signal.c: Likewise.
4039         * stdio-common/tfformat.c: Likewise.
4040         * string/tst-svc.c: Likewise.
4041         * time/clocktest.c: Likewise.
4042         * time/tst-getdate.c: Likewise.
4043         * dirent/list.c: Likewise.
4044         * dirent/opendir-tst1.c: Likewise.
4045         * posix/runtests.c: Likewise.
4046         * posix/tst-getaddrinfo.c: Likewise.
4047         * posix/tst-chmod.c: Likewise.
4048         * posix/wordexp-test.c: Likewise.
4049         * misc/tst-efgcvt.c: Likewise.
4050         * timezone/tst-timezone.c: Likewise.
4051         * rt/tst-clock.c: Likewise.
4052         * rt/tst-shm.c: Likewise.
4053         * rt/tst-aio2.c: Likewise.
4054         * rt/tst-aio3.c: Likewise.
4055         * rt/tst-aio4.c: Likewise.
4056         * rt/tst-aio5.c: Likewise.
4058         * dlfcn/failtest.c: Add prototype for foo.
4060         * dlfcn/glrefmain.c: Add prototype for do_test.
4062         * dlfcn/tst-dladdr.c: Add prototype for do_test.
4064         * string/test-ffs.c (main): Add prototype for nested function.
4066         * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype.
4068         * nss/XXX-lookup.c: Add prototype to shut up GCC.
4070         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix
4071         setetherent prototype.
4072         Add internal interfaces.
4074         * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise.
4075         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise.
4077         * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC.
4079         * nis/nis_intern.h: Add prototype for __pmap_getnisport.
4081         * nss/nss_files/files-ethers.c: Include netinet/ether.h to get
4082         prototypes, remove struct etherent since it's declared in ether.h.
4083         Fix ntohost declaration.
4085         * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC.
4087         * include/getopt.h: Add internal interfaces.
4088         * include/termios.h: Likewise.
4089         * include/resolv.h: Likewise.
4090         * include/netdb.h: Likewise.
4091         * include/grp.h: Likewise.
4092         * include/pwd.h: Likewise.
4093         * include/shadow.h: Likewise.
4094         * include/rpc/netdb.h: Likewise.
4095         * include/setjmp.h: Likewise.
4097         * include/stdio.h: Add prototypes for compatibility functions.
4098         * include/grp.h: Likewise.
4099         * include/pwd.h: Likewise.
4100         * include/shadow.h: Likewise.
4102         * include/fenv.h: Define internal interfaces.
4104 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
4106         * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant
4107         argument case separately.
4108         * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise.
4110 2000-12-27  Andreas Jaeger  <aj@suse.de>
4112         * include/sys/wait.h: Add some prototypes.
4113         * Rules (dummy.c): Create also prototype to shut up GCC.
4115 2000-12-27  Andreas Jaeger  <aj@suse.de>
4117         * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment,
4118         it's not needed at the moment.
4119         * sysdeps/generic/if_index.c (__protocol_available): Likewise.
4120         * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise.
4122 2000-12-26  Andreas Jaeger  <aj@suse.de>
4124         * libio/getc_u.c: Include stdio.h via system path to get internal
4125         prototypes.
4126         * libio/getwc_u.c: Likewise.
4128         * stdlib/strfmon.c: Fix prototype of __printf_fp.
4130         * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
4131         __printf_fp prototypes to ...
4132         * include/printf.h: ...here.
4134         * include/stdio.h: Add some internal prototypes to shut up GCC.
4135         * include/stdlib.h: Likewise.
4137         * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
4138         declaration.
4140         * include/signal.h: Add prototypes for internal sigpause
4141         interfaces.
4143 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
4145         * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
4146         64bit platforms.  Reported by Dave Gilbert <gilbertd@treblig.org>.
4148         * string/Makefile (tests): Add tst-bswap.
4149         * string/tst-bswap.c: New file.
4151 2000-12-11  Bruno Haible  <haible@clisp.cons.org>
4153         * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
4155 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
4157         * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call.
4158         Patch by Ed Connell <Ed.Connell@sas.com>.
4160 2000-12-24  Ulrich Drepper  <drepper@redhat.com>
4162         * locale/iso-639.def: Correct one entry.  Add two missing entries.
4164         * locale/iso-4217.def: Change entry for Eritrea.
4165         Reported by Daniel Yacob <yacob@geez.org>.
4167 2000-12-23  Ben Collins  <bcollins@debian.org>
4169         * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937
4170         description.
4172         * manual/stdio.texi (Dynamic Output): Document the return value of
4173         asprintf.  Also make the asprintf/snprintf examples a little
4174         better (check for some error returns).
4176 2000-12-22  Andreas Jaeger  <aj@suse.de>
4178         * include/stdio.h: Add __ftrylockfile prototype.
4180 2000-12-21  H.J. Lu  <hjl@gnu.org>
4182         * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type):
4183         Make sign_exponent element signed.
4185         * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type):
4186         Fix a typo.
4188         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch.
4190 2000-12-21  Andreas Jaeger  <aj@suse.de>
4192         * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
4193         * inet/ether_hton.c: Likewise
4194         * inet/ether_ntoh.c: Likewise.
4196         * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
4197         declaration to match prototype.
4199         * include/netinet/ether.h (struct etherent): Declare here so that
4200         all implementations use the same struct.
4202         * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
4203         prototypes.
4204         (struct ether): Removed.
4205         Use struct etherent instead of ether everywhere.
4207         * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.
4209         * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.
4211         * sunrpc/publickey.c: Include auth_des.h for prototypes.
4213 2000-12-20  Ulrich Drepper  <drepper@redhat.com>
4215         * math/test-misc.c: Add more tests for nextafter functions.
4217         * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to
4218         normal correctly.  Correct test for sign.
4219         Based on a patch by HJ Lu.
4221 2000-12-19  Ulrich Drepper  <drepper@redhat.com>
4223         * Makeconfig (preprocess-version): Add -traditional to gcc call.
4224         Cleanup sed calls.
4226 2000-12-19  Andreas Jaeger  <aj@suse.de>
4228         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New.
4230         * nis/nis_intern.h: Add prototype for __do_niscall3.
4232         * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to
4233         match prototype.
4235         * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat.
4237         * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New.
4239         * include/aliases.h (DECLARE_NSS_PROTOTYPES): New.
4241 2000-12-18  Ulrich Drepper  <drepper@redhat.com>
4243         * math/test-misc.c: Add more tests for nextafter.
4244         * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
4245         * sysdeps/ieee754/ldbl-96/math_ldbl.h
4246         (ieee_long_double_shape_type): Make sign_exponent element signed.
4248         * manual/message.texi: Add Estonian to plural overview list.
4249         Correct rule for Slavic languages.
4250         Patch by Stanislav Brabec <utx@penguin.cz>.
4252         * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
4254 2000-12-18  Andreas Jaeger  <aj@suse.de>
4256         * test-skeleton.c: Use temp_name_list instead of name_list to
4257         avoid collision with name_list from inet/netgroup.h.
4259         * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
4261         * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
4262         * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
4263         * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
4264         * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
4266         * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
4267         declaration to match prototype.
4268         * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
4269         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
4270         * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
4271         Likewise.
4272         * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
4273         * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
4274         * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
4275         * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
4276         (_nss_nis_getservbyport_r): Likewise.
4277         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
4278         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
4279         * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
4280         (_nss_nis_setnetent): Likewise
4281         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
4282         (_nss_nis_endnetgrent): Likewise.
4283         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
4284         Likewise.
4285         (_nss_nisplus_setnetgrent): Likewise.
4286         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
4287         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
4288         * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
4289         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
4290         Likewise.
4291         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
4292         Likewise.
4293         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
4294         Likewise.
4295         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
4296         Likewise.
4297         * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
4298         * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
4299         * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
4300         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4301         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
4302         (_nss_dns_getnetbyaddr_r): Likewise.
4304 2000-12-17  Andreas Jaeger  <aj@suse.de>
4306         * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
4307         parameter.
4309         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
4310         unused attribute to shut up gcc warnings.
4312         * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
4313         * sysdeps/generic/k_tanl.c: Likewise.
4314         * sysdeps/generic/k_cosl.c: Likewise.
4315         * sysdeps/generic/e_j0l.c: Likewise.
4316         * sysdeps/generic/e_j1l.c: Likewise.
4317         * sysdeps/generic/e_jnl.c: Likewise.
4318         * sysdeps/generic/e_lgammal_r.c: Likewise.
4320         * elf/vismain.c: Move prototypes for functions in vismod*.c to
4321         vismod.h.
4322         * elf/vismod.h: New file.
4323         * elf/Makefile (distribute): Add vismod.h.
4324         * elf/vismod1.c: Include vismod.h.
4325         * elf/vismod2.c: Likewise.
4326         * elf/vismod3.c: Likewise.
4328         * elf/constload3.c: Add prototype declarations to shut up gcc.
4329         * elf/failobj.c: Likewise.
4330         * elf/nodelmod3.c: Likewise.
4331         * elf/filtmod1.c: Likewise.
4332         * elf/filtmod2.c: Likewise.
4333         * elf/reldepmod1.c: Likewise.
4334         * elf/reldepmod2.c: Likewise.
4335         * elf/reldepmod3.c: Likewise.
4336         * elf/reldepmod4.c: Likewise.
4337         * elf/unload2dep.c: Likewise.
4338         * elf/unload2mod.c: Likewise.
4339         * elf/ltglobmod1.c: Likewise.
4340         * elf/pathoptobj.c: Likewise.
4341         * elf/neededobj1.c: Likewise.
4342         * elf/neededobj2.c: Likewise.
4343         * elf/neededobj3.c: Likewise.
4344         * elf/neededobj4.c: Likewise.
4345         * elf/nextmod1.c: Likewise.
4346         * elf/nextmod2.c: Likewise.
4348         * locale/programs/ld-collate.c (collate_finish): Don't use labels
4349         at end of compound statement.
4350         * locale/programs/locale.c (show_info): Likewise.
4351         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4353 2000-12-16  Jakub Jelinek  <jakub@redhat.com>
4355         * catgets/gencat.c (read_input_file): Avoid calling obstack_free
4356         with a pointer not returned by obstack_ functions.
4358 2000-12-16  Ulrich Drepper  <drepper@redhat.com>
4360         * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
4361         version.
4362         (struct stat64): Likewise.
4363         Reported by Michael Keezer <mkeezer@redhat.com>.
4365         * timezone/asia: Update from tzdata2000h.
4366         * timezone/australasia: Likewise.
4367         * timezone/backward: Likewise.
4368         * timezone/europe: Likewise.
4369         * timezone/northamerica: Likewise.
4370         * timezone/southamerica: Likewise.
4371         * timezone/zone.tab: Likewise.
4373 2000-12-14  Jakub Jelinek  <jakub@redhat.com>
4375         * io/ftw.c (ftw_dir): If process_entry returned non-zero result
4376         and dir.stream is NULL, only free dir.content.
4377         * io/ftwtest.c (cb, main): Add --early-exit option to test it.
4378         * io/ftwtest-sh: Test with --early-exit.
4380 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
4382         * misc/efgcvt.c (FCVT_MAXDIG): Define.
4383         (FCVT_BUFPTR): New variable.
4384         (fcvt): If fcvt_r returns -1 on the static short buffer,
4385         try to malloc a sufficiently large one and retry.
4386         (free_mem): New function.
4387         * misc/qefgcvt.c (FCVT_MAXDIG): Define.
4388         * misc/tst-efgcvt.c (fcvt_tests): Add new test.
4390 2000-12-15  Ulrich Drepper  <drepper@redhat.com>
4392         * misc/dirname.c (dirname): Fix search for second to last slash.
4394 2000-12-13  Andreas Jaeger  <aj@suse.de>
4396         * misc/tst-dirname.c (main): Fix typo in test to really use
4397         the examples from Unix98.
4398         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
4400 2000-12-09  H.J. Lu  <hjl@gnu.org>
4402         * sysdeps/ia64/fpu/s_fabs.S: New file.
4403         * sysdeps/ia64/fpu/s_fabsf.S: New file.
4404         * sysdeps/ia64/fpu/s_fabsl.S: New file.
4406 2000-12-15  Andreas Jaeger  <aj@suse.de>
4408         * stdio-common/scanf9.c (main): Reformat and change to avoid
4409         warnings.
4411         * stdio-common/tstdiomisc.c: Make local functions static.
4412         * stdio-common/tst-printf.c: Likewise.
4414         * elf/constload2.c: Add prototype declarations to shut up gcc.
4415         * elf/dep1.c: Likewise.
4416         * elf/dep2.c: Likewise.
4417         * elf/dep3.c: Likewise.
4418         * elf/dep4.c: Likewise.
4419         * elf/ltglobmod2.c: Likewise.
4421         * libio/fmemopen.c: Make local functions static.
4423         * elf/Makefile (distribute): Added testobj.h.
4425         * elf/testobj.h: New file.
4427         * elf/testobj1.c: Include testobj.h and move prototype
4428         declarations to testobj.h.
4429         * elf/testobj2.c: Likewise.
4430         * elf/testobj3.c: Likewise.
4431         * elf/testobj4.c: Likewise.
4432         * elf/testobj5.c: Likewise.
4433         * elf/testobj6.c: Likewise.
4434         * elf/testobj1_1.c: Likewise.
4435         * elf/preloadtest.c: Likewise.
4437 2000-12-15  Ben Collins  <bcollins@debian.org>
4439         * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
4440         Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
4442 2000-12-14  H.J. Lu  <hjl@gnu.org>
4444         * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
4445         field in a float is 8 bits, not 11 bits.
4447 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
4449         * math/test-misc.c (main): Adjust m for IEEE quad long double.
4451 2000-12-13  Andreas Jaeger  <aj@suse.de>
4453         * manual/message.texi (Using gettextized software): Fix typo.
4455         * manual/charset.texi (Converting a Character): Fix mbstouwcs
4456         program to compile.
4457         Patch by Martin Buchholz <martin@xemacs.org>.
4459         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
4460         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
4462 2000-12-11  Andreas Jaeger  <aj@suse.de>
4464         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
4465         kernel_sigset_t and use it.
4466         Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
4468 2000-12-10  Richard Henderson  <rth@redhat.com>
4470         * sysdeps/alpha/alphaev67/fpu/Implies: New file.
4471         * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
4472         * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
4474 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
4476         * sysdeps/alpha/htonl.S: Fix a typo.
4478 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
4480         * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
4482 2000-12-10  Andreas Jaeger  <aj@suse.de>
4484         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
4485         cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
4486         Drepper <drepper@redhat.com>.
4488 2000-12-09  Andreas Jaeger  <aj@suse.de>
4490         * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
4492         * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
4493         generic version.
4494         Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
4496         * locale/programs/ld-collate.c (handle_ellipsis): Fix format
4497         string.
4499         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
4500         format string.
4502         * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
4503         * nscd/connections.c (handle_request): Likewise.
4504         * nscd/pwdcache.c (addpwbyname): Likewise.
4505         * nscd/grpcache.c (addgrbyname): Likewise.
4507         * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
4509 2000-12-09  Ulrich Drepper  <drepper@redhat.com>
4511         * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
4513         * Makeconfig (default_cflags): Make -O2 the default for stable
4514         releases.
4516 2000-12-08  H.J. Lu  <hjl@gnu.org>
4518         * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
4519         * sysdeps/ia64/fpu/s_isinf.S: This.
4520         Add a .pred.rel.mutex note to avoid false report.
4522         * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
4523         * sysdeps/ia64/fpu/s_isnan.S: This.
4525         * sysdeps/ia64/fpu/s_fpclassify.S: New file.
4526         * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
4527         * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
4528         * sysdeps/ia64/fpu/s_isinff.S: New file.
4529         * sysdeps/ia64/fpu/s_isinfl.S: New file.
4530         * sysdeps/ia64/fpu/s_isnanf.S: New file.
4531         * sysdeps/ia64/fpu/s_isnanl.S: New file.
4532         * sysdeps/ia64/fpu/s_finite.S: New file.
4533         * sysdeps/ia64/fpu/s_finitef.S: New file.
4534         * sysdeps/ia64/fpu/s_finitel.S: New file.
4535         * sysdeps/ia64/fpu/s_signbit.S: New file.
4536         * sysdeps/ia64/fpu/s_signbitf.S: New file.
4537         * sysdeps/ia64/fpu/s_signbitl.S: New file.
4538         * sysdeps/ia64/fpu/s_copysign.S: New file.
4539         * sysdeps/ia64/fpu/s_copysignf.S: New file.
4540         * sysdeps/ia64/fpu/s_copysignl.S: New file.
4542 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
4544         * math/libm-test.inc (main): Fix typos in messages.
4546         * string/stratcliff.c: Add test for rawmemchr.
4548 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
4550         * elf/dl-open.c (_dl_open): If objname points right after errstring,
4551         allocate it together with errstring using alloca.
4552         * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
4553         to "", because it might point to local stack.
4555 2000-12-05  H.J. Lu  <hjl@gnu.org>
4557         * nss/Makefile (routines): Add getnssent and getnssent_r.
4558         * nss/nsswitch.h (__nss_setent): New internal NSS function.
4559         (__nss_endent): Likewise.
4560         (__nss_getent_r): Likewise.
4561         (__nss_getent): Likewise.
4562         * nss/getnssent_r.c: New file.
4563         * nss/getnssent.c: New file.
4564         * nss/getXXent.c (H_ERRNO_VAR): Updated.
4565         (GETFUNC_NAME): Updated to call __nss_getent ().
4566         * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
4567         (STAYOPEN_TMPVAR): Updated.
4568         (STAYOPEN_VAR): Updated.
4569         (SETFUNC_NAME): Updated to call __nss_setent ().
4570         (ENDFUNC_NAME): Updated to call __nss_endent ().
4571         (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
4573 2000-12-08  Andreas Jaeger  <aj@suse.de>
4575         * nscd/dbg_log.h (dbg_log): Correct attribute.
4577 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
4579         * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
4580         cp + len.  Compute where from dirname.
4581         Reported by <jreiser@BitWagon.com>.
4583 2000-12-08  Richard Henderson  <rth@twiddle.net>
4585         * sysdeps/alpha/_mcount.S: Fix typo.
4586         * sysdeps/alpha/strncpy.S: Likewise.
4588         * sysdeps/alpha/alphaev6/Implies: New file.
4589         * sysdeps/alpha/alphaev67/Implies: New file.
4590         * sysdeps/alpha/alphaev67/ffs.S: New file.
4591         * sysdeps/alpha/alphaev67/ffsll.S: New file.
4592         * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
4593         * sysdeps/alpha/alphaev67/stpcpy.S: New file.
4594         * sysdeps/alpha/alphaev67/stpncpy.S: New file.
4595         * sysdeps/alpha/rawmemchr.S: New file.
4596         * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
4597         * sysdeps/alpha/strcpy.S: Likewise.
4599         From GMP 3.1.1:
4600         * sysdeps/alpha/alphaev6/addmul_1.s: New file.
4602         From rick.gorton@alpha-processor.com:
4603         * sysdeps/alpha/alphaev6/memchr.S: New file.
4604         * sysdeps/alpha/alphaev6/memcpy.S: New file.
4605         * sysdeps/alpha/alphaev6/memset.S: New file.
4606         * sysdeps/alpha/alphaev6/stxcpy.S: New file.
4607         * sysdeps/alpha/alphaev6/stxncpy.S: New file.
4608         * sysdeps/alpha/alphaev67/strcat.S: New file.
4609         * sysdeps/alpha/alphaev67/strchr.S: New file.
4610         * sysdeps/alpha/alphaev67/strlen.S: New file.
4611         * sysdeps/alpha/alphaev67/strncat.S: New file.
4612         * sysdeps/alpha/htonl.S: Use a shorter sequence.
4614 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
4616         * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
4617         Reported by <pspencer@fields.utoronto.ca>.
4619 2000-12-07  Jes Sorensen  <jes@linuxcare.com>
4621         * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
4622         Pointed out by Hans Boehm.
4624 2000-12-07  H.J. Lu  <hjl@gnu.org>
4626         * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
4628 2000-12-07  Andreas Jaeger  <aj@suse.de>
4630         * misc/error.c: Add format attributes for __error and __error_at_line.
4632         * nscd/dbg_log.h: Add format attribute.
4634 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
4636         * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
4637         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4639 2000-12-07  Dan Pop  <Dan.Pop@cern.ch>
4641         * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
4643 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
4645         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
4646         (sysdep_routines): Add uitrunc.
4647         * sysdeps/unix/sysv/aix/uitrunc.c: New file.
4648         Patches by Michael Keezer <mkeezer@redhat.com>.
4650 2000-12-06  Roland McGrath  <roland@frob.com>
4652         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
4653         argument data, since it will be used to copy out too (for INOUT).
4654         Reported by Marcus Brinkmann <marcus@gnu.org>.
4656         * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
4657         (__ioctl): Use uintptr_t instead of unsigned long int.
4659 2000-12-06  Jim Wilson  <wilson@redhat.com>
4661         * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
4663 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
4665         * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
4666         x.5 rounding correctly.
4668 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
4670         * stdio-common/perror.c (perror): Conditionalize code dealing with
4671         wide-oriented streams on USE_IN_LIBIO.
4673 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
4675         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
4676         as internal_function.
4678 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
4680         * sysdeps/alpha/elf/start.S (__data_start): Define.
4682 2000-12-05  H.J. Lu  <hjl@gnu.org>
4684         * nss/getXXent_r.c (setup): Change the return type to int.
4686 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
4688         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
4689         (sysdep_routines): Add restf and savef.
4690         * sysdeps/unix/sysv/aix/restf.c: New file.
4691         * sysdeps/unix/sysv/aix/savef.c: New file.
4692         Patches by Michael Keezer <mkeezer@redhat.com>.
4694         * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
4695         if O_DIRECTORY is not defined.
4696         Patch by Michael Keezer <mkeezer@redhat.com>.
4698         * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
4699         Patch by Michael Keezer <mkeezer@redhat.com>.
4701         * locale/programs/linereader.c (get_toplvl_escape): Recognize more
4702         than 4 bytes in escape sequence.
4703         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
4705 2000-12-05  Andreas Jaeger  <aj@suse.de>
4707         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4708         set mips2.
4710         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
4712         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
4714         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
4715         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4717         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
4718         internal_function.
4719         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
4720         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
4722         * sysdeps/generic/dl-cache.c: Remove declaration of
4723         _dl_sysdep_read_whole_file.
4725         * elf/dl-load.c (_dl_map_object): Remove declaration of
4726         _dl_load_cache_lookup.
4728         * sysdeps/generic/ldsodefs.h: Add declarations of
4729         _dl_load_cache_lookup, _dl_unload_cache,
4730         _dl_sysdep_read_whole_file, _dl_sysdep_start and
4731         _dl_sysdep_start_cleanup.
4733         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
4734         now.
4736         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
4737         * sysdeps/generic/dl-environ.c: Likewise.
4739         * stdio-common/printf_fp.c: Include <gmp.h> instead of
4740         <stdlib/gmp.h>.
4741         * math/atest-exp.c: Likewise.
4742         * math/atest-exp2.c: Likewise.
4743         * math/atest-sincos.c: Likewise.
4744         * stdio-common/_itoa.c: Likewise.
4745         * stdio-common/_itowa.c: Likewise.
4747         * include/gmp.h: New file with internal prototypes.
4749         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
4750         here to...
4751         * include/setjmp.h: ...here.
4753         * locale/Makefile (routines): Remove codeset_name since it's not
4754         needed anywhere.
4756         * locale/codeset_name.c: Removed.
4758 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
4760         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
4762 2000-12-05  Andreas Jaeger  <aj@suse.de>
4764         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
4766 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4768         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
4769         available.
4771 2000-12-05  Andreas Jaeger  <aj@suse.de>
4773         * nss/test-netdb.c: Mark local functions as static to avoid
4774         warnings.
4775         (main): Use return to silence warning.
4777         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
4779         * stdio-common/test-popen.c: Mark local functions as static to
4780         avoid warnings.
4781         (main): Use return to silence warning.
4783         * stdlib/testsort.c (compare): Mark as static to avoid warning.
4785         * assert/test-assert.c: Mark local functions as static to avoid
4786         warnings.
4787         * assert/test-assert-perr.c: Likewise.
4789         * math/libm-test.inc (main): Use return to silence warnings.
4791 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
4793         * math/fenv.h: Fix typo in comment.
4795         * math/test-misc.c (main): Add a few more over and underflow tests
4796         for scalb.
4798         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
4799         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4800         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4801         * math/w_scalb.c: Don't use matherr except in SVID mode.
4802         * math/w_scalbf.c: Likewise.
4803         * math/w_scalbl.c: Likewise.
4804         * math/test-misc.c: Add test for NaN and scalbl.
4805         Reported by Fred J. Tydeman <tydeman@tybor.com>.
4807 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
4809         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
4810         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
4811         * include/libc-symbols.h (strong_alias): Define special version
4812         for HAVE_ASM_GLOBAL_DOT_NAME.
4813         (weak_alias): Likewise.
4814         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
4815         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
4816         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
4817         getutxline, pututxline, and utmpxname.
4818         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
4819         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
4820         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
4821         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
4822         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
4823         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
4824         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
4825         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
4826         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
4827         Patches by Michael Keezer <mkeezer@redhat.com>.
4829 2000-12-04  H.J. Lu  <hjl@gnu.org>
4831         * configure.in: Change --with-oldest-abi=ABI to
4832         --enable-oldest-abi=ABI.
4834 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
4836         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
4837         fwprintf instead of fprintf.
4839 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
4841         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
4842         DECIMAL_DIG definitions.
4843         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
4844         * sysdeps/generic/bits/mathdef.h: Likewise
4845         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
4846         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
4847         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
4848         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
4849         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
4850         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
4852 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
4854         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
4856         * math/atest-exp.c: Mark local functions as static to avoid warnings.
4857         * math/atest-exp2.c: Likewise.
4858         * math/atest-sincos.c: Likewise.
4860         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
4861         Reported by Fred J. Tydeman <tydeman@tybor.com>.
4863         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
4864         the handling of denormalized numbers.
4866         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
4867         numbers on x86.
4868         * sysdeps/i386/fpu/fpclassifyl.c: New file.
4870         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
4871         pseudo denormal representation of LDBL_MIN.
4873         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
4874         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
4876         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
4877         * iconvdata/jis0208.c: Likewise.
4878         * iconvdata/jis0212.c: Likewise.
4879         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
4881         * math/test-misc.c (main): More tests for frexp and some for
4882         fpclassify and isnormal.
4884         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
4885         test for subnormal.
4886         Reported by Fred J. Tydeman <tydeman@tybor.com>.
4888         * math/test-misc.c (main): Add tests for frexp.
4889         Reported by Fred J. Tydeman <tydeman@tybor.com>.
4890         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
4892 2000-12-02  H.J. Lu  <hjl@gnu.org>
4894         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
4895         '\0' to wcschr.
4897 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
4899         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
4900         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4901         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4903         * sysdeps/generic/glob.c: Adjust types of several variables to
4904         avoid warnings.
4906 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
4908         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
4910 2000-11-30  Roland McGrath  <roland@frob.com>
4912         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
4913         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
4914         allow multiple instances using the same function name in one file.
4916 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
4918         * configure.in: Correct test for pserver CVS access.
4920 2000-11-28  H.J. Lu  <hjl@gnu.org>
4922         * libio/libio.h: Remove extra "#if ... #endif".
4924 2000-11-29  H.J. Lu  <hjl@gnu.org>
4926         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
4928 2000-12-01  H.J. Lu  <hjl@gnu.org>
4930         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
4931         * nss/getXXent_r.c: Likewise.
4932         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4934 2000-11-30  H.J. Lu  <hjl@gnu.org>
4936         * scripts/abi-versions.awk (oldest_abi): New variable.
4937         Handle the oldest ABI supported.
4939         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
4940         for scripts/abi-versions.awk.
4942         * configure.in: Add --with-oldest-abi=ABI.
4943         * configure: Rebuild.
4945         * config.make.in (oldest-abi): New.
4947         * config.h.in (GLIBC_OLDEST_ABI): New.
4949         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
4951 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
4953         * locale/setlocale.c (setname): Free for all categories, not just
4954         LC_ALL.
4955         (setlocale): Store a copy of string passed by user, not the string
4956         itself.
4958 2000-11-30  Roland McGrath  <roland@frob.com>
4960         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
4961         rather than _hurd_fd_subinit, so it happens after it's safe to use
4962         libc facilities like malloc.
4964 2000-11-28  Andreas Jaeger  <aj@suse.de>
4966         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
4967         declaration, adjust declaration of __syscall_getdents to match
4968         kernel.
4970 2000-11-29  H.J. Lu  <hjl@gnu.org>
4972         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
4974 2000-11-29  Andreas Jaeger  <aj@suse.de>
4976         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
4978 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
4980         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
4981         * dlfcn/defaultmod2.c: Likewise.
4982         * dlfcn/dlopen.c: Likewise.
4983         * dlfcn/dlopenold.c: Likewise.
4984         * dlfcn/failtestmod.c: Likewise.
4985         * dlfcn/glreflib1.c: Likewise.
4986         * dlfcn/glreflib2.c: Likewise.
4987         * dlfcn/eval.c: Likewise.  Add attributes.
4989         * ctype/ctype-extn.c: Define isblank and not __isblank.
4991         * time/strftime.c: Add const where necessary to avoid warnings.
4992         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
4994 2000-11-22  Paul Eggert  <eggert@twinsun.com>
4996         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
4997         size of (size_t) -1; it's not portable.
4999 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
5001         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
5002         crappy i486 FPU.
5003         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
5005 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
5007         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
5009         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
5010         _mcount is required by profiled binaries.
5012         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
5013         * sysdeps/ia64/machine-gmon.h: ...here.
5015 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
5017         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
5018         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
5019         and ibm1129.h.
5020         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
5021         IBM1129.
5022         * iconvdata/ibm922.c: New file.
5023         * iconvdata/ibm922.h: New file.
5024         * iconvdata/ibm1124.c: New file.
5025         * iconvdata/ibm1124.h: New file.
5026         * iconvdata/ibm1129.c: New file.
5027         * iconvdata/ibm1129.h: New file.
5028         * iconvdata/testdata/IBM922: New file.
5029         * iconvdata/testdata/IBM922..UTF8: New file.
5030         * iconvdata/testdata/IBM1124: New file.
5031         * iconvdata/testdata/IBM1124..UTF8: New file.
5032         * iconvdata/testdata/IBM1129: New file.
5033         * iconvdata/testdata/IBM1129..UTF8: New file.
5035 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
5037         * catgets/gencat.c (normalize_line): Take extra parameter with escape
5038         character.  Change callers.
5039         (open_conversion): Determine mapping of 0x5c as wchar_t value.
5040         * catgets/Makefile: Add rules to build and run test-gencat.
5041         * catgets/sample.SJIS: New file.
5042         * catgets/test-gencat.c: New file.
5043         * catgets/test-gencat.sh: New file.
5044         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
5046 2000-11-28  Andreas Jaeger  <aj@suse.de>
5048         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
5049         Linux version.
5051 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
5053         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
5055 2000-11-28  Andreas Jaeger  <aj@suse.de>
5057         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
5058         __flexarr.
5059         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
5060         Likewise.
5062 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
5064         * misc/getusershell.c: Make strings in okshells array const.
5065         * misc/regexp.c: Add const to cast to avoid warnings.
5066         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
5067         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
5068         __setresuid.
5069         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
5070         setresgid.
5071         * misc/error.c: Add prototypes for __error and __error_at_line.
5072         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
5073         statement to avoid warning.
5074         * test-skeleton.c: Mark timeout_handler with noreturn.
5075         * iconv/skeleton.c (get16u): Add const to cast.
5076         (get32u): Likewise.
5077         * iconvdata/gb18030.c: Likewise.
5078         * iconvdata/iso-2022-cn-ext.c: Likewise.
5079         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
5080         * iconvdata/big5.c: Likewise.
5081         * iconvdata/big5hkscs.c: Likewise.
5082         * iconvdata/iso_6937.c: Likewise.
5083         * iconvdata/iso_6937-2.c: Likewise.
5084         * iconvdata/t.61.c: Likewise.
5085         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
5086         * iconvdata/unicode.c: Likewise.
5087         * iconvdata/utf-16.c: Likewise.
5088         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
5089         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
5090         with little code shuffling.
5092         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
5093         the problems introduced when the user selects -O3.
5095         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
5096         * misc/sys/cdefs.h: Define __flexarr.
5097         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
5099         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
5100         * iconv/skeleton.c: Likewise.
5101         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
5102         * iconv/loop.c (get16): Add const to cast.
5103         (get32): Likewise.
5105 2000-11-27  Andreas Jaeger  <aj@suse.de>
5107         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
5108         to avoid warning.
5109         * login/programs/utmpdump.c (print_entry): Likewise.
5111 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5113         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
5114         in a single asm as they may be used to access other stored
5115         registers.
5116         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
5118 2000-11-27  Andreas Jaeger  <aj@suse.de>
5120         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
5121         * rt/tst-aio64.c: Likewise.
5123 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
5125         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
5126         for gencat run.
5127         (libc.cat): Likewise.
5128         * catgets/gencat.c: Implement handling of message catalogs encoded
5129         with stateful character sets.
5130         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
5132 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
5134         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
5136         * inet/getnameinfo.c: Adjust casts to avoid warnings.
5137         * inet/rcmd.c: Likewise.
5138         * inet/ruserpass.c: Likewise.
5139         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
5140         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5141         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
5142         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
5143         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
5144         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
5145         * include/aliases.h: Add prototypes for internal __getalias* functions.
5146         * include/netdb.h: Add prototypes for __old_gethostent_r,
5147         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
5148         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
5149         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
5150         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
5151         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
5152         __old_getrpcbynumber_r, __old_getrpcent_r.
5154         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
5155         __getrpcent_r prototypes.
5157 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
5159         * string/strcoll.c: Add casts to avoid warnings.
5160         * string/strnlen.c: Likewise.
5161         * string/strxfrm.c: Likewise.
5162         * sysdeps/generic/_strerror.c: Likewise.
5163         * sysdeps/generic/memrchr.c: Likewise.
5164         * sysdeps/generic/strcasestr.c: Likewise.
5165         * sysdeps/generic/strstr.c: Likewise.
5167         * locale/weight.h (findidx): Add const to cast to avoid warning.
5169         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
5170         * elf/loadtest.c: Likewise.
5171         * elf/multiload.c: Likewise.
5172         * elf/next.c: Likewise.
5173         * elf/nodelete.c: Likewise.
5174         * elf/noload.c: Likewise.
5175         * elf/order.c: Likewise.
5176         * elf/origtest.c: Likewise.
5177         * elf/preloadtest.c: Likewise.
5178         * elf/restest1.c: Likewise.
5180         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
5181         parameter of asm must be in %ecx.
5183         * string/tester.c: Mark test functions as static to avoid warnings.
5185         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
5186         preserve value over different gconv-modules files.
5188 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
5190         * locale/findlocale.c: Add casts to avoid warnings.
5191         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
5192         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
5193         to avoid warnings.
5194         * misc/tsearch.c (const_node): New type.
5195         (trecurse): Correct casts to avoid warnings.
5196         (__twalk): Likewise.
5197         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
5198         LONG_BIT.
5200         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
5202         * test-skeleton.c: Mark local functions as static to avoid warnings.
5204 2000-11-23  H.J. Lu  <hjl@gnu.org>
5206         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
5207         support the background job.
5208         Fix a typo.
5210 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
5212         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
5213         has same names but lower cost.
5215 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
5217         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
5218         which never occur during bootstrap.
5219         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5221 2000-11-23  Andreas Jaeger  <aj@suse.de>
5223         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
5225         * nss/Versions: Remove _nss_files_getipnodebyname_r.
5227         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
5229 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5231         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
5232         (called++) return;'
5234 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
5236         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
5238         * csu/abi-note.S: Correct comment for operating system number.
5240 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
5242         * Versions.def: Add GLIBC_2.2.1 for glibc.
5244 2000-11-22  Andreas Schwab  <schwab@suse.de>
5246         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
5247         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
5249 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
5251         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
5252         absolute time for pthread_cond_timedwait call.
5253         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
5255         * rt/Makefile (tests): Add tst-aio6.
5256         * rt/tst-aio6.c: New file.
5258 2000-11-23  Andreas Jaeger  <aj@suse.de>
5260         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
5262 2000-11-22  Andreas Jaeger  <aj@suse.de>
5264         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
5266 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5268         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
5270 2000-11-21  Andreas Schwab  <schwab@suse.de>
5272         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
5273         * sysdeps/arm/setjmp.S: Likewise.
5274         * sysdeps/arm/fpu/setjmp.S: Likewise.
5275         * sysdeps/i386/setjmp.S: Likewise.
5276         * sysdeps/i386/elf/setjmp.S: Likewise.
5277         * sysdeps/s390/setjmp.S: Likewise.
5278         * sysdeps/s390/elf/setjmp.S: Likewise.
5279         * sysdeps/sh/sh3/setjmp.S: Likewise.
5280         * sysdeps/sh/sh4/setjmp.S: Likewise.
5281         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5282         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5283         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5284         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
5286 2000-11-21  Andreas Jaeger  <aj@suse.de>
5288         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
5289         NORETURN, fix parameter list.
5291         * string/bug-strncat1.c (main): Fix typo.
5292         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
5294 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
5296         * configure.in: Add --enable-all-warnings.
5297         * config.make.in (all-warnings): New variable.
5298         * Makeconfig (+gccwarn): Define with many more warnings if
5299         all-warnings is yes.
5301 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
5303         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
5304         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
5305         * malloc/tst-valloc.c (main): Cast valloc return value to long.
5306         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
5307         * math/test-fpucw.c (main): Use %lx in format string, cast
5308         control words to long.
5309         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
5310         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
5311         large that it is unsigned warning.
5313         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
5314         it to long on sparc64.
5316 2000-11-20  Andreas Jaeger  <aj@suse.de>
5318         * nscd/nscd.h (termination_handler): Add noreturn attribute.
5319         (receiv_print_stats): Likewise.
5321         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
5323 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
5325         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
5327         * csu/gmon-start.c: Always have prototype for __gmon_start.
5328         * csu/version.c: Add prototypes for __libc_print_version and
5329         __libc_main.
5330         * iconv/gconv.c: Include gconv_int.h and gconv.h.
5331         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
5332         and __to_name.
5333         * iconv/gconv_builtin.h: Add ASCII module definitions.
5334         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
5335         (add_module): Add cast to avoid warning.  Rework construction of
5336         strings for new module.
5337         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
5338         (derivation_compare): Likewise.
5339         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
5340         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
5341         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
5342         (struct gconv_alias): Remove const from fromname and toname.
5343         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
5344         for loop functions.
5345         (internal_ucs4_loop): Use correct const-ness.
5346         (ucs4_internal_loop): Likewise.
5347         (internal_ucs4le_loop): Likewise.
5348         (ucs4le_internal_loop_single): Likewise.
5349         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
5350         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
5351         assignments appropriately.
5352         (struct known_trans): Remove const from fname.
5353         (trans_compare): Make s1 and s2 const.
5354         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
5355         avoid warning.
5356         * iconv/skeleton.c: Remove cast in calls of loop functions.
5357         * iconvdata/gconv-modules: Remove US-ASCII definitions.
5358         * iconvdata/iso646.c: Remove US_ASCII support.
5359         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
5360         * include/unistd.h: Add __libc_check_standard_fds prototype.
5361         * string/bits/string2.h (__mempcpy_args): Add const to casts.
5362         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
5363         _fini.
5364         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
5365         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
5366         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
5367         warning.
5368         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
5369         __libc_init_first and _dl_start.
5370         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
5371         (DCIGETTEXT): Make domaindata variable const.
5372         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
5373         to avoid warning.
5375 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
5377         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
5379         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
5380         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
5381         __unused? members.
5383         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
5384         value defined in /usr/include/asm-mips/fcntl.h.
5386 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
5388         * stdio-common/Makefile (tests): Add test-vfprintf.
5389         (test-vfprintf-ENV): New variable.
5390         * stdio-common/test-vfprintf.c: New file.
5392         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
5394         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
5395         (tst-mbrtowc-ENV): New variable.
5396         (tst-wcrtomb-ENV): New variable.
5397         * wcsmbs/tst-mbrtowc.c: New file.
5398         * wcsmbs/tst-wcrtomb.c: New file.
5400 2000-11-16  Andreas Jaeger  <aj@suse.de>
5402         * manual/install.texi (Tools for Compilation): Update
5403         documentation for GCC 2.95.2.
5405 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
5407         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
5408         if IPv4 and IPv6 requests timed out.
5410 2000-11-18  Akim Demaille  <akim@epita.fr>
5412         * malloc/obstack.h: Formatting changes.
5413         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
5414         prevents type checking.
5415         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
5416         cast the value to (void *): assigning a `foo *' to a `void *'
5417         variable is valid.
5418         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
5420 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
5422         * scripts/config.guess: Update from upstream maintainer.
5423         * scripts/config.sub: Likewise.
5425 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
5427         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
5428         * libio/freopen64.c (freopen64): Likewise.
5429         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
5431         * libio/Makefile: Add rules to build and run test-freopen.
5432         * libio/test-freopen.c: New file.
5433         * libio/test-freopen.sh: New file.
5435 2000-11-15  H.J. Lu  <hjl@gnu.org>
5437         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
5438         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
5439         (DL_DT_FINI_ADDRESS): Likewise.
5441         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
5442         return type to ElfW(Addr).
5443         (_dl_function_address): New prototype.
5444         (DL_FUNCTION_ADDRESS): Defined.
5445         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
5446         (DL_DT_FINI_ADDRESS): Likewise.
5448         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
5450         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
5451         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
5453         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
5454         (_dl_function_address): This.
5456         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
5457         function pointer for DT_FINI.
5458         * elf/dl-close.c (_dl_close): Likewise.
5460         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
5461         function pointer for DT_INIT.
5463 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
5465         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
5466         end of wexpbuf buffer.
5468 2000-11-16  Andreas Jaeger  <aj@suse.de>
5470         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
5471         definition of F_GETLK, F_SETLK, F_SETLKW.
5473 2000-11-16  Andreas Jaeger  <aj@suse.de>
5475         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
5476         it's not defined.
5478 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
5480         * dlfcn/default.c (main): Add test for dladdr of main returning
5481         argv[0] in dli_fname field.
5483 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
5485         * Makeconfig (run-program-prefix): Move test-static test into the
5486         variable.
5488         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
5489         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
5490         schedule instructions.
5491         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
5492         schedule instructions, fix a bug in copying auxiliary data.
5494 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
5496         * manual/startup.texi (Program Arguments): Fix type of main's envp
5497         parameter.
5498         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
5500         * iconvdata/gconv-modules: Add CP950 alias.
5502 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
5504         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
5505         syscall-list.h goal.
5506         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
5508 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
5510         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
5512         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
5513         output of program.
5515         * intl/tst-gettext2.c: Set C locale if setting other locale
5516         failed.  Use gettext() not _().
5518         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
5519         successfully loaded a new locale.
5521 2000-11-13  Andreas Jaeger  <aj@suse.de>
5523         * configure.in: Require gcc 2.95 or newer.
5525 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
5527         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
5528         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
5530 2000-11-11  Jim Meyering  <meyering@lucent.com>
5532         * string/strndup.c (strndup): Cast return value to `char *'.
5534 2000-11-15  Jim Meyering  <meyering@ascend.com>
5536         * sysdeps/generic/memchr.c: Remove some useless parentheses.
5537         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
5538         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
5539         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
5540         Also #undef __memchr.
5541         Use `weak_alias' only if it's defined.
5543 2000-11-10  H.J. Lu  <hjl@gnu.org>
5545         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
5547 2000-11-15  Andreas Jaeger  <aj@suse.de>
5549         * elf/chroot_canon.c: Include <stdint.h>.
5551         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
5552         (print_entry): Likewise.
5553         (add_to_cache): Likewise.
5555         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
5557         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
5558         (path_hwcap): Likewise.
5559         (search_dir): Likewise.
5561         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
5563         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
5565         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
5566         (_dl_platform_string): New.
5567         (_DL_HWCAP_PLATFORM): New.
5568         (_dl_string_platform): New.
5569         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
5571         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5572         (_dl_string_platform): New.
5573         (_DL_HWCAP_PLATFORM): New.
5574         (_dl_platform_string): New.
5576         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
5577         recognition.
5578         (_DL_HWCAP_COUNT): New.
5579         (_dl_string_platform): New.
5580         (_DL_HWCAP_PLATFORM): New.
5581         (_dl_platform_string): New.
5583 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
5585         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
5587 2000-11-14  Andreas Jaeger  <aj@suse.de>
5589         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
5591 2000-11-13  Roland McGrath  <roland@frob.com>
5593         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
5595 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
5597         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
5598         underrun and make sure the result is null terminated even if there
5599         is no trailing newline.
5601 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
5603         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5605 2000-11-10  H.J. Lu  <hjl@gnu.org>
5607         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5609 2000-11-10  Andreas Jaeger  <aj@suse.de>
5611         * elf/ldconfig.c (create_links): Fix alloca calculation.
5612         Patch by Ben Collins <bcollins@debian.org>.
5614 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
5616         * inet/getnameinfo.c (getnameinfo): Use correct destination
5617         parameter for if_indextoname.
5618         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
5620 2000-11-09  H.J. Lu  <hjl@gnu.org>
5622         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
5623         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
5624         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
5625         xdr_keystatus.
5627         * time/Versions (GLIBC_2.1): Move getitimer to...
5628         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
5630 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
5632         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
5633         "make install", to work around a binary incompatibility between
5634         glibc 2.1 and glibc 2.2 gconv modules.
5636 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
5638         * intl/locale.alias: Add thai.
5639         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
5641 2000-11-07  Akim Demaille  <akim@epita.fr>
5643         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
5644         argument `data' for consistency with the prototypes.
5645         Qualify it `const'.
5646         (obstack_copy, obstack_copy0): Rename the second argument as
5647         `address' for consistency.  Qualify it `const'.
5648         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
5649         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
5650         `const' their input argument (`data' or `address').
5651         Adjust the corresponding macros to include `const' in casts.
5653 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5655         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
5656         target family.
5658 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5660         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
5661         socket creation.
5663 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5665         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
5666         ai_protocol by internal table if service was not given.
5668 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5670         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
5671         numerical port was specified with protocol without socktype.
5673 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5675         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
5677 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5679         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
5681 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5683         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
5684         sin6_scope_id field.
5686 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5688         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
5690 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5692         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
5694 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
5696         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
5697         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
5699 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
5701         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
5702         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
5704 2000-11-09  H.J. Lu  <hjl@gnu.org>
5706         * io/Versions (GLIBC_2.1.1): Remove lockf64.
5709 See ChangeLog.11 for earlier changes.