Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2
3         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
4         available.
5
6 2000-12-05  Andreas Jaeger  <aj@suse.de>
7
8         * nss/test-netdb.c: Mark local functions as static to avoid
9         warnings.
10         (main): Use return to silence warning.
11
12         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
13
14         * stdio-common/test-popen.c: Mark local functions as static to
15         avoid warnings.
16         (main): Use return to silence warning.
17
18         * stdlib/testsort.c (compare): Mark as static to avoid warning.
19
20         * assert/test-assert.c: Mark local functions as static to avoid
21         warnings.
22         * assert/test-assert-perr.c: Likewise.
23
24         * math/libm-test.inc (main): Use return to silence warnings.
25
26 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
27
28         * math/fenv.h: Fix typo in comment.
29
30         * math/test-misc.c (main): Add a few more over and underflow tests
31         for scalb.
32
33         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
34         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
35         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
36         * math/w_scalb.c: Don't use matherr except in SVID mode.
37         * math/w_scalbf.c: Likewise.
38         * math/w_scalbl.c: Likewise.
39         * math/test-misc.c: Add test for NaN and scalbl.
40         Reported by Fred J. Tydeman <tydeman@tybor.com>.
41
42 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
43
44         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
45         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
46         * include/libc-symbols.h (strong_alias): Define special version
47         for HAVE_ASM_GLOBAL_DOT_NAME.
48         (weak_alias): Likewise.
49         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
50         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
51         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
52         getutxline, pututxline, and utmpxname.
53         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
54         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
55         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
56         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
57         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
58         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
59         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
60         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
61         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
62         Patches by Michael Keezer <mkeezer@redhat.com>.
63
64 2000-12-04  H.J. Lu  <hjl@gnu.org>
65
66         * configure.in: Change --with-oldest-abi=ABI to
67         --enable-oldest-abi=ABI.
68
69 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
70
71         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
72         fwprintf instead of fprintf.
73
74 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
75
76         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
77         DECIMAL_DIG definitions.
78         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
79         * sysdeps/generic/bits/mathdef.h: Likewise
80         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
81         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
82         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
83         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
84         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
85         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
86
87 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
88
89         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
90
91         * math/atest-exp.c: Mark local functions as static to avoid warnings.
92         * math/atest-exp2.c: Likewise.
93         * math/atest-sincos.c: Likewise.
94
95         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
96         Reported by Fred J. Tydeman <tydeman@tybor.com>.
97
98         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
99         the handling of denormalized numbers.
100
101         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
102         numbers on x86.
103         * sysdeps/i386/fpu/fpclassifyl.c: New file.
104
105         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
106         pseudo denormal representation of LDBL_MIN.
107
108         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
109         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
110
111         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
112         * iconvdata/jis0208.c: Likewise.
113         * iconvdata/jis0212.c: Likewise.
114         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
115
116         * math/test-misc.c (main): More tests for frexp and some for
117         fpclassify and isnormal.
118
119         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
120         test for subnormal.
121         Reported by Fred J. Tydeman <tydeman@tybor.com>.
122
123         * math/test-misc.c (main): Add tests for frexp.
124         Reported by Fred J. Tydeman <tydeman@tybor.com>.
125         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
126
127 2000-12-02  H.J. Lu  <hjl@gnu.org>
128
129         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
130         '\0' to wcschr.
131
132 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
133
134         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
135         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
136         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
137
138         * sysdeps/generic/glob.c: Adjust types of several variables to
139         avoid warnings.
140
141 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
142
143         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
144
145 2000-11-30  Roland McGrath  <roland@frob.com>
146
147         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
148         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
149         allow multiple instances using the same function name in one file.
150
151 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
152
153         * configure.in: Correct test for pserver CVS access.
154
155 2000-11-28  H.J. Lu  <hjl@gnu.org>
156
157         * libio/libio.h: Remove extra "#if ... #endif".
158
159 2000-11-29  H.J. Lu  <hjl@gnu.org>
160
161         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
162
163 2000-12-01  H.J. Lu  <hjl@gnu.org>
164
165         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
166         * nss/getXXent_r.c: Likewise.
167         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
168
169 2000-11-30  H.J. Lu  <hjl@gnu.org>
170
171         * scripts/abi-versions.awk (oldest_abi): New variable.
172         Handle the oldest ABI supported.
173
174         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
175         for scripts/abi-versions.awk.
176
177         * configure.in: Add --with-oldest-abi=ABI.
178         * configure: Rebuild.
179
180         * config.make.in (oldest-abi): New.
181
182         * config.h.in (GLIBC_OLDEST_ABI): New.
183
184         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
185
186 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
187
188         * locale/setlocale.c (setname): Free for all categories, not just
189         LC_ALL.
190         (setlocale): Store a copy of string passed by user, not the string
191         itself.
192
193 2000-11-30  Roland McGrath  <roland@frob.com>
194
195         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
196         rather than _hurd_fd_subinit, so it happens after it's safe to use
197         libc facilities like malloc.
198
199 2000-11-28  Andreas Jaeger  <aj@suse.de>
200
201         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
202         declaration, adjust declaration of __syscall_getdents to match
203         kernel.
204
205 2000-11-29  H.J. Lu  <hjl@gnu.org>
206
207         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
208
209 2000-11-29  Andreas Jaeger  <aj@suse.de>
210
211         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
212
213 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
214
215         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
216         * dlfcn/defaultmod2.c: Likewise.
217         * dlfcn/dlopen.c: Likewise.
218         * dlfcn/dlopenold.c: Likewise.
219         * dlfcn/failtestmod.c: Likewise.
220         * dlfcn/glreflib1.c: Likewise.
221         * dlfcn/glreflib2.c: Likewise.
222         * dlfcn/eval.c: Likewise.  Add attributes.
223
224         * ctype/ctype-extn.c: Define isblank and not __isblank.
225
226         * time/strftime.c: Add const where necessary to avoid warnings.
227         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
228
229 2000-11-22  Paul Eggert  <eggert@twinsun.com>
230
231         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
232         size of (size_t) -1; it's not portable.
233
234 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
235
236         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
237         crappy i486 FPU.
238         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
239
240 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
241
242         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
243
244         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
245         _mcount is required by profiled binaries.
246
247         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
248         * sysdeps/ia64/machine-gmon.h: ...here.
249
250 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
251
252         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
253         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
254         and ibm1129.h.
255         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
256         IBM1129.
257         * iconvdata/ibm922.c: New file.
258         * iconvdata/ibm922.h: New file.
259         * iconvdata/ibm1124.c: New file.
260         * iconvdata/ibm1124.h: New file.
261         * iconvdata/ibm1129.c: New file.
262         * iconvdata/ibm1129.h: New file.
263         * iconvdata/testdata/IBM922: New file.
264         * iconvdata/testdata/IBM922..UTF8: New file.
265         * iconvdata/testdata/IBM1124: New file.
266         * iconvdata/testdata/IBM1124..UTF8: New file.
267         * iconvdata/testdata/IBM1129: New file.
268         * iconvdata/testdata/IBM1129..UTF8: New file.
269
270 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
271
272         * catgets/gencat.c (normalize_line): Take extra parameter with escape
273         character.  Change callers.
274         (open_conversion): Determine mapping of 0x5c as wchar_t value.
275         * catgets/Makefile: Add rules to build and run test-gencat.
276         * catgets/sample.SJIS: New file.
277         * catgets/test-gencat.c: New file.
278         * catgets/test-gencat.sh: New file.
279         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
280
281 2000-11-28  Andreas Jaeger  <aj@suse.de>
282
283         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
284         Linux version.
285
286 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
287
288         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
289
290 2000-11-28  Andreas Jaeger  <aj@suse.de>
291
292         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
293         __flexarr.
294         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
295         Likewise.
296
297 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
298
299         * misc/getusershell.c: Make strings in okshells array const.
300         * misc/regexp.c: Add const to cast to avoid warnings.
301         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
302         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
303         __setresuid.
304         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
305         setresgid.
306         * misc/error.c: Add prototypes for __error and __error_at_line.
307         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
308         statement to avoid warning.
309         * test-skeleton.c: Mark timeout_handler with noreturn.
310         * iconv/skeleton.c (get16u): Add const to cast.
311         (get32u): Likewise.
312         * iconvdata/gb18030.c: Likewise.
313         * iconvdata/iso-2022-cn-ext.c: Likewise.
314         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
315         * iconvdata/big5.c: Likewise.
316         * iconvdata/big5hkscs.c: Likewise.
317         * iconvdata/iso_6937.c: Likewise.
318         * iconvdata/iso_6937-2.c: Likewise.
319         * iconvdata/t.61.c: Likewise.
320         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
321         * iconvdata/unicode.c: Likewise.
322         * iconvdata/utf-16.c: Likewise.
323         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
324         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
325         with little code shuffling.
326
327         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
328         the problems introduced when the user selects -O3.
329
330         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
331         * misc/sys/cdefs.h: Define __flexarr.
332         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
333
334         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
335         * iconv/skeleton.c: Likewise.
336         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
337         * iconv/loop.c (get16): Add const to cast.
338         (get32): Likewise.
339
340 2000-11-27  Andreas Jaeger  <aj@suse.de>
341
342         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
343         to avoid warning.
344         * login/programs/utmpdump.c (print_entry): Likewise.
345
346 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
347
348         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
349         in a single asm as they may be used to access other stored
350         registers.
351         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
352
353 2000-11-27  Andreas Jaeger  <aj@suse.de>
354
355         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
356         * rt/tst-aio64.c: Likewise.
357
358 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
359
360         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
361         for gencat run.
362         (libc.cat): Likewise.
363         * catgets/gencat.c: Implement handling of message catalogs encoded
364         with stateful character sets.
365         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
366
367 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
368
369         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
370
371         * inet/getnameinfo.c: Adjust casts to avoid warnings.
372         * inet/rcmd.c: Likewise.
373         * inet/ruserpass.c: Likewise.
374         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
375         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
376         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
377         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
378         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
379         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
380         * include/aliases.h: Add prototypes for internal __getalias* functions.
381         * include/netdb.h: Add prototypes for __old_gethostent_r,
382         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
383         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
384         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
385         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
386         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
387         __old_getrpcbynumber_r, __old_getrpcent_r.
388
389         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
390         __getrpcent_r prototypes.
391
392 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
393
394         * string/strcoll.c: Add casts to avoid warnings.
395         * string/strnlen.c: Likewise.
396         * string/strxfrm.c: Likewise.
397         * sysdeps/generic/_strerror.c: Likewise.
398         * sysdeps/generic/memrchr.c: Likewise.
399         * sysdeps/generic/strcasestr.c: Likewise.
400         * sysdeps/generic/strstr.c: Likewise.
401
402         * locale/weight.h (findidx): Add const to cast to avoid warning.
403
404         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
405         * elf/loadtest.c: Likewise.
406         * elf/multiload.c: Likewise.
407         * elf/next.c: Likewise.
408         * elf/nodelete.c: Likewise.
409         * elf/noload.c: Likewise.
410         * elf/order.c: Likewise.
411         * elf/origtest.c: Likewise.
412         * elf/preloadtest.c: Likewise.
413         * elf/restest1.c: Likewise.
414
415         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
416         parameter of asm must be in %ecx.
417
418         * string/tester.c: Mark test functions as static to avoid warnings.
419
420         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
421         preserve value over different gconv-modules files.
422
423 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
424
425         * locale/findlocale.c: Add casts to avoid warnings.
426         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
427         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
428         to avoid warnings.
429         * misc/tsearch.c (const_node): New type.
430         (trecurse): Correct casts to avoid warnings.
431         (__twalk): Likewise.
432         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
433         LONG_BIT.
434
435         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
436
437         * test-skeleton.c: Mark local functions as static to avoid warnings.
438
439 2000-11-23  H.J. Lu  <hjl@gnu.org>
440
441         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
442         support the background job.
443         Fix a typo.
444
445 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
446
447         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
448         has same names but lower cost.
449
450 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
451
452         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
453         which never occur during bootstrap.
454         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
455
456 2000-11-23  Andreas Jaeger  <aj@suse.de>
457
458         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
459
460         * nss/Versions: Remove _nss_files_getipnodebyname_r.
461
462         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
463
464 2000-11-18  Martin Buchholz  <martin@xemacs.org>
465
466         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
467         (called++) return;'
468
469 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
470
471         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
472
473         * csu/abi-note.S: Correct comment for operating system number.
474
475 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
476
477         * Versions.def: Add GLIBC_2.2.1 for glibc.
478
479 2000-11-22  Andreas Schwab  <schwab@suse.de>
480
481         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
482         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
483
484 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
485
486         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
487         absolute time for pthread_cond_timedwait call.
488         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
489
490         * rt/Makefile (tests): Add tst-aio6.
491         * rt/tst-aio6.c: New file.
492
493 2000-11-23  Andreas Jaeger  <aj@suse.de>
494
495         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
496
497 2000-11-22  Andreas Jaeger  <aj@suse.de>
498
499         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
500
501 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
502
503         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
504
505 2000-11-21  Andreas Schwab  <schwab@suse.de>
506
507         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
508         * sysdeps/arm/setjmp.S: Likewise.
509         * sysdeps/arm/fpu/setjmp.S: Likewise.
510         * sysdeps/i386/setjmp.S: Likewise.
511         * sysdeps/i386/elf/setjmp.S: Likewise.
512         * sysdeps/s390/setjmp.S: Likewise.
513         * sysdeps/s390/elf/setjmp.S: Likewise.
514         * sysdeps/sh/sh3/setjmp.S: Likewise.
515         * sysdeps/sh/sh4/setjmp.S: Likewise.
516         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
517         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
518         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
519         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
520
521 2000-11-21  Andreas Jaeger  <aj@suse.de>
522
523         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
524         NORETURN, fix parameter list.
525
526         * string/bug-strncat1.c (main): Fix typo.
527         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
528
529 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
530
531         * configure.in: Add --enable-all-warnings.
532         * config.make.in (all-warnings): New variable.
533         * Makeconfig (+gccwarn): Define with many more warnings if
534         all-warnings is yes.
535
536 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
537
538         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
539         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
540         * malloc/tst-valloc.c (main): Cast valloc return value to long.
541         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
542         * math/test-fpucw.c (main): Use %lx in format string, cast
543         control words to long.
544         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
545         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
546         large that it is unsigned warning.
547
548         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
549         it to long on sparc64.
550
551 2000-11-20  Andreas Jaeger  <aj@suse.de>
552
553         * nscd/nscd.h (termination_handler): Add noreturn attribute.
554         (receiv_print_stats): Likewise.
555
556         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
557
558 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
559
560         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
561
562         * csu/gmon-start.c: Always have prototype for __gmon_start.
563         * csu/version.c: Add prototypes for __libc_print_version and
564         __libc_main.
565         * iconv/gconv.c: Include gconv_int.h and gconv.h.
566         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
567         and __to_name.
568         * iconv/gconv_builtin.h: Add ASCII module definitions.
569         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
570         (add_module): Add cast to avoid warning.  Rework construction of
571         strings for new module.
572         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
573         (derivation_compare): Likewise.
574         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
575         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
576         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
577         (struct gconv_alias): Remove const from fromname and toname.
578         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
579         for loop functions.
580         (internal_ucs4_loop): Use correct const-ness.
581         (ucs4_internal_loop): Likewise.
582         (internal_ucs4le_loop): Likewise.
583         (ucs4le_internal_loop_single): Likewise.
584         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
585         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
586         assignments appropriately.
587         (struct known_trans): Remove const from fname.
588         (trans_compare): Make s1 and s2 const.
589         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
590         avoid warning.
591         * iconv/skeleton.c: Remove cast in calls of loop functions.
592         * iconvdata/gconv-modules: Remove US-ASCII definitions.
593         * iconvdata/iso646.c: Remove US_ASCII support.
594         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
595         * include/unistd.h: Add __libc_check_standard_fds prototype.
596         * string/bits/string2.h (__mempcpy_args): Add const to casts.
597         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
598         _fini.
599         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
600         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
601         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
602         warning.
603         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
604         __libc_init_first and _dl_start.
605         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
606         (DCIGETTEXT): Make domaindata variable const.
607         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
608         to avoid warning.
609
610 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
611
612         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
613
614         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
615         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
616         __unused? members.
617
618         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
619         value defined in /usr/include/asm-mips/fcntl.h.
620
621 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
622
623         * stdio-common/Makefile (tests): Add test-vfprintf.
624         (test-vfprintf-ENV): New variable.
625         * stdio-common/test-vfprintf.c: New file.
626
627         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
628
629         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
630         (tst-mbrtowc-ENV): New variable.
631         (tst-wcrtomb-ENV): New variable.
632         * wcsmbs/tst-mbrtowc.c: New file.
633         * wcsmbs/tst-wcrtomb.c: New file.
634
635 2000-11-16  Andreas Jaeger  <aj@suse.de>
636
637         * manual/install.texi (Tools for Compilation): Update
638         documentation for GCC 2.95.2.
639
640 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
641
642         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
643         if IPv4 and IPv6 requests timed out.
644
645 2000-11-18  Akim Demaille  <akim@epita.fr>
646
647         * malloc/obstack.h: Formatting changes.
648         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
649         prevents type checking.
650         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
651         cast the value to (void *): assigning a `foo *' to a `void *'
652         variable is valid.
653         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
654
655 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
656
657         * scripts/config.guess: Update from upstream maintainer.
658         * scripts/config.sub: Likewise.
659
660 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
661
662         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
663         * libio/freopen64.c (freopen64): Likewise.
664         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
665
666         * libio/Makefile: Add rules to build and run test-freopen.
667         * libio/test-freopen.c: New file.
668         * libio/test-freopen.sh: New file.
669
670 2000-11-15  H.J. Lu  <hjl@gnu.org>
671
672         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
673         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
674         (DL_DT_FINI_ADDRESS): Likewise.
675
676         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
677         return type to ElfW(Addr).
678         (_dl_function_address): New prototype.
679         (DL_FUNCTION_ADDRESS): Defined.
680         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
681         (DL_DT_FINI_ADDRESS): Likewise.
682
683         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
684
685         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
686         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
687
688         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
689         (_dl_function_address): This.
690
691         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
692         function pointer for DT_FINI.
693         * elf/dl-close.c (_dl_close): Likewise.
694
695         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
696         function pointer for DT_INIT.
697
698 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
699
700         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
701         end of wexpbuf buffer.
702
703 2000-11-16  Andreas Jaeger  <aj@suse.de>
704
705         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
706         definition of F_GETLK, F_SETLK, F_SETLKW.
707
708 2000-11-16  Andreas Jaeger  <aj@suse.de>
709
710         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
711         it's not defined.
712
713 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
714
715         * dlfcn/default.c (main): Add test for dladdr of main returning
716         argv[0] in dli_fname field.
717
718 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
719
720         * Makeconfig (run-program-prefix): Move test-static test into the
721         variable.
722
723         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
724         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
725         schedule instructions.
726         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
727         schedule instructions, fix a bug in copying auxiliary data.
728
729 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
730
731         * manual/startup.texi (Program Arguments): Fix type of main's envp
732         parameter.
733         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
734
735         * iconvdata/gconv-modules: Add CP950 alias.
736
737 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
738
739         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
740         syscall-list.h goal.
741         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
742
743 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
744
745         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
746
747         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
748         output of program.
749
750         * intl/tst-gettext2.c: Set C locale if setting other locale
751         failed.  Use gettext() not _().
752
753         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
754         successfully loaded a new locale.
755
756 2000-11-13  Andreas Jaeger  <aj@suse.de>
757
758         * configure.in: Require gcc 2.95 or newer.
759
760 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
761
762         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
763         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
764
765 2000-11-11  Jim Meyering  <meyering@lucent.com>
766
767         * string/strndup.c (strndup): Cast return value to `char *'.
768
769 2000-11-15  Jim Meyering  <meyering@ascend.com>
770
771         * sysdeps/generic/memchr.c: Remove some useless parentheses.
772         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
773         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
774         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
775         Also #undef __memchr.
776         Use `weak_alias' only if it's defined.
777
778 2000-11-10  H.J. Lu  <hjl@gnu.org>
779
780         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
781
782 2000-11-15  Andreas Jaeger  <aj@suse.de>
783
784         * elf/chroot_canon.c: Include <stdint.h>.
785
786         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
787         (print_entry): Likewise.
788         (add_to_cache): Likewise.
789
790         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
791
792         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
793         (path_hwcap): Likewise.
794         (search_dir): Likewise.
795
796         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
797
798         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
799
800         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
801         (_dl_platform_string): New.
802         (_DL_HWCAP_PLATFORM): New.
803         (_dl_string_platform): New.
804         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
805
806         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
807         (_dl_string_platform): New.
808         (_DL_HWCAP_PLATFORM): New.
809         (_dl_platform_string): New.
810
811         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
812         recognition.
813         (_DL_HWCAP_COUNT): New.
814         (_dl_string_platform): New.
815         (_DL_HWCAP_PLATFORM): New.
816         (_dl_platform_string): New.
817
818 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
819
820         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
821
822 2000-11-14  Andreas Jaeger  <aj@suse.de>
823
824         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to
825         _dl_hwcap.
826
827 2000-11-13  Roland McGrath  <roland@frob.com>
828
829         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
830
831 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
832
833         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
834         underrun and make sure the result is null terminated even if there
835         is no trailing newline.
836
837 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
838
839         * sysdeps/alpha/fpu/libm-test-ulps: Update.
840
841 2000-11-10  H.J. Lu  <hjl@gnu.org>
842
843         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
844
845 2000-11-10  Andreas Jaeger  <aj@suse.de>
846
847         * elf/ldconfig.c (create_links): Fix alloca calculation.
848         Patch by Ben Collins <bcollins@debian.org>.
849
850 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
851
852         * inet/getnameinfo.c (getnameinfo): Use correct destination
853         parameter for if_indextoname.
854         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
855
856 2000-11-09  H.J. Lu  <hjl@gnu.org>
857
858         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
859         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
860         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
861         xdr_keystatus.
862
863         * time/Versions (GLIBC_2.1): Move getitimer to...
864         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
865
866 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
867
868         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL-C during
869         "make install", to work around a binary incompatibility between
870         glibc 2.1 and glibc 2.2 gconv modules.
871
872 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
873
874         * intl/locale.alias: Add thai.
875         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
876
877 2000-11-07  Akim Demaille  <akim@epita.fr>
878
879         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
880         argument `data' for consistency with the prototypes.
881         Qualify it `const'.
882         (obstack_copy, obstack_copy0): Rename the second argument as
883         `address' for consistency.  Qualify it `const'.
884         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
885         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
886         `const' their input argument (`data' or `address').
887         Adjust the corresponding macros to include `const' in casts.
888
889 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
890
891         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
892         target family.
893
894 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
895
896         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
897         socket creation.
898
899 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
900
901         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
902         ai_protocol by internal table if service was not given.
903
904 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
905
906         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
907         numerical port was specified with protocol without socktype.
908
909 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
910
911         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
912
913 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
914
915         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
916
917 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
918
919         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
920         sin6_scope_id field.
921
922 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
923
924         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
925
926 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
927
928         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
929
930 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
931
932         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
933         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
934
935 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
936
937         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
938         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
939
940 2000-11-09  H.J. Lu  <hjl@gnu.org>
941
942         * io/Versions (GLIBC_2.1.1): Remove lockf64.
943
944
945 See ChangeLog.11 for earlier changes.