1 2000-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3 * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
6 2000-12-05 Andreas Jaeger <aj@suse.de>
8 * nss/test-netdb.c: Mark local functions as static to avoid
10 (main): Use return to silence warning.
12 * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
14 * stdio-common/test-popen.c: Mark local functions as static to
16 (main): Use return to silence warning.
18 * stdlib/testsort.c (compare): Mark as static to avoid warning.
20 * assert/test-assert.c: Mark local functions as static to avoid
22 * assert/test-assert-perr.c: Likewise.
24 * math/libm-test.inc (main): Use return to silence warnings.
26 2000-12-04 Ulrich Drepper <drepper@redhat.com>
28 * math/fenv.h: Fix typo in comment.
30 * math/test-misc.c (main): Add a few more over and underflow tests
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>.
42 2000-12-04 Ulrich Drepper <drepper@redhat.com>
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>.
64 2000-12-04 H.J. Lu <hjl@gnu.org>
66 * configure.in: Change --with-oldest-abi=ABI to
67 --enable-oldest-abi=ABI.
69 2000-12-02 Bruno Haible <haible@clisp.cons.org>
71 * stdio-common/perror.c (perror): If stderr is wide-oriented, use
72 fwprintf instead of fprintf.
74 2000-12-04 Ulrich Drepper <drepper@redhat.com>
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
87 2000-12-03 Ulrich Drepper <drepper@redhat.com>
89 * math/test-fenv.c (main): Use return instead of exit to avoid warning.
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.
95 * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
96 Reported by Fred J. Tydeman <tydeman@tybor.com>.
98 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
99 the handling of denormalized numbers.
101 * math/test-misc.c (main): Test for fpclassify and pseudo denormal
103 * sysdeps/i386/fpu/fpclassifyl.c: New file.
105 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
106 pseudo denormal representation of LDBL_MIN.
108 * iconvdata/SJIS.irreversible: Remove unnecessary entries.
109 * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
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>.
116 * math/test-misc.c (main): More tests for frexp and some for
117 fpclassify and isnormal.
119 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
121 Reported by Fred J. Tydeman <tydeman@tybor.com>.
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.
127 2000-12-02 H.J. Lu <hjl@gnu.org>
129 * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
132 2000-12-02 Ulrich Drepper <drepper@redhat.com>
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.
138 * sysdeps/generic/glob.c: Adjust types of several variables to
141 2000-12-01 Ulrich Drepper <drepper@redhat.com>
143 * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
145 2000-11-30 Roland McGrath <roland@frob.com>
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.
151 2000-12-01 Ulrich Drepper <drepper@redhat.com>
153 * configure.in: Correct test for pserver CVS access.
155 2000-11-28 H.J. Lu <hjl@gnu.org>
157 * libio/libio.h: Remove extra "#if ... #endif".
159 2000-11-29 H.J. Lu <hjl@gnu.org>
161 * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
163 2000-12-01 H.J. Lu <hjl@gnu.org>
165 * nss/getXXbyYY_r.c: Fix verioned symbol handling.
166 * nss/getXXent_r.c: Likewise.
167 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
169 2000-11-30 H.J. Lu <hjl@gnu.org>
171 * scripts/abi-versions.awk (oldest_abi): New variable.
172 Handle the oldest ABI supported.
174 * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
175 for scripts/abi-versions.awk.
177 * configure.in: Add --with-oldest-abi=ABI.
178 * configure: Rebuild.
180 * config.make.in (oldest-abi): New.
182 * config.h.in (GLIBC_OLDEST_ABI): New.
184 * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
186 2000-11-30 Jakub Jelinek <jakub@redhat.com>
188 * locale/setlocale.c (setname): Free for all categories, not just
190 (setlocale): Store a copy of string passed by user, not the string
193 2000-11-30 Roland McGrath <roland@frob.com>
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.
199 2000-11-28 Andreas Jaeger <aj@suse.de>
201 * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
202 declaration, adjust declaration of __syscall_getdents to match
205 2000-11-29 H.J. Lu <hjl@gnu.org>
207 * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
209 2000-11-29 Andreas Jaeger <aj@suse.de>
211 * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
213 2000-11-28 Ulrich Drepper <drepper@redhat.com>
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.
224 * ctype/ctype-extn.c: Define isblank and not __isblank.
226 * time/strftime.c: Add const where necessary to avoid warnings.
227 * time/strptime.c (strptime_internal): Add casts to avoid warnings.
229 2000-11-22 Paul Eggert <eggert@twinsun.com>
231 * time/strftime.c (my_strftime): Do not invoke mbrlen with a
232 size of (size_t) -1; it's not portable.
234 2000-11-28 Ulrich Drepper <drepper@redhat.com>
236 * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
238 Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
240 2000-11-14 Jes Sorensen <jes@linuxcare.com>
242 * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
244 * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
245 _mcount is required by profiled binaries.
247 * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
248 * sysdeps/ia64/machine-gmon.h: ...here.
250 2000-11-28 Masahide Washizawa <washi@jp.ibm.com>
252 * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
253 (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
255 * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
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.
270 2000-11-28 Ulrich Drepper <drepper@redhat.com>
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>.
281 2000-11-28 Andreas Jaeger <aj@suse.de>
283 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
286 2000-11-28 Ulrich Drepper <drepper@redhat.com>
288 * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
290 2000-11-28 Andreas Jaeger <aj@suse.de>
292 * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
294 * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
297 2000-11-27 Ulrich Drepper <drepper@redhat.com>
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
304 * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
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.
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.
327 * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
328 the problems introduced when the user selects -O3.
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>.
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.
340 2000-11-27 Andreas Jaeger <aj@suse.de>
342 * login/programs/pt_chown.c (do_pt_chown): Mark function as static
344 * login/programs/utmpdump.c (print_entry): Likewise.
346 2000-11-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
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
351 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
353 2000-11-27 Andreas Jaeger <aj@suse.de>
355 * rt/tst-aio.c: Mark test functions as static to avoid warnings.
356 * rt/tst-aio64.c: Likewise.
358 2000-11-27 Ulrich Drepper <drepper@redhat.com>
360 * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
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>.
367 2000-11-26 Ulrich Drepper <drepper@redhat.com>
369 * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
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.
389 * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
390 __getrpcent_r prototypes.
392 2000-11-25 Ulrich Drepper <drepper@redhat.com>
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.
402 * locale/weight.h (findidx): Add const to cast to avoid warning.
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.
415 * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
416 parameter of asm must be in %ecx.
418 * string/tester.c: Mark test functions as static to avoid warnings.
420 * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
421 preserve value over different gconv-modules files.
423 2000-11-24 Ulrich Drepper <drepper@redhat.com>
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
429 * misc/tsearch.c (const_node): New type.
430 (trecurse): Correct casts to avoid warnings.
432 * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
435 * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
437 * test-skeleton.c: Mark local functions as static to avoid warnings.
439 2000-11-23 H.J. Lu <hjl@gnu.org>
441 * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
442 support the background job.
445 2000-11-24 Ulrich Drepper <drepper@redhat.com>
447 * iconv/gconv_conf.c (insert_module): Replace old entry if new one
448 has same names but lower cost.
450 2000-11-23 Jakub Jelinek <jakub@redhat.com>
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.
456 2000-11-23 Andreas Jaeger <aj@suse.de>
458 * nss/nss_files/files-hosts.c: Remove getipnodebyname.
460 * nss/Versions: Remove _nss_files_getipnodebyname_r.
462 * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
464 2000-11-18 Martin Buchholz <martin@xemacs.org>
466 * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
469 2000-11-21 Alan Modra <alan@linuxcare.com.au>
471 * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
473 * csu/abi-note.S: Correct comment for operating system number.
475 2000-11-22 Ulrich Drepper <drepper@redhat.com>
477 * Versions.def: Add GLIBC_2.2.1 for glibc.
479 2000-11-22 Andreas Schwab <schwab@suse.de>
481 * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
482 * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
484 2000-11-22 Ulrich Drepper <drepper@redhat.com>
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].
490 * rt/Makefile (tests): Add tst-aio6.
491 * rt/tst-aio6.c: New file.
493 2000-11-23 Andreas Jaeger <aj@suse.de>
495 * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
497 2000-11-22 Andreas Jaeger <aj@suse.de>
499 * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
501 2000-11-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
503 * sysdeps/s390/bits/string.h: Make strncat always add a \0.
505 2000-11-21 Andreas Schwab <schwab@suse.de>
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.
521 2000-11-21 Andreas Jaeger <aj@suse.de>
523 * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
524 NORETURN, fix parameter list.
526 * string/bug-strncat1.c (main): Fix typo.
527 Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
529 2000-11-20 Ulrich Drepper <drepper@redhat.com>
531 * configure.in: Add --enable-all-warnings.
532 * config.make.in (all-warnings): New variable.
533 * Makeconfig (+gccwarn): Define with many more warnings if
536 2000-11-20 Jakub Jelinek <jakub@redhat.com>
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.
548 * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
549 it to long on sparc64.
551 2000-11-20 Andreas Jaeger <aj@suse.de>
553 * nscd/nscd.h (termination_handler): Add noreturn attribute.
554 (receiv_print_stats): Likewise.
556 * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
558 2000-11-20 Ulrich Drepper <drepper@redhat.com>
560 * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
562 * csu/gmon-start.c: Always have prototype for __gmon_start.
563 * csu/version.c: Add prototypes for __libc_print_version and
565 * iconv/gconv.c: Include gconv_int.h and gconv.h.
566 * iconv/gconv.h (struct __gconv_step): Remove const from __from_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
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
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
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
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
610 2000-11-20 Hiroyuki Machida <machida@sm.sony.co.jp>
612 * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
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
618 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
619 value defined in /usr/include/asm-mips/fcntl.h.
621 2000-11-18 Ulrich Drepper <drepper@redhat.com>
623 * stdio-common/Makefile (tests): Add test-vfprintf.
624 (test-vfprintf-ENV): New variable.
625 * stdio-common/test-vfprintf.c: New file.
627 * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
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.
635 2000-11-16 Andreas Jaeger <aj@suse.de>
637 * manual/install.texi (Tools for Compilation): Update
638 documentation for GCC 2.95.2.
640 2000-11-18 Ulrich Drepper <drepper@redhat.com>
642 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
643 if IPv4 and IPv6 requests timed out.
645 2000-11-18 Akim Demaille <akim@epita.fr>
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 *'
653 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
655 2000-11-17 Ulrich Drepper <drepper@redhat.com>
657 * scripts/config.guess: Update from upstream maintainer.
658 * scripts/config.sub: Likewise.
660 2000-11-16 Ulrich Drepper <drepper@redhat.com>
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>.
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.
670 2000-11-15 H.J. Lu <hjl@gnu.org>
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.
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.
683 * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
685 * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
686 (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
688 * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
689 (_dl_function_address): This.
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.
695 * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
696 function pointer for DT_INIT.
698 2000-11-16 Jakub Jelinek <jakub@redhat.com>
700 * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
701 end of wexpbuf buffer.
703 2000-11-16 Andreas Jaeger <aj@suse.de>
705 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
706 definition of F_GETLK, F_SETLK, F_SETLKW.
708 2000-11-16 Andreas Jaeger <aj@suse.de>
710 * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
713 2000-11-15 Jakub Jelinek <jakub@redhat.com>
715 * dlfcn/default.c (main): Add test for dladdr of main returning
716 argv[0] in dli_fname field.
718 2000-11-15 Jakub Jelinek <jakub@redhat.com>
720 * Makeconfig (run-program-prefix): Move test-static test into the
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.
729 2000-11-15 Ulrich Drepper <drepper@redhat.com>
731 * manual/startup.texi (Program Arguments): Fix type of main's envp
733 Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
735 * iconvdata/gconv-modules: Add CP950 alias.
737 2000-11-13 Jakub Jelinek <jakub@redhat.com>
739 * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
741 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
743 2000-11-15 Ulrich Drepper <drepper@redhat.com>
745 * intl/Makefile: tst-gettext2.sh does not need a third parameter.
747 * intl/tst-gettext2.sh: Copy locale data. Adjust LOCPATH. Verify
750 * intl/tst-gettext2.c: Set C locale if setting other locale
751 failed. Use gettext() not _().
753 * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
754 successfully loaded a new locale.
756 2000-11-13 Andreas Jaeger <aj@suse.de>
758 * configure.in: Require gcc 2.95 or newer.
760 2000-11-15 Ulrich Drepper <drepper@redhat.com>
762 * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
763 Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
765 2000-11-11 Jim Meyering <meyering@lucent.com>
767 * string/strndup.c (strndup): Cast return value to `char *'.
769 2000-11-15 Jim Meyering <meyering@ascend.com>
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.
778 2000-11-10 H.J. Lu <hjl@gnu.org>
780 * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
782 2000-11-15 Andreas Jaeger <aj@suse.de>
784 * elf/chroot_canon.c: Include <stdint.h>.
786 * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
787 (print_entry): Likewise.
788 (add_to_cache): Likewise.
790 * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
792 * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
793 (path_hwcap): Likewise.
794 (search_dir): Likewise.
796 * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
798 * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
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.
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.
811 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
813 (_DL_HWCAP_COUNT): New.
814 (_dl_string_platform): New.
815 (_DL_HWCAP_PLATFORM): New.
816 (_dl_platform_string): New.
818 2000-11-14 Ulrich Drepper <drepper@redhat.com>
820 * iconvdata/gconv-modules: Add CP936 as alias for GBK.
822 2000-11-14 Andreas Jaeger <aj@suse.de>
824 * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to
827 2000-11-13 Roland McGrath <roland@frob.com>
829 * hurd/get-host.c (_hurd_get_host_config): Fix last change.
831 2000-11-13 Marcus Brinkmann <marcus@gnu.org>
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.
837 2000-11-13 Jakub Jelinek <jakub@redhat.com>
839 * sysdeps/alpha/fpu/libm-test-ulps: Update.
841 2000-11-10 H.J. Lu <hjl@gnu.org>
843 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
845 2000-11-10 Andreas Jaeger <aj@suse.de>
847 * elf/ldconfig.c (create_links): Fix alloca calculation.
848 Patch by Ben Collins <bcollins@debian.org>.
850 2000-11-09 Ulrich Drepper <drepper@redhat.com>
852 * inet/getnameinfo.c (getnameinfo): Use correct destination
853 parameter for if_indextoname.
854 Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
856 2000-11-09 H.J. Lu <hjl@gnu.org>
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
863 * time/Versions (GLIBC_2.1): Move getitimer to...
864 * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
866 2000-11-03 Bruno Haible <haible@clisp.cons.org>
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.
872 2000-11-09 Ulrich Drepper <drepper@redhat.com>
874 * intl/locale.alias: Add thai.
875 Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
877 2000-11-07 Akim Demaille <akim@epita.fr>
879 * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
880 argument `data' for consistency with the prototypes.
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.
889 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
891 * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
894 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
896 * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
899 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
901 * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
902 ai_protocol by internal table if service was not given.
904 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
906 * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
907 numerical port was specified with protocol without socktype.
909 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
911 * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
913 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
915 * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
917 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
919 * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
922 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
924 * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
926 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
928 * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
930 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
932 * inet/getnameinfo.c: Wake-up sin6_scope_id support in
933 getnameinfo(): check for whether sin6_socpe_id exist was wrong.
935 2000-11-09 Martin Schwidefsky <mschwide@nc.boeblingen.de.ibm.com>
937 * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
938 * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
940 2000-11-09 H.J. Lu <hjl@gnu.org>
942 * io/Versions (GLIBC_2.1.1): Remove lockf64.
945 See ChangeLog.11 for earlier changes.