1 2001-02-09 Ulrich Drepper <drepper@redhat.com>
3 * posix/Makefile: Add rules to build and run bug-regex2.
5 2001-02-10 Jakub Jelinek <jakub@redhat.com>
7 * posix/regex.c (convert_mbs_to_wcs): Change is_binary to char *.
8 (regex_compile): Likewise.
9 (FREE_VARIABLES): Don't free is_binary1 and is_binary2.
10 (re_match_2_internal): Use just is_binary instead of two variables.
11 Use REGEX_TALLOC to allocate it and FREE_VAR to free on failure.
13 2001-02-09 Ulrich Drepper <drepper@redhat.com>
15 * version.h (VERSION): Bump to 2.2.2.
17 * iconv/Makefile (distribute): Add iconv_charmap.c and
19 * elf/Makefile (distribute): Add firstobj.c.
20 * Makefile (distribute): Add include/pthread.h.
22 * configure.in: Require makeinfo version 4.
24 * libio/tst_wscanf.c (main): Add cast to avoid warning.
25 * libio/tst_swscanf.c (main): Likewise..
27 2001-02-09 Jakub Jelinek <jakub@redhat.com>
29 * sysdeps/generic/setenv.c (unsetenv): Remove const from len.
30 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
32 * sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
33 if not RTLD_BOOTSTRAP.
34 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
35 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
37 2001-02-09 Ulrich Drepper <drepper@redhat.com>
39 * locale/programs/linereader.c (get_ident): Stop loop if EOF. Use
40 lr_ungetc to push back last read character.
41 * locale/programs/linereader.h (lr_ungetc): Don't push back is
43 (lr_ignore_rest): Don't warn about garbage if it is really the end
46 * manual/Makefile: Use ifnottext and not ifinfo to protect Top node
49 2001-02-08 Ulrich Drepper <drepper@redhat.com>
51 * Makerules (build-shlib): Work around different order of
52 processing of -B option in different gcc versions.
54 * posix/regex.c: Fix alignment problem.
55 Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
57 * sysdeps/alpha/strrchr.S: Little optimization.
58 Patch by Richard Henderson <rth@redhat.com>.
60 * sysdeps/alpha/alphaev67/strrchr.S: New file.
61 Contributed by Rick Gorton <rick.gorton@alpha-processor.com>.
63 2001-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
65 * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Correct function name
66 in the assembler end directive.
68 2001-02-08 Andreas Jaeger <aj@suse.de>
70 * manual/stdio.texi (Closing Streams): Fix typos.
72 2001-02-07 Ulrich Drepper <drepper@redhat.com>
74 * sysdeps/alpha/alphaev67/strncat.S: Align last write address.
75 Patch by Richard Henderson <rth@redhat.com>.
76 Reported by Claus-Justus Heine <heine@instmath.rwth-aachen.de>.
78 * stdlib/strfmon.c [USE_IN_LIBIO]: Define lock variable and store
79 pointer in FILE structure before calling _IO_init.
80 * stdlib/Makefile: Add -D_IO_MTSAFE_IO to CFLAGS for strfmon and
81 strfmon_l if necessary.
82 Reported by Jury Gerold <gjury@grips.com>.
84 * sysdeps/gnu/netinet/tcp.h: Correct values of TCP_ macros.
85 Patch by Pekka.Pietikainen@cern.ch.
87 * posix/regex.c: Correct several problems with 64-bit architectures
88 introduced in the MBS changes.
89 Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
91 2001-02-07 Jakub Jelinek <jakub@redhat.com>
93 * math/tgmath.h: Only add l suffixes if __NO_LONG_DOUBLE_MATH is
95 * sysdeps/alpha/fpu/bits/mathinline.h: Honour __NO_MATH_INLINES.
97 2001-02-07 Andreas Jaeger <aj@suse.de>
99 * manual/install.texi (Tools for Compilation): Fix typo.
100 Reported by Pavel Machek <pavel@bug.ucw.cz>.
102 2001-02-07 Ulrich Drepper <drepper@redhat.com>
104 * stdlib/strtod.c: Never stop prematurely reading digits before the
105 decimal point is found. Compute exponent limit for negative exponents
106 correctly. For numbers ending in all zeros eat the zeros even before
107 the decimal point if the exponent is negative [PR libc/2072].
108 * stdlib/Makefile (tests): Add bug-strtod.
109 * stdlib/bug-strtod.c: New file.
111 2001-02-07 Andreas Jaeger <aj@suse.de>
113 * posix/bug-regex1.c: Include <wchar.h> for fwide.
115 2001-02-06 Ulrich Drepper <drepper@redhat.com>
117 * posix/regex.c (regex_compile): Don't store pointer in wchar_t array.
119 (compile_range): Handle index being passed, not pointer.
120 Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
122 * posix/regex.c: Fix a cast in the code for bracket handling which
123 caused 8-bit uncleanliness.
124 Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.
126 * posix/Makefile (tests): Add bug-regex1.
127 * posix/bug-regex1.c: New file.
128 Contributed by Jim Meyering <jim@meyering.net>.
130 * posix/regex.c: Many cleanups for incorrect format strings.
132 2001-02-06 Andreas Jaeger <aj@suse.de>
134 * time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
136 2001-02-06 Ulrich Drepper <drepper@redhat.com>
138 * locale/programs/locale.c (write_locales): Use scandir to read
139 directory so that the entries are sorted.
141 2001-02-06 Andreas Jaeger <aj@suse.de>
143 * include/pthread.h: New file.
145 * wctype/wctype.h: Move internal interfaces from here to...
146 * include/wctype.h: ...here.
148 * wcsmbs/wchar.h: Move __wcslen from here to...
149 * include/wchar.h: ...here.
151 * posix/sys/wait.h: Move __wait from here to...
152 * include/sys/wait.h: ...here.
154 * string/string.h: Move __ffs and __strerror_r from here to...
155 * include/string.h: ...here.
157 * stdlib/stdlib.h: Move __on_exit from here to...
158 * include/stdlib.h: ...here.
160 * libio/stdio.h: Move __vsnprintf from here to...
161 * include/stdio.h: ...here.
163 2001-02-06 Andreas Schwab <schwab@suse.de>
165 * sysdeps/unix/sysv/linux/ia64/ioperm.c: Don't include kernel
168 * timezone/Makefile: Don't assume that $(inst_zonedir) is a subdir
171 2001-02-06 Ulrich Drepper <drepper@redhat.com>
173 * iconvdata/Makefile: Add dependency for bug-iconv2.out.
175 2001-02-06 Andreas Jaeger <aj@suse.de>
177 * elf/firstobj.c: Add prototype.
179 * posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
180 (truncate_wchar): Likewise.
182 2001-02-06 Ulrich Drepper <drepper@redhat.com>
184 * locale/programs/locale.c: Implement --verbose option for -a
185 which prints detailed information about the locales.
187 2001-02-05 Ulrich Drepper <drepper@redhat.com>
189 * sunrpc/xdr_rec.c (set_input_fragment): Change type of header
190 variable to uint32_t.
191 Reported by Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>.
193 2001-02-04 Bruno Haible <haible@clisp.cons.org>
195 * locale/C-translit.h.in: Add transliterations for CJK units of
198 2001-02-05 Ulrich Drepper <drepper@redhat.com>
200 * elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
201 string. Include <inttypes.h> instead of <stdint.h>.
203 * localedata/Makefile (tests): Add bug-iconv-trans.
204 Define bug-iconv-trans-ENV.
205 * localedata/bug-iconv-trans.c: New file.
207 2001-02-04 Bruno Haible <haible@clisp.cons.org>
209 * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output
210 pointer, to avoid accumulating output from incomplete (unsuccessful)
211 transliteration attempts.
213 2001-02-05 Ulrich Drepper <drepper@redhat.com>
215 * elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
216 string. Include <inttypes.h> instead of <stdint.h>.
218 * configure.in: Add check for bison.
219 * config.make.in: Define BISON variable.
220 * intl/Makefile: Use BISON instead of YACC when generating plural.c.
221 Rename YFLAGS to BISONFLAGS.
223 2001-02-05 Andreas Jaeger <aj@suse.de>
225 * io/test-lfs.c (do_test): Test lseek64 return value, call
227 (test_ftello): New function to test ftello64 and fseeko64.
229 * signal/signal.h: Move __sigaction from here to...
230 * include/signal.h: ...here.
232 * io/fcntl.h: Move __fcntl and __open to...
233 * include/fcntl.h: ...here.
235 2001-02-04 Philip Blundell <philb@gnu.org>
237 * configure.in: Distinguish ARM from Thumb.
239 2001-02-04 Philip Blundell <philb@gnu.org>
241 * sysdeps/arm/dl-machine.h (elf_machine_rel): Correct handling of
242 PC24 relocs with negative value.
244 2001-02-04 Ulrich Drepper <drepper@redhat.com>
246 * iconv/Makefile (iconv_prog-modules): Define. Add vpath to find
247 files in locale/programs. Add CFLAGS definition to allow compiling
249 * iconv/dummy-repertoire.c: New file.
250 * iconv/iconv_charmap.c: New file.
251 * iconv/iconv_prog.h: New file.
252 * iconv/iconv_prog.c: Make verbose and omit_invalid global.
253 (main): If parameter for -f and -t contain slashes try first to resolve
254 the strings as filenames of charmap files. Use them for conversion
256 * iconvdata/run-iconv-test.sh: If charmaps exist also run tests with
257 iconv getting charmap names as parameters.
258 * locale/programs/linereader.c (lr_token): Take extra parameters
259 verbose and pass it to get_string.
260 (get_string): Take extra parameters verbose.
261 * locale/programs/charmap.c (parse_charmap): Take extra parameters
262 verbose and be_quiet. Change all callers of lr_token and
264 * locale/programs/charmap.h: Likewise.
265 * locale/programs/ld-address.c: Likewise.
266 * locale/programs/ld-collate.c: Likewise.
267 * locale/programs/ld-ctype.c: Likewise.
268 * locale/programs/ld-identification.c: Likewise.
269 * locale/programs/ld-measurement.c: Likewise.
270 * locale/programs/ld-messages.c: Likewise.
271 * locale/programs/ld-monetary.c: Likewise.
272 * locale/programs/ld-name.c: Likewise.
273 * locale/programs/ld-numeric.c: Likewise.
274 * locale/programs/ld-paper.c: Likewise.
275 * locale/programs/ld-telephone.c: Likewise.
276 * locale/programs/ld-time.c: Likewise.
277 * locale/programs/linereader.c: Likewise.
278 * locale/programs/linereader.h: Likewise.
279 * locale/programs/localedef.c: Likewise.
280 * locale/programs/locfile.c: Likewise.
281 * locale/programs/locfile.h: Likewise.
282 * locale/programs/repertoire.c: Likewise.
284 2001-02-03 Ulrich Drepper <drepper@redhat.com>
286 * iconv/iconv_prog.c (main): If output file name is "-" write to
288 (main): If -f or -t argument is missing use charset of the current
291 2001-02-03 Andreas Jaeger <aj@suse.de>
293 * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
294 boundary for SSE/SSE-2 alignment.
296 * posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
299 2001-02-03 Ulrich Drepper <drepper@redhat.com>
301 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: File was using crlf.
302 Remove comma at end of enum.
304 * elf/dl-init.c: Add a few __builtin_expect.
306 * hesiod/hesiod.c: Remove unnecessary code. Remove all uses of strcat.
308 2001-02-02 Ulrich Drepper <drepper@redhat.com>
310 * hesiod/hesiod.c (hesiod_resolve): Also search HS records if
311 errno is ECONNREFUSED.
313 * posix/Makefile: Define MBS_SUPPORT for regex.c.
314 * posix/regex.c: Implement multibyte character handling.
315 Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
317 * string/tst-svc.input: Add two more test cases.
318 * string/tst-svc.expect: Modify to reflect new test cases.
320 2001-02-01 Jakub Jelinek <jakub@redhat.com>
322 * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
323 tp->name tests with tp->name[0] tests.
325 2001-01-29 Ben Collins <bcollins@debian.org>
327 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
328 Fix check for name == NULL.
330 2001-02-01 Ulrich Drepper <drepper@redhat.com>
332 * elf/Makefile: Add rules to build and run initfirst test.
333 * elf/initfirst.c: New file.
334 * elf/firstobj.c: New file.
336 * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so).
337 * configure.in: Test for -z initfirst linker option.
338 * config.make.in: Add have-z-initfirst.
339 * elf/dl-init.c (_dl_init): Split out actual initialization code in
340 new function call_init. If _dl_initfirst is non-NULL initialize first.
341 * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set
342 remember object in _dl_initfirst.
343 * elf/soinit.c: Remove special support for calling
344 __pthread_initialize_minimal.
346 * conform/conformtest.pl: Add missing $prepend in type test.
348 2001-01-31 Ulrich Drepper <drepper@redhat.com>
350 * elf/elf.h (SHT_CHECKSUM): New definition.
352 * posix/fnmatch_loop.c: Remove incorrect reverse condition in
353 [. .] matching. Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
354 * posix/tst-fnmatch.input: Add tests for [. .] in locales.
356 2001-01-31 Mark Kettenis <kettenis@gnu.org>
358 * misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
359 to get definition of `struct timeval'.
361 2001-01-31 Ulrich Drepper <drepper@redhat.com>
363 * posix/tst-fnmatch.input: Add test cases for de_DE.UTF-8 locale.
364 * posix/fnmatch_loop.c: Fix handling of [= =] for multibyte charsets.
366 2001-01-30 Ulrich Drepper <drepper@redhat.com>
368 * iconv/gconv_open.c (__gconv_open): Set conv_flags if IGNORE is
371 * nis/nis_findserv.c: Include <time.h>.
373 2001-01-30 Yong Li <yong.li@asu.edu>
375 * iconv/iconv_prog.c (main): Correct error handling method name.
377 2001-01-29 Ben Collins <bcollins@debian.org>
379 * sysdeps/sparc/fpu/fraiseexcpt.c: Include <float.h>.
380 * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
381 * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
382 * sysdeps/s390/fpu/fraiseexcpt.c: Likewise.
384 2001-01-30 Ulrich Drepper <drepper@redhat.com>
386 * locale/programs/ld-measurement.c (measurement_finish): Fix a typo.
387 Patch by Marko Myllynen <myllynen@lut.fi>.
389 * string/bits/string2.h (__strpbrk_c2): Correct parameter types
390 (int instead of char).
391 (__strpbrk_c3): Likewise.
392 Reported by GOTO Masanori <gotom@debian.or.jp>.
394 * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
395 * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
396 * include/sys/socket.h: Add SA_LEN here for internal use.
397 Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
399 2001-01-29 Ulrich Drepper <drepper@redhat.com>
401 * malloc/Makefile: Don't build memusagestat if cross-compiling.
403 * sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
405 * math/libm-test.inc (rint_test): Add a few more tests for round
408 2001-01-28 Ulrich Drepper <drepper@redhat.com>
410 * conform/data/pthread.h-data: Correct return type of pthread_exit.
412 * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
414 * conform/data/stdlib.h-data: Add _Exit.
416 * inet/arpa/inet.h: Don't include <sys/types.h>. Define socklen_t
417 if not already happened.
418 * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>.
419 Don't include <limits.h> and <bits/sockaddr.h>.
421 * conform/data/netinet/in.h-data: Allow all of <inttypes.h>.
423 * conform/data/spawn.h-data: Allow all of <sched.h>.
425 * sysdeps/ia64/fpu/fraiseexcpt.c: Include <float.h>. Removed
428 * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning.
429 * sunrpc/xdr_sizeof.c (x_inline): Likewise.
431 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include <float.h>.
433 * conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
434 * libio/stdio.h: Define va_list correctly.
436 * conform/data/pthread.h-data: Make priority protocol related
437 functions optional. Fix typos.
439 * posix/sched.h: Define sched_priority as __sched_priority.
440 * sysdeps/generic/bits/sched.h (struct sched_param): Rename element
442 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
444 2001-01-27 Ulrich Drepper <drepper@redhat.com>
446 * sysdeps/generic/clock_getcpuclockid.c: Include <time.h> instead
449 * sysdeps/unix/stime.c: Include <stddef.h> for NULL.
450 * sysdeps/unix/time.c: Likewise.
452 * conform/data/time.h-data: CLK_TCK is not in XPG6. Fix tzname entry.
453 * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
454 * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
455 * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
456 * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
457 * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
458 * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
459 * time/time.h: Likewise.
461 * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
462 * conform/data/complex.h-data: New file.
463 * conform/data/tgmath.h-data: New file.
465 * conform/data/wchar.h-data: Add missing functions.
467 * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
469 * conform/data/termios.h-data: Add missing const in tcsetattr()
472 * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
473 Don't define pid_t here.
475 * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
477 * conform/data/sys/time.h-data: Allow sys/select.h.
478 * conform/data/sys/un.h-data: Fix typo.
479 * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
480 * sysdeps/posix/clock_getres.c: Include <time.h> instead of
482 * sysdeps/unix/clock_nanosleep.c: Likewise.
483 * sysdeps/unix/i386/clock_getcpuclockid.c: Likewise.
484 * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
485 * sysdeps/unix/clock_gettime.c: Also include <time.h>.
486 * sysdeps/unix/clock_settime.c: Likewise.
488 * sysdeps/generic/pselect.c: Include <stddef.h> for NULL.
489 * login/getutent.c: Likewise.
490 * login/getutid.c: Likewise.
491 * login/getutline.c: Likewise.
493 * socket/sys/un.h: Define SUN_LEN only if __USE_MISC.
495 * sysdeps/unix/sysv/linux/bits/statvfs.h: Change type of f_fsid field
496 to unsigned long. Add __f_unused. Define _STATVFSBUF_F_UNUSED.
497 * sysdeps/unix/sysv/linux/internal_statvfs.c: Adjust initialization of
498 f_fsid field after change in struct statvfs.
499 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: New file.
500 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: New file.
501 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: New file.
503 * conform/data/sys/stat.h-data: Remove isfdtype. Use
506 * conform/data/sys/socket.h-data: Fix typos. Correct getsockopt,
507 recvfrom, send, and socketpair prototypes. Add allow lines.
508 * socket/sys/socket.h: Include <sys/uio.h>.
509 Don't use fancy __SOCKADDR_ARG definition unless __USE_GNU.
510 Fix type of second parameter of listen.
511 Don't declare isfdtype unless __USE_MISC.
512 * sysdeps/generic/listen.c: Fix type of second parameter of listen.
513 * sysdeps/mach/hurd/listen.c: Likewise.
514 * sysdeps/generic/bits/socket.h (struct sockaddr_storage): Define
515 ss_family and __ss_family.
516 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
517 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
518 (struct msghdr): Change type of msg_iovlen to int and type of
519 msg_controllen to socklen_t.
520 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file.
521 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: New file.
522 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: New file.
523 * inet/rcmd.c (rcmd_af): __ss_family is now ss_family.
524 (rresvport_af): Likewise.
526 * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant.
527 * conform/conformtest.pl: Implement handling of symbol.
529 * signal/signal.h: Fix handling of __need_* symbols.
530 * misc/sys/select.c: Define fd_set here. Remove __fd_set. Define
531 fd_mask only if __USE_MISC. Declare pselect for __USE_XOPEN2K.
532 * include/sys/select.h: Use fd_set not __fd_set.
533 * sysdeps/generic/bits/select.h: Likewise.
534 * sysdeps/i386/bits/select.h: Likewise.
535 * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS,
536 __FDELT, __FDMASK, and __fd_set here.
537 * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
538 * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
539 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
540 * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
541 * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
542 * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
543 * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
544 * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
545 * time/sys/time.h: Define struct timeval before including <time.h>
548 * conform/data/sys/time.h-data: fd_set is a typedef.
549 * conform/data/sys/select.h-data: New file.
550 * conform/data/sys/mman.h-data: Make typed mem stuff optional.
551 * conform/conformtest.pl (@headers): Add sys/select.h.
552 (type, optional-type): Unless testing a typedef instantiate object.
553 Implement optional-function.
555 * math/test-misc.c: Include <float.h>.
557 2001-01-27 Andreas Jaeger <aj@suse.de>
559 * misc/efgcvt_r.c: Include <float.h>.
561 2001-01-26 Ulrich Drepper <drepper@redhat.com>
563 * conform/data/stdlib.h-data: Account for XPG6 changes.
564 * stdlib/stdlib.h (__random): Change return value type to long.
565 (posix_memalign): Cleanup parameter names.
566 (setenv, unsetenv): Make available for __USE_XOPEN2K.
567 Change return type of unsetenv to int.
568 (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
569 * include/stdlib.h: Change return type of unsetenv to int.
570 Change return type of random to long int.
571 * sysdeps/generic/setenv.c (unsetenv): Change return type to int.
572 Return -1 and set errno if parameter is invalid.
573 * stdlib/random.c (__random): Change return value type to long.
575 * conform/data/stdio.h-data: Account for changes in XPG6.
577 * conform/data/spawn.h-data: Correct posix_spawnattr_setflags
580 * conform/conformtest.pl: Define $mustprepend{"signal.h"}.
581 * conform/data/signal.h-data: Fix sigev_notify_function entry.
582 Fix typo (SIGVALRM -> SIGVTALRM).
583 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
585 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
586 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
587 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
588 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
589 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
591 * conform/conformtest.pl: Implement optional-element. Define
592 $mustprepend{"sched.h"}.
593 * conform/data/sched.h-data: Make sporadic scheduler definitions
596 * pwd/pwd.h: Don't define getpwent_r for XPG.
598 * io/sys/poll.h: Define nfds_t and use it in poll prototype.
599 * sysdeps/generic/poll.c: Use nfds_t type in function definition.
600 * sysdeps/mach/hurd/poll.c: Likewise.
601 * sysdeps/unix/bsd/poll.c: Likewise.
602 * sysdeps/unix/sysv/linux/poll.c: Likewise.
603 * sysdeps/unix/sysv/aix/poll.c: Likewise.
604 * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.
605 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
606 * sysdeps/unix/sysv/linux/m68k/bits/poll.h: Likewise.
607 * sysdeps/unix/sysv/linux/mips/bits/poll.h: Likewise.
608 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
609 * conform/data/poll.h-data: Fix typo in poll prototype.
611 * sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
613 * conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
615 * sysdeps/gnu/net/if.h: Cleanup namespace. Define IF_NAMESIZE.
617 * inet/netinet/in.h: Make IPPROTO_ constants also macros.
619 * conform/conformtest.pl: Implement optional-type.
621 * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>. Include
622 <rpc/netdb.h> only if __USE_MISC. Include <stdint.h> instead of
623 defining uint32_t here. Define IPPORT_RESERVED.
624 (struct hostent): Type of h_length element is int.
625 (getnameinfo): Type of flags parameter is unsigned int.
626 * inet/getnameinfo.c (getnameinfo): flags argument is unsigned.
627 * conform/data/netdb.h-data: Add many missing definitions.
629 * conform/conformtest.pl: Implement optional-macro.
630 * conform/data/math.h-data: Update for XPG6.
632 * math/math.h (HUGE): Define as FLT_MAX value but don't use
633 FLT_MAX. Don't include <float.h>.
634 (MAXFLOAT): Likewise.
636 * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
638 * include/bits/xopen_lim.h: Don't define FOPEN_MAX here.
640 * conform/data/limits.h-data: Mark constants as optional wherever
643 * posix/bits/posix2_lim.h: Set correct values for
644 _POSIX2_COLL_WEIGHTS_MAX and _POSIX2_CHARCLASS_NAME_MAX. Remove
647 * posix/bits/posix1_lim.h: Define _POSIX_TZNAME_MAX as 6.
650 * intl/loadmsgcat.c: Include <locale.h.> for _LIBC.
652 * conform/data/netinet/in.h-data: Add reserved prefixes.
654 * conform/data/arpa/inet.h-data: Fix a few typos.
656 2001-01-26 Andreas Jaeger <aj@suse.de>
658 * sysdeps/generic/strtol.c: Include <locale.h>
659 * stdlib/strtod.c: Likewise
660 * stdlib/strfmon.c: Likewise.
661 * string/strcoll.c: Likewise.
662 * string/strxfrm.c: Likewise.
663 * wctype/wcfuncs_l.c: Likewise.
664 * wctype/wctype_l.c: Likewise.
665 * wctype/wctrans_l.c: Likewise.
667 * include/bits/locale.h: New file.
669 2001-01-26 Ulrich Drepper <drepper@redhat.com>
671 * locale/langinfo.h: Correct logic in #ifs when defining YESSTR
674 * locale/Makefile (headers): Add bits/locale.h.
675 * locale/langinfo.h: Don't include <locale.h>. Include <bits/locale.h>
676 and use __LC_ constants instead of LC_.
677 * locale/locale.h: Include <bits/locale.h> and define LC_ constants
678 using __LC_ constants.
679 * locale/bits/locale.h: New file.
680 * locale/loadlocale.c: Include <locale.h>.
681 * locale/nl_langinfo.h: Likewise.
683 * posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
685 * io/sys/stat.h: Define S_IFSOCK for XPG6.
687 * conform/data/fcntl.h-data: posix_madvise is not expected here.
689 * conform/conformtest.pl: Fix handling of macro-str.
691 * conform/data/inttypes.h-data: Add missing definition and all of
694 * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20.
696 2001-01-25 Ulrich Drepper <drepper@redhat.com>
698 * conform/conformtest.pl (@headers): Add stdint.h.
699 * conform/data/stdint.h-data: New file.
701 * conform/conformtest.pl: Recognize options --headers and
702 --dialect. Add dialect-specific CFLAGS.
704 * conform/conformtest.pl: Implement handling of recursive
707 * conform/data/locale.h-data: Add new struct lconv members.
709 * posix/wordexp.h: Correct definition of wordexp_t.
710 * posix/wordexp.c: Moved to ...
711 * sysdeps/generic/wordexp.c: ...here. New file.
712 * sysdeps/unix/sysv/linux/alpha/wordexp.c: New file.
713 * sysdeps/unix/sysv/linux/ia64/wordexp.c: New file.
714 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: New file.
715 * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.2.2): Add
717 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
718 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
720 * math/tgmath.h: Pretty printing.
722 * math/Makefile (tests): Add test-tgmath.
723 (CFLAGS-test-tgmath.c): New variable.
724 * math/test-tgmath.c: New file. Contributed by Jakub Jelinek.
726 * conform/conformtest.pl: Handle allow-header in secondary headers
729 * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
732 * conform/data/netinet/in.h-data: Use correct comment character.
733 * conform/data/sys/stat.h-data: Likewise.
735 2001-01-25 Jakub Jelinek <jakub@redhat.com>
737 * math/tgmath.h (__TGMATH_BINARY_FIRST_REAL_ONLY,
738 __TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
739 __TGMATH_TERNARY_REAL_ONLY): Use proper arguments to
740 __builtin_classify_type, add ##f suffixes where appropriate.
741 (__TGMATH_UNARY_REAL_IMAG): Remove extraneous left parenthesis.
742 (__TGMATH_BINARY_REAL_IMAG): Likewise, use proper arguments to
743 __builtin_classify_type.
744 (fma): Fix spelling of first argument.
746 2001-01-25 Ulrich Drepper <drepper@redhat.com>
748 * conform/data/unistd.h-data: Mark functions removed in XPG6
751 * posix/unistd.h: Don't make functions removed in XPG6 available if
754 * conform/conformtest.pl: Implement optional-constant.
755 * conform/data/unistd.h-data: Use optional-constant wherever
758 * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS
759 constants and add _SC_STREAMS.
760 * sysdeps/posix/sysconf.c (__sysconf): Likewise.
762 * sysdeps/unix/sysv/linux/statvfs64.c: Rename to __statvfs64 and
763 make old name weak alias.
764 * sysdeps/generic/statvfs64.c: Likewise.
765 * sysdeps/unix/sysv/linux/fstatvfs64.c: Rename to __fstatvfs64 and
766 make old name weak alias.
767 * sysdeps/generic/fstatvfs64.c: Likewise.
768 * include/sys/statvfs.h: New file.
770 * sysdeps/generic/bits/confname.h: Define _PC_REC_INCR_XFER_SIZE,
771 _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, and
773 * sysdeps/posix/pathconf.c (__pathconf): Implement handling of
774 _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
775 _PC_REC_MIN_XFER_SIZE, and _PC_REC_XFER_ALIGN.
776 * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
778 * conform/conformtest.pl: Run Unix tests for XPG6.
779 Implement handling of known namespace violations.
780 Improve printing of results.
782 * posix/unistd.h (usleep): Correct return type.
783 * sysdeps/unix/sysv/linux/usleep.c: Correct return type.
784 * sysdeps/unix/bsd/usleep.c: Correct return type.
785 * sysdeps/mach/usleep.c: Correct return type.
786 * sysdeps/generic/usleep.c: Correct return type.
788 * posix/unistd.h (sync): Correct return type.
789 * sysdeps/generic/sync.c: Likewise.
790 * sysdeps/mach/hurd/sync.c: Likewise.
792 * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
794 * posix/unistd.h: Make seteuid and setegid available for XPG6.
796 * wcsmbs/wchar.h: Get FILE definition for XPG5.
798 * conform/data/ctype.h-data: Use correct comment form.
799 * conform/data/errno.h-data: Likewise.
800 * conform/data/math.h-data: Likewise.
801 * conform/data/mqueue.h-data: Likewise.
802 * conform/data/netdb.h-data: Likewise.
803 * conform/data/pthread.h-data: Likewise.
805 2001-01-24 Ulrich Drepper <drepper@redhat.com>
807 * conform/data/wordexp.h-data: Fix typo.
809 * conform/conformtest.pl: Handle allow-header correctly.
811 * conform/data/time.h-data: Use correct comment form.
813 * conform/conformtest.pl (checknamespace): Ignore #undef lines.
815 * configure.in: Comment out binutils version test.
817 * stdlib/strtod.c (str_to_mpn): Correct parsing of thousands
819 Reported by Lagardere Jean-Francois <LAGARDEREJ@thmulti.com>.
821 * stdlib/tst-strtod.c (locale_test): New function.
822 (main): Call locale_test.
823 * stdlib/Makefile (tst-strtod-ENV): New variable.
825 2001-01-24 Mark Kettenis <kettenis@gnu.org>
827 * hurd/hurdsig.c (_hurdsig_getenv): Remove spurious innermost
828 declaration of value such that we actually return the value of the
829 environment variable.
831 2001-01-24 Andreas Jaeger <aj@suse.de>
833 * sysdeps/unix/sysv/linux/init-first.c: Remove extra __sysctl
835 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
837 * include/sys/sysctl.h: New file.
839 2001-01-23 Andreas Jaeger <aj@suse.de>
841 * stdlib/Makefile ($(objpfx)isomac.out): Also pass sysincludes to
844 * elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
845 arguments. Reported by Jiri Kubicek <kubicek@bitsmart.com>,
848 * manual/install.texi (Tools for Compilation): Change required
851 2001-01-22 Andreas Jaeger <aj@suse.de>
853 * configure.in: Add test for new enough binutils version, move
854 compiler/binutils test up.
856 * Versions.def: Add version GLIBC_2.2.2.
858 2001-01-21 Ulrich Drepper <drepper@redhat.com>
860 * iconvdata/TESTS: UTF-8 test data for IBM932 and IBM943 are now
862 * iconvdata/testdata/IBM932: New file.
863 * iconvdata/testdata/IBM932..UTF8: New file.
864 * iconvdata/testdata/IBM943: New file.
865 * iconvdata/testdata/IBM943..UTF8: New file.
866 Contributed by Masahide Washizawa <washi@jp.ibm.com>.
868 2001-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
870 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset.
872 2001-01-21 Ulrich Drepper <drepper@redhat.com>
874 * malloc/malloc.c: Remove a few unnecessary initializers of global
877 2000-12-09 H.J. Lu <hjl@gnu.org>
879 * nss/Makefile (routines): Add digits_dots.
880 * nss/Versions (libc): Add __nss_hostname_digits_dots to GLIBC_2.2.2.
881 * nss/digits_dots.c (__nss_hostname_digits_dots): Turn template
883 * nss/nsswitch.h (__nss_hostname_digits_dots): New internal NSS
885 * nss/getXXbyYY.c (H_ERRNO_VAR_P): New definition.
886 (TYPE_VAR_P): Likewise.
887 (FLAGS_VAR): Likewise.
888 (AF_VAR_P): Likewise.
889 (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
890 instead of including digits_dots.c.
891 * nss/getXXbyYY_r.c (H_ERRNO_VAR_P): New definition.
892 (TYPE_VAR_P): Likewise.
893 (FLAGS_VAR): Likewise.
894 (AF_VAR_P): Likewise.
895 (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
896 instead of including digits_dots.c.
898 2001-01-21 Ulrich Drepper <drepper@redhat.com>
900 * sysdeps/posix/getaddrinfo.c: Reduce .data size.
902 2001-01-21 Andreas Jaeger <aj@suse.de>
904 * elf/constload2.c: Add prototype for init.
906 2001-01-21 Ulrich Drepper <drepper@redhat.com>
908 * stdlib/stdlib.h (drand48_data): Make available only for
909 __USE_MISC. Rename elements to protect namespace. Change type
910 and position of a and init element.
911 * stdlib/drand48-iter.c: Don't handle unsigned short > 16 bit
912 differently. Adjust for drand48_data change. Don't compute a here,
913 it comes from drand48_data.
914 * stdlib/lcong48_r.c: Don't handle unsigned short > 16 bit
915 differently. Adjust for drand48_data change. Compute a here.
916 * stdlib/srand48_r.c: Likewise.
917 * stdlib/drand48.c: Adjust for drand48_data change.
918 * stdlib/lrand48.c: Likewise.
919 * stdlib/mrand48.c: Likewise.
920 * stdlib/seek48.c: Likewise.
921 * stdlib/drand48_r.c: Likewise.
922 * stdlib/lrand48_r.c: Likewise.
923 * stdlib/mrand48_r.c: Likewise.
924 * stdlib/seed48_r.c: Likewise. Don't handle unsigned short > 16 bit
926 * stdlib/erand48_r.c: Don't handle unsigned short > 16 bit differently.
927 * stdlib/jrand48_r.c: Likewise.
929 * po/sv.po: Update from translation team.
931 2001-01-21 Andreas Jaeger <aj@suse.de>
933 * stdio-common/vfprintf.c (vfprintf): Add casts.
935 2001-01-20 Ulrich Drepper <drepper@redhat.com>
937 * iconvdata/run-iconv-test.sh: Reorgnize a bit to allow running only
939 * iconvdata/TESTS: Add entries for IBM932 and IBM943.
941 * iconvdata/Makefile (modules): Add IBM932 and IBM943.
942 * iconvdata/gconv-modules: Add entries for IBM932 and IBM943.
943 * iconvdata/ibm932.c: New file.
944 * iconvdata/ibm932.h: New file.
945 * iconvdata/ibm943.c: New file.
946 * iconvdata/ibm943.h: New file.
947 Patches by Masahide Washizawa <washi@jp.ibm.com>.
949 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix typo
950 preventing optimization from being done. Set the correct type bit
951 in seen. Don't define and use _dl_base_addr unless
952 NEED_DL_BASE_ADDR is defined.
954 * io/ftw.c (ftw_dir): Add slash after directory name if there
955 wasn't any. Reported by loris <loris@iol.it>.
956 * io/Makefile (tests): Add bug-ftw2.
957 * io/bug-ftw2.c: New file.
959 2001-01-19 Ulrich Drepper <drepper@redhat.com>
961 * stdlib/jrand48_r.c (__jrand48_r): Correct constructing of
962 results. Reported by Jeff Higham <jhigham@algorithmics.com>.
963 * stdlib/tst-rand48.c: New file.
964 * stdlib/Makefile (tests): Add tst-rand48.
966 * locale/newlocale.c (__newlocale): Fix test for setting all
969 2001-01-19 Mark Kettenis <kettenis@gnu.org>
971 * sysdeps/mach/hurd/chroot.c (chroot): Revert 1999-02-27 changes,
972 but change looking up the initial directory port in a similar way
973 as done by _hurd_change_directory_port_from_name.
974 * hurd/fchroot.c (fchroot): Likewise.
976 2001-01-18 Ulrich Drepper <drepper@redhat.com>
978 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If HAVE_AUX_XID is
979 defined don't look whether the AT_*ID values were set.
980 If HAVE_AUX_PAGESIZE is defined don't look whether the pagesize is set.
981 (_dl_show_auxv): Rewrite to avoid switch statement.
982 * sysdeps/unix/sysv/linux/kernel-features.h: Define
983 __ASSUME_AT_PAGESIZE for kernel >= 2.4.1.
984 * sysdeps/unix/sysv/linux/ldsodefs.h: Define HAVE_AUX_XID.
985 Define HAVE_AUX_PAGESIZE if __ASSUME_AT_PAGESIZE is defined.
987 * sysdeps/unix/sysv/linux/fxstat64.c: Add one __builtin_expect.
988 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
989 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
991 * elf/rtld.c (process_envvars): Call __strtoul_internal instead of
993 * elf/dl-minimal.c (strtol, __strtol_internal, strtoul): Removed.
994 (__sigjmp_save): Set __mask_was_saved to zero since we don't save
996 * dlfcn/eval.c (__strtol_internal): Define here.
997 (eval): Use __strtol_internal instead of strtol.
999 * elf/elf.h: Add a few more EF_MIPS_* constants.
1001 2001-01-17 Ulrich Drepper <drepper@redhat.com>
1003 * manual/Makefile (chapters): Add debug.
1004 * manual/debug.texi: New file.
1005 * manual/examples/execinfo.c: New file.
1006 Patch by suckfish@ihug.co.nz.
1008 2001-01-17 Andreas Schwab <schwab@suse.de>
1010 * sysdeps/m68k/bits/byteswap.h (__bswap_32): Add cast to avoid
1013 2001-01-17 Andreas Jaeger <aj@suse.de>
1015 * nscd/connections.c (nscd_run): Use proper format specifier.
1017 2001-01-16 Ulrich Drepper <drepper@redhat.com>
1019 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Move x86_cap_flags and
1020 x86_platforms data into new file after prepending _dl_. Change
1022 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: New file.
1023 * sysdeps/unix/sysv/linux/i386/Dist: Add dl-procinfo.c.
1024 * sysdeps/unix/sysv/linux/i386/Makefile: Add rules to build
1027 * setjmp/setjmp.h: Cleanup definition of setjmp macro.
1029 * sysdeps/i386/elf/bsd-setjmp.S: Real implementation.
1030 * sysdeps/i386/elf/bsd-_setjmp.S: Removed.
1031 * sysdeps/i386/elf/setjmp.S (setjmp): Removed here.
1032 (_setjmp): Likewise.
1033 * sysdeps/i386/bsd-_setjmp.S: Real implementation.
1034 * sysdeps/i386/bsd-setjmp.S: Real implementation.
1035 * sysdeps/i386/bits/setjmp.h: Remove PUSH_SIGNAL_MASK definition.
1036 * sysdeps/i386/setjmp.S: Remove PIC support. This is the non-ELF
1039 2001-01-16 Andreas Jaeger <aj@suse.de>
1041 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (SIGCONTEXT): Fix
1042 misapplied last patch.
1044 2001-01-15 Ulrich Drepper <drepper@redhat.com>
1046 * stdlib/random.c (__initstate): Clean up a cast.
1047 (__setstate): Likewise.
1049 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select
1050 syscall handling. The generic Linux version should work.
1052 2001-01-15 Andreas Jaeger <aj@suse.de>
1054 * sysdeps/unix/sysv/linux/sys/sendfile.h: Fix typo.
1056 * stdio-common/tstscanf.c (main): Add two testcases for '*' modifier.
1058 2001-01-14 Jakub Jelinek <jakub@redhat.com>
1060 * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
1061 netgroup_keys, print_rpc, rpc_keys, print_shadow, shadow_keys):
1063 (group_keys, hosts_keys, network_keys, passwd_keys, protocols_keys):
1064 If number is 0, list all.
1065 (services_keys): Likewise. Lookup aliases as well.
1066 (databases): New table.
1067 (build_doc): Prepare argp doc text with list of supported databases.
1068 (main): Change to table driven processing.
1070 2001-01-14 Thorsten Kukuk <kukuk@suse.de>
1072 * sunrpc/xdr.c (xdr_long, xdr_u_long): Fix comments about these
1075 2001-01-03 Jakub Jelinek <jakub@redhat.com>
1077 * sunrpc/xdr.c (xdr_long, xdr_u_long): Return FALSE if trying to
1078 encode value which does not fit in the 32bit type.
1080 2001-01-15 Hiroyuki Machida <machida@sm.sony.co.jp>
1082 * sysdeps/unix/sysv/linux/mips/register-dump.h (REGISTER_DUMP):
1083 Change type of CTX to (struct sigcontext *).
1084 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Likewise.
1085 (GET_FRAME): Likewise.
1086 (GET_STACK): Likewise.
1087 (SIGCONTEXT): Likewise. Add 2nd arg _code.
1088 (SIGCONTEXT_EXTRA_ARGS): Add 2nd arg _code.
1090 2001-01-13 Ulrich Drepper <drepper@redhat.com>
1092 * manual/texinfo.tex: Update from upstream version.
1094 2001-01-13 Jakub Jelinek <jakub@redhat.com>
1096 * inet/ether_ntoh.c (lookup_function): Change arguments to match
1097 _nss_*_getntohost_r prototype.
1098 (ether_ntohost): Pass errno pointer to NSS function.
1100 2001-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1102 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
1103 (MAP_LOCKED): New definition.
1104 (MAP_NORESERVE): New definition.
1106 2001-01-12 Ulrich Drepper <drepper@redhat.com>
1108 * assert/assert.h: Use static_cast instead of C-style cast for C++.
1109 Patch by Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>.
1111 2001-01-12 Ben Collins <bcollins@debian.org>
1113 * sysdeps/generic/segfault.c (install_handler): Use access, not
1116 2001-01-12 Andreas Jaeger <aj@suse.de>
1118 * posix/fnmatch_loop.c (FCT): Remove signed warnings.
1119 * posix/wordexp.c (do_parse_glob): Likewise.
1120 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1121 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1122 * elf/dl-open.c (_dl_open): Likewise.
1123 * elf/dl-close.c (_dl_close): Likewise.
1124 * elf/dl-load.c (_dl_map_object): Likewise.
1125 * iconv/iconv_prog.c (process_fd): Likewise.
1126 * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
1128 * locale/localeinfo.h (struct locale_data): Use __flexarr instead
1129 of a zero-length array.
1131 2001-01-11 Jakub Jelinek <jakub@redhat.com>
1133 * stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
1134 * stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
1135 * stdlib/cxa_on_exit.c: Remove.
1136 * stdlib/Makefile: Revert last patch.
1137 * stdlib/Versions: Likewise.
1138 * include/stdlib.h: Likewise.
1139 * stdlib/exit.h: Revert last patch.
1140 (struct exit_function): Add second argument to cxa fn.
1141 * stdlib/exit.c: Revert last patch.
1142 (exit): Add hidden second argument.
1144 2001-01-11 H.J. Lu <hjl@gnu.org>
1146 * elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
1147 * elf/dl-open.c (_dl_open): Here.
1148 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
1150 (_dl_static_init): Initialize the variables every time when possible.
1151 * sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
1154 2001-01-11 Ulrich Drepper <drepper@redhat.com>
1156 * stdlib/Makefile (routines): Add cxa_on_exit.
1157 * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit.
1158 * stdlib/cxa_on_exit.c: New file.
1159 * include/stdlib.h: Add prototype for __cxa_on_exit.
1160 * stdlib/exit.c: Handle ef_cxa2.
1161 * stdlib/exit.h (enum): Add ef_cxa2.
1162 (struct exit_function): Add cxa2.
1164 * Versions.def [ld]: Add GLIBC_2.2.1.
1166 2001-01-10 H.J. Lu <hjl@gnu.org>
1168 * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries.
1169 * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add
1171 * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init.
1172 * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined.
1173 * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file.
1174 * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file.
1175 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c.
1177 2001-01-11 Ulrich Drepper <drepper@redhat.com>
1179 * libio/stdio.h: Remove definition of off_t.
1181 2001-01-11 Andreas Jaeger <aj@suse.de>
1183 * wcsmbs/tst-mbrtowc.c (utf8_test): New function by Markus Kuhn
1186 2001-01-10 Ulrich Drepper <drepper@redhat.com>
1188 * sunrpc/Makefile (distribute): Add errqueue.h.
1190 2001-01-10 H.J. Lu <hjl@gnu.org>
1192 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
1193 r9, r10 and r11 for language specific registers.
1195 2001-01-10 Jakub Jelinek <jakub@redhat.com>
1197 * sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
1199 (clntudp_call): Handle MSG_ERRQUEUE.
1200 * sysdeps/generic/errqueue.h: New file.
1201 * sysdeps/unix/sysv/linux/errqueue.h: New file.
1203 2001-01-10 H.J. Lu <hjl@gnu.org>
1205 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_getpagesize): Removed.
1207 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
1209 * CONFORMANCE: Update.
1211 2001-01-09 Ulrich Drepper <drepper@redhat.com>
1213 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1214 Minimal cleanups. Add assert to ensure memory handling is correct.
1216 * manual/conf.texi (File Minimums): Fix _POSIX_PATH_MAX value.
1217 Reported by Ben Collins <bcollins@debian.org>.
1219 * time/strftime.c (my_strftime): Mark previous GNU extensions
1220 which are now in C99 as such.
1222 2001-01-08 Ulrich Drepper <drepper@redhat.com>
1224 * elf/rtld.c (process_envvars): Place output files for profiling
1225 in SUID binaries in /var/profile.
1227 * elf/dl-load.c (_dl_map_object): Don't look in cache for
1228 preloading in SUID binaries.
1230 * elf/dl-profile.c (_dl_start_profile): Open the output file with
1231 O_NOFOLLOW if possible.
1233 * include/stdlib.h: Add __posix_openpt declaration.
1234 * stdlib/stdlib.h: Add posix_openpt declaration.
1235 * login/Versions: Add posix_openpt for GLIBC_2.2.1.
1236 * sysdeps/generic/getpt.c: Define posix_openpt.
1237 * sysdeps/unix/bsd/getpt.c: Likewise.
1238 * sysdeps/unix/sysv/linux/getpt.c: Likewise.
1240 * time/Makefile (tests): Add tst-mktime.
1241 * time/tst-mktime.c: New file.
1243 * posix/tst-dir.c (main): One more mkdir() test.
1245 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1246 Remove getpagesize syscall. We assume that the pagesize is always
1247 determined from the auxiliary vector.
1249 * intl/dcigettext.c: Fix a few warnings.
1250 Patch by Bruno Haible <haible@ilog.fr>.
1252 2001-01-08 Andreas Jaeger <aj@suse.de>
1254 * io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
1255 Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1257 2001-01-08 Ulrich Drepper <drepper@redhat.com>
1259 * sysdeps/generic/segfault.c (install_handler): Check output file
1262 * resolv/res_query.c: Use simply getenv() for HOSTALIASES.
1263 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.
1265 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma.
1267 * malloc/memusage.c (me): Use access() to determine whether we
1268 should write the output file or not.
1270 * libio/bits/stdio.h (printf): Define macro to map printf call to
1271 fprintf which gcc can optimize.
1272 * stdio-common/printf.c: Undefine printf.
1274 2001-01-07 Ulrich Drepper <drepper@redhat.com>
1276 * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last
1277 patch. We must use unsigned int for l member of union.
1279 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call
1280 _dl_aux_init for shared libraries.
1282 * sysdeps/unix/sysv/linux/glob64.c: Moved to ...
1283 * sysdeps/gnu/glob64.c: ...here. New file.
1285 2001-01-07 Ben Collins <bcollins@debian.org>
1287 * manual/examples/longopt.c: Make the "struct option" a little
1288 more like it should be, adding usage of required_argument,
1289 noargument and such, and also setting the options string right.
1291 * manual/sysinfo.texi (Load Average): New section, documents
1294 2001-01-06 Ulrich Drepper <drepper@redhat.com>
1296 * version.h (VERSION): Bump to 2.2.1.
1298 * sysdeps/unix/sysv/linux/mips/Dist: Remove sys/acct.h.
1299 * sysdeps/alpha/Dist: Add alphaev6/stxncpy.S and alphaev6/stxcpy.S.
1300 * sysdeps/unix/sysv/aix/Dist: Add uitrunc.c, savef.S, and restf.S.
1301 * dlfcn/Makefile (distribute): Add errmsg1mod.c.
1302 * Makefile (distribute): Add include/libc-internal.h.
1303 * libio/Makefile (distribute): Avoid overwriting.
1305 * iconvdata/ibm937.c (BODY to IBM937): Correct several mistakes in
1306 buffer and table handling.
1308 2001-01-05 H.J. Lu <hjl@gnu.org>
1310 * elf/dl-support.c (non_dynamic_init): Move the auxiliary
1311 vector checking to ...
1312 (_dl_aux_init): Here. New function. Defined only if
1313 HAVE_AUX_VECTOR is defined.
1315 * sysdeps/generic/libc-start.c (__libc_start_main): Call
1316 _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined.
1318 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call
1321 * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed.
1322 (HAVE_AUX_VECTOR): Defined.
1323 (_dl_aux_init): Declared.
1325 2001-01-05 Ben Collins <bcollins@debian.org>
1327 * manual/string.texi (Finding Tokens in a String): Document XPG
1328 basename() and dirname(), as well as GNU basename().
1330 2001-01-05 Jakub Jelinek <jakub@redhat.com>
1332 * Makeconfig (preprocess-version): Replace -traditional with
1333 -x assembler-with-cpp.
1335 2001-01-05 Joseph S. Myers <jsm28@cam.ac.uk>
1337 * math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
1338 for GCC 2.97 or later.
1340 2001-01-05 Ben Collins <bcollins@debian.org>
1342 * manual/stdio.texi (getline): Clarify the return value in the
1343 case of EOF being reached before a newline.
1345 2001-01-04 Jakub Jelinek <jakub@redhat.com>
1347 * sunrpc/pmap_clnt.c (__get_myaddress): Return TRUE if successful,
1349 (pmap_set, pmap_unset): Check __get_myaddress return value.
1351 2001-01-05 Mark Kettenis <kettenis@gnu.org>
1353 * sysdeps/generic/netinet/if_ether.h: Include <sys/types.h>.
1354 (struct ether_addr): Declare ether_addr_octet member as
1355 `u_int8_t'. Add __attribute__ ((__packed__)).
1357 2001-01-06 Mark Kettenis <kettenis@gnu.org>
1359 * sysdeps/mach/hurd/readdir64.c: New file.
1360 * sysdeps/mach/hurd/readdir64_r.c: New file.
1362 2001-01-07 Mark Kettenis <kettenis@gnu.org>
1364 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Add comment about
1365 `struct statfs' and `struct statvfs' being identical.
1366 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1368 2001-01-06 Mark Kettenis <kettenis@gnu.org>
1370 * sysdeps/mach/hurd/fstatfs64.c: New file.
1371 * sysdeps/mach/hurd/fstatvfs64.c: New file.
1372 * sysdeps/mach/hurd/statfs64.c: New file.
1373 * sysdeps/mach/hurd/statvfs64.c: New file.
1374 * sysdeps/mach/hurd/statfsconv.c: New file.
1375 * sysdeps/mach/hurd/Dist: Add statfsconv.c.
1377 2001-01-06 Ulrich Drepper <drepper@redhat.com>
1379 * iconv/skeleton.c: Reset outbuf for next round of the loop.
1380 Reported by Owen Taylor <otaylor@redhat.com>.
1381 * iconv/Makefile (tests): Add tst-iconv3.
1382 * iconv/tst-iconv3.c: New file.
1384 * iconvdata/ibm930.c: Fix handling of state. Optimize a bit.
1385 * iconvdata/ibm933.c: Likewise.
1386 * iconvdata/ibm935.c: Likewise.
1387 * iconvdata/ibm937.c: Likewise.
1388 * iconvdata/ibm939.c: Likewise.
1389 * iconvdata/ibm930.h: Adjust single byte table for optimization.
1390 * iconvdata/ibm933.h: Likewise.
1391 * iconvdata/ibm935.h: Likewise.
1392 * iconvdata/ibm939.h: Likewise.
1394 * iconvdata/testdata/IBM930: Add misssing SI.
1395 * iconvdata/testdata/IBM933: Likewise.
1396 * iconvdata/testdata/IBM935: Likewise.
1397 * iconvdata/testdata/IBM937: Likewise.
1398 * iconvdata/testdata/IBM939: Likewise.
1400 2001-01-06 Andreas Jaeger <aj@suse.de>
1402 * configure.in: Check for old add-ons that shouldn't be used with
1403 current glibc anymore.
1405 2001-01-06 Mark Kettenis <kettenis@gnu.org>
1407 * sysdeps/mach/hurd/readdir_r.c (__readdir_r): Return error number
1408 instead of -1 on failure. Don't forget to copy file name into
1409 *ENTRY if successful. Set *RESULT to NULL upon reaching the end
1412 2001-01-06 Mark Kettenis <kettenis@gnu.org>
1414 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Don't forget to
1415 copy st_atime member.
1417 2001-01-05 Ulrich Drepper <drepper@redhat.com>
1419 * io/ftw.c (ftw_dir): Don't add a second slash at the beginning
1420 for searches from the root directory.
1421 Reported by loris <loris@iol.it> [PR libc/1991].
1422 * io/Makefile (tests): Add bug-ftw1.
1423 * io/bug-ftw1.c: New file.
1425 * elf/dl-support.c (non_dynamic_init): Don't define DL_FIND_AUXV
1426 if it is not available. Instead use it only if it is available.
1427 * sysdeps/unix/sysv/linux/ldsodefs.h: New file.
1429 * iconv/gconv_simple.c (internal_ics4_loop): Correct test for
1430 overflowing output buffer.
1431 (internal_ucs4_loop_unaligned): Likewise.
1432 (ucs4_internal_loop): Likewise.
1433 (ucs4_internal_loop_unaligned): Likewise.
1434 (internal_ucs4le_loop): Likewise.
1435 (internal_ucs4le_loop_unaligned): Likewise.
1436 (ucs4le_internal_loop): Likewise.
1437 (ucs4le_internal_loop_unaligned): Likewise.
1438 Reported by Owen Taylor <otaylor@redhat.com>.
1439 * iconv/Makefile (tests): Add tst-iconv2.
1440 * iconv/tst-iconv2.c: New file.
1442 2001-01-04 H.J. Lu <hjl@gnu.org>
1444 * elf/dl-support.c (DL_FIND_AUXV): New. Defined if not defined.
1445 (_dl_clktck): Declared.
1446 (non_dynamic_init): Take 3 arguments.
1447 Set _dl_pagesize, _dl_platform and _dl_clktck from AUX.
1449 2001-01-01 Bruno Haible <haible@clisp.cons.org>
1451 Finish implementation of plural form handling.
1452 * intl/dcigettext.c (known_translation_t): Rename 'domain' field to
1453 'domainname'. Remove 'plindex' field. Add 'domain' and
1454 'translation_length' fields.
1455 (transcmp): Don't compare 'plindex' fields.
1456 (plural_lookup): New function.
1457 (DCIGETTEXT): Change cache handing in the plural case. Don't call
1458 plural_eval before the translation and its catalog file have been
1459 found. Remove plindex from cache key. Add 'translation_length' and
1460 'domain' to cache result.
1461 (_nl_find_msg): Remove index argument, return length of translation
1462 to the caller instead. Weaken comparison of string lengths, to account
1463 for plural entries. Call iconv() on the entire result string, not
1464 only on the portion needed so far.
1465 * intl/loadinfo.h (_nl_find_msg): Remove index argument, add lengthp
1467 * intl/loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change.
1469 2001-01-04 Ulrich Drepper <drepper@redhat.com>
1471 * intl/plural.y (yylex): Minimal improvement in number scanner.
1473 2000-07-31 Bruno Haible <haible@clisp.cons.org>
1475 * intl/plural.y: Include config.h. Needed to define 'inline' away for
1476 C compilers that don't support it.
1477 (yylex): Don't use gcc specific case range syntax.
1478 * intl/loadmsgcat.c (INIT_GERMANIC_PLURAL): New macro, for old
1481 2000-10-12 Bruno Haible <haible@clisp.cons.org>
1483 * intl/finddomain.c: Remove unneeded includes.
1485 2000-10-12 Bruno Haible <haible@clisp.cons.org>
1487 * intl/localealias.c (memcpy): Return first argument, just like the
1488 real memcpy function does.
1489 * intl/bindtextdom.c (memcpy): Likewise.
1490 * intl/finddomain.c (memcpy): Likewise.
1491 * intl/l10nflist.c (memcpy): Likewise.
1492 * intl/textdomain.c (memcpy): Likewise.
1493 From Paul Eggert <eggert@twinsun.com>.
1495 2001-01-03 Jakub Jelinek <jakub@redhat.com>
1497 * resolv/resolv.h (struct __res_state): Add nsinit field.
1498 * resolv/res_send.c (res_nsend): Use it instead of nscount.
1499 * resolv/res_init.c (__res_vinit): Initialize it.
1500 (res_nclose): Clear it instead of nscount.
1502 2001-01-04 Ulrich Drepper <drepper@redhat.com>
1504 * malloc/mtrace.pl: Fix matching of addresses.
1505 Patch by Aharon Robbins <arnold@skeeve.com>.
1507 * Versions.def (ld): Add GLIBC_2.2.
1509 * catgets/gencat.c: Copyright 2001.
1510 * csu/version.c: Likewise.
1511 * debug/catchsegv.sh: Likewise.
1512 * debug/xtrace.sh: Likewise.
1513 * elf/ldconfig.c: Likewise.
1514 * elf/sprof.c: Likewise.
1515 * iconv/iconv_prog.c: Likewise.
1516 * locale/locale.c: Likewise.
1517 * locale/localedef.c: Likewise.
1518 * malloc/memusage.sh: Likewise.
1519 * malloc/mtrace.pl: Likewise.
1520 * nscd/nscd.c: Likewise.
1521 * posix/getconf.c: Likewise.
1523 2001-01-04 Mark Kettenis <kettenis@gnu.org>
1525 * include/stdio.h: Only provide __getwc_unlocked prototype if
1526 USE_IN_LIBIO is defined.
1528 2001-01-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1530 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
1533 2001-01-03 Andreas Schwab <schwab@suse.de>
1535 * sysdeps/generic/strtoll.c: Remove unused __strtoq_internal alias.
1536 * sysdeps/generic/strtoull.c: Remove unused __strtouq_internal alias.
1538 * sysdeps/wordsize-64/strtol.c: Add strtoq alias and fix strtoll alias.
1539 * sysdeps/wordsize-64/strtoul.c: Add strtouq alias and fix
1541 * sysdeps/wordsize-64/wcstol.c: Add wcstoq alias and fix wcstoll alias.
1542 * sysdeps/wordsize-64/wcstoul.c: Add wcstouq alias and fix
1545 * sysdeps/generic/strtoul.c: Make sure we find strtol.c in this
1547 * sysdeps/generic/strtol_l.c: Likewise.
1548 * sysdeps/generic/strtoul_l.c: Likewise.
1549 * sysdeps/generic/wcstoul.c: Likewise, for wcstol.c.
1551 * sysdeps/wordsize-64/strtol_l.c: Fix alias.
1552 * sysdeps/wordsize-64/strtoul_l.c: Likewise.
1553 * sysdeps/wordsize-64/wcstol_l.c: Fix alias.
1554 * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
1556 2001-01-04 Andreas Jaeger <aj@suse.de>
1558 * nss/nsswitch.c: Include files for missing prototypes, remove
1559 buggy declaration of prototypes.
1561 2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1563 * resolv/Versions: Fix bracing.
1564 * sysdeps/powerpc/soft-fp/Versions: Likewise.
1565 * sysdeps/sparc/sparc64/soft-fp/Versions: Likewise.
1567 2001-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1569 * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
1571 2001-01-02 Ulrich Drepper <drepper@redhat.com>
1573 * manual/Makefile (TEXI2PDF): Change to texi2dvi --pdf.
1574 Suggested by Minko Markov <mmarkov@home.com>.
1576 2001-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1578 * sysdeps/powerpc/elf/start.S (__data_start): Make it global.
1579 * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): Print the name of
1581 (__process_machine_rela): Pass symbol to dl_reloc_overflow().
1583 2001-01-02 Ben Collins <bcollins@debian.org>
1585 * time/tzset.c (tzset_internal): Make sure we fall back to UTC
1586 if TZ is not set and TZDEFAULT is not present.
1588 2001-01-01 Ben Collins <bcollins@debian.org>
1590 * string/strings.h: Make sure we declare our functions even if
1591 string.h is already included, based on whether or not __USE_BSD is
1594 2001-01-02 Ulrich Drepper <drepper@redhat.com>
1596 * dlfcn/dlerror.c (dlerror): Handle call of dlerror() before any
1597 other dlopen() and dlsym().
1598 Based on a patch by Ben Collins <bcollins@debian.org>.
1600 2001-01-02 Andreas Jaeger <aj@suse.de>
1602 * dlfcn/errmsg1.c (main): Call dlerror initially.
1603 Reported by Ben Collins <bcollins@debian.org>.
1605 2001-01-02 Ulrich Drepper <drepper@redhat.com>
1607 * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
1608 value is ignored if the selected locale is the C locale.
1609 * intl/tst-gettext.c: Set locale for above change.
1610 * intl/tst-translit.c: Likewise.
1612 2001-01-02 Andreas Jaeger <aj@suse.de>
1614 * libio/wgenops.c (_IO_wdoallocbuf): Use correct wide access macro.
1615 (_IO_switch_to_wget_mode): Likewise.
1616 (_IO_sputbackwc): Likewise.
1617 (_IO_sungetwc): Use wint_t for result.
1619 * stdio-common/vfscanf.c (__vfscanf): Use WINT_T for done.
1621 * sysdeps/generic/strtol.c (strtol): Make cnt size_t for correct
1624 * sysdeps/generic/printf_fphex.c (putc): Cast _IO_putwc_unlocked
1625 to (int) to avoid warnings.
1626 * stdio-common/printf_fp.c (putc): Likewise.
1627 * stdio-common/printf_size.c (putc): Likewise.
1629 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make
1632 2001-01-01 Andreas Jaeger <aj@suse.de>
1634 * inet/rcmd.c (rcmd_af): Use socklen_t for len.
1636 2000-12-31 Andreas Jaeger <aj@suse.de>
1638 * include/libc-internal.h: Add prototype for __libc_freeres.
1640 * sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
1641 for prototypes, remove redundant prototypes.
1642 * gmon/gmon.c: Likewise.
1643 * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
1644 * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
1645 * malloc/mtrace.c: Likewise.
1647 * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
1649 * elf/soinit.c: Likewise.
1650 * sysdeps/generic/prof-freq.c: Likewise.
1651 * sysdeps/mach/hurd/profil.c: Likewise.
1652 * debug/noophooks.c: Likewise.
1653 * debug/pcprofile.c: Likewise.
1654 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1655 * sysdeps/generic/get_clockfreq.c: Likewise.
1656 * malloc/set-freeres.c: Likewise.
1658 * locale/localeinfo.h: Add internal prototypes.
1660 * elf/rtld.c (dl_main): Fix prototype.
1662 * iconvdata/tst-table-to.c (main): Use return instead of exit to
1665 * nis/rpcsvc/yp_prot.h: Remove __P.
1666 * nis/rpcsvc/ypupd.h: Likewise.
1667 * nis/rpcsvc/yp.h: Likewise.
1669 * sunrpc/rpc_main.c: Add noreturn attributes.
1670 * sunrpc/rpc_scan.h: Likewise.
1672 * sunrpc/rpc_hout.c (storexdrfuncdecl): Make static.
1674 * sunrpc/rpcinfo.c: Add noreturn attribute to brdcst.
1676 * sunrpc/proto.h: Add noreturn attributes to error and crash.
1678 * posix/bsd-getpgrp.c: Add prototype to avoid warning.
1680 * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
1682 * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
1684 * include/rpc/rpc_msg.h: Add prototypes for some functions.
1685 * include/rpc/auth.h: Likewise.
1686 * include/rpc/auth_des.h: Likewise.
1687 * include/rpc/clnt.h: Likewise.
1688 * include/rpc/rpc.h: Likewise.
1689 * include/rpc/svc.h: Likewise.
1690 * include/rpc/svc_auth.h: Likewise.
1692 * include/rpc/des_crypt.h: New file.
1694 * malloc/memusagestat.c (main): Use return instead of exit to
1696 * io/pwd.c (main): Likewise.
1697 * iconvdata/tst-table-from.c (main): Likewise.
1698 * ctype/test_ctype.c (main): Likewise.
1699 * setjmp/tst-setjmp.c (main): Likewise.
1700 * signal/tst-signal.c (main): Likewise.
1701 * stdlib/tst-strtol.c (main): Likewise.
1702 * stdlib/tst-strtod.c (main): Likewise.
1703 * stdlib/tst-strtoll.c (main): Likewise.
1704 * stdlib/tst-xpg-basename.c (main): Likewise.
1705 * dirent/tst-seekdir.c (main): Likewise.
1706 * grp/testgrp.c (main): Likewise.
1707 * inet/test_ifindex.c (main): Likewise.
1708 * io/test-utime.c (main): Likewise.
1709 * posix/test-vfork.c (main): Likewise.
1710 * posix/testfnm.c (main): Likewise.
1711 * stdio-common/temptest.c (main): Likewise.
1712 * stdio-common/test_rdwr.c (main): Likewise.
1713 * stdio-common/tst-fileno.c (main): Likewise.
1714 * stdio-common/tst-sscanf.c (main): Likewise.
1715 * stdio-common/tstscanf.c (main): Likewise.
1716 * string/bug-strncat1.c (main): Likewise.
1717 * string/bug-strpbrk1.c (main): Likewise.
1718 * string/bug-strspn1.c (main): Likewise.
1719 * string/test-ffs.c (main): Likewise.
1720 * string/tst-inlcall.c (main): Likewise.
1721 * string/tst-svc.c (main): Likewise.
1722 * timezone/test-tz.c (main): Likewise.
1723 * wctype/test_wcfuncs.c (main): Likewise.
1724 * wctype/test_wctype.c (main): Likewise.
1726 * stdlib/tst-random.c: Add attribute noreturn to fail.
1728 2000-12-28 Wolfram Gloger <wg@malloc.de>
1730 * malloc/malloc.c (MALLOC_COPY): Handle case if source and
1731 destination overlap. Assume dest is always below source if
1734 2000-12-30 Ulrich Drepper <drepper@redhat.com>
1736 * elf/dl-close.c (_dl_close): We can ignore the NODELETE flag if the
1737 object was not yet initialized.
1739 2000-12-28 H.J. Lu <hjl@gnu.org>
1741 * elf/dl-deps.c (_dl_map_object_deps): Make sure the DSO state
1742 is always consistent even if its dependency is failed.
1744 * elf/dl-open.c (_dl_open): Increment the open count before
1745 calling _dl_close () in case of failure.
1747 * elf/neededtest4.c: New file.
1748 * elf/neededobj5.c: New file.
1749 * elf/neededobj6.c: New file.
1751 * elf/Makefile (distribute): Add neededobj5.c and neededobj6.c.
1752 (tests): Add neededtest4.
1753 (modules-names): Add neededobj5 and neededobj6.
1754 ($(objpfx)neededobj6.so): New target.
1755 ($(objpfx)neededtest4): New target.
1756 ($(objpfx)neededtest4.out): New target.
1758 2000-12-28 Joseph S. Myers <jsm28@cam.ac.uk>
1760 * misc/sys/cdefs.h (__attribute_format_strfmon__): Define.
1761 * stdlib/monetary.h: Add strfmon format attributes.
1763 2000-12-28 Roland McGrath <roland@frob.com>
1765 * sysdeps/mach/hurd/ioctl.c (do_ioctl): Avoid double-increment after
1766 __mempcpy does it for us.
1768 2000-12-28 Andreas Jaeger <aj@suse.de>
1770 * sysdeps/generic/dl-environ.c: Add prototype for unsetenv.
1772 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for
1775 * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for
1778 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for
1781 * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for
1782 __chown_is_lchown and __real_chown.
1784 * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
1787 * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
1788 up GCC's warning about "deprecated use of label at end of compound
1790 * sunrpc/rpc_cout.c (emit_inline): Likewise.
1792 * gmon/bb_exit_func.c: Include <sys/gmon.h> for internal
1794 Remove struct bb and __bb_head since those are declared by
1797 2000-12-22 Ben Collins <bcollins@debian.org>
1799 * manual/charset.texi: Fix typo in description of WCHAR_MAX.
1801 * manual/argp.texi: Document argp_domain as part of struct argp.
1803 2000-12-28 Andreas Jaeger <aj@suse.de>
1805 * catgets/Makefile (generated): Add sample.SJIS.cat.
1807 * sunrpc/rpc_dtable.c: Include rpc/clnt.h for prototypes.
1809 * elf/dl-minimal.c: Add prototypes.
1811 * include/locale.h: Add internal prototypes.
1812 * include/sys/gmon.h: Likewise.
1814 * dlfcn/errmsg1mod.c: Add prototype for foo to shut up GCC.
1816 2000-12-27 Ben Collins <bcollins@debian.org>
1818 * elf/dl-open.c (_dl_open): Correctly set the new objname pointer
1819 when reallocating the error strings.
1820 Reported by Kalle Olavi Niemitalo <kon@iki.fi>
1822 2000-12-27 Ulrich Drepper <drepper@redhat.com>
1824 * dlfcn/Makefile (tests): Add errmsg1.
1825 (modules-names): Add errmsg1mod.
1826 Add rules to run errmsg1.
1827 * dlfcn/errmsg1.c: New file.
1828 * dlfcn/errmsg1mod.c: New file.
1830 * dlfcn/dlerror.c (dlerror): Always create output string which
1831 includes object file name.
1833 * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop
1834 if we would go through it only once.
1835 Patch by Rick Gorton <rick.gorton@api-networks.com>.
1837 * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter.
1838 Patch by Richard Henderson <rth@redhat.com>.
1840 2000-12-27 Jakub Jelinek <jakub@redhat.com>
1842 * malloc/malloc.c (memmove): Add prototypes.
1843 (MALLOC_MEMMOVE): Define.
1844 (chunk_realloc): Use it instead of MALLOC_COPY if source and
1845 destination might overlap.
1847 2000-12-27 Andreas Jaeger <aj@suse.de>
1849 * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested
1851 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1852 * locale/programs/locale.c (show_locale_vars): Likewise.
1853 (show_info): Likewise.
1854 * locale/programs/ld-collate.c (collate_output): Likewise.
1855 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
1856 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1857 * stdlib/rpmatch.c (rpmatch): Likewise.
1859 * setjmp/tst-setjmp.c: Make local functions static.
1860 * setjmp/jmpbug.c: Likewise.
1861 * signal/tst-signal.c: Likewise.
1862 * stdio-common/tfformat.c: Likewise.
1863 * string/tst-svc.c: Likewise.
1864 * time/clocktest.c: Likewise.
1865 * time/tst-getdate.c: Likewise.
1866 * dirent/list.c: Likewise.
1867 * dirent/opendir-tst1.c: Likewise.
1868 * posix/runtests.c: Likewise.
1869 * posix/tst-getaddrinfo.c: Likewise.
1870 * posix/tst-chmod.c: Likewise.
1871 * posix/wordexp-test.c: Likewise.
1872 * misc/tst-efgcvt.c: Likewise.
1873 * timezone/tst-timezone.c: Likewise.
1874 * rt/tst-clock.c: Likewise.
1875 * rt/tst-shm.c: Likewise.
1876 * rt/tst-aio2.c: Likewise.
1877 * rt/tst-aio3.c: Likewise.
1878 * rt/tst-aio4.c: Likewise.
1879 * rt/tst-aio5.c: Likewise.
1881 * dlfcn/failtest.c: Add prototype for foo.
1883 * dlfcn/glrefmain.c: Add prototype for do_test.
1885 * dlfcn/tst-dladdr.c: Add prototype for do_test.
1887 * string/test-ffs.c (main): Add prototype for nested function.
1889 * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype.
1891 * nss/XXX-lookup.c: Add prototype to shut up GCC.
1893 * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix
1894 setetherent prototype.
1895 Add internal interfaces.
1897 * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise.
1898 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise.
1900 * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC.
1902 * nis/nis_intern.h: Add prototype for __pmap_getnisport.
1904 * nss/nss_files/files-ethers.c: Include netinet/ether.h to get
1905 prototypes, remove struct etherent since it's declared in ether.h.
1906 Fix ntohost declaration.
1908 * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC.
1910 * include/getopt.h: Add internal interfaces.
1911 * include/termios.h: Likewise.
1912 * include/resolv.h: Likewise.
1913 * include/netdb.h: Likewise.
1914 * include/grp.h: Likewise.
1915 * include/pwd.h: Likewise.
1916 * include/shadow.h: Likewise.
1917 * include/rpc/netdb.h: Likewise.
1918 * include/setjmp.h: Likewise.
1920 * include/stdio.h: Add prototypes for compatibility functions.
1921 * include/grp.h: Likewise.
1922 * include/pwd.h: Likewise.
1923 * include/shadow.h: Likewise.
1925 * include/fenv.h: Define internal interfaces.
1927 2000-12-27 Ulrich Drepper <drepper@redhat.com>
1929 * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant
1930 argument case separately.
1931 * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise.
1933 2000-12-27 Andreas Jaeger <aj@suse.de>
1935 * include/sys/wait.h: Add some prototypes.
1936 * Rules (dummy.c): Create also prototype to shut up GCC.
1938 2000-12-27 Andreas Jaeger <aj@suse.de>
1940 * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment,
1941 it's not needed at the moment.
1942 * sysdeps/generic/if_index.c (__protocol_available): Likewise.
1943 * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise.
1945 2000-12-26 Andreas Jaeger <aj@suse.de>
1947 * libio/getc_u.c: Include stdio.h via system path to get internal
1949 * libio/getwc_u.c: Likewise.
1951 * stdlib/strfmon.c: Fix prototype of __printf_fp.
1953 * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
1954 __printf_fp prototypes to ...
1955 * include/printf.h: ...here.
1957 * include/stdio.h: Add some internal prototypes to shut up GCC.
1958 * include/stdlib.h: Likewise.
1960 * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
1963 * include/signal.h: Add prototypes for internal sigpause
1966 2000-12-26 Ulrich Drepper <drepper@redhat.com>
1968 * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
1969 64bit platforms. Reported by Dave Gilbert <gilbertd@treblig.org>.
1971 * string/Makefile (tests): Add tst-bswap.
1972 * string/tst-bswap.c: New file.
1974 2000-12-11 Bruno Haible <haible@clisp.cons.org>
1976 * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
1978 2000-12-26 Ulrich Drepper <drepper@redhat.com>
1980 * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call.
1981 Patch by Ed Connell <Ed.Connell@sas.com>.
1983 2000-12-24 Ulrich Drepper <drepper@redhat.com>
1985 * locale/iso-639.def: Correct one entry. Add two missing entries.
1987 * locale/iso-4217.def: Change entry for Eritrea.
1988 Reported by Daniel Yacob <yacob@geez.org>.
1990 2000-12-23 Ben Collins <bcollins@debian.org>
1992 * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937
1995 * manual/stdio.texi (Dynamic Output): Document the return value of
1996 asprintf. Also make the asprintf/snprintf examples a little
1997 better (check for some error returns).
1999 2000-12-22 Andreas Jaeger <aj@suse.de>
2001 * include/stdio.h: Add __ftrylockfile prototype.
2003 2000-12-21 H.J. Lu <hjl@gnu.org>
2005 * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type):
2006 Make sign_exponent element signed.
2008 * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type):
2011 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch.
2013 2000-12-21 Andreas Jaeger <aj@suse.de>
2015 * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
2016 * inet/ether_hton.c: Likewise
2017 * inet/ether_ntoh.c: Likewise.
2019 * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
2020 declaration to match prototype.
2022 * include/netinet/ether.h (struct etherent): Declare here so that
2023 all implementations use the same struct.
2025 * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
2027 (struct ether): Removed.
2028 Use struct etherent instead of ether everywhere.
2030 * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.
2032 * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.
2034 * sunrpc/publickey.c: Include auth_des.h for prototypes.
2036 2000-12-20 Ulrich Drepper <drepper@redhat.com>
2038 * math/test-misc.c: Add more tests for nextafter functions.
2040 * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to
2041 normal correctly. Correct test for sign.
2042 Based on a patch by HJ Lu.
2044 2000-12-19 Ulrich Drepper <drepper@redhat.com>
2046 * Makeconfig (preprocess-version): Add -traditional to gcc call.
2049 2000-12-19 Andreas Jaeger <aj@suse.de>
2051 * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New.
2053 * nis/nis_intern.h: Add prototype for __do_niscall3.
2055 * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to
2058 * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat.
2060 * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New.
2062 * include/aliases.h (DECLARE_NSS_PROTOTYPES): New.
2064 2000-12-18 Ulrich Drepper <drepper@redhat.com>
2066 * math/test-misc.c: Add more tests for nextafter.
2067 * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
2068 * sysdeps/ieee754/ldbl-96/math_ldbl.h
2069 (ieee_long_double_shape_type): Make sign_exponent element signed.
2071 * manual/message.texi: Add Estonian to plural overview list.
2072 Correct rule for Slavic languages.
2073 Patch by Stanislav Brabec <utx@penguin.cz>.
2075 * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
2077 2000-12-18 Andreas Jaeger <aj@suse.de>
2079 * test-skeleton.c: Use temp_name_list instead of name_list to
2080 avoid collision with name_list from inet/netgroup.h.
2082 * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
2084 * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
2085 * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
2086 * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
2087 * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
2089 * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
2090 declaration to match prototype.
2091 * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
2092 * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
2093 * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
2095 * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
2096 * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
2097 * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
2098 * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
2099 (_nss_nis_getservbyport_r): Likewise.
2100 * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
2101 * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
2102 * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
2103 (_nss_nis_setnetent): Likewise
2104 * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
2105 (_nss_nis_endnetgrent): Likewise.
2106 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
2108 (_nss_nisplus_setnetgrent): Likewise.
2109 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
2110 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
2111 * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
2112 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
2114 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
2116 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
2118 * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
2120 * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
2121 * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
2122 * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
2123 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2124 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
2125 (_nss_dns_getnetbyaddr_r): Likewise.
2127 2000-12-17 Andreas Jaeger <aj@suse.de>
2129 * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
2132 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
2133 unused attribute to shut up gcc warnings.
2135 * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
2136 * sysdeps/generic/k_tanl.c: Likewise.
2137 * sysdeps/generic/k_cosl.c: Likewise.
2138 * sysdeps/generic/e_j0l.c: Likewise.
2139 * sysdeps/generic/e_j1l.c: Likewise.
2140 * sysdeps/generic/e_jnl.c: Likewise.
2141 * sysdeps/generic/e_lgammal_r.c: Likewise.
2143 * elf/vismain.c: Move prototypes for functions in vismod*.c to
2145 * elf/vismod.h: New file.
2146 * elf/Makefile (distribute): Add vismod.h.
2147 * elf/vismod1.c: Include vismod.h.
2148 * elf/vismod2.c: Likewise.
2149 * elf/vismod3.c: Likewise.
2151 * elf/constload3.c: Add prototype declarations to shut up gcc.
2152 * elf/failobj.c: Likewise.
2153 * elf/nodelmod3.c: Likewise.
2154 * elf/filtmod1.c: Likewise.
2155 * elf/filtmod2.c: Likewise.
2156 * elf/reldepmod1.c: Likewise.
2157 * elf/reldepmod2.c: Likewise.
2158 * elf/reldepmod3.c: Likewise.
2159 * elf/reldepmod4.c: Likewise.
2160 * elf/unload2dep.c: Likewise.
2161 * elf/unload2mod.c: Likewise.
2162 * elf/ltglobmod1.c: Likewise.
2163 * elf/pathoptobj.c: Likewise.
2164 * elf/neededobj1.c: Likewise.
2165 * elf/neededobj2.c: Likewise.
2166 * elf/neededobj3.c: Likewise.
2167 * elf/neededobj4.c: Likewise.
2168 * elf/nextmod1.c: Likewise.
2169 * elf/nextmod2.c: Likewise.
2171 * locale/programs/ld-collate.c (collate_finish): Don't use labels
2172 at end of compound statement.
2173 * locale/programs/locale.c (show_info): Likewise.
2174 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2176 2000-12-16 Jakub Jelinek <jakub@redhat.com>
2178 * catgets/gencat.c (read_input_file): Avoid calling obstack_free
2179 with a pointer not returned by obstack_ functions.
2181 2000-12-16 Ulrich Drepper <drepper@redhat.com>
2183 * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
2185 (struct stat64): Likewise.
2186 Reported by Michael Keezer <mkeezer@redhat.com>.
2188 * timezone/asia: Update from tzdata2000h.
2189 * timezone/australasia: Likewise.
2190 * timezone/backward: Likewise.
2191 * timezone/europe: Likewise.
2192 * timezone/northamerica: Likewise.
2193 * timezone/southamerica: Likewise.
2194 * timezone/zone.tab: Likewise.
2196 2000-12-14 Jakub Jelinek <jakub@redhat.com>
2198 * io/ftw.c (ftw_dir): If process_entry returned non-zero result
2199 and dir.stream is NULL, only free dir.content.
2200 * io/ftwtest.c (cb, main): Add --early-exit option to test it.
2201 * io/ftwtest-sh: Test with --early-exit.
2203 2000-12-13 Jakub Jelinek <jakub@redhat.com>
2205 * misc/efgcvt.c (FCVT_MAXDIG): Define.
2206 (FCVT_BUFPTR): New variable.
2207 (fcvt): If fcvt_r returns -1 on the static short buffer,
2208 try to malloc a sufficiently large one and retry.
2209 (free_mem): New function.
2210 * misc/qefgcvt.c (FCVT_MAXDIG): Define.
2211 * misc/tst-efgcvt.c (fcvt_tests): Add new test.
2213 2000-12-15 Ulrich Drepper <drepper@redhat.com>
2215 * misc/dirname.c (dirname): Fix search for second to last slash.
2217 2000-12-13 Andreas Jaeger <aj@suse.de>
2219 * misc/tst-dirname.c (main): Fix typo in test to really use
2220 the examples from Unix98.
2221 Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2223 2000-12-09 H.J. Lu <hjl@gnu.org>
2225 * sysdeps/ia64/fpu/s_fabs.S: New file.
2226 * sysdeps/ia64/fpu/s_fabsf.S: New file.
2227 * sysdeps/ia64/fpu/s_fabsl.S: New file.
2229 2000-12-15 Andreas Jaeger <aj@suse.de>
2231 * stdio-common/scanf9.c (main): Reformat and change to avoid
2234 * stdio-common/tstdiomisc.c: Make local functions static.
2235 * stdio-common/tst-printf.c: Likewise.
2237 * elf/constload2.c: Add prototype declarations to shut up gcc.
2238 * elf/dep1.c: Likewise.
2239 * elf/dep2.c: Likewise.
2240 * elf/dep3.c: Likewise.
2241 * elf/dep4.c: Likewise.
2242 * elf/ltglobmod2.c: Likewise.
2244 * libio/fmemopen.c: Make local functions static.
2246 * elf/Makefile (distribute): Added testobj.h.
2248 * elf/testobj.h: New file.
2250 * elf/testobj1.c: Include testobj.h and move prototype
2251 declarations to testobj.h.
2252 * elf/testobj2.c: Likewise.
2253 * elf/testobj3.c: Likewise.
2254 * elf/testobj4.c: Likewise.
2255 * elf/testobj5.c: Likewise.
2256 * elf/testobj6.c: Likewise.
2257 * elf/testobj1_1.c: Likewise.
2258 * elf/preloadtest.c: Likewise.
2260 2000-12-15 Ben Collins <bcollins@debian.org>
2262 * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
2263 Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
2265 2000-12-14 H.J. Lu <hjl@gnu.org>
2267 * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
2268 field in a float is 8 bits, not 11 bits.
2270 2000-12-13 Jakub Jelinek <jakub@redhat.com>
2272 * math/test-misc.c (main): Adjust m for IEEE quad long double.
2274 2000-12-13 Andreas Jaeger <aj@suse.de>
2276 * manual/message.texi (Using gettextized software): Fix typo.
2278 * manual/charset.texi (Converting a Character): Fix mbstouwcs
2280 Patch by Martin Buchholz <martin@xemacs.org>.
2282 * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
2283 Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2285 2000-12-11 Andreas Jaeger <aj@suse.de>
2287 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
2288 kernel_sigset_t and use it.
2289 Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
2291 2000-12-10 Richard Henderson <rth@redhat.com>
2293 * sysdeps/alpha/alphaev67/fpu/Implies: New file.
2294 * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
2295 * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
2297 2000-12-10 Jakub Jelinek <jakub@redhat.com>
2299 * sysdeps/alpha/htonl.S: Fix a typo.
2301 2000-12-10 Jakub Jelinek <jakub@redhat.com>
2303 * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
2305 2000-12-10 Andreas Jaeger <aj@suse.de>
2307 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
2308 cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
2309 Drepper <drepper@redhat.com>.
2311 2000-12-09 Andreas Jaeger <aj@suse.de>
2313 * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
2315 * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
2317 Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
2319 * locale/programs/ld-collate.c (handle_ellipsis): Fix format
2322 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
2325 * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
2326 * nscd/connections.c (handle_request): Likewise.
2327 * nscd/pwdcache.c (addpwbyname): Likewise.
2328 * nscd/grpcache.c (addgrbyname): Likewise.
2330 * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
2332 2000-12-09 Ulrich Drepper <drepper@redhat.com>
2334 * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
2336 * Makeconfig (default_cflags): Make -O2 the default for stable
2339 2000-12-08 H.J. Lu <hjl@gnu.org>
2341 * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
2342 * sysdeps/ia64/fpu/s_isinf.S: This.
2343 Add a .pred.rel.mutex note to avoid false report.
2345 * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
2346 * sysdeps/ia64/fpu/s_isnan.S: This.
2348 * sysdeps/ia64/fpu/s_fpclassify.S: New file.
2349 * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
2350 * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
2351 * sysdeps/ia64/fpu/s_isinff.S: New file.
2352 * sysdeps/ia64/fpu/s_isinfl.S: New file.
2353 * sysdeps/ia64/fpu/s_isnanf.S: New file.
2354 * sysdeps/ia64/fpu/s_isnanl.S: New file.
2355 * sysdeps/ia64/fpu/s_finite.S: New file.
2356 * sysdeps/ia64/fpu/s_finitef.S: New file.
2357 * sysdeps/ia64/fpu/s_finitel.S: New file.
2358 * sysdeps/ia64/fpu/s_signbit.S: New file.
2359 * sysdeps/ia64/fpu/s_signbitf.S: New file.
2360 * sysdeps/ia64/fpu/s_signbitl.S: New file.
2361 * sysdeps/ia64/fpu/s_copysign.S: New file.
2362 * sysdeps/ia64/fpu/s_copysignf.S: New file.
2363 * sysdeps/ia64/fpu/s_copysignl.S: New file.
2365 2000-12-08 Ulrich Drepper <drepper@redhat.com>
2367 * math/libm-test.inc (main): Fix typos in messages.
2369 * string/stratcliff.c: Add test for rawmemchr.
2371 2000-12-08 Jakub Jelinek <jakub@redhat.com>
2373 * elf/dl-open.c (_dl_open): If objname points right after errstring,
2374 allocate it together with errstring using alloca.
2375 * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
2376 to "", because it might point to local stack.
2378 2000-12-05 H.J. Lu <hjl@gnu.org>
2380 * nss/Makefile (routines): Add getnssent and getnssent_r.
2381 * nss/nsswitch.h (__nss_setent): New internal NSS function.
2382 (__nss_endent): Likewise.
2383 (__nss_getent_r): Likewise.
2384 (__nss_getent): Likewise.
2385 * nss/getnssent_r.c: New file.
2386 * nss/getnssent.c: New file.
2387 * nss/getXXent.c (H_ERRNO_VAR): Updated.
2388 (GETFUNC_NAME): Updated to call __nss_getent ().
2389 * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
2390 (STAYOPEN_TMPVAR): Updated.
2391 (STAYOPEN_VAR): Updated.
2392 (SETFUNC_NAME): Updated to call __nss_setent ().
2393 (ENDFUNC_NAME): Updated to call __nss_endent ().
2394 (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
2396 2000-12-08 Andreas Jaeger <aj@suse.de>
2398 * nscd/dbg_log.h (dbg_log): Correct attribute.
2400 2000-12-08 Jakub Jelinek <jakub@redhat.com>
2402 * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
2403 cp + len. Compute where from dirname.
2404 Reported by <jreiser@BitWagon.com>.
2406 2000-12-08 Richard Henderson <rth@twiddle.net>
2408 * sysdeps/alpha/_mcount.S: Fix typo.
2409 * sysdeps/alpha/strncpy.S: Likewise.
2411 * sysdeps/alpha/alphaev6/Implies: New file.
2412 * sysdeps/alpha/alphaev67/Implies: New file.
2413 * sysdeps/alpha/alphaev67/ffs.S: New file.
2414 * sysdeps/alpha/alphaev67/ffsll.S: New file.
2415 * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
2416 * sysdeps/alpha/alphaev67/stpcpy.S: New file.
2417 * sysdeps/alpha/alphaev67/stpncpy.S: New file.
2418 * sysdeps/alpha/rawmemchr.S: New file.
2419 * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
2420 * sysdeps/alpha/strcpy.S: Likewise.
2423 * sysdeps/alpha/alphaev6/addmul_1.s: New file.
2425 From rick.gorton@alpha-processor.com:
2426 * sysdeps/alpha/alphaev6/memchr.S: New file.
2427 * sysdeps/alpha/alphaev6/memcpy.S: New file.
2428 * sysdeps/alpha/alphaev6/memset.S: New file.
2429 * sysdeps/alpha/alphaev6/stxcpy.S: New file.
2430 * sysdeps/alpha/alphaev6/stxncpy.S: New file.
2431 * sysdeps/alpha/alphaev67/strcat.S: New file.
2432 * sysdeps/alpha/alphaev67/strchr.S: New file.
2433 * sysdeps/alpha/alphaev67/strlen.S: New file.
2434 * sysdeps/alpha/alphaev67/strncat.S: New file.
2435 * sysdeps/alpha/htonl.S: Use a shorter sequence.
2437 2000-12-08 Jakub Jelinek <jakub@redhat.com>
2439 * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
2440 Reported by <pspencer@fields.utoronto.ca>.
2442 2000-12-07 Jes Sorensen <jes@linuxcare.com>
2444 * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
2445 Pointed out by Hans Boehm.
2447 2000-12-07 H.J. Lu <hjl@gnu.org>
2449 * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
2451 2000-12-07 Andreas Jaeger <aj@suse.de>
2453 * misc/error.c: Add format attributes for __error and __error_at_line.
2455 * nscd/dbg_log.h: Add format attribute.
2457 2000-12-08 Ulrich Drepper <drepper@redhat.com>
2459 * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
2460 Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
2462 2000-12-07 Dan Pop <Dan.Pop@cern.ch>
2464 * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
2466 2000-12-06 Ulrich Drepper <drepper@redhat.com>
2468 * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
2469 (sysdep_routines): Add uitrunc.
2470 * sysdeps/unix/sysv/aix/uitrunc.c: New file.
2471 Patches by Michael Keezer <mkeezer@redhat.com>.
2473 2000-12-06 Roland McGrath <roland@frob.com>
2475 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
2476 argument data, since it will be used to copy out too (for INOUT).
2477 Reported by Marcus Brinkmann <marcus@gnu.org>.
2479 * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
2480 (__ioctl): Use uintptr_t instead of unsigned long int.
2482 2000-12-06 Jim Wilson <wilson@redhat.com>
2484 * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
2486 2000-12-06 Ulrich Drepper <drepper@redhat.com>
2488 * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
2489 x.5 rounding correctly.
2491 2000-12-06 Mark Kettenis <kettenis@gnu.org>
2493 * stdio-common/perror.c (perror): Conditionalize code dealing with
2494 wide-oriented streams on USE_IN_LIBIO.
2496 2000-12-06 Mark Kettenis <kettenis@gnu.org>
2498 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
2499 as internal_function.
2501 2000-12-05 Ulrich Drepper <drepper@redhat.com>
2503 * sysdeps/alpha/elf/start.S (__data_start): Define.
2505 2000-12-05 H.J. Lu <hjl@gnu.org>
2507 * nss/getXXent_r.c (setup): Change the return type to int.
2509 2000-12-05 Ulrich Drepper <drepper@redhat.com>
2511 * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
2512 (sysdep_routines): Add restf and savef.
2513 * sysdeps/unix/sysv/aix/restf.c: New file.
2514 * sysdeps/unix/sysv/aix/savef.c: New file.
2515 Patches by Michael Keezer <mkeezer@redhat.com>.
2517 * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
2518 if O_DIRECTORY is not defined.
2519 Patch by Michael Keezer <mkeezer@redhat.com>.
2521 * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
2522 Patch by Michael Keezer <mkeezer@redhat.com>.
2524 * locale/programs/linereader.c (get_toplvl_escape): Recognize more
2525 than 4 bytes in escape sequence.
2526 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2528 2000-12-05 Andreas Jaeger <aj@suse.de>
2530 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
2533 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
2535 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
2537 * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
2538 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2540 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
2542 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
2543 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
2545 * sysdeps/generic/dl-cache.c: Remove declaration of
2546 _dl_sysdep_read_whole_file.
2548 * elf/dl-load.c (_dl_map_object): Remove declaration of
2549 _dl_load_cache_lookup.
2551 * sysdeps/generic/ldsodefs.h: Add declarations of
2552 _dl_load_cache_lookup, _dl_unload_cache,
2553 _dl_sysdep_read_whole_file, _dl_sysdep_start and
2554 _dl_sysdep_start_cleanup.
2556 * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
2559 * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
2560 * sysdeps/generic/dl-environ.c: Likewise.
2562 * stdio-common/printf_fp.c: Include <gmp.h> instead of
2564 * math/atest-exp.c: Likewise.
2565 * math/atest-exp2.c: Likewise.
2566 * math/atest-sincos.c: Likewise.
2567 * stdio-common/_itoa.c: Likewise.
2568 * stdio-common/_itowa.c: Likewise.
2570 * include/gmp.h: New file with internal prototypes.
2572 * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
2574 * include/setjmp.h: ...here.
2576 * locale/Makefile (routines): Remove codeset_name since it's not
2579 * locale/codeset_name.c: Removed.
2581 2000-12-05 Ulrich Drepper <drepper@redhat.com>
2583 * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
2585 2000-12-05 Andreas Jaeger <aj@suse.de>
2587 * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
2589 2000-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2591 * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
2594 2000-12-05 Andreas Jaeger <aj@suse.de>
2596 * nss/test-netdb.c: Mark local functions as static to avoid
2598 (main): Use return to silence warning.
2600 * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
2602 * stdio-common/test-popen.c: Mark local functions as static to
2604 (main): Use return to silence warning.
2606 * stdlib/testsort.c (compare): Mark as static to avoid warning.
2608 * assert/test-assert.c: Mark local functions as static to avoid
2610 * assert/test-assert-perr.c: Likewise.
2612 * math/libm-test.inc (main): Use return to silence warnings.
2614 2000-12-04 Ulrich Drepper <drepper@redhat.com>
2616 * math/fenv.h: Fix typo in comment.
2618 * math/test-misc.c (main): Add a few more over and underflow tests
2621 * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
2622 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2623 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2624 * math/w_scalb.c: Don't use matherr except in SVID mode.
2625 * math/w_scalbf.c: Likewise.
2626 * math/w_scalbl.c: Likewise.
2627 * math/test-misc.c: Add test for NaN and scalbl.
2628 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2630 2000-12-04 Ulrich Drepper <drepper@redhat.com>
2632 * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
2633 * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
2634 * include/libc-symbols.h (strong_alias): Define special version
2635 for HAVE_ASM_GLOBAL_DOT_NAME.
2636 (weak_alias): Likewise.
2637 * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
2638 * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
2639 (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
2640 getutxline, pututxline, and utmpxname.
2641 * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
2642 * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
2643 * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
2644 * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
2645 * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
2646 * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
2647 * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
2648 * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup. Add comments.
2649 * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
2650 Patches by Michael Keezer <mkeezer@redhat.com>.
2652 2000-12-04 H.J. Lu <hjl@gnu.org>
2654 * configure.in: Change --with-oldest-abi=ABI to
2655 --enable-oldest-abi=ABI.
2657 2000-12-02 Bruno Haible <haible@clisp.cons.org>
2659 * stdio-common/perror.c (perror): If stderr is wide-oriented, use
2660 fwprintf instead of fprintf.
2662 2000-12-04 Ulrich Drepper <drepper@redhat.com>
2664 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
2665 DECIMAL_DIG definitions.
2666 * sysdeps/arm/fpu/bits/mathdef.h: Likewise
2667 * sysdeps/generic/bits/mathdef.h: Likewise
2668 * sysdeps/i386/fpu/bits/mathdef.h: Likewise
2669 * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
2670 * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
2671 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
2672 * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
2673 * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
2675 2000-12-03 Ulrich Drepper <drepper@redhat.com>
2677 * math/test-fenv.c (main): Use return instead of exit to avoid warning.
2679 * math/atest-exp.c: Mark local functions as static to avoid warnings.
2680 * math/atest-exp2.c: Likewise.
2681 * math/atest-sincos.c: Likewise.
2683 * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
2684 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2686 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
2687 the handling of denormalized numbers.
2689 * math/test-misc.c (main): Test for fpclassify and pseudo denormal
2691 * sysdeps/i386/fpu/fpclassifyl.c: New file.
2693 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
2694 pseudo denormal representation of LDBL_MIN.
2696 * iconvdata/SJIS.irreversible: Remove unnecessary entries.
2697 * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
2699 * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
2700 * iconvdata/jis0208.c: Likewise.
2701 * iconvdata/jis0212.c: Likewise.
2702 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2704 * math/test-misc.c (main): More tests for frexp and some for
2705 fpclassify and isnormal.
2707 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
2709 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2711 * math/test-misc.c (main): Add tests for frexp.
2712 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2713 * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
2715 2000-12-02 H.J. Lu <hjl@gnu.org>
2717 * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
2720 2000-12-02 Ulrich Drepper <drepper@redhat.com>
2722 * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
2723 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2724 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2726 * sysdeps/generic/glob.c: Adjust types of several variables to
2729 2000-12-01 Ulrich Drepper <drepper@redhat.com>
2731 * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
2733 2000-11-30 Roland McGrath <roland@frob.com>
2735 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
2736 (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
2737 allow multiple instances using the same function name in one file.
2739 2000-12-01 Ulrich Drepper <drepper@redhat.com>
2741 * configure.in: Correct test for pserver CVS access.
2743 2000-11-28 H.J. Lu <hjl@gnu.org>
2745 * libio/libio.h: Remove extra "#if ... #endif".
2747 2000-11-29 H.J. Lu <hjl@gnu.org>
2749 * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
2751 2000-12-01 H.J. Lu <hjl@gnu.org>
2753 * nss/getXXbyYY_r.c: Fix verioned symbol handling.
2754 * nss/getXXent_r.c: Likewise.
2755 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2757 2000-11-30 H.J. Lu <hjl@gnu.org>
2759 * scripts/abi-versions.awk (oldest_abi): New variable.
2760 Handle the oldest ABI supported.
2762 * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
2763 for scripts/abi-versions.awk.
2765 * configure.in: Add --with-oldest-abi=ABI.
2766 * configure: Rebuild.
2768 * config.make.in (oldest-abi): New.
2770 * config.h.in (GLIBC_OLDEST_ABI): New.
2772 * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
2774 2000-11-30 Jakub Jelinek <jakub@redhat.com>
2776 * locale/setlocale.c (setname): Free for all categories, not just
2778 (setlocale): Store a copy of string passed by user, not the string
2781 2000-11-30 Roland McGrath <roland@frob.com>
2783 * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
2784 rather than _hurd_fd_subinit, so it happens after it's safe to use
2785 libc facilities like malloc.
2787 2000-11-28 Andreas Jaeger <aj@suse.de>
2789 * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
2790 declaration, adjust declaration of __syscall_getdents to match
2793 2000-11-29 H.J. Lu <hjl@gnu.org>
2795 * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
2797 2000-11-29 Andreas Jaeger <aj@suse.de>
2799 * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
2801 2000-11-28 Ulrich Drepper <drepper@redhat.com>
2803 * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
2804 * dlfcn/defaultmod2.c: Likewise.
2805 * dlfcn/dlopen.c: Likewise.
2806 * dlfcn/dlopenold.c: Likewise.
2807 * dlfcn/failtestmod.c: Likewise.
2808 * dlfcn/glreflib1.c: Likewise.
2809 * dlfcn/glreflib2.c: Likewise.
2810 * dlfcn/eval.c: Likewise. Add attributes.
2812 * ctype/ctype-extn.c: Define isblank and not __isblank.
2814 * time/strftime.c: Add const where necessary to avoid warnings.
2815 * time/strptime.c (strptime_internal): Add casts to avoid warnings.
2817 2000-11-22 Paul Eggert <eggert@twinsun.com>
2819 * time/strftime.c (my_strftime): Do not invoke mbrlen with a
2820 size of (size_t) -1; it's not portable.
2822 2000-11-28 Ulrich Drepper <drepper@redhat.com>
2824 * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
2826 Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
2828 2000-11-14 Jes Sorensen <jes@linuxcare.com>
2830 * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
2832 * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
2833 _mcount is required by profiled binaries.
2835 * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
2836 * sysdeps/ia64/machine-gmon.h: ...here.
2838 2000-11-28 Masahide Washizawa <washi@jp.ibm.com>
2840 * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
2841 (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
2843 * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
2845 * iconvdata/ibm922.c: New file.
2846 * iconvdata/ibm922.h: New file.
2847 * iconvdata/ibm1124.c: New file.
2848 * iconvdata/ibm1124.h: New file.
2849 * iconvdata/ibm1129.c: New file.
2850 * iconvdata/ibm1129.h: New file.
2851 * iconvdata/testdata/IBM922: New file.
2852 * iconvdata/testdata/IBM922..UTF8: New file.
2853 * iconvdata/testdata/IBM1124: New file.
2854 * iconvdata/testdata/IBM1124..UTF8: New file.
2855 * iconvdata/testdata/IBM1129: New file.
2856 * iconvdata/testdata/IBM1129..UTF8: New file.
2858 2000-11-28 Ulrich Drepper <drepper@redhat.com>
2860 * catgets/gencat.c (normalize_line): Take extra parameter with escape
2861 character. Change callers.
2862 (open_conversion): Determine mapping of 0x5c as wchar_t value.
2863 * catgets/Makefile: Add rules to build and run test-gencat.
2864 * catgets/sample.SJIS: New file.
2865 * catgets/test-gencat.c: New file.
2866 * catgets/test-gencat.sh: New file.
2867 Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2869 2000-11-28 Andreas Jaeger <aj@suse.de>
2871 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
2874 2000-11-28 Ulrich Drepper <drepper@redhat.com>
2876 * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
2878 2000-11-28 Andreas Jaeger <aj@suse.de>
2880 * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
2882 * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
2885 2000-11-27 Ulrich Drepper <drepper@redhat.com>
2887 * misc/getusershell.c: Make strings in okshells array const.
2888 * misc/regexp.c: Add const to cast to avoid warnings.
2889 * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
2890 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
2892 * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
2894 * misc/error.c: Add prototypes for __error and __error_at_line.
2895 * misc/mntent_r.c (__getmntent_r): Add break at end of switch
2896 statement to avoid warning.
2897 * test-skeleton.c: Mark timeout_handler with noreturn.
2898 * iconv/skeleton.c (get16u): Add const to cast.
2900 * iconvdata/gb18030.c: Likewise.
2901 * iconvdata/iso-2022-cn-ext.c: Likewise.
2902 * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
2903 * iconvdata/big5.c: Likewise.
2904 * iconvdata/big5hkscs.c: Likewise.
2905 * iconvdata/iso_6937.c: Likewise.
2906 * iconvdata/iso_6937-2.c: Likewise.
2907 * iconvdata/t.61.c: Likewise.
2908 * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
2909 * iconvdata/unicode.c: Likewise.
2910 * iconvdata/utf-16.c: Likewise.
2911 * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
2912 * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
2913 with little code shuffling.
2915 * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
2916 the problems introduced when the user selects -O3.
2918 * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
2919 * misc/sys/cdefs.h: Define __flexarr.
2920 Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
2922 * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
2923 * iconv/skeleton.c: Likewise.
2924 * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
2925 * iconv/loop.c (get16): Add const to cast.
2928 2000-11-27 Andreas Jaeger <aj@suse.de>
2930 * login/programs/pt_chown.c (do_pt_chown): Mark function as static
2932 * login/programs/utmpdump.c (print_entry): Likewise.
2934 2000-11-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2936 * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
2937 in a single asm as they may be used to access other stored
2939 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2941 2000-11-27 Andreas Jaeger <aj@suse.de>
2943 * rt/tst-aio.c: Mark test functions as static to avoid warnings.
2944 * rt/tst-aio64.c: Likewise.
2946 2000-11-27 Ulrich Drepper <drepper@redhat.com>
2948 * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
2950 (libc.cat): Likewise.
2951 * catgets/gencat.c: Implement handling of message catalogs encoded
2952 with stateful character sets.
2953 Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2955 2000-11-26 Ulrich Drepper <drepper@redhat.com>
2957 * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
2959 * inet/getnameinfo.c: Adjust casts to avoid warnings.
2960 * inet/rcmd.c: Likewise.
2961 * inet/ruserpass.c: Likewise.
2962 * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
2963 IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
2964 IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
2965 IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
2966 IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
2967 IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
2968 * include/aliases.h: Add prototypes for internal __getalias* functions.
2969 * include/netdb.h: Add prototypes for __old_gethostent_r,
2970 __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
2971 __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
2972 __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
2973 __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
2974 * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
2975 __old_getrpcbynumber_r, __old_getrpcent_r.
2977 * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
2978 __getrpcent_r prototypes.
2980 2000-11-25 Ulrich Drepper <drepper@redhat.com>
2982 * string/strcoll.c: Add casts to avoid warnings.
2983 * string/strnlen.c: Likewise.
2984 * string/strxfrm.c: Likewise.
2985 * sysdeps/generic/_strerror.c: Likewise.
2986 * sysdeps/generic/memrchr.c: Likewise.
2987 * sysdeps/generic/strcasestr.c: Likewise.
2988 * sysdeps/generic/strstr.c: Likewise.
2990 * locale/weight.h (findidx): Add const to cast to avoid warning.
2992 * elf/loadfail.c: Little cosmetic changes to avoid warnings.
2993 * elf/loadtest.c: Likewise.
2994 * elf/multiload.c: Likewise.
2995 * elf/next.c: Likewise.
2996 * elf/nodelete.c: Likewise.
2997 * elf/noload.c: Likewise.
2998 * elf/order.c: Likewise.
2999 * elf/origtest.c: Likewise.
3000 * elf/preloadtest.c: Likewise.
3001 * elf/restest1.c: Likewise.
3003 * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
3004 parameter of asm must be in %ecx.
3006 * string/tester.c: Mark test functions as static to avoid warnings.
3008 * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
3009 preserve value over different gconv-modules files.
3011 2000-11-24 Ulrich Drepper <drepper@redhat.com>
3013 * locale/findlocale.c: Add casts to avoid warnings.
3014 * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
3015 * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
3017 * misc/tsearch.c (const_node): New type.
3018 (trecurse): Correct casts to avoid warnings.
3019 (__twalk): Likewise.
3020 * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
3023 * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
3025 * test-skeleton.c: Mark local functions as static to avoid warnings.
3027 2000-11-23 H.J. Lu <hjl@gnu.org>
3029 * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
3030 support the background job.
3033 2000-11-24 Ulrich Drepper <drepper@redhat.com>
3035 * iconv/gconv_conf.c (insert_module): Replace old entry if new one
3036 has same names but lower cost.
3038 2000-11-23 Jakub Jelinek <jakub@redhat.com>
3040 * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
3041 which never occur during bootstrap.
3042 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3044 2000-11-23 Andreas Jaeger <aj@suse.de>
3046 * nss/nss_files/files-hosts.c: Remove getipnodebyname.
3048 * nss/Versions: Remove _nss_files_getipnodebyname_r.
3050 * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
3052 2000-11-18 Martin Buchholz <martin@xemacs.org>
3054 * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
3057 2000-11-21 Alan Modra <alan@linuxcare.com.au>
3059 * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
3061 * csu/abi-note.S: Correct comment for operating system number.
3063 2000-11-22 Ulrich Drepper <drepper@redhat.com>
3065 * Versions.def: Add GLIBC_2.2.1 for glibc.
3067 2000-11-22 Andreas Schwab <schwab@suse.de>
3069 * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
3070 * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
3072 2000-11-22 Ulrich Drepper <drepper@redhat.com>
3074 * rt/aio_suspend.c (aio_suspend): Convert timeout value to
3075 absolute time for pthread_cond_timedwait call.
3076 Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
3078 * rt/Makefile (tests): Add tst-aio6.
3079 * rt/tst-aio6.c: New file.
3081 2000-11-23 Andreas Jaeger <aj@suse.de>
3083 * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
3085 2000-11-22 Andreas Jaeger <aj@suse.de>
3087 * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
3089 2000-11-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
3091 * sysdeps/s390/bits/string.h: Make strncat always add a \0.
3093 2000-11-21 Andreas Schwab <schwab@suse.de>
3095 * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
3096 * sysdeps/arm/setjmp.S: Likewise.
3097 * sysdeps/arm/fpu/setjmp.S: Likewise.
3098 * sysdeps/i386/setjmp.S: Likewise.
3099 * sysdeps/i386/elf/setjmp.S: Likewise.
3100 * sysdeps/s390/setjmp.S: Likewise.
3101 * sysdeps/s390/elf/setjmp.S: Likewise.
3102 * sysdeps/sh/sh3/setjmp.S: Likewise.
3103 * sysdeps/sh/sh4/setjmp.S: Likewise.
3104 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3105 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3106 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3107 * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
3109 2000-11-21 Andreas Jaeger <aj@suse.de>
3111 * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
3112 NORETURN, fix parameter list.
3114 * string/bug-strncat1.c (main): Fix typo.
3115 Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
3117 2000-11-20 Ulrich Drepper <drepper@redhat.com>
3119 * configure.in: Add --enable-all-warnings.
3120 * config.make.in (all-warnings): New variable.
3121 * Makeconfig (+gccwarn): Define with many more warnings if
3122 all-warnings is yes.
3124 2000-11-20 Jakub Jelinek <jakub@redhat.com>
3126 * iconvdata/bug-iconv2.c (main): Use %zd in format string.
3127 * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
3128 * malloc/tst-valloc.c (main): Cast valloc return value to long.
3129 * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
3130 * math/test-fpucw.c (main): Use %lx in format string, cast
3131 control words to long.
3132 * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
3133 * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
3134 large that it is unsigned warning.
3136 * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
3137 it to long on sparc64.
3139 2000-11-20 Andreas Jaeger <aj@suse.de>
3141 * nscd/nscd.h (termination_handler): Add noreturn attribute.
3142 (receiv_print_stats): Likewise.
3144 * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
3146 2000-11-20 Ulrich Drepper <drepper@redhat.com>
3148 * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
3150 * csu/gmon-start.c: Always have prototype for __gmon_start.
3151 * csu/version.c: Add prototypes for __libc_print_version and
3153 * iconv/gconv.c: Include gconv_int.h and gconv.h.
3154 * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
3156 * iconv/gconv_builtin.h: Add ASCII module definitions.
3157 * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
3158 (add_module): Add cast to avoid warning. Rework construction of
3159 strings for new module.
3160 * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
3161 (derivation_compare): Likewise.
3162 * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
3163 (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
3164 * iconv/gconv_int.h (__gconv_path_elem): Remove const.
3165 (struct gconv_alias): Remove const from fromname and toname.
3166 * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
3168 (internal_ucs4_loop): Use correct const-ness.
3169 (ucs4_internal_loop): Likewise.
3170 (internal_ucs4le_loop): Likewise.
3171 (ucs4le_internal_loop_single): Likewise.
3172 * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
3173 to_idx, to_tbl, winbuf, winbufend const. Change casts in
3174 assignments appropriately.
3175 (struct known_trans): Remove const from fname.
3176 (trans_compare): Make s1 and s2 const.
3177 * iconv/loop.c (LOOPFC): Make outend parameter const. Add cast to
3179 * iconv/skeleton.c: Remove cast in calls of loop functions.
3180 * iconvdata/gconv-modules: Remove US-ASCII definitions.
3181 * iconvdata/iso646.c: Remove US_ASCII support.
3182 * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
3183 * include/unistd.h: Add __libc_check_standard_fds prototype.
3184 * string/bits/string2.h (__mempcpy_args): Add const to casts.
3185 * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
3187 * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
3188 * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
3189 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
3191 * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
3192 __libc_init_first and _dl_start.
3193 * intl/dcigettext.c (transcmp): Make s1 and s2 const.
3194 (DCIGETTEXT): Make domaindata variable const.
3195 * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
3198 2000-11-20 Hiroyuki Machida <machida@sm.sony.co.jp>
3200 * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
3202 * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
3203 time_t to 'long int' not, 'unsigned int'. Use 'long int' for
3206 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
3207 value defined in /usr/include/asm-mips/fcntl.h.
3209 2000-11-18 Ulrich Drepper <drepper@redhat.com>
3211 * stdio-common/Makefile (tests): Add test-vfprintf.
3212 (test-vfprintf-ENV): New variable.
3213 * stdio-common/test-vfprintf.c: New file.
3215 * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
3217 * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
3218 (tst-mbrtowc-ENV): New variable.
3219 (tst-wcrtomb-ENV): New variable.
3220 * wcsmbs/tst-mbrtowc.c: New file.
3221 * wcsmbs/tst-wcrtomb.c: New file.
3223 2000-11-16 Andreas Jaeger <aj@suse.de>
3225 * manual/install.texi (Tools for Compilation): Update
3226 documentation for GCC 2.95.2.
3228 2000-11-18 Ulrich Drepper <drepper@redhat.com>
3230 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
3231 if IPv4 and IPv6 requests timed out.
3233 2000-11-18 Akim Demaille <akim@epita.fr>
3235 * malloc/obstack.h: Formatting changes.
3236 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3237 prevents type checking.
3238 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3239 cast the value to (void *): assigning a `foo *' to a `void *'
3241 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3243 2000-11-17 Ulrich Drepper <drepper@redhat.com>
3245 * scripts/config.guess: Update from upstream maintainer.
3246 * scripts/config.sub: Likewise.
3248 2000-11-16 Ulrich Drepper <drepper@redhat.com>
3250 * libio/freopen.c (freopen): Reset _mode after succesful reopening.
3251 * libio/freopen64.c (freopen64): Likewise.
3252 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3254 * libio/Makefile: Add rules to build and run test-freopen.
3255 * libio/test-freopen.c: New file.
3256 * libio/test-freopen.sh: New file.
3258 2000-11-15 H.J. Lu <hjl@gnu.org>
3260 * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
3261 ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
3262 (DL_DT_FINI_ADDRESS): Likewise.
3264 * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
3265 return type to ElfW(Addr).
3266 (_dl_function_address): New prototype.
3267 (DL_FUNCTION_ADDRESS): Defined.
3268 (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
3269 (DL_DT_FINI_ADDRESS): Likewise.
3271 * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
3273 * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
3274 (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
3276 * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
3277 (_dl_function_address): This.
3279 * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
3280 function pointer for DT_FINI.
3281 * elf/dl-close.c (_dl_close): Likewise.
3283 * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
3284 function pointer for DT_INIT.
3286 2000-11-16 Jakub Jelinek <jakub@redhat.com>
3288 * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
3289 end of wexpbuf buffer.
3291 2000-11-16 Andreas Jaeger <aj@suse.de>
3293 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
3294 definition of F_GETLK, F_SETLK, F_SETLKW.
3296 2000-11-16 Andreas Jaeger <aj@suse.de>
3298 * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
3301 2000-11-15 Jakub Jelinek <jakub@redhat.com>
3303 * dlfcn/default.c (main): Add test for dladdr of main returning
3304 argv[0] in dli_fname field.
3306 2000-11-15 Jakub Jelinek <jakub@redhat.com>
3308 * Makeconfig (run-program-prefix): Move test-static test into the
3311 * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
3312 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
3313 schedule instructions.
3314 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
3315 schedule instructions, fix a bug in copying auxiliary data.
3317 2000-11-15 Ulrich Drepper <drepper@redhat.com>
3319 * manual/startup.texi (Program Arguments): Fix type of main's envp
3321 Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
3323 * iconvdata/gconv-modules: Add CP950 alias.
3325 2000-11-13 Jakub Jelinek <jakub@redhat.com>
3327 * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
3328 syscall-list.h goal.
3329 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
3331 2000-11-15 Ulrich Drepper <drepper@redhat.com>
3333 * intl/Makefile: tst-gettext2.sh does not need a third parameter.
3335 * intl/tst-gettext2.sh: Copy locale data. Adjust LOCPATH. Verify
3338 * intl/tst-gettext2.c: Set C locale if setting other locale
3339 failed. Use gettext() not _().
3341 * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
3342 successfully loaded a new locale.
3344 2000-11-13 Andreas Jaeger <aj@suse.de>
3346 * configure.in: Require gcc 2.95 or newer.
3348 2000-11-15 Ulrich Drepper <drepper@redhat.com>
3350 * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
3351 Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
3353 2000-11-11 Jim Meyering <meyering@lucent.com>
3355 * string/strndup.c (strndup): Cast return value to `char *'.
3357 2000-11-15 Jim Meyering <meyering@ascend.com>
3359 * sysdeps/generic/memchr.c: Remove some useless parentheses.
3360 [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
3361 [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
3362 [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
3363 Also #undef __memchr.
3364 Use `weak_alias' only if it's defined.
3366 2000-11-10 H.J. Lu <hjl@gnu.org>
3368 * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
3370 2000-11-15 Andreas Jaeger <aj@suse.de>
3372 * elf/chroot_canon.c: Include <stdint.h>.
3374 * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
3375 (print_entry): Likewise.
3376 (add_to_cache): Likewise.
3378 * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
3380 * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
3381 (path_hwcap): Likewise.
3382 (search_dir): Likewise.
3384 * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
3386 * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
3388 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3389 (_dl_platform_string): New.
3390 (_DL_HWCAP_PLATFORM): New.
3391 (_dl_string_platform): New.
3392 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
3394 * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
3395 (_dl_string_platform): New.
3396 (_DL_HWCAP_PLATFORM): New.
3397 (_dl_platform_string): New.
3399 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
3401 (_DL_HWCAP_COUNT): New.
3402 (_dl_string_platform): New.
3403 (_DL_HWCAP_PLATFORM): New.
3404 (_dl_platform_string): New.
3406 2000-11-14 Ulrich Drepper <drepper@redhat.com>
3408 * iconvdata/gconv-modules: Add CP936 as alias for GBK.
3410 2000-11-14 Andreas Jaeger <aj@suse.de>
3412 * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
3414 2000-11-13 Roland McGrath <roland@frob.com>
3416 * hurd/get-host.c (_hurd_get_host_config): Fix last change.
3418 2000-11-13 Marcus Brinkmann <marcus@gnu.org>
3420 * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
3421 underrun and make sure the result is null terminated even if there
3422 is no trailing newline.
3424 2000-11-13 Jakub Jelinek <jakub@redhat.com>
3426 * sysdeps/alpha/fpu/libm-test-ulps: Update.
3428 2000-11-10 H.J. Lu <hjl@gnu.org>
3430 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3432 2000-11-10 Andreas Jaeger <aj@suse.de>
3434 * elf/ldconfig.c (create_links): Fix alloca calculation.
3435 Patch by Ben Collins <bcollins@debian.org>.
3437 2000-11-09 Ulrich Drepper <drepper@redhat.com>
3439 * inet/getnameinfo.c (getnameinfo): Use correct destination
3440 parameter for if_indextoname.
3441 Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
3443 2000-11-09 H.J. Lu <hjl@gnu.org>
3445 * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
3446 xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
3447 xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
3450 * time/Versions (GLIBC_2.1): Move getitimer to...
3451 * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
3453 2000-11-03 Bruno Haible <haible@clisp.cons.org>
3455 * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
3456 "make install", to work around a binary incompatibility between
3457 glibc 2.1 and glibc 2.2 gconv modules.
3459 2000-11-09 Ulrich Drepper <drepper@redhat.com>
3461 * intl/locale.alias: Add thai.
3462 Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
3464 2000-11-07 Akim Demaille <akim@epita.fr>
3466 * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
3467 argument `data' for consistency with the prototypes.
3469 (obstack_copy, obstack_copy0): Rename the second argument as
3470 `address' for consistency. Qualify it `const'.
3471 * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3472 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3473 `const' their input argument (`data' or `address').
3474 Adjust the corresponding macros to include `const' in casts.
3476 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3478 * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
3481 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3483 * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
3486 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3488 * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
3489 ai_protocol by internal table if service was not given.
3491 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3493 * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
3494 numerical port was specified with protocol without socktype.
3496 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3498 * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
3500 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3502 * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
3504 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3506 * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
3507 sin6_scope_id field.
3509 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3511 * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
3513 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3515 * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
3517 2000-11-06 Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
3519 * inet/getnameinfo.c: Wake-up sin6_scope_id support in
3520 getnameinfo(): check for whether sin6_socpe_id exist was wrong.
3522 2000-11-09 Martin Schwidefsky <mschwide@nc.boeblingen.de.ibm.com>
3524 * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
3525 * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
3527 2000-11-09 H.J. Lu <hjl@gnu.org>
3529 * io/Versions (GLIBC_2.1.1): Remove lockf64.
3532 See ChangeLog.11 for earlier changes.