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