Locale files from IBM.
[glibc.git] / ChangeLog
blob0d9b83637815f29c026524bb897b9c6bc5d61801
1 2001-02-07  Andreas Jaeger  <aj@suse.de>
3         * manual/install.texi (Tools for Compilation): Fix typo.
4         Reported by Pavel Machek <pavel@bug.ucw.cz>.
6 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
8         * stdlib/strtod.c: Never stop prematurely reading digits before the
9         decimal point is found.  Compute exponent limit for negative exponents
10         correctly.  For numbers ending in all zeros eat the zeroes even before
11         the decimal point if the exponent is negative [PR libc/2072].
12         * stdlib/Makefile (tests): Add bug-strtod.
13         * stdlib/bug-strtod.c: New file.
15 2001-02-07  Andreas Jaeger  <aj@suse.de>
17         * posix/bug-regex1.c: Include <wchar.h> for fwide.
19 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
21         * posix/regex.c (regex_compile): Don't store pointer in wchar_t array.
22         Store index.
23         (compile_range): Handle index being passed, not pointer.
24         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
26         * posix/regex.c: Fix a cast in the code for bracket handling which
27         caused 8-bit uncleanliness.
28         Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.
30         * posix/Makefile (tests): Add bug-regex1.
31         * posix/bug-regex1.c: New file.
32         Contributed by Jim Meyering <jim@meyering.net>.
34         * posix/regex.c: Many cleanups for incorrect format strings.
36 2001-02-06  Andreas Jaeger  <aj@suse.de>
38         * time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
40 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
42         * locale/programs/locale.c (write_locales): Use scandir to read
43         directory so that the entries are sorted.
45 2001-02-06  Andreas Jaeger  <aj@suse.de>
47         * include/pthread.h: New file.
49         * wctype/wctype.h: Move internal interfaces from here to...
50         * include/wctype.h: ...here.
52         * wcsmbs/wchar.h: Move __wcslen from here to...
53         * include/wchar.h: ...here.
55         * posix/sys/wait.h: Move __wait from here to...
56         * include/sys/wait.h: ...here.
58         * string/string.h: Move __ffs and __strerror_r from here to...
59         * include/string.h: ...here.
61         * stdlib/stdlib.h: Move __on_exit from here to...
62         * include/stdlib.h: ...here.
64         * libio/stdio.h: Move __vsnprintf from here to...
65         * include/stdio.h: ...here.
67 2001-02-06  Andreas Schwab  <schwab@suse.de>
69         * sysdeps/unix/sysv/linux/ia64/ioperm.c: Don't include kernel
70         headers.
72         * timezone/Makefile: Don't assume that $(inst_zonedir) is a subdir
73         of $(inst_datadir).
75 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
77         * iconvdata/Makefile: Add dependency for bug-iconv2.out.
79 2001-02-06  Andreas Jaeger  <aj@suse.de>
81         * elf/firstobj.c: Add prototype.
83         * posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
84         (truncate_wchar): Likewise.
86 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
88         * locale/programs/locale.c: Implement --verbose option for -a
89         which prints detailed information about the locales.
91 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
93         * sunrpc/xdr_rec.c (set_input_fragment): Change type of header
94         variable to uint32_t.
95         Reported by Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>.
97 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
99         * locale/C-translit.h.in: Add transliterations for CJK units of
100         measurement.
102 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
104         * elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
105         string.  Include <inttypes.h> instead of <stdint.h>.
107         * localedata/Makefile (tests): Add bug-iconv-trans.
108         Define bug-iconv-trans-ENV.
109         * localedata/bug-iconv-trans.c: New file.
111 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
113         * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output
114         pointer, to avoid accumulating output from incomplete (unsuccessful)
115         transliteration attempts.
117 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
119         * elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
120         string.  Include <inttypes.h> instead of <stdint.h>.
122         * configure.in: Add check for bison.
123         * config.make.in: Define BISON variable.
124         * intl/Makefile: Use BISON instead of YACC when generating plural.c.
125         Rename YFLAGS to BISONFLAGS.
127 2001-02-05  Andreas Jaeger  <aj@suse.de>
129         * io/test-lfs.c (do_test): Test lseek64 return value, call
130         test_ftello.
131         (test_ftello): New function to test ftello64 and fseeko64.
133         * signal/signal.h: Move __sigaction from here to...
134         * include/signal.h: ...here.
136         * io/fcntl.h: Move __fcntl and __open to...
137         * include/fcntl.h: ...here.
139 2001-02-04  Philip Blundell  <philb@gnu.org>
141         * configure.in: Distinguish ARM from Thumb.
143 2001-02-04  Philip Blundell  <philb@gnu.org>
145         * sysdeps/arm/dl-machine.h (elf_machine_rel): Correct handling of
146         PC24 relocs with negative value.
148 2001-02-04  Ulrich Drepper  <drepper@redhat.com>
150         * iconv/Makefile (iconv_prog-modules): Define.  Add vpath to find
151         files in locale/programs.  Add CFLAGS definition to allow compiling
152         localedef files.
153         * iconv/dummy-repertoire.c: New file.
154         * iconv/iconv_charmap.c: New file.
155         * iconv/iconv_prog.h: New file.
156         * iconv/iconv_prog.c: Make verbose and omit_invalid global.
157         (main): If parameter for -f and -t contain slashes try first to resolve
158         the strings as filenames of charmap files.  Use them for conversion
159         in this case.
160         * iconvdata/run-iconv-test.sh: If charmaps exist also run tests with
161         iconv getting charmap names as parameters.
162         * locale/programs/linereader.c (lr_token): Take extra parameters
163         verbose and pass it to get_string.
164         (get_string): Take extra parameters verbose.
165         * locale/programs/charmap.c (parse_charmap): Take extra parameters
166         verbose and be_quiet.  Change all callers of lr_token and
167         parse_charmap.
168         * locale/programs/charmap.h: Likewise.
169         * locale/programs/ld-address.c: Likewise.
170         * locale/programs/ld-collate.c: Likewise.
171         * locale/programs/ld-ctype.c: Likewise.
172         * locale/programs/ld-identification.c: Likewise.
173         * locale/programs/ld-measurement.c: Likewise.
174         * locale/programs/ld-messages.c: Likewise.
175         * locale/programs/ld-monetary.c: Likewise.
176         * locale/programs/ld-name.c: Likewise.
177         * locale/programs/ld-numeric.c: Likewise.
178         * locale/programs/ld-paper.c: Likewise.
179         * locale/programs/ld-telephone.c: Likewise.
180         * locale/programs/ld-time.c: Likewise.
181         * locale/programs/linereader.c: Likewise.
182         * locale/programs/linereader.h: Likewise.
183         * locale/programs/localedef.c: Likewise.
184         * locale/programs/locfile.c: Likewise.
185         * locale/programs/locfile.h: Likewise.
186         * locale/programs/repertoire.c: Likewise.
188 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
190         * iconv/iconv_prog.c (main): If output file name is "-" write to
191         stdout.
192         (main): If -f or -t argument is missing use charset of the current
193         locale.
195 2001-02-03  Andreas Jaeger  <aj@suse.de>
197         * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
198         boundary for SSE/SSE-2 alignment.
200         * posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
201         annexc.
203 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
205         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: File was using crlf.
206         Remove comma at end of enum.
208         * elf/dl-init.c: Add a few __builtin_expect.
210         * hesiod/hesiod.c: Remove unnecessary code.  Remove all uses of strcat.
212 2001-02-02  Ulrich Drepper  <drepper@redhat.com>
214         * hesiod/hesiod.c (hesiod_resolve): Also search HS records if
215         errno is ECONNREFUSED.
217         * posix/Makefile: Define MBS_SUPPORT for regex.c.
218         * posix/regex.c: Implement multibyte character handling.
219         Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
221         * string/tst-svc.input: Add two more test cases.
222         * string/tst-svc.expect: Modify to reflect new test cases.
224 2001-02-01  Jakub Jelinek  <jakub@redhat.com>
226         * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
227         tp->name tests with tp->name[0] tests.
229 2001-01-29  Ben Collins  <bcollins@debian.org>
231         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
232         Fix check for name == NULL.
234 2001-02-01  Ulrich Drepper  <drepper@redhat.com>
236         * elf/Makefile: Add rules to build and run initfirst test.
237         * elf/initfirst.c: New file.
238         * elf/firstobj.c: New file.
240         * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so).
241         * configure.in: Test for -z initfirst linker option.
242         * config.make.in: Add have-z-initfirst.
243         * elf/dl-init.c (_dl_init): Split out actual initialization code in
244         new function call_init.  If _dl_initfirst is non-NULL initialize first.
245         * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set
246         remember object in _dl_initfirst.
247         * elf/soinit.c: Remove special support for calling
248         __pthread_initialize_minimal.
250         * conform/conformtest.pl: Add missing $prepend in type test.
252 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
254         * elf/elf.h (SHT_CHECKSUM): New definition.
256         * posix/fnmatch_loop.c: Remove incorrect reverse condition in
257         [. .] matching.  Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
258         * posix/tst-fnmatch.input: Add tests for [. .] in locales.
260 2001-01-31  Mark Kettenis  <kettenis@gnu.org>
262         * misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
263         to get definition of `struct timeval'.
265 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
267         * posix/tst-fnmatch.input: Add test cases for de_DE.UTF-8 locale.
268         * posix/fnmatch_loop.c: Fix handling of [= =] for multibyte charsets.
270 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
272         * iconv/gconv_open.c (__gconv_open): Set conv_flags if IGNORE is
273         seen, not flags.
275         * nis/nis_findserv.c: Include <time.h>.
277 2001-01-30  Yong Li  <yong.li@asu.edu>
279         * iconv/iconv_prog.c (main): Correct error handling method name.
281 2001-01-29  Ben Collins  <bcollins@debian.org>
283         * sysdeps/sparc/fpu/fraiseexcpt.c: Include <float.h>.
284         * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
285         * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
286         * sysdeps/s390/fpu/fraiseexcpt.c: Likewise.
288 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
290         * locale/programs/ld-measurement.c (measurement_finish): Fix a typo.
291         Patch by Marko Myllynen <myllynen@lut.fi>.
293         * string/bits/string2.h (__strpbrk_c2): Correct parameter types
294         (int instead of char).
295         (__strpbrk_c3): Likewise.
296         Reported by GOTO Masanori <gotom@debian.or.jp>.
298         * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
299         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
300         * include/sys/socket.h: Add SA_LEN here for internal use.
301         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
303 2001-01-29  Ulrich Drepper  <drepper@redhat.com>
305         * malloc/Makefile: Don't build memusagestat if cross-compiling.
307         * sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
309         * math/libm-test.inc (rint_test): Add a few more tests for round
310         to even rounding.
312 2001-01-28  Ulrich Drepper  <drepper@redhat.com>
314         * conform/data/pthread.h-data: Correct return type of pthread_exit.
316         * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
318         * conform/data/stdlib.h-data: Add _Exit.
320         * inet/arpa/inet.h: Don't include <sys/types.h>.  Define socklen_t
321         if not already happened.
322         * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>.
323         Don't include <limits.h> and <bits/sockaddr.h>.
325         * conform/data/netinet/in.h-data: Allow all of <inttypes.h>.
327         * conform/data/spawn.h-data: Allow all of <sched.h>.
329         * sysdeps/ia64/fpu/fraiseexcpt.c: Include <float.h>.  Removed
330         unused variable.
332         * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning.
333         * sunrpc/xdr_sizeof.c (x_inline): Likewise.
335         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include <float.h>.
337         * conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
338         * libio/stdio.h: Define va_list correctly.
340         * conform/data/pthread.h-data: Make priority protocol related
341         functions optional.  Fix typos.
343         * posix/sched.h: Define sched_priority as __sched_priority.
344         * sysdeps/generic/bits/sched.h (struct sched_param): Rename element
345         to __sched_priority.
346         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
348 2001-01-27  Ulrich Drepper  <drepper@redhat.com>
350         * sysdeps/generic/clock_getcpuclockid.c: Include <time.h> instead
351         of <sys/time.h>.
353         * sysdeps/unix/stime.c: Include <stddef.h> for NULL.
354         * sysdeps/unix/time.c: Likewise.
356         * conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
357         * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
358         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
359         * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
360         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
361         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
362         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
363         * time/time.h: Likewise.
365         * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
366         * conform/data/complex.h-data: New file.
367         * conform/data/tgmath.h-data: New file.
369         * conform/data/wchar.h-data: Add missing functions.
371         * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
373         * conform/data/termios.h-data: Add missing const in tcsetattr()
374         prototype.
376         * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
377         Don't define pid_t here.
379         * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
381         * conform/data/sys/time.h-data: Allow sys/select.h.
382         * conform/data/sys/un.h-data: Fix typo.
383         * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
384         * sysdeps/posix/clock_getres.c: Include <time.h> instead of
385         <sys/time.h>.
386         * sysdeps/unix/clock_nanosleep.c: Likewise.
387         * sysdeps/unix/i386/clock_getcpuclockid.c: Likewise.
388         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
389         * sysdeps/unix/clock_gettime.c: Also include <time.h>.
390         * sysdeps/unix/clock_settime.c: Likewise.
392         * sysdeps/generic/pselect.c: Include <stddef.h> for NULL.
393         * login/getutent.c: Likewise.
394         * login/getutid.c: Likewise.
395         * login/getutline.c: Likewise.
397         * socket/sys/un.h: Define SUN_LEN only if __USE_MISC.
399         * sysdeps/unix/sysv/linux/bits/statvfs.h: Change type of f_fsid field
400         to unsigned long.  Add __f_unused.  Define _STATVFSBUF_F_UNUSED.
401         * sysdeps/unix/sysv/linux/internal_statvfs.c: Adjust initialization of
402         f_fsid field after change in struct statvfs.
403         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: New file.
404         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: New file.
405         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: New file.
407         * conform/data/sys/stat.h-data: Remove isfdtype.  Use
408         optional-macro.
410         * conform/data/sys/socket.h-data: Fix typos.  Correct getsockopt,
411         recvfrom, send, and socketpair prototypes.  Add allow lines.
412         * socket/sys/socket.h: Include <sys/uio.h>.
413         Don't use fancy __SOCKADDR_ARG definition unless __USE_GNU.
414         Fix type of second parameter of listen.
415         Don't declare isfdtype unless __USE_MISC.
416         * sysdeps/generic/listen.c: Fix type of second parameter of listen.
417         * sysdeps/mach/hurd/listen.c: Likewise.
418         * sysdeps/generic/bits/socket.h (struct sockaddr_storage): Define
419         ss_family and __ss_family.
420         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
421         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
422         (struct msghdr): Change type of msg_iovlen to int and type of
423         msg_controllen to socklen_t.
424         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file.
425         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: New file.
426         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: New file.
427         * inet/rcmd.c (rcmd_af): __ss_family is now ss_family.
428         (rresvport_af): Likewise.
430         * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant.
431         * conform/conformtest.pl: Implement handling of symbol.
433         * signal/signal.h: Fix handling of __need_* symbols.
434         * misc/sys/select.c: Define fd_set here.  Remove __fd_set.  Define
435         fd_mask only if __USE_MISC.  Declare pselect for __USE_XOPEN2K.
436         * include/sys/select.h: Use fd_set not __fd_set.
437         * sysdeps/generic/bits/select.h: Likewise.
438         * sysdeps/i386/bits/select.h: Likewise.
439         * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS,
440         __FDELT, __FDMASK, and __fd_set here.
441         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
442         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
443         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
444         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
445         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
446         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
447         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
448         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
449         * time/sys/time.h: Define struct timeval before including <time.h>
450         and <sys/select.h>.
452         * conform/data/sys/time.h-data: fd_set is a typedef.
453         * conform/data/sys/select.h-data: New file.
454         * conform/data/sys/mman.h-data: Make typed mem stuff optional.
455         * conform/conformtest.pl (@headers): Add sys/select.h.
456         (type, optional-type): Unless testing a typedef instantiate object.
457         Implement optional-function.
459         * math/test-misc.c: Include <float.h>.
461 2001-01-27  Andreas Jaeger  <aj@suse.de>
463         * misc/efgcvt_r.c: Include <float.h>.
465 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
467         * conform/data/stdlib.h-data: Account for XPG6 changes.
468         * stdlib/stdlib.h (__random): Change return value type to long.
469         (posix_memalign): Cleanup parameter names.
470         (setenv, unsetenv): Make available for __USE_XOPEN2K.
471         Change return type of unsetenv to int.
472         (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
473         * include/stdlib.h: Change return type of unsetenv to int.
474         Change return type of random to long int.
475         * sysdeps/generic/setenv.c (unsetenv): Change return type to int.
476         Return -1 and set errno if parameter is invalid.
477         * stdlib/random.c (__random): Change return value type to long.
479         * conform/data/stdio.h-data: Account for changes in XPG6.
481         * conform/data/spawn.h-data: Correct posix_spawnattr_setflags
482         prototype.
484         * conform/conformtest.pl: Define $mustprepend{"signal.h"}.
485         * conform/data/signal.h-data: Fix sigev_notify_function entry.
486         Fix typo (SIGVALRM -> SIGVTALRM).
487         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
488         with real type.
489         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
490         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
491         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
492         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
493         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
495         * conform/conformtest.pl: Implement optional-element.  Define
496         $mustprepend{"sched.h"}.
497         * conform/data/sched.h-data: Make sporadic scheduler definitions
498         optional.
500         * pwd/pwd.h: Don't define getpwent_r for XPG.
502         * io/sys/poll.h: Define nfds_t and use it in poll prototype.
503         * sysdeps/generic/poll.c: Use nfds_t type in function definition.
504         * sysdeps/mach/hurd/poll.c: Likewise.
505         * sysdeps/unix/bsd/poll.c: Likewise.
506         * sysdeps/unix/sysv/linux/poll.c: Likewise.
507         * sysdeps/unix/sysv/aix/poll.c: Likewise.
508         * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.
509         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
510         * sysdeps/unix/sysv/linux/m68k/bits/poll.h: Likewise.
511         * sysdeps/unix/sysv/linux/mips/bits/poll.h: Likewise.
512         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
513         * conform/data/poll.h-data: Fix typo in poll prototype.
515         * sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
516         only if __USE_MISC.
517         * conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
519         * sysdeps/gnu/net/if.h: Cleanup namespace.  Define IF_NAMESIZE.
521         * inet/netinet/in.h: Make IPPROTO_ constants also macros.
523         * conform/conformtest.pl: Implement optional-type.
525         * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>.  Include
526         <rpc/netdb.h> only if __USE_MISC.  Include <stdint.h> instead of
527         defining uint32_t here.  Define IPPORT_RESERVED.
528         (struct hostent): Type of h_length element is int.
529         (getnameinfo): Type of flags parameter is unsigned int.
530         * inet/getnameinfo.c (getnameinfo): flags argument is unsigned.
531         * conform/data/netdb.h-data: Add many missing definitions.
533         * conform/conformtest.pl: Implement optional-macro.
534         * conform/data/math.h-data: Update for XPG6.
536         * math/math.h (HUGE): Define as FLT_MAX value but don't use
537         FLT_MAX.  Don't include <float.h>.
538         (MAXFLOAT): Likewise.
540         * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
542         * include/bits/xopen_lim.h: Don't define FOPEN_MAX here.
544         * conform/data/limits.h-data: Mark constants as optional wherever
545         appropriate.
547         * posix/bits/posix2_lim.h: Set correct values for
548         _POSIX2_COLL_WEIGHTS_MAX and _POSIX2_CHARCLASS_NAME_MAX.  Remove
549         EQUIV_CLASS_MAX.
551         * posix/bits/posix1_lim.h: Define _POSIX_TZNAME_MAX as 6.
552         Required by POSIX.
554         * intl/loadmsgcat.c: Include <locale.h.> for _LIBC.
556         * conform/data/netinet/in.h-data: Add reserved prefixes.
558         * conform/data/arpa/inet.h-data: Fix a few typos.
560 2001-01-26  Andreas Jaeger  <aj@suse.de>
562         * sysdeps/generic/strtol.c: Include <locale.h>
563         * stdlib/strtod.c: Likewise
564         * stdlib/strfmon.c: Likewise.
565         * string/strcoll.c: Likewise.
566         * string/strxfrm.c: Likewise.
567         * wctype/wcfuncs_l.c: Likewise.
568         * wctype/wctype_l.c: Likewise.
569         * wctype/wctrans_l.c: Likewise.
571         * include/bits/locale.h: New file.
573 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
575         * locale/langinfo.h: Correct logic in #ifs when defining YESSTR
576         and NOSTR.
578         * locale/Makefile (headers): Add bits/locale.h.
579         * locale/langinfo.h: Don't include <locale.h>.  Include <bits/locale.h>
580         and use __LC_ constants instead of LC_.
581         * locale/locale.h: Include <bits/locale.h> and define LC_ constants
582         using __LC_ constants.
583         * locale/bits/locale.h: New file.
584         * locale/loadlocale.c: Include <locale.h>.
585         * locale/nl_langinfo.h: Likewise.
587         * posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
589         * io/sys/stat.h: Define S_IFSOCK for XPG6.
591         * conform/data/fcntl.h-data: posix_madvise is not expected here.
593         * conform/conformtest.pl: Fix handling of macro-str.
595         * conform/data/inttypes.h-data: Add missing definition and all of
596         stdint.h-data.
598         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20.
600 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
602         * conform/conformtest.pl (@headers): Add stdint.h.
603         * conform/data/stdint.h-data: New file.
605         * conform/conformtest.pl: Recognize options --headers and
606         --dialect.  Add dialect-specific CFLAGS.
608         * conform/conformtest.pl: Implement handling of recursive
609         allow-header.
611         * conform/data/locale.h-data: Add new struct lconv members.
613         * posix/wordexp.h: Correct definition of wordexp_t.
614         * posix/wordexp.c: Moved to ...
615         * sysdeps/generic/wordexp.c: ...here.  New file.
616         * sysdeps/unix/sysv/linux/alpha/wordexp.c: New file.
617         * sysdeps/unix/sysv/linux/ia64/wordexp.c: New file.
618         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: New file.
619         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.2.2): Add
620         wordexp.
621         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
622         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
624         * math/tgmath.h: Pretty printing.
626         * math/Makefile (tests): Add test-tgmath.
627         (CFLAGS-test-tgmath.c): New variable.
628         * math/test-tgmath.c: New file.  Contributed by Jakub Jelinek.
630         * conform/conformtest.pl: Handle allow-header in secondary headers
631         correctly.
633         * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
634         #ifdef.
636         * conform/data/netinet/in.h-data: Use correct comment character.
637         * conform/data/sys/stat.h-data: Likewise.
639 2001-01-25  Jakub Jelinek  <jakub@redhat.com>
641         * math/tgmath.h (__TGMATH_BINARY_FIRST_REAL_ONLY,
642         __TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
643         __TGMATH_TERNARY_REAL_ONLY): Use proper arguments to
644         __builtin_classify_type, add ##f suffixes where appropriate.
645         (__TGMATH_UNARY_REAL_IMAG): Remove extraneous left parenthesis.
646         (__TGMATH_BINARY_REAL_IMAG): Likewise, use proper arguments to
647         __builtin_classify_type.
648         (fma): Fix spelling of first argument.
650 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
652         * conform/data/unistd.h-data: Mark functions removed in XPG6
653         correctly.
655         * posix/unistd.h: Don't make functions removed in XPG6 available if
656         __USE_XOPEN2K.
658         * conform/conformtest.pl: Implement optional-constant.
659         * conform/data/unistd.h-data: Use optional-constant wherever
660         appropriate.
662         * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS
663         constants and add _SC_STREAMS.
664         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
666         * sysdeps/unix/sysv/linux/statvfs64.c: Rename to __statvfs64 and
667         make old name weak alias.
668         * sysdeps/generic/statvfs64.c: Likewise.
669         * sysdeps/unix/sysv/linux/fstatvfs64.c: Rename to __fstatvfs64 and
670         make old name weak alias.
671         * sysdeps/generic/fstatvfs64.c: Likewise.
672         * include/sys/statvfs.h: New file.
674         * sysdeps/generic/bits/confname.h: Define _PC_REC_INCR_XFER_SIZE,
675         _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, and
676         _PC_REC_XFER_ALIGN.
677         * sysdeps/posix/pathconf.c (__pathconf): Implement handling of
678         _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
679         _PC_REC_MIN_XFER_SIZE, and _PC_REC_XFER_ALIGN.
680         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
682         * conform/conformtest.pl: Run Unix tests for XPG6.
683         Implement handling of known namespace violations.
684         Improve printing of results.
686         * posix/unistd.h (usleep): Correct return type.
687         * sysdeps/unix/sysv/linux/usleep.c: Correct return type.
688         * sysdeps/unix/bsd/usleep.c: Correct return type.
689         * sysdeps/mach/usleep.c: Correct return type.
690         * sysdeps/generic/usleep.c: Correct return type.
692         * posix/unistd.h (sync): Correct return type.
693         * sysdeps/generic/sync.c: Likewise.
694         * sysdeps/mach/hurd/sync.c: Likewise.
696         * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
698         * posix/unistd.h: Make seteuid and setegid available for XPG6.
700         * wcsmbs/wchar.h: Get FILE definition for XPG5.
702         * conform/data/ctype.h-data: Use correct comment form.
703         * conform/data/errno.h-data: Likewise.
704         * conform/data/math.h-data: Likewise.
705         * conform/data/mqueue.h-data: Likewise.
706         * conform/data/netdb.h-data: Likewise.
707         * conform/data/pthread.h-data: Likewise.
709 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
711         * conform/data/wordexp.h-data: Fix typo.
713         * conform/conformtest.pl: Handle allow-header correctly.
715         * conform/data/time.h-data: Use correct comment form.
717         * conform/conformtest.pl (checknamespace): Ignore #undef lines.
719         * configure.in: Comment out binutils version test.
721         * stdlib/strtod.c (str_to_mpn): Correct parsing of thousands
722         separators.
723         Reported by Lagardere Jean-Francois <LAGARDEREJ@thmulti.com>.
725         * stdlib/tst-strtod.c (locale_test): New function.
726         (main): Call locale_test.
727         * stdlib/Makefile (tst-strtod-ENV): New variable.
729 2001-01-24  Mark Kettenis  <kettenis@gnu.org>
731         * hurd/hurdsig.c (_hurdsig_getenv): Remove spurious innermost
732         declaration of value such that we actually return the value of the
733         environment variable.
735 2001-01-24  Andreas Jaeger  <aj@suse.de>
737         * sysdeps/unix/sysv/linux/init-first.c: Remove extra __sysctl
738         prototype.
739         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
741         * include/sys/sysctl.h: New file.
743 2001-01-23  Andreas Jaeger  <aj@suse.de>
745         * stdlib/Makefile ($(objpfx)isomac.out): Also pass sysincludes to
746         isomac.
748         * elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
749         arguments.  Reported by Jiri Kubicek <kubicek@bitsmart.com>,
750         closes PR libc/2039.
752         * manual/install.texi (Tools for Compilation): Change required
753         binutils version.
755 2001-01-22  Andreas Jaeger  <aj@suse.de>
757         * configure.in: Add test for new enough binutils version, move
758         compiler/binutils test up.
760         * Versions.def: Add version GLIBC_2.2.2.
762 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
764         * iconvdata/TESTS: UTF-8 test data for IBM932 and IBM943 are now
765         available.
766         * iconvdata/testdata/IBM932: New file.
767         * iconvdata/testdata/IBM932..UTF8: New file.
768         * iconvdata/testdata/IBM943: New file.
769         * iconvdata/testdata/IBM943..UTF8: New file.
770         Contributed by Masahide Washizawa <washi@jp.ibm.com>.
772 2001-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
774         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset.
776 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
778         * malloc/malloc.c: Remove a few unnecessary initializers of global
779         variables.
781 2000-12-09  H.J. Lu  <hjl@gnu.org>
783         * nss/Makefile (routines): Add digits_dots.
784         * nss/Versions (libc): Add __nss_hostname_digits_dots to GLIBC_2.2.2.
785         * nss/digits_dots.c (__nss_hostname_digits_dots): Turn template
786         into a function.
787         * nss/nsswitch.h (__nss_hostname_digits_dots): New internal NSS
788         function.
789         * nss/getXXbyYY.c (H_ERRNO_VAR_P): New definition.
790         (TYPE_VAR_P): Likewise.
791         (FLAGS_VAR): Likewise.
792         (AF_VAR_P): Likewise.
793         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
794         instead of including digits_dots.c.
795         * nss/getXXbyYY_r.c (H_ERRNO_VAR_P): New definition.
796         (TYPE_VAR_P): Likewise.
797         (FLAGS_VAR): Likewise.
798         (AF_VAR_P): Likewise.
799         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
800         instead of including digits_dots.c.
802 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
804         * sysdeps/posix/getaddrinfo.c: Reduce .data size.
806 2001-01-21  Andreas Jaeger  <aj@suse.de>
808         * elf/constload2.c: Add prototype for init.
810 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
812         * stdlib/stdlib.h (drand48_data): Make available only for
813         __USE_MISC.  Rename elements to protect namespace.  Change type
814         and position of a and init element.
815         * stdlib/drand48-iter.c: Don't handle unsigned short > 16 bit
816         differently.  Adjust for drand48_data change.  Don't compute a here,
817         it comes from drand48_data.
818         * stdlib/lcong48_r.c: Don't handle unsigned short > 16 bit
819         differently.  Adjust for drand48_data change.  Compute a here.
820         * stdlib/srand48_r.c: Likewise.
821         * stdlib/drand48.c: Adjust for drand48_data change.
822         * stdlib/lrand48.c: Likewise.
823         * stdlib/mrand48.c: Likewise.
824         * stdlib/seek48.c: Likewise.
825         * stdlib/drand48_r.c: Likewise.
826         * stdlib/lrand48_r.c: Likewise.
827         * stdlib/mrand48_r.c: Likewise.
828         * stdlib/seed48_r.c: Likewise.  Don't handle unsigned short > 16 bit
829         differently.
830         * stdlib/erand48_r.c: Don't handle unsigned short > 16 bit differently.
831         * stdlib/jrand48_r.c: Likewise.
833         * po/sv.po: Update from translation team.
835 2001-01-21  Andreas Jaeger  <aj@suse.de>
837         * stdio-common/vfprintf.c (vfprintf): Add casts.
839 2001-01-20  Ulrich Drepper  <drepper@redhat.com>
841         * iconvdata/run-iconv-test.sh: Reorgnize a bit to allow running only
842         the ASCII test.
843         * iconvdata/TESTS: Add entries for IBM932 and IBM943.
845         * iconvdata/Makefile (modules): Add IBM932 and IBM943.
846         * iconvdata/gconv-modules: Add entries for IBM932 and IBM943.
847         * iconvdata/ibm932.c: New file.
848         * iconvdata/ibm932.h: New file.
849         * iconvdata/ibm943.c: New file.
850         * iconvdata/ibm943.h: New file.
851         Patches by Masahide Washizawa <washi@jp.ibm.com>.
853         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix typo
854         preventing optimization from being done.  Set the correct type bit
855         in seen.  Don't define and use _dl_base_addr unless
856         NEED_DL_BASE_ADDR is defined.
858         * io/ftw.c (ftw_dir): Add slash after directory name if there
859         wasn't any.  Reported by loris <loris@iol.it>.
860         * io/Makefile (tests): Add bug-ftw2.
861         * io/bug-ftw2.c: New file.
863 2001-01-19  Ulrich Drepper  <drepper@redhat.com>
865         * stdlib/jrand48_r.c (__jrand48_r): Correct constructing of
866         results.  Reported by Jeff Higham <jhigham@algorithmics.com>.
867         * stdlib/tst-rand48.c: New file.
868         * stdlib/Makefile (tests): Add tst-rand48.
870         * locale/newlocale.c (__newlocale): Fix test for setting all
871         categories.
873 2001-01-19  Mark Kettenis  <kettenis@gnu.org>
875         * sysdeps/mach/hurd/chroot.c (chroot): Revert 1999-02-27 changes,
876         but change looking up the initial directory port in a similar way
877         as done by _hurd_change_directory_port_from_name.
878         * hurd/fchroot.c (fchroot): Likewise.
880 2001-01-18  Ulrich Drepper  <drepper@redhat.com>
882         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If HAVE_AUX_XID is
883         defined don't look whether the AT_*ID values were set.
884         If HAVE_AUX_PAGESIZE is defined don't look whether the pagesize is set.
885         (_dl_show_auxv): Rewrite to avoid switch statement.
886         * sysdeps/unix/sysv/linux/kernel-features.h: Define
887         __ASSUME_AT_PAGESIZE for kernel >= 2.4.1.
888         * sysdeps/unix/sysv/linux/ldsodefs.h: Define HAVE_AUX_XID.
889         Define HAVE_AUX_PAGESIZE if __ASSUME_AT_PAGESIZE is defined.
891         * sysdeps/unix/sysv/linux/fxstat64.c: Add one __builtin_expect.
892         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
893         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
895         * elf/rtld.c (process_envvars): Call __strtoul_internal instead of
896         strtoul.
897         * elf/dl-minimal.c (strtol, __strtol_internal, strtoul): Removed.
898         (__sigjmp_save): Set __mask_was_saved to zero since we don't save
899         anything.
900         * dlfcn/eval.c (__strtol_internal): Define here.
901         (eval): Use __strtol_internal instead of strtol.
903         * elf/elf.h: Add a few more EF_MIPS_* constants.
905 2001-01-17  Ulrich Drepper  <drepper@redhat.com>
907         * manual/Makefile (chapters): Add debug.
908         * manual/debug.texi: New file.
909         * manual/examples/execinfo.c: New file.
910         Patch by suckfish@ihug.co.nz.
912 2001-01-17  Andreas Schwab  <schwab@suse.de>
914         * sysdeps/m68k/bits/byteswap.h (__bswap_32): Add cast to avoid
915         invalid asm.
917 2001-01-17  Andreas Jaeger  <aj@suse.de>
919         * nscd/connections.c (nscd_run): Use proper format specifier.
921 2001-01-16  Ulrich Drepper  <drepper@redhat.com>
923         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Move x86_cap_flags and
924         x86_platforms data into new file after prepending _dl_.  Change
925         users.
926         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: New file.
927         * sysdeps/unix/sysv/linux/i386/Dist: Add dl-procinfo.c.
928         * sysdeps/unix/sysv/linux/i386/Makefile: Add rules to build
929         dl-procinfo.c.
931         * setjmp/setjmp.h: Cleanup definition of setjmp macro.
933         * sysdeps/i386/elf/bsd-setjmp.S: Real implementation.
934         * sysdeps/i386/elf/bsd-_setjmp.S: Removed.
935         * sysdeps/i386/elf/setjmp.S (setjmp): Removed here.
936         (_setjmp): Likewise.
937         * sysdeps/i386/bsd-_setjmp.S: Real implementation.
938         * sysdeps/i386/bsd-setjmp.S: Real implementation.
939         * sysdeps/i386/bits/setjmp.h: Remove PUSH_SIGNAL_MASK definition.
940         * sysdeps/i386/setjmp.S: Remove PIC support.  This is the non-ELF
941         version.
943 2001-01-16  Andreas Jaeger  <aj@suse.de>
945         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (SIGCONTEXT): Fix
946         misapplied last patch.
948 2001-01-15  Ulrich Drepper  <drepper@redhat.com>
950         * stdlib/random.c (__initstate): Clean up a cast.
951         (__setstate): Likewise.
953         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select
954         syscall handling.  The generic Linux version should work.
956 2001-01-15  Andreas Jaeger  <aj@suse.de>
958         * sysdeps/unix/sysv/linux/sys/sendfile.h: Fix typo.
960         * stdio-common/tstscanf.c (main): Add two testcases for '*' modifier.
962 2001-01-14  Jakub Jelinek  <jakub@redhat.com>
964         * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
965         netgroup_keys, print_rpc, rpc_keys, print_shadow, shadow_keys):
966         New functions.
967         (group_keys, hosts_keys, network_keys, passwd_keys, protocols_keys):
968         If number is 0, list all.
969         (services_keys): Likewise.  Lookup aliases as well.
970         (databases): New table.
971         (build_doc): Prepare argp doc text with list of supported databases.
972         (main): Change to table driven processing.
974 2001-01-14  Thorsten Kukuk <kukuk@suse.de>
976         * sunrpc/xdr.c (xdr_long, xdr_u_long): Fix comments about these
977         functions.
979 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
981         * sunrpc/xdr.c (xdr_long, xdr_u_long): Return FALSE if trying to
982         encode value which does not fit in the 32bit type.
984 2001-01-15  Hiroyuki Machida <machida@sm.sony.co.jp>
986         * sysdeps/unix/sysv/linux/mips/register-dump.h (REGISTER_DUMP):
987         Change type of CTX to (struct sigcontext *).
988         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Likewise.
989         (GET_FRAME): Likewise.
990         (GET_STACK): Likewise.
991         (SIGCONTEXT): Likewise. Add 2nd arg _code.
992         (SIGCONTEXT_EXTRA_ARGS): Add 2nd arg _code.
994 2001-01-13  Ulrich Drepper  <drepper@redhat.com>
996         * manual/texinfo.tex: Update from upstream version.
998 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
1000         * inet/ether_ntoh.c (lookup_function): Change arguments to match
1001         _nss_*_getntohost_r prototype.
1002         (ether_ntohost): Pass errno pointer to NSS function.
1004 2001-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1006         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
1007         (MAP_LOCKED): New definition.
1008         (MAP_NORESERVE): New definition.
1010 2001-01-12  Ulrich Drepper  <drepper@redhat.com>
1012         * assert/assert.h: Use static_cast instead of C-style cast for C++.
1013         Patch by Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>.
1015 2001-01-12  Ben Collins  <bcollins@debian.org>
1017         * sysdeps/generic/segfault.c (install_handler): Use access, not
1018         __access.
1020 2001-01-12  Andreas Jaeger  <aj@suse.de>
1022         * posix/fnmatch_loop.c (FCT): Remove signed warnings.
1023         * posix/wordexp.c (do_parse_glob): Likewise.
1024         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1025         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1026         * elf/dl-open.c (_dl_open): Likewise.
1027         * elf/dl-close.c (_dl_close): Likewise.
1028         * elf/dl-load.c (_dl_map_object): Likewise.
1029         * iconv/iconv_prog.c (process_fd): Likewise.
1030         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
1032         * locale/localeinfo.h (struct locale_data): Use __flexarr instead
1033         of a zero-length array.
1035 2001-01-11  Jakub Jelinek  <jakub@redhat.com>
1037         * stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
1038         * stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
1039         * stdlib/cxa_on_exit.c: Remove.
1040         * stdlib/Makefile: Revert last patch.
1041         * stdlib/Versions: Likewise.
1042         * include/stdlib.h: Likewise.
1043         * stdlib/exit.h: Revert last patch.
1044         (struct exit_function): Add second argument to cxa fn.
1045         * stdlib/exit.c: Revert last patch.
1046         (exit): Add hidden second argument.
1048 2001-01-11  H.J. Lu  <hjl@gnu.org>
1050         * elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
1051         * elf/dl-open.c (_dl_open): Here.
1052         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
1053         Make it static.
1054         (_dl_static_init): Initialize the variables every time when possible.
1055         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
1056         Undefine it first.
1058 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1060         * stdlib/Makefile (routines): Add cxa_on_exit.
1061         * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit.
1062         * stdlib/cxa_on_exit.c: New file.
1063         * include/stdlib.h: Add prototype for __cxa_on_exit.
1064         * stdlib/exit.c: Handle ef_cxa2.
1065         * stdlib/exit.h (enum): Add ef_cxa2.
1066         (struct exit_function): Add cxa2.
1068         * Versions.def [ld]: Add GLIBC_2.2.1.
1070 2001-01-10  H.J. Lu  <hjl@gnu.org>
1072         * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries.
1073         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add
1074         dl-static.
1075         * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init.
1076         * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined.
1077         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file.
1078         * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file.
1079         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c.
1081 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1083         * libio/stdio.h: Remove definition of off_t.
1085 2001-01-11  Andreas Jaeger  <aj@suse.de>
1087         * wcsmbs/tst-mbrtowc.c (utf8_test): New function by Markus Kuhn
1088         <mkuhn@acm.org>.
1090 2001-01-10  Ulrich Drepper  <drepper@redhat.com>
1092         * sunrpc/Makefile (distribute): Add errqueue.h.
1094 2001-01-10  H.J. Lu  <hjl@gnu.org>
1096         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
1097         r9, r10 and r11 for language specific registers.
1099 2001-01-10  Jakub Jelinek  <jakub@redhat.com>
1101         * sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
1102         UDP socket.
1103         (clntudp_call): Handle MSG_ERRQUEUE.
1104         * sysdeps/generic/errqueue.h: New file.
1105         * sysdeps/unix/sysv/linux/errqueue.h: New file.
1107 2001-01-10  H.J. Lu  <hjl@gnu.org>
1109         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_getpagesize): Removed.
1111 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1113         * CONFORMANCE: Update.
1115 2001-01-09  Ulrich Drepper  <drepper@redhat.com>
1117         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1118         Minimal cleanups.  Add assert to ensure memory handling is correct.
1120         * manual/conf.texi (File Minimums): Fix _POSIX_PATH_MAX value.
1121         Reported by Ben Collins <bcollins@debian.org>.
1123         * time/strftime.c (my_strftime): Mark previous GNU extensions
1124         which are now in C99 as such.
1126 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
1128         * elf/rtld.c (process_envvars): Place output files for profiling
1129         in SUID binaries in /var/profile.
1131         * elf/dl-load.c (_dl_map_object): Don't look in cache for
1132         preloading in SUID binaries.
1134         * elf/dl-profile.c (_dl_start_profile): Open the output file with
1135         O_NOFOLLOW if possible.
1137         * include/stdlib.h: Add __posix_openpt declaration.
1138         * stdlib/stdlib.h: Add posix_openpt declaration.
1139         * login/Versions: Add posix_openpt for GLIBC_2.2.1.
1140         * sysdeps/generic/getpt.c: Define posix_openpt.
1141         * sysdeps/unix/bsd/getpt.c: Likewise.
1142         * sysdeps/unix/sysv/linux/getpt.c: Likewise.
1144         * time/Makefile (tests): Add tst-mktime.
1145         * time/tst-mktime.c: New file.
1147         * posix/tst-dir.c (main): One more mkdir() test.
1149         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1150         Remove getpagesize syscall.  We assume that the pagesize is always
1151         determined from the auxiliary vector.
1153         * intl/dcigettext.c: Fix a few warnings.
1154         Patch by Bruno Haible <haible@ilog.fr>.
1156 2001-01-08  Andreas Jaeger  <aj@suse.de>
1158         * io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
1159         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1161 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
1163         * sysdeps/generic/segfault.c (install_handler): Check output file
1164         name with access().
1166         * resolv/res_query.c: Use simply getenv() for HOSTALIASES.
1167         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.
1169         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma.
1171         * malloc/memusage.c (me): Use access() to determine whether we
1172         should write the output file or not.
1174         * libio/bits/stdio.h (printf): Define macro to map printf call to
1175         fprintf which gcc can optimize.
1176         * stdio-common/printf.c: Undefine printf.
1178 2001-01-07  Ulrich Drepper  <drepper@redhat.com>
1180         * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last
1181         patch.  We must use unsigned int for l member of union.
1183         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call
1184         _dl_aux_init for shared libraries.
1186         * sysdeps/unix/sysv/linux/glob64.c: Moved to ...
1187         * sysdeps/gnu/glob64.c: ...here.  New file.
1189 2001-01-07  Ben Collins  <bcollins@debian.org>
1191         * manual/examples/longopt.c: Make the "struct option" a little
1192         more like it should be, adding usage of required_argument,
1193         noargument and such, and also setting the options string right.
1195         * manual/sysinfo.texi (Load Average): New section, documents
1196         getloadavg().
1198 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
1200         * version.h (VERSION): Bump to 2.2.1.
1202         * sysdeps/unix/sysv/linux/mips/Dist: Remove sys/acct.h.
1203         * sysdeps/alpha/Dist: Add alphaev6/stxncpy.S and alphaev6/stxcpy.S.
1204         * sysdeps/unix/sysv/aix/Dist: Add uitrunc.c, savef.S, and restf.S.
1205         * dlfcn/Makefile (distribute): Add errmsg1mod.c.
1206         * Makefile (distribute): Add include/libc-internal.h.
1207         * libio/Makefile (distribute): Avoid overwriting.
1209         * iconvdata/ibm937.c (BODY to IBM937): Correct several mistakes in
1210         buffer and table handling.
1212 2001-01-05  H.J. Lu  <hjl@gnu.org>
1214         * elf/dl-support.c (non_dynamic_init): Move the auxiliary
1215         vector checking to ...
1216         (_dl_aux_init): Here. New function. Defined only if
1217         HAVE_AUX_VECTOR is defined.
1219         * sysdeps/generic/libc-start.c (__libc_start_main): Call
1220         _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined.
1222         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call
1223         _dl_aux_init.
1225         * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed.
1226         (HAVE_AUX_VECTOR): Defined.
1227         (_dl_aux_init): Declared.
1229 2001-01-05  Ben Collins  <bcollins@debian.org>
1231         * manual/string.texi (Finding Tokens in a String): Document XPG
1232         basename() and dirname(), as well as GNU basename().
1234 2001-01-05  Jakub Jelinek  <jakub@redhat.com>
1236         * Makeconfig (preprocess-version): Replace -traditional with
1237         -x assembler-with-cpp.
1239 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1241         * math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
1242         for GCC 2.97 or later.
1244 2001-01-05  Ben Collins  <bcollins@debian.org>
1246         * manual/stdio.texi (getline): Clarify the return value in the
1247         case of EOF being reached before a newline.
1249 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
1251         * sunrpc/pmap_clnt.c (__get_myaddress): Return TRUE if successful,
1252         FALSE otherwise.
1253         (pmap_set, pmap_unset): Check __get_myaddress return value.
1255 2001-01-05  Mark Kettenis  <kettenis@gnu.org>
1257         * sysdeps/generic/netinet/if_ether.h: Include <sys/types.h>.
1258         (struct ether_addr): Declare ether_addr_octet member as
1259         `u_int8_t'.  Add __attribute__ ((__packed__)).
1261 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1263         * sysdeps/mach/hurd/readdir64.c: New file.
1264         * sysdeps/mach/hurd/readdir64_r.c: New file.
1266 2001-01-07  Mark Kettenis  <kettenis@gnu.org>
1268         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Add comment about
1269         `struct statfs' and `struct statvfs' being identical.
1270         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1272 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1274         * sysdeps/mach/hurd/fstatfs64.c: New file.
1275         * sysdeps/mach/hurd/fstatvfs64.c: New file.
1276         * sysdeps/mach/hurd/statfs64.c: New file.
1277         * sysdeps/mach/hurd/statvfs64.c: New file.
1278         * sysdeps/mach/hurd/statfsconv.c: New file.
1279         * sysdeps/mach/hurd/Dist: Add statfsconv.c.
1281 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
1283         * iconv/skeleton.c: Reset outbuf for next round of the loop.
1284         Reported by Owen Taylor <otaylor@redhat.com>.
1285         * iconv/Makefile (tests): Add tst-iconv3.
1286         * iconv/tst-iconv3.c: New file.
1288         * iconvdata/ibm930.c: Fix handling of state.  Optimize a bit.
1289         * iconvdata/ibm933.c: Likewise.
1290         * iconvdata/ibm935.c: Likewise.
1291         * iconvdata/ibm937.c: Likewise.
1292         * iconvdata/ibm939.c: Likewise.
1293         * iconvdata/ibm930.h: Adjust single byte table for optimization.
1294         * iconvdata/ibm933.h: Likewise.
1295         * iconvdata/ibm935.h: Likewise.
1296         * iconvdata/ibm939.h: Likewise.
1298         * iconvdata/testdata/IBM930: Add misssing SI.
1299         * iconvdata/testdata/IBM933: Likewise.
1300         * iconvdata/testdata/IBM935: Likewise.
1301         * iconvdata/testdata/IBM937: Likewise.
1302         * iconvdata/testdata/IBM939: Likewise.
1304 2001-01-06  Andreas Jaeger  <aj@suse.de>
1306         * configure.in: Check for old add-ons that shouldn't be used with
1307         current glibc anymore.
1309 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1311         * sysdeps/mach/hurd/readdir_r.c (__readdir_r): Return error number
1312         instead of -1 on failure.  Don't forget to copy file name into
1313         *ENTRY if successful.  Set *RESULT to NULL upon reaching the end
1314         of the directory.
1316 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1318         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Don't forget to
1319         copy st_atime member.
1321 2001-01-05  Ulrich Drepper  <drepper@redhat.com>
1323         * io/ftw.c (ftw_dir): Don't add a second slash at the beginning
1324         for searches from the root directory.
1325         Reported by loris <loris@iol.it> [PR libc/1991].
1326         * io/Makefile (tests): Add bug-ftw1.
1327         * io/bug-ftw1.c: New file.
1329         * elf/dl-support.c (non_dynamic_init): Don't define DL_FIND_AUXV
1330         if it is not available.  Instead use it only if it is available.
1331         * sysdeps/unix/sysv/linux/ldsodefs.h: New file.
1333         * iconv/gconv_simple.c (internal_ics4_loop): Correct test for
1334         overflowing output buffer.
1335         (internal_ucs4_loop_unaligned): Likewise.
1336         (ucs4_internal_loop): Likewise.
1337         (ucs4_internal_loop_unaligned): Likewise.
1338         (internal_ucs4le_loop): Likewise.
1339         (internal_ucs4le_loop_unaligned): Likewise.
1340         (ucs4le_internal_loop): Likewise.
1341         (ucs4le_internal_loop_unaligned): Likewise.
1342         Reported by Owen Taylor <otaylor@redhat.com>.
1343         * iconv/Makefile (tests): Add tst-iconv2.
1344         * iconv/tst-iconv2.c: New file.
1346 2001-01-04  H.J. Lu  <hjl@gnu.org>
1348         * elf/dl-support.c (DL_FIND_AUXV): New.  Defined if not defined.
1349         (_dl_clktck): Declared.
1350         (non_dynamic_init): Take 3 arguments.
1351         Set _dl_pagesize, _dl_platform and _dl_clktck from AUX.
1353 2001-01-01  Bruno Haible  <haible@clisp.cons.org>
1355         Finish implementation of plural form handling.
1356         * intl/dcigettext.c (known_translation_t): Rename 'domain' field to
1357         'domainname'.  Remove 'plindex' field. Add 'domain' and
1358         'translation_length' fields.
1359         (transcmp): Don't compare 'plindex' fields.
1360         (plural_lookup): New function.
1361         (DCIGETTEXT): Change cache handing in the plural case.  Don't call
1362         plural_eval before the translation and its catalog file have been
1363         found. Remove plindex from cache key.  Add 'translation_length' and
1364         'domain' to cache result.
1365         (_nl_find_msg): Remove index argument, return length of translation
1366         to the caller instead.  Weaken comparison of string lengths, to account
1367         for plural entries.  Call iconv() on the entire result string, not
1368         only on the portion needed so far.
1369         * intl/loadinfo.h (_nl_find_msg): Remove index argument, add lengthp
1370         argument.
1371         * intl/loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change.
1373 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
1375         * intl/plural.y (yylex): Minimal improvement in number scanner.
1377 2000-07-31  Bruno Haible  <haible@clisp.cons.org>
1379         * intl/plural.y: Include config.h. Needed to define 'inline' away for
1380         C compilers that don't support it.
1381         (yylex): Don't use gcc specific case range syntax.
1382         * intl/loadmsgcat.c (INIT_GERMANIC_PLURAL): New macro, for old
1383         compilers.
1385 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
1387         * intl/finddomain.c: Remove unneeded includes.
1389 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
1391         * intl/localealias.c (memcpy): Return first argument, just like the
1392         real memcpy function does.
1393         * intl/bindtextdom.c (memcpy): Likewise.
1394         * intl/finddomain.c (memcpy): Likewise.
1395         * intl/l10nflist.c (memcpy): Likewise.
1396         * intl/textdomain.c (memcpy): Likewise.
1397         From Paul Eggert <eggert@twinsun.com>.
1399 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
1401         * resolv/resolv.h (struct __res_state): Add nsinit field.
1402         * resolv/res_send.c (res_nsend): Use it instead of nscount.
1403         * resolv/res_init.c (__res_vinit): Initialize it.
1404         (res_nclose): Clear it instead of nscount.
1406 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
1408         * malloc/mtrace.pl: Fix matching of addresses.
1409         Patch by Aharon Robbins <arnold@skeeve.com>.
1411         * Versions.def (ld): Add GLIBC_2.2.
1413         * catgets/gencat.c: Copyright 2001.
1414         * csu/version.c: Likewise.
1415         * debug/catchsegv.sh: Likewise.
1416         * debug/xtrace.sh: Likewise.
1417         * elf/ldconfig.c: Likewise.
1418         * elf/sprof.c: Likewise.
1419         * iconv/iconv_prog.c: Likewise.
1420         * locale/locale.c: Likewise.
1421         * locale/localedef.c: Likewise.
1422         * malloc/memusage.sh: Likewise.
1423         * malloc/mtrace.pl: Likewise.
1424         * nscd/nscd.c: Likewise.
1425         * posix/getconf.c: Likewise.
1427 2001-01-04  Mark Kettenis  <kettenis@gnu.org>
1429         * include/stdio.h: Only provide __getwc_unlocked prototype if
1430         USE_IN_LIBIO is defined.
1432 2001-01-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1434         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
1435         handling.
1437 2001-01-03  Andreas Schwab  <schwab@suse.de>
1439         * sysdeps/generic/strtoll.c: Remove unused __strtoq_internal alias.
1440         * sysdeps/generic/strtoull.c: Remove unused __strtouq_internal alias.
1442         * sysdeps/wordsize-64/strtol.c: Add strtoq alias and fix strtoll alias.
1443         * sysdeps/wordsize-64/strtoul.c: Add strtouq alias and fix
1444         strtoull alias.
1445         * sysdeps/wordsize-64/wcstol.c: Add wcstoq alias and fix wcstoll alias.
1446         * sysdeps/wordsize-64/wcstoul.c: Add wcstouq alias and fix
1447         wcstoull alias.
1449         * sysdeps/generic/strtoul.c: Make sure we find strtol.c in this
1450         directory.
1451         * sysdeps/generic/strtol_l.c: Likewise.
1452         * sysdeps/generic/strtoul_l.c: Likewise.
1453         * sysdeps/generic/wcstoul.c: Likewise, for wcstol.c.
1455         * sysdeps/wordsize-64/strtol_l.c: Fix alias.
1456         * sysdeps/wordsize-64/strtoul_l.c: Likewise.
1457         * sysdeps/wordsize-64/wcstol_l.c: Fix alias.
1458         * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
1460 2001-01-04  Andreas Jaeger  <aj@suse.de>
1462         * nss/nsswitch.c: Include files for missing prototypes, remove
1463         buggy declaration of prototypes.
1465 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1467         * resolv/Versions: Fix bracing.
1468         * sysdeps/powerpc/soft-fp/Versions: Likewise.
1469         * sysdeps/sparc/sparc64/soft-fp/Versions: Likewise.
1471 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1473         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
1475 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
1477         * manual/Makefile (TEXI2PDF): Change to texi2dvi --pdf.
1478         Suggested by Minko Markov <mmarkov@home.com>.
1480 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1482         * sysdeps/powerpc/elf/start.S (__data_start): Make it global.
1483         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): Print the name of
1484         the failing symbol.
1485         (__process_machine_rela): Pass symbol to dl_reloc_overflow().
1487 2001-01-02  Ben Collins  <bcollins@debian.org>
1489         * time/tzset.c (tzset_internal): Make sure we fall back to UTC
1490         if TZ is not set and TZDEFAULT is not present.
1492 2001-01-01  Ben Collins  <bcollins@debian.org>
1494         * string/strings.h: Make sure we declare our functions even if
1495         string.h is already included, based on whether or not __USE_BSD is
1496         defined.
1498 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
1500         * dlfcn/dlerror.c (dlerror): Handle call of dlerror() before any
1501         other dlopen() and dlsym().
1502         Based on a patch by Ben Collins <bcollins@debian.org>.
1504 2001-01-02  Andreas Jaeger  <aj@suse.de>
1506         * dlfcn/errmsg1.c (main): Call dlerror initially.
1507         Reported by Ben Collins <bcollins@debian.org>.
1509 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
1511         * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
1512         value is ignored if the selected locale is the C locale.
1513         * intl/tst-gettext.c: Set locale for above change.
1514         * intl/tst-translit.c: Likewise.
1516 2001-01-02  Andreas Jaeger  <aj@suse.de>
1518         * libio/wgenops.c (_IO_wdoallocbuf): Use correct wide access macro.
1519         (_IO_switch_to_wget_mode): Likewise.
1520         (_IO_sputbackwc): Likewise.
1521         (_IO_sungetwc): Use wint_t for result.
1523         * stdio-common/vfscanf.c (__vfscanf): Use WINT_T for done.
1525         * sysdeps/generic/strtol.c (strtol): Make cnt size_t for correct
1526         signedness.
1528         * sysdeps/generic/printf_fphex.c (putc): Cast _IO_putwc_unlocked
1529         to (int) to avoid warnings.
1530         * stdio-common/printf_fp.c (putc): Likewise.
1531         * stdio-common/printf_size.c (putc): Likewise.
1533         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make
1534         constant unsigned.
1536 2001-01-01  Andreas Jaeger  <aj@suse.de>
1538         * inet/rcmd.c (rcmd_af): Use socklen_t for len.
1540 2000-12-31  Andreas Jaeger  <aj@suse.de>
1542         * include/libc-internal.h: Add prototype for __libc_freeres.
1544         * sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
1545         for prototypes, remove redundant prototypes.
1546         * gmon/gmon.c: Likewise.
1547         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
1548         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
1549         * malloc/mtrace.c: Likewise.
1551         * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
1552         prototypes.
1553         * elf/soinit.c: Likewise.
1554         * sysdeps/generic/prof-freq.c: Likewise.
1555         * sysdeps/mach/hurd/profil.c: Likewise.
1556         * debug/noophooks.c: Likewise.
1557         * debug/pcprofile.c: Likewise.
1558         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1559         * sysdeps/generic/get_clockfreq.c: Likewise.
1560         * malloc/set-freeres.c: Likewise.
1562         * locale/localeinfo.h: Add internal prototypes.
1564         * elf/rtld.c (dl_main): Fix prototype.
1566         * iconvdata/tst-table-to.c (main): Use return instead of exit to
1567         avoid warning.
1569         * nis/rpcsvc/yp_prot.h: Remove __P.
1570         * nis/rpcsvc/ypupd.h: Likewise.
1571         * nis/rpcsvc/yp.h: Likewise.
1573         * sunrpc/rpc_main.c: Add noreturn attributes.
1574         * sunrpc/rpc_scan.h: Likewise.
1576         * sunrpc/rpc_hout.c (storexdrfuncdecl): Make static.
1578         * sunrpc/rpcinfo.c: Add noreturn attribute to brdcst.
1580         * sunrpc/proto.h: Add noreturn attributes to error and crash.
1582         * posix/bsd-getpgrp.c: Add prototype to avoid warning.
1584         * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
1586         * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
1588         * include/rpc/rpc_msg.h: Add prototypes for some functions.
1589         * include/rpc/auth.h: Likewise.
1590         * include/rpc/auth_des.h: Likewise.
1591         * include/rpc/clnt.h: Likewise.
1592         * include/rpc/rpc.h: Likewise.
1593         * include/rpc/svc.h: Likewise.
1594         * include/rpc/svc_auth.h: Likewise.
1596         * include/rpc/des_crypt.h: New file.
1598         * malloc/memusagestat.c (main): Use return instead of exit to
1599         avoid warning.
1600         * io/pwd.c (main): Likewise.
1601         * iconvdata/tst-table-from.c (main): Likewise.
1602         * ctype/test_ctype.c (main): Likewise.
1603         * setjmp/tst-setjmp.c (main): Likewise.
1604         * signal/tst-signal.c (main): Likewise.
1605         * stdlib/tst-strtol.c (main): Likewise.
1606         * stdlib/tst-strtod.c (main): Likewise.
1607         * stdlib/tst-strtoll.c (main): Likewise.
1608         * stdlib/tst-xpg-basename.c (main): Likewise.
1609         * dirent/tst-seekdir.c (main): Likewise.
1610         * grp/testgrp.c (main): Likewise.
1611         * inet/test_ifindex.c (main): Likewise.
1612         * io/test-utime.c (main): Likewise.
1613         * posix/test-vfork.c (main): Likewise.
1614         * posix/testfnm.c (main): Likewise.
1615         * stdio-common/temptest.c (main): Likewise.
1616         * stdio-common/test_rdwr.c (main): Likewise.
1617         * stdio-common/tst-fileno.c (main): Likewise.
1618         * stdio-common/tst-sscanf.c (main): Likewise.
1619         * stdio-common/tstscanf.c (main): Likewise.
1620         * string/bug-strncat1.c (main): Likewise.
1621         * string/bug-strpbrk1.c (main): Likewise.
1622         * string/bug-strspn1.c (main): Likewise.
1623         * string/test-ffs.c (main): Likewise.
1624         * string/tst-inlcall.c (main): Likewise.
1625         * string/tst-svc.c (main): Likewise.
1626         * timezone/test-tz.c (main): Likewise.
1627         * wctype/test_wcfuncs.c (main): Likewise.
1628         * wctype/test_wctype.c (main): Likewise.
1630         * stdlib/tst-random.c: Add attribute noreturn to fail.
1632 2000-12-28  Wolfram Gloger  <wg@malloc.de>
1634         * malloc/malloc.c (MALLOC_COPY): Handle case if source and
1635         destination overlap.  Assume dest is always below source if
1636         overlapping.
1638 2000-12-30  Ulrich Drepper  <drepper@redhat.com>
1640         * elf/dl-close.c (_dl_close): We can ignore the NODELETE flag if the
1641         object was not yet initialized.
1643 2000-12-28  H.J. Lu  <hjl@gnu.org>
1645         * elf/dl-deps.c (_dl_map_object_deps): Make sure the DSO state
1646         is always consistent even if its dependency is failed.
1648         * elf/dl-open.c (_dl_open): Increment the open count before
1649         calling _dl_close () in case of failure.
1651         * elf/neededtest4.c: New file.
1652         * elf/neededobj5.c: New file.
1653         * elf/neededobj6.c: New file.
1655         * elf/Makefile (distribute): Add neededobj5.c and neededobj6.c.
1656         (tests): Add neededtest4.
1657         (modules-names): Add neededobj5 and neededobj6.
1658         ($(objpfx)neededobj6.so): New target.
1659         ($(objpfx)neededtest4): New target.
1660         ($(objpfx)neededtest4.out): New target.
1662 2000-12-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1664         * misc/sys/cdefs.h (__attribute_format_strfmon__): Define.
1665         * stdlib/monetary.h: Add strfmon format attributes.
1667 2000-12-28  Roland McGrath  <roland@frob.com>
1669         * sysdeps/mach/hurd/ioctl.c (do_ioctl): Avoid double-increment after
1670         __mempcpy does it for us.
1672 2000-12-28  Andreas Jaeger  <aj@suse.de>
1674         * sysdeps/generic/dl-environ.c: Add prototype for unsetenv.
1676         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for
1677         __new_setrlimit.
1679         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for
1680         __old_getrlimit64.
1682         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for
1683         __new_getrlimit.
1685         * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for
1686         __chown_is_lchown and __real_chown.
1688         * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
1689         _dl_reloc_bad_type.
1691         * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
1692         up GCC's warning about "deprecated use of label at end of compound
1693         statement."
1694         * sunrpc/rpc_cout.c (emit_inline): Likewise.
1696         * gmon/bb_exit_func.c: Include <sys/gmon.h> for internal
1697         prototypes.
1698         Remove struct bb and __bb_head since those are declared by
1699         sys/gmon.h.
1701 2000-12-22  Ben Collins  <bcollins@debian.org>
1703         * manual/charset.texi: Fix typo in description of WCHAR_MAX.
1705         * manual/argp.texi: Document argp_domain as part of struct argp.
1707 2000-12-28  Andreas Jaeger  <aj@suse.de>
1709         * catgets/Makefile (generated): Add sample.SJIS.cat.
1711         * sunrpc/rpc_dtable.c: Include rpc/clnt.h for prototypes.
1713         * elf/dl-minimal.c: Add prototypes.
1715         * include/locale.h: Add internal prototypes.
1716         * include/sys/gmon.h: Likewise.
1718         * dlfcn/errmsg1mod.c: Add prototype for foo to shut up GCC.
1720 2000-12-27  Ben Collins  <bcollins@debian.org>
1722         * elf/dl-open.c (_dl_open): Correctly set the new objname pointer
1723         when reallocating the error strings.
1724         Reported by Kalle Olavi Niemitalo <kon@iki.fi>
1726 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
1728         * dlfcn/Makefile (tests): Add errmsg1.
1729         (modules-names): Add errmsg1mod.
1730         Add rules to run errmsg1.
1731         * dlfcn/errmsg1.c: New file.
1732         * dlfcn/errmsg1mod.c: New file.
1734         * dlfcn/dlerror.c (dlerror): Always create output string which
1735         includes object file name.
1737         * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop
1738         if we would go through it only once.
1739         Patch by Rick Gorton <rick.gorton@api-networks.com>.
1741         * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter.
1742         Patch by Richard Henderson <rth@redhat.com>.
1744 2000-12-27  Jakub Jelinek  <jakub@redhat.com>
1746         * malloc/malloc.c (memmove): Add prototypes.
1747         (MALLOC_MEMMOVE): Define.
1748         (chunk_realloc): Use it instead of MALLOC_COPY if source and
1749         destination might overlap.
1751 2000-12-27  Andreas Jaeger  <aj@suse.de>
1753         * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested
1754         function.
1755         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1756         * locale/programs/locale.c (show_locale_vars): Likewise.
1757         (show_info): Likewise.
1758         * locale/programs/ld-collate.c (collate_output): Likewise.
1759         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
1760         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1761         * stdlib/rpmatch.c (rpmatch): Likewise.
1763         * setjmp/tst-setjmp.c: Make local functions static.
1764         * setjmp/jmpbug.c: Likewise.
1765         * signal/tst-signal.c: Likewise.
1766         * stdio-common/tfformat.c: Likewise.
1767         * string/tst-svc.c: Likewise.
1768         * time/clocktest.c: Likewise.
1769         * time/tst-getdate.c: Likewise.
1770         * dirent/list.c: Likewise.
1771         * dirent/opendir-tst1.c: Likewise.
1772         * posix/runtests.c: Likewise.
1773         * posix/tst-getaddrinfo.c: Likewise.
1774         * posix/tst-chmod.c: Likewise.
1775         * posix/wordexp-test.c: Likewise.
1776         * misc/tst-efgcvt.c: Likewise.
1777         * timezone/tst-timezone.c: Likewise.
1778         * rt/tst-clock.c: Likewise.
1779         * rt/tst-shm.c: Likewise.
1780         * rt/tst-aio2.c: Likewise.
1781         * rt/tst-aio3.c: Likewise.
1782         * rt/tst-aio4.c: Likewise.
1783         * rt/tst-aio5.c: Likewise.
1785         * dlfcn/failtest.c: Add prototype for foo.
1787         * dlfcn/glrefmain.c: Add prototype for do_test.
1789         * dlfcn/tst-dladdr.c: Add prototype for do_test.
1791         * string/test-ffs.c (main): Add prototype for nested function.
1793         * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype.
1795         * nss/XXX-lookup.c: Add prototype to shut up GCC.
1797         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix
1798         setetherent prototype.
1799         Add internal interfaces.
1801         * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise.
1802         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise.
1804         * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC.
1806         * nis/nis_intern.h: Add prototype for __pmap_getnisport.
1808         * nss/nss_files/files-ethers.c: Include netinet/ether.h to get
1809         prototypes, remove struct etherent since it's declared in ether.h.
1810         Fix ntohost declaration.
1812         * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC.
1814         * include/getopt.h: Add internal interfaces.
1815         * include/termios.h: Likewise.
1816         * include/resolv.h: Likewise.
1817         * include/netdb.h: Likewise.
1818         * include/grp.h: Likewise.
1819         * include/pwd.h: Likewise.
1820         * include/shadow.h: Likewise.
1821         * include/rpc/netdb.h: Likewise.
1822         * include/setjmp.h: Likewise.
1824         * include/stdio.h: Add prototypes for compatibility functions.
1825         * include/grp.h: Likewise.
1826         * include/pwd.h: Likewise.
1827         * include/shadow.h: Likewise.
1829         * include/fenv.h: Define internal interfaces.
1831 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
1833         * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant
1834         argument case separately.
1835         * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise.
1837 2000-12-27  Andreas Jaeger  <aj@suse.de>
1839         * include/sys/wait.h: Add some prototypes.
1840         * Rules (dummy.c): Create also prototype to shut up GCC.
1842 2000-12-27  Andreas Jaeger  <aj@suse.de>
1844         * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment,
1845         it's not needed at the moment.
1846         * sysdeps/generic/if_index.c (__protocol_available): Likewise.
1847         * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise.
1849 2000-12-26  Andreas Jaeger  <aj@suse.de>
1851         * libio/getc_u.c: Include stdio.h via system path to get internal
1852         prototypes.
1853         * libio/getwc_u.c: Likewise.
1855         * stdlib/strfmon.c: Fix prototype of __printf_fp.
1857         * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
1858         __printf_fp prototypes to ...
1859         * include/printf.h: ...here.
1861         * include/stdio.h: Add some internal prototypes to shut up GCC.
1862         * include/stdlib.h: Likewise.
1864         * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
1865         declaration.
1867         * include/signal.h: Add prototypes for internal sigpause
1868         interfaces.
1870 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
1872         * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
1873         64bit platforms.  Reported by Dave Gilbert <gilbertd@treblig.org>.
1875         * string/Makefile (tests): Add tst-bswap.
1876         * string/tst-bswap.c: New file.
1878 2000-12-11  Bruno Haible  <haible@clisp.cons.org>
1880         * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
1882 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
1884         * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call.
1885         Patch by Ed Connell <Ed.Connell@sas.com>.
1887 2000-12-24  Ulrich Drepper  <drepper@redhat.com>
1889         * locale/iso-639.def: Correct one entry.  Add two missing entries.
1891         * locale/iso-4217.def: Change entry for Eritrea.
1892         Reported by Daniel Yacob <yacob@geez.org>.
1894 2000-12-23  Ben Collins  <bcollins@debian.org>
1896         * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937
1897         description.
1899         * manual/stdio.texi (Dynamic Output): Document the return value of
1900         asprintf.  Also make the asprintf/snprintf examples a little
1901         better (check for some error returns).
1903 2000-12-22  Andreas Jaeger  <aj@suse.de>
1905         * include/stdio.h: Add __ftrylockfile prototype.
1907 2000-12-21  H.J. Lu  <hjl@gnu.org>
1909         * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type):
1910         Make sign_exponent element signed.
1912         * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type):
1913         Fix a typo.
1915         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch.
1917 2000-12-21  Andreas Jaeger  <aj@suse.de>
1919         * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
1920         * inet/ether_hton.c: Likewise
1921         * inet/ether_ntoh.c: Likewise.
1923         * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
1924         declaration to match prototype.
1926         * include/netinet/ether.h (struct etherent): Declare here so that
1927         all implementations use the same struct.
1929         * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
1930         prototypes.
1931         (struct ether): Removed.
1932         Use struct etherent instead of ether everywhere.
1934         * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.
1936         * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.
1938         * sunrpc/publickey.c: Include auth_des.h for prototypes.
1940 2000-12-20  Ulrich Drepper  <drepper@redhat.com>
1942         * math/test-misc.c: Add more tests for nextafter functions.
1944         * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to
1945         normal correctly.  Correct test for sign.
1946         Based on a patch by HJ Lu.
1948 2000-12-19  Ulrich Drepper  <drepper@redhat.com>
1950         * Makeconfig (preprocess-version): Add -traditional to gcc call.
1951         Cleanup sed calls.
1953 2000-12-19  Andreas Jaeger  <aj@suse.de>
1955         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New.
1957         * nis/nis_intern.h: Add prototype for __do_niscall3.
1959         * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to
1960         match prototype.
1962         * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat.
1964         * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New.
1966         * include/aliases.h (DECLARE_NSS_PROTOTYPES): New.
1968 2000-12-18  Ulrich Drepper  <drepper@redhat.com>
1970         * math/test-misc.c: Add more tests for nextafter.
1971         * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
1972         * sysdeps/ieee754/ldbl-96/math_ldbl.h
1973         (ieee_long_double_shape_type): Make sign_exponent element signed.
1975         * manual/message.texi: Add Estonian to plural overview list.
1976         Correct rule for Slavic languages.
1977         Patch by Stanislav Brabec <utx@penguin.cz>.
1979         * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
1981 2000-12-18  Andreas Jaeger  <aj@suse.de>
1983         * test-skeleton.c: Use temp_name_list instead of name_list to
1984         avoid collision with name_list from inet/netgroup.h.
1986         * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
1988         * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
1989         * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
1990         * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
1991         * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
1993         * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
1994         declaration to match prototype.
1995         * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
1996         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
1997         * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
1998         Likewise.
1999         * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
2000         * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
2001         * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
2002         * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
2003         (_nss_nis_getservbyport_r): Likewise.
2004         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
2005         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
2006         * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
2007         (_nss_nis_setnetent): Likewise
2008         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
2009         (_nss_nis_endnetgrent): Likewise.
2010         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
2011         Likewise.
2012         (_nss_nisplus_setnetgrent): Likewise.
2013         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
2014         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
2015         * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
2016         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
2017         Likewise.
2018         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
2019         Likewise.
2020         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
2021         Likewise.
2022         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
2023         Likewise.
2024         * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
2025         * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
2026         * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
2027         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2028         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
2029         (_nss_dns_getnetbyaddr_r): Likewise.
2031 2000-12-17  Andreas Jaeger  <aj@suse.de>
2033         * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
2034         parameter.
2036         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
2037         unused attribute to shut up gcc warnings.
2039         * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
2040         * sysdeps/generic/k_tanl.c: Likewise.
2041         * sysdeps/generic/k_cosl.c: Likewise.
2042         * sysdeps/generic/e_j0l.c: Likewise.
2043         * sysdeps/generic/e_j1l.c: Likewise.
2044         * sysdeps/generic/e_jnl.c: Likewise.
2045         * sysdeps/generic/e_lgammal_r.c: Likewise.
2047         * elf/vismain.c: Move prototypes for functions in vismod*.c to
2048         vismod.h.
2049         * elf/vismod.h: New file.
2050         * elf/Makefile (distribute): Add vismod.h.
2051         * elf/vismod1.c: Include vismod.h.
2052         * elf/vismod2.c: Likewise.
2053         * elf/vismod3.c: Likewise.
2055         * elf/constload3.c: Add prototype declarations to shut up gcc.
2056         * elf/failobj.c: Likewise.
2057         * elf/nodelmod3.c: Likewise.
2058         * elf/filtmod1.c: Likewise.
2059         * elf/filtmod2.c: Likewise.
2060         * elf/reldepmod1.c: Likewise.
2061         * elf/reldepmod2.c: Likewise.
2062         * elf/reldepmod3.c: Likewise.
2063         * elf/reldepmod4.c: Likewise.
2064         * elf/unload2dep.c: Likewise.
2065         * elf/unload2mod.c: Likewise.
2066         * elf/ltglobmod1.c: Likewise.
2067         * elf/pathoptobj.c: Likewise.
2068         * elf/neededobj1.c: Likewise.
2069         * elf/neededobj2.c: Likewise.
2070         * elf/neededobj3.c: Likewise.
2071         * elf/neededobj4.c: Likewise.
2072         * elf/nextmod1.c: Likewise.
2073         * elf/nextmod2.c: Likewise.
2075         * locale/programs/ld-collate.c (collate_finish): Don't use labels
2076         at end of compound statement.
2077         * locale/programs/locale.c (show_info): Likewise.
2078         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2080 2000-12-16  Jakub Jelinek  <jakub@redhat.com>
2082         * catgets/gencat.c (read_input_file): Avoid calling obstack_free
2083         with a pointer not returned by obstack_ functions.
2085 2000-12-16  Ulrich Drepper  <drepper@redhat.com>
2087         * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
2088         version.
2089         (struct stat64): Likewise.
2090         Reported by Michael Keezer <mkeezer@redhat.com>.
2092         * timezone/asia: Update from tzdata2000h.
2093         * timezone/australasia: Likewise.
2094         * timezone/backward: Likewise.
2095         * timezone/europe: Likewise.
2096         * timezone/northamerica: Likewise.
2097         * timezone/southamerica: Likewise.
2098         * timezone/zone.tab: Likewise.
2100 2000-12-14  Jakub Jelinek  <jakub@redhat.com>
2102         * io/ftw.c (ftw_dir): If process_entry returned non-zero result
2103         and dir.stream is NULL, only free dir.content.
2104         * io/ftwtest.c (cb, main): Add --early-exit option to test it.
2105         * io/ftwtest-sh: Test with --early-exit.
2107 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
2109         * misc/efgcvt.c (FCVT_MAXDIG): Define.
2110         (FCVT_BUFPTR): New variable.
2111         (fcvt): If fcvt_r returns -1 on the static short buffer,
2112         try to malloc a sufficiently large one and retry.
2113         (free_mem): New function.
2114         * misc/qefgcvt.c (FCVT_MAXDIG): Define.
2115         * misc/tst-efgcvt.c (fcvt_tests): Add new test.
2117 2000-12-15  Ulrich Drepper  <drepper@redhat.com>
2119         * misc/dirname.c (dirname): Fix search for second to last slash.
2121 2000-12-13  Andreas Jaeger  <aj@suse.de>
2123         * misc/tst-dirname.c (main): Fix typo in test to really use
2124         the examples from Unix98.
2125         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2127 2000-12-09  H.J. Lu  <hjl@gnu.org>
2129         * sysdeps/ia64/fpu/s_fabs.S: New file.
2130         * sysdeps/ia64/fpu/s_fabsf.S: New file.
2131         * sysdeps/ia64/fpu/s_fabsl.S: New file.
2133 2000-12-15  Andreas Jaeger  <aj@suse.de>
2135         * stdio-common/scanf9.c (main): Reformat and change to avoid
2136         warnings.
2138         * stdio-common/tstdiomisc.c: Make local functions static.
2139         * stdio-common/tst-printf.c: Likewise.
2141         * elf/constload2.c: Add prototype declarations to shut up gcc.
2142         * elf/dep1.c: Likewise.
2143         * elf/dep2.c: Likewise.
2144         * elf/dep3.c: Likewise.
2145         * elf/dep4.c: Likewise.
2146         * elf/ltglobmod2.c: Likewise.
2148         * libio/fmemopen.c: Make local functions static.
2150         * elf/Makefile (distribute): Added testobj.h.
2152         * elf/testobj.h: New file.
2154         * elf/testobj1.c: Include testobj.h and move prototype
2155         declarations to testobj.h.
2156         * elf/testobj2.c: Likewise.
2157         * elf/testobj3.c: Likewise.
2158         * elf/testobj4.c: Likewise.
2159         * elf/testobj5.c: Likewise.
2160         * elf/testobj6.c: Likewise.
2161         * elf/testobj1_1.c: Likewise.
2162         * elf/preloadtest.c: Likewise.
2164 2000-12-15  Ben Collins  <bcollins@debian.org>
2166         * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
2167         Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
2169 2000-12-14  H.J. Lu  <hjl@gnu.org>
2171         * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
2172         field in a float is 8 bits, not 11 bits.
2174 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
2176         * math/test-misc.c (main): Adjust m for IEEE quad long double.
2178 2000-12-13  Andreas Jaeger  <aj@suse.de>
2180         * manual/message.texi (Using gettextized software): Fix typo.
2182         * manual/charset.texi (Converting a Character): Fix mbstouwcs
2183         program to compile.
2184         Patch by Martin Buchholz <martin@xemacs.org>.
2186         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
2187         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2189 2000-12-11  Andreas Jaeger  <aj@suse.de>
2191         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
2192         kernel_sigset_t and use it.
2193         Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
2195 2000-12-10  Richard Henderson  <rth@redhat.com>
2197         * sysdeps/alpha/alphaev67/fpu/Implies: New file.
2198         * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
2199         * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
2201 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
2203         * sysdeps/alpha/htonl.S: Fix a typo.
2205 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
2207         * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
2209 2000-12-10  Andreas Jaeger  <aj@suse.de>
2211         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
2212         cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
2213         Drepper <drepper@redhat.com>.
2215 2000-12-09  Andreas Jaeger  <aj@suse.de>
2217         * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
2219         * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
2220         generic version.
2221         Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
2223         * locale/programs/ld-collate.c (handle_ellipsis): Fix format
2224         string.
2226         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
2227         format string.
2229         * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
2230         * nscd/connections.c (handle_request): Likewise.
2231         * nscd/pwdcache.c (addpwbyname): Likewise.
2232         * nscd/grpcache.c (addgrbyname): Likewise.
2234         * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
2236 2000-12-09  Ulrich Drepper  <drepper@redhat.com>
2238         * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
2240         * Makeconfig (default_cflags): Make -O2 the default for stable
2241         releases.
2243 2000-12-08  H.J. Lu  <hjl@gnu.org>
2245         * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
2246         * sysdeps/ia64/fpu/s_isinf.S: This.
2247         Add a .pred.rel.mutex note to avoid false report.
2249         * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
2250         * sysdeps/ia64/fpu/s_isnan.S: This.
2252         * sysdeps/ia64/fpu/s_fpclassify.S: New file.
2253         * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
2254         * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
2255         * sysdeps/ia64/fpu/s_isinff.S: New file.
2256         * sysdeps/ia64/fpu/s_isinfl.S: New file.
2257         * sysdeps/ia64/fpu/s_isnanf.S: New file.
2258         * sysdeps/ia64/fpu/s_isnanl.S: New file.
2259         * sysdeps/ia64/fpu/s_finite.S: New file.
2260         * sysdeps/ia64/fpu/s_finitef.S: New file.
2261         * sysdeps/ia64/fpu/s_finitel.S: New file.
2262         * sysdeps/ia64/fpu/s_signbit.S: New file.
2263         * sysdeps/ia64/fpu/s_signbitf.S: New file.
2264         * sysdeps/ia64/fpu/s_signbitl.S: New file.
2265         * sysdeps/ia64/fpu/s_copysign.S: New file.
2266         * sysdeps/ia64/fpu/s_copysignf.S: New file.
2267         * sysdeps/ia64/fpu/s_copysignl.S: New file.
2269 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
2271         * math/libm-test.inc (main): Fix typos in messages.
2273         * string/stratcliff.c: Add test for rawmemchr.
2275 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
2277         * elf/dl-open.c (_dl_open): If objname points right after errstring,
2278         allocate it together with errstring using alloca.
2279         * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
2280         to "", because it might point to local stack.
2282 2000-12-05  H.J. Lu  <hjl@gnu.org>
2284         * nss/Makefile (routines): Add getnssent and getnssent_r.
2285         * nss/nsswitch.h (__nss_setent): New internal NSS function.
2286         (__nss_endent): Likewise.
2287         (__nss_getent_r): Likewise.
2288         (__nss_getent): Likewise.
2289         * nss/getnssent_r.c: New file.
2290         * nss/getnssent.c: New file.
2291         * nss/getXXent.c (H_ERRNO_VAR): Updated.
2292         (GETFUNC_NAME): Updated to call __nss_getent ().
2293         * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
2294         (STAYOPEN_TMPVAR): Updated.
2295         (STAYOPEN_VAR): Updated.
2296         (SETFUNC_NAME): Updated to call __nss_setent ().
2297         (ENDFUNC_NAME): Updated to call __nss_endent ().
2298         (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
2300 2000-12-08  Andreas Jaeger  <aj@suse.de>
2302         * nscd/dbg_log.h (dbg_log): Correct attribute.
2304 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
2306         * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
2307         cp + len.  Compute where from dirname.
2308         Reported by <jreiser@BitWagon.com>.
2310 2000-12-08  Richard Henderson  <rth@twiddle.net>
2312         * sysdeps/alpha/_mcount.S: Fix typo.
2313         * sysdeps/alpha/strncpy.S: Likewise.
2315         * sysdeps/alpha/alphaev6/Implies: New file.
2316         * sysdeps/alpha/alphaev67/Implies: New file.
2317         * sysdeps/alpha/alphaev67/ffs.S: New file.
2318         * sysdeps/alpha/alphaev67/ffsll.S: New file.
2319         * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
2320         * sysdeps/alpha/alphaev67/stpcpy.S: New file.
2321         * sysdeps/alpha/alphaev67/stpncpy.S: New file.
2322         * sysdeps/alpha/rawmemchr.S: New file.
2323         * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
2324         * sysdeps/alpha/strcpy.S: Likewise.
2326         From GMP 3.1.1:
2327         * sysdeps/alpha/alphaev6/addmul_1.s: New file.
2329         From rick.gorton@alpha-processor.com:
2330         * sysdeps/alpha/alphaev6/memchr.S: New file.
2331         * sysdeps/alpha/alphaev6/memcpy.S: New file.
2332         * sysdeps/alpha/alphaev6/memset.S: New file.
2333         * sysdeps/alpha/alphaev6/stxcpy.S: New file.
2334         * sysdeps/alpha/alphaev6/stxncpy.S: New file.
2335         * sysdeps/alpha/alphaev67/strcat.S: New file.
2336         * sysdeps/alpha/alphaev67/strchr.S: New file.
2337         * sysdeps/alpha/alphaev67/strlen.S: New file.
2338         * sysdeps/alpha/alphaev67/strncat.S: New file.
2339         * sysdeps/alpha/htonl.S: Use a shorter sequence.
2341 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
2343         * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
2344         Reported by <pspencer@fields.utoronto.ca>.
2346 2000-12-07  Jes Sorensen  <jes@linuxcare.com>
2348         * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
2349         Pointed out by Hans Boehm.
2351 2000-12-07  H.J. Lu  <hjl@gnu.org>
2353         * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
2355 2000-12-07  Andreas Jaeger  <aj@suse.de>
2357         * misc/error.c: Add format attributes for __error and __error_at_line.
2359         * nscd/dbg_log.h: Add format attribute.
2361 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
2363         * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
2364         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
2366 2000-12-07  Dan Pop  <Dan.Pop@cern.ch>
2368         * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
2370 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
2372         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
2373         (sysdep_routines): Add uitrunc.
2374         * sysdeps/unix/sysv/aix/uitrunc.c: New file.
2375         Patches by Michael Keezer <mkeezer@redhat.com>.
2377 2000-12-06  Roland McGrath  <roland@frob.com>
2379         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
2380         argument data, since it will be used to copy out too (for INOUT).
2381         Reported by Marcus Brinkmann <marcus@gnu.org>.
2383         * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
2384         (__ioctl): Use uintptr_t instead of unsigned long int.
2386 2000-12-06  Jim Wilson  <wilson@redhat.com>
2388         * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
2390 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
2392         * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
2393         x.5 rounding correctly.
2395 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
2397         * stdio-common/perror.c (perror): Conditionalize code dealing with
2398         wide-oriented streams on USE_IN_LIBIO.
2400 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
2402         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
2403         as internal_function.
2405 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
2407         * sysdeps/alpha/elf/start.S (__data_start): Define.
2409 2000-12-05  H.J. Lu  <hjl@gnu.org>
2411         * nss/getXXent_r.c (setup): Change the return type to int.
2413 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
2415         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
2416         (sysdep_routines): Add restf and savef.
2417         * sysdeps/unix/sysv/aix/restf.c: New file.
2418         * sysdeps/unix/sysv/aix/savef.c: New file.
2419         Patches by Michael Keezer <mkeezer@redhat.com>.
2421         * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
2422         if O_DIRECTORY is not defined.
2423         Patch by Michael Keezer <mkeezer@redhat.com>.
2425         * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
2426         Patch by Michael Keezer <mkeezer@redhat.com>.
2428         * locale/programs/linereader.c (get_toplvl_escape): Recognize more
2429         than 4 bytes in escape sequence.
2430         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2432 2000-12-05  Andreas Jaeger  <aj@suse.de>
2434         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
2435         set mips2.
2437         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
2439         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
2441         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
2442         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2444         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
2445         internal_function.
2446         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
2447         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
2449         * sysdeps/generic/dl-cache.c: Remove declaration of
2450         _dl_sysdep_read_whole_file.
2452         * elf/dl-load.c (_dl_map_object): Remove declaration of
2453         _dl_load_cache_lookup.
2455         * sysdeps/generic/ldsodefs.h: Add declarations of
2456         _dl_load_cache_lookup, _dl_unload_cache,
2457         _dl_sysdep_read_whole_file, _dl_sysdep_start and
2458         _dl_sysdep_start_cleanup.
2460         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
2461         now.
2463         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
2464         * sysdeps/generic/dl-environ.c: Likewise.
2466         * stdio-common/printf_fp.c: Include <gmp.h> instead of
2467         <stdlib/gmp.h>.
2468         * math/atest-exp.c: Likewise.
2469         * math/atest-exp2.c: Likewise.
2470         * math/atest-sincos.c: Likewise.
2471         * stdio-common/_itoa.c: Likewise.
2472         * stdio-common/_itowa.c: Likewise.
2474         * include/gmp.h: New file with internal prototypes.
2476         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
2477         here to...
2478         * include/setjmp.h: ...here.
2480         * locale/Makefile (routines): Remove codeset_name since it's not
2481         needed anywhere.
2483         * locale/codeset_name.c: Removed.
2485 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
2487         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
2489 2000-12-05  Andreas Jaeger  <aj@suse.de>
2491         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
2493 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2495         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
2496         available.
2498 2000-12-05  Andreas Jaeger  <aj@suse.de>
2500         * nss/test-netdb.c: Mark local functions as static to avoid
2501         warnings.
2502         (main): Use return to silence warning.
2504         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
2506         * stdio-common/test-popen.c: Mark local functions as static to
2507         avoid warnings.
2508         (main): Use return to silence warning.
2510         * stdlib/testsort.c (compare): Mark as static to avoid warning.
2512         * assert/test-assert.c: Mark local functions as static to avoid
2513         warnings.
2514         * assert/test-assert-perr.c: Likewise.
2516         * math/libm-test.inc (main): Use return to silence warnings.
2518 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
2520         * math/fenv.h: Fix typo in comment.
2522         * math/test-misc.c (main): Add a few more over and underflow tests
2523         for scalb.
2525         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
2526         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2527         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2528         * math/w_scalb.c: Don't use matherr except in SVID mode.
2529         * math/w_scalbf.c: Likewise.
2530         * math/w_scalbl.c: Likewise.
2531         * math/test-misc.c: Add test for NaN and scalbl.
2532         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2534 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
2536         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
2537         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
2538         * include/libc-symbols.h (strong_alias): Define special version
2539         for HAVE_ASM_GLOBAL_DOT_NAME.
2540         (weak_alias): Likewise.
2541         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
2542         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
2543         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
2544         getutxline, pututxline, and utmpxname.
2545         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
2546         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
2547         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
2548         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
2549         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
2550         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
2551         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
2552         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
2553         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
2554         Patches by Michael Keezer <mkeezer@redhat.com>.
2556 2000-12-04  H.J. Lu  <hjl@gnu.org>
2558         * configure.in: Change --with-oldest-abi=ABI to
2559         --enable-oldest-abi=ABI.
2561 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
2563         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
2564         fwprintf instead of fprintf.
2566 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
2568         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
2569         DECIMAL_DIG definitions.
2570         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
2571         * sysdeps/generic/bits/mathdef.h: Likewise
2572         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
2573         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
2574         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
2575         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
2576         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
2577         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
2579 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
2581         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
2583         * math/atest-exp.c: Mark local functions as static to avoid warnings.
2584         * math/atest-exp2.c: Likewise.
2585         * math/atest-sincos.c: Likewise.
2587         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
2588         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2590         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
2591         the handling of denormalized numbers.
2593         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
2594         numbers on x86.
2595         * sysdeps/i386/fpu/fpclassifyl.c: New file.
2597         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
2598         pseudo denormal representation of LDBL_MIN.
2600         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
2601         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
2603         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
2604         * iconvdata/jis0208.c: Likewise.
2605         * iconvdata/jis0212.c: Likewise.
2606         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2608         * math/test-misc.c (main): More tests for frexp and some for
2609         fpclassify and isnormal.
2611         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
2612         test for subnormal.
2613         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2615         * math/test-misc.c (main): Add tests for frexp.
2616         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2617         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
2619 2000-12-02  H.J. Lu  <hjl@gnu.org>
2621         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
2622         '\0' to wcschr.
2624 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
2626         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
2627         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2628         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2630         * sysdeps/generic/glob.c: Adjust types of several variables to
2631         avoid warnings.
2633 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
2635         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
2637 2000-11-30  Roland McGrath  <roland@frob.com>
2639         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
2640         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
2641         allow multiple instances using the same function name in one file.
2643 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
2645         * configure.in: Correct test for pserver CVS access.
2647 2000-11-28  H.J. Lu  <hjl@gnu.org>
2649         * libio/libio.h: Remove extra "#if ... #endif".
2651 2000-11-29  H.J. Lu  <hjl@gnu.org>
2653         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
2655 2000-12-01  H.J. Lu  <hjl@gnu.org>
2657         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
2658         * nss/getXXent_r.c: Likewise.
2659         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2661 2000-11-30  H.J. Lu  <hjl@gnu.org>
2663         * scripts/abi-versions.awk (oldest_abi): New variable.
2664         Handle the oldest ABI supported.
2666         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
2667         for scripts/abi-versions.awk.
2669         * configure.in: Add --with-oldest-abi=ABI.
2670         * configure: Rebuild.
2672         * config.make.in (oldest-abi): New.
2674         * config.h.in (GLIBC_OLDEST_ABI): New.
2676         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
2678 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
2680         * locale/setlocale.c (setname): Free for all categories, not just
2681         LC_ALL.
2682         (setlocale): Store a copy of string passed by user, not the string
2683         itself.
2685 2000-11-30  Roland McGrath  <roland@frob.com>
2687         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
2688         rather than _hurd_fd_subinit, so it happens after it's safe to use
2689         libc facilities like malloc.
2691 2000-11-28  Andreas Jaeger  <aj@suse.de>
2693         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
2694         declaration, adjust declaration of __syscall_getdents to match
2695         kernel.
2697 2000-11-29  H.J. Lu  <hjl@gnu.org>
2699         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
2701 2000-11-29  Andreas Jaeger  <aj@suse.de>
2703         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
2705 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
2707         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
2708         * dlfcn/defaultmod2.c: Likewise.
2709         * dlfcn/dlopen.c: Likewise.
2710         * dlfcn/dlopenold.c: Likewise.
2711         * dlfcn/failtestmod.c: Likewise.
2712         * dlfcn/glreflib1.c: Likewise.
2713         * dlfcn/glreflib2.c: Likewise.
2714         * dlfcn/eval.c: Likewise.  Add attributes.
2716         * ctype/ctype-extn.c: Define isblank and not __isblank.
2718         * time/strftime.c: Add const where necessary to avoid warnings.
2719         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
2721 2000-11-22  Paul Eggert  <eggert@twinsun.com>
2723         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
2724         size of (size_t) -1; it's not portable.
2726 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
2728         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
2729         crappy i486 FPU.
2730         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
2732 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
2734         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
2736         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
2737         _mcount is required by profiled binaries.
2739         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
2740         * sysdeps/ia64/machine-gmon.h: ...here.
2742 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
2744         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
2745         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
2746         and ibm1129.h.
2747         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
2748         IBM1129.
2749         * iconvdata/ibm922.c: New file.
2750         * iconvdata/ibm922.h: New file.
2751         * iconvdata/ibm1124.c: New file.
2752         * iconvdata/ibm1124.h: New file.
2753         * iconvdata/ibm1129.c: New file.
2754         * iconvdata/ibm1129.h: New file.
2755         * iconvdata/testdata/IBM922: New file.
2756         * iconvdata/testdata/IBM922..UTF8: New file.
2757         * iconvdata/testdata/IBM1124: New file.
2758         * iconvdata/testdata/IBM1124..UTF8: New file.
2759         * iconvdata/testdata/IBM1129: New file.
2760         * iconvdata/testdata/IBM1129..UTF8: New file.
2762 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
2764         * catgets/gencat.c (normalize_line): Take extra parameter with escape
2765         character.  Change callers.
2766         (open_conversion): Determine mapping of 0x5c as wchar_t value.
2767         * catgets/Makefile: Add rules to build and run test-gencat.
2768         * catgets/sample.SJIS: New file.
2769         * catgets/test-gencat.c: New file.
2770         * catgets/test-gencat.sh: New file.
2771         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2773 2000-11-28  Andreas Jaeger  <aj@suse.de>
2775         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
2776         Linux version.
2778 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
2780         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
2782 2000-11-28  Andreas Jaeger  <aj@suse.de>
2784         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
2785         __flexarr.
2786         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
2787         Likewise.
2789 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
2791         * misc/getusershell.c: Make strings in okshells array const.
2792         * misc/regexp.c: Add const to cast to avoid warnings.
2793         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
2794         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
2795         __setresuid.
2796         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
2797         setresgid.
2798         * misc/error.c: Add prototypes for __error and __error_at_line.
2799         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
2800         statement to avoid warning.
2801         * test-skeleton.c: Mark timeout_handler with noreturn.
2802         * iconv/skeleton.c (get16u): Add const to cast.
2803         (get32u): Likewise.
2804         * iconvdata/gb18030.c: Likewise.
2805         * iconvdata/iso-2022-cn-ext.c: Likewise.
2806         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
2807         * iconvdata/big5.c: Likewise.
2808         * iconvdata/big5hkscs.c: Likewise.
2809         * iconvdata/iso_6937.c: Likewise.
2810         * iconvdata/iso_6937-2.c: Likewise.
2811         * iconvdata/t.61.c: Likewise.
2812         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
2813         * iconvdata/unicode.c: Likewise.
2814         * iconvdata/utf-16.c: Likewise.
2815         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
2816         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
2817         with little code shuffling.
2819         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
2820         the problems introduced when the user selects -O3.
2822         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
2823         * misc/sys/cdefs.h: Define __flexarr.
2824         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
2826         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
2827         * iconv/skeleton.c: Likewise.
2828         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
2829         * iconv/loop.c (get16): Add const to cast.
2830         (get32): Likewise.
2832 2000-11-27  Andreas Jaeger  <aj@suse.de>
2834         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
2835         to avoid warning.
2836         * login/programs/utmpdump.c (print_entry): Likewise.
2838 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2840         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
2841         in a single asm as they may be used to access other stored
2842         registers.
2843         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2845 2000-11-27  Andreas Jaeger  <aj@suse.de>
2847         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
2848         * rt/tst-aio64.c: Likewise.
2850 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
2852         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
2853         for gencat run.
2854         (libc.cat): Likewise.
2855         * catgets/gencat.c: Implement handling of message catalogs encoded
2856         with stateful character sets.
2857         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2859 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
2861         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
2863         * inet/getnameinfo.c: Adjust casts to avoid warnings.
2864         * inet/rcmd.c: Likewise.
2865         * inet/ruserpass.c: Likewise.
2866         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
2867         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
2868         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
2869         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
2870         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
2871         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
2872         * include/aliases.h: Add prototypes for internal __getalias* functions.
2873         * include/netdb.h: Add prototypes for __old_gethostent_r,
2874         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
2875         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
2876         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
2877         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
2878         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
2879         __old_getrpcbynumber_r, __old_getrpcent_r.
2881         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
2882         __getrpcent_r prototypes.
2884 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
2886         * string/strcoll.c: Add casts to avoid warnings.
2887         * string/strnlen.c: Likewise.
2888         * string/strxfrm.c: Likewise.
2889         * sysdeps/generic/_strerror.c: Likewise.
2890         * sysdeps/generic/memrchr.c: Likewise.
2891         * sysdeps/generic/strcasestr.c: Likewise.
2892         * sysdeps/generic/strstr.c: Likewise.
2894         * locale/weight.h (findidx): Add const to cast to avoid warning.
2896         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
2897         * elf/loadtest.c: Likewise.
2898         * elf/multiload.c: Likewise.
2899         * elf/next.c: Likewise.
2900         * elf/nodelete.c: Likewise.
2901         * elf/noload.c: Likewise.
2902         * elf/order.c: Likewise.
2903         * elf/origtest.c: Likewise.
2904         * elf/preloadtest.c: Likewise.
2905         * elf/restest1.c: Likewise.
2907         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
2908         parameter of asm must be in %ecx.
2910         * string/tester.c: Mark test functions as static to avoid warnings.
2912         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
2913         preserve value over different gconv-modules files.
2915 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
2917         * locale/findlocale.c: Add casts to avoid warnings.
2918         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
2919         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
2920         to avoid warnings.
2921         * misc/tsearch.c (const_node): New type.
2922         (trecurse): Correct casts to avoid warnings.
2923         (__twalk): Likewise.
2924         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
2925         LONG_BIT.
2927         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
2929         * test-skeleton.c: Mark local functions as static to avoid warnings.
2931 2000-11-23  H.J. Lu  <hjl@gnu.org>
2933         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
2934         support the background job.
2935         Fix a typo.
2937 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
2939         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
2940         has same names but lower cost.
2942 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
2944         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
2945         which never occur during bootstrap.
2946         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2948 2000-11-23  Andreas Jaeger  <aj@suse.de>
2950         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
2952         * nss/Versions: Remove _nss_files_getipnodebyname_r.
2954         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
2956 2000-11-18  Martin Buchholz  <martin@xemacs.org>
2958         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
2959         (called++) return;'
2961 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
2963         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
2965         * csu/abi-note.S: Correct comment for operating system number.
2967 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
2969         * Versions.def: Add GLIBC_2.2.1 for glibc.
2971 2000-11-22  Andreas Schwab  <schwab@suse.de>
2973         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
2974         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
2976 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
2978         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
2979         absolute time for pthread_cond_timedwait call.
2980         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
2982         * rt/Makefile (tests): Add tst-aio6.
2983         * rt/tst-aio6.c: New file.
2985 2000-11-23  Andreas Jaeger  <aj@suse.de>
2987         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
2989 2000-11-22  Andreas Jaeger  <aj@suse.de>
2991         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
2993 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2995         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
2997 2000-11-21  Andreas Schwab  <schwab@suse.de>
2999         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
3000         * sysdeps/arm/setjmp.S: Likewise.
3001         * sysdeps/arm/fpu/setjmp.S: Likewise.
3002         * sysdeps/i386/setjmp.S: Likewise.
3003         * sysdeps/i386/elf/setjmp.S: Likewise.
3004         * sysdeps/s390/setjmp.S: Likewise.
3005         * sysdeps/s390/elf/setjmp.S: Likewise.
3006         * sysdeps/sh/sh3/setjmp.S: Likewise.
3007         * sysdeps/sh/sh4/setjmp.S: Likewise.
3008         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3009         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3010         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3011         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
3013 2000-11-21  Andreas Jaeger  <aj@suse.de>
3015         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
3016         NORETURN, fix parameter list.
3018         * string/bug-strncat1.c (main): Fix typo.
3019         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
3021 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
3023         * configure.in: Add --enable-all-warnings.
3024         * config.make.in (all-warnings): New variable.
3025         * Makeconfig (+gccwarn): Define with many more warnings if
3026         all-warnings is yes.
3028 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
3030         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
3031         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
3032         * malloc/tst-valloc.c (main): Cast valloc return value to long.
3033         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
3034         * math/test-fpucw.c (main): Use %lx in format string, cast
3035         control words to long.
3036         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
3037         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
3038         large that it is unsigned warning.
3040         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
3041         it to long on sparc64.
3043 2000-11-20  Andreas Jaeger  <aj@suse.de>
3045         * nscd/nscd.h (termination_handler): Add noreturn attribute.
3046         (receiv_print_stats): Likewise.
3048         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
3050 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
3052         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
3054         * csu/gmon-start.c: Always have prototype for __gmon_start.
3055         * csu/version.c: Add prototypes for __libc_print_version and
3056         __libc_main.
3057         * iconv/gconv.c: Include gconv_int.h and gconv.h.
3058         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
3059         and __to_name.
3060         * iconv/gconv_builtin.h: Add ASCII module definitions.
3061         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
3062         (add_module): Add cast to avoid warning.  Rework construction of
3063         strings for new module.
3064         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
3065         (derivation_compare): Likewise.
3066         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
3067         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
3068         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
3069         (struct gconv_alias): Remove const from fromname and toname.
3070         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
3071         for loop functions.
3072         (internal_ucs4_loop): Use correct const-ness.
3073         (ucs4_internal_loop): Likewise.
3074         (internal_ucs4le_loop): Likewise.
3075         (ucs4le_internal_loop_single): Likewise.
3076         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
3077         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
3078         assignments appropriately.
3079         (struct known_trans): Remove const from fname.
3080         (trans_compare): Make s1 and s2 const.
3081         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
3082         avoid warning.
3083         * iconv/skeleton.c: Remove cast in calls of loop functions.
3084         * iconvdata/gconv-modules: Remove US-ASCII definitions.
3085         * iconvdata/iso646.c: Remove US_ASCII support.
3086         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
3087         * include/unistd.h: Add __libc_check_standard_fds prototype.
3088         * string/bits/string2.h (__mempcpy_args): Add const to casts.
3089         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
3090         _fini.
3091         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
3092         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
3093         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
3094         warning.
3095         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
3096         __libc_init_first and _dl_start.
3097         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
3098         (DCIGETTEXT): Make domaindata variable const.
3099         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
3100         to avoid warning.
3102 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
3104         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
3106         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
3107         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
3108         __unused? members.
3110         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
3111         value defined in /usr/include/asm-mips/fcntl.h.
3113 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
3115         * stdio-common/Makefile (tests): Add test-vfprintf.
3116         (test-vfprintf-ENV): New variable.
3117         * stdio-common/test-vfprintf.c: New file.
3119         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
3121         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
3122         (tst-mbrtowc-ENV): New variable.
3123         (tst-wcrtomb-ENV): New variable.
3124         * wcsmbs/tst-mbrtowc.c: New file.
3125         * wcsmbs/tst-wcrtomb.c: New file.
3127 2000-11-16  Andreas Jaeger  <aj@suse.de>
3129         * manual/install.texi (Tools for Compilation): Update
3130         documentation for GCC 2.95.2.
3132 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
3134         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
3135         if IPv4 and IPv6 requests timed out.
3137 2000-11-18  Akim Demaille  <akim@epita.fr>
3139         * malloc/obstack.h: Formatting changes.
3140         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3141         prevents type checking.
3142         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3143         cast the value to (void *): assigning a `foo *' to a `void *'
3144         variable is valid.
3145         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3147 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
3149         * scripts/config.guess: Update from upstream maintainer.
3150         * scripts/config.sub: Likewise.
3152 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
3154         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
3155         * libio/freopen64.c (freopen64): Likewise.
3156         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3158         * libio/Makefile: Add rules to build and run test-freopen.
3159         * libio/test-freopen.c: New file.
3160         * libio/test-freopen.sh: New file.
3162 2000-11-15  H.J. Lu  <hjl@gnu.org>
3164         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
3165         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
3166         (DL_DT_FINI_ADDRESS): Likewise.
3168         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
3169         return type to ElfW(Addr).
3170         (_dl_function_address): New prototype.
3171         (DL_FUNCTION_ADDRESS): Defined.
3172         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
3173         (DL_DT_FINI_ADDRESS): Likewise.
3175         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
3177         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
3178         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
3180         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
3181         (_dl_function_address): This.
3183         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
3184         function pointer for DT_FINI.
3185         * elf/dl-close.c (_dl_close): Likewise.
3187         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
3188         function pointer for DT_INIT.
3190 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
3192         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
3193         end of wexpbuf buffer.
3195 2000-11-16  Andreas Jaeger  <aj@suse.de>
3197         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
3198         definition of F_GETLK, F_SETLK, F_SETLKW.
3200 2000-11-16  Andreas Jaeger  <aj@suse.de>
3202         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
3203         it's not defined.
3205 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
3207         * dlfcn/default.c (main): Add test for dladdr of main returning
3208         argv[0] in dli_fname field.
3210 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
3212         * Makeconfig (run-program-prefix): Move test-static test into the
3213         variable.
3215         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
3216         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
3217         schedule instructions.
3218         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
3219         schedule instructions, fix a bug in copying auxiliary data.
3221 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3223         * manual/startup.texi (Program Arguments): Fix type of main's envp
3224         parameter.
3225         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
3227         * iconvdata/gconv-modules: Add CP950 alias.
3229 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
3231         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
3232         syscall-list.h goal.
3233         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
3235 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3237         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
3239         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
3240         output of program.
3242         * intl/tst-gettext2.c: Set C locale if setting other locale
3243         failed.  Use gettext() not _().
3245         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
3246         successfully loaded a new locale.
3248 2000-11-13  Andreas Jaeger  <aj@suse.de>
3250         * configure.in: Require gcc 2.95 or newer.
3252 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3254         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
3255         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
3257 2000-11-11  Jim Meyering  <meyering@lucent.com>
3259         * string/strndup.c (strndup): Cast return value to `char *'.
3261 2000-11-15  Jim Meyering  <meyering@ascend.com>
3263         * sysdeps/generic/memchr.c: Remove some useless parentheses.
3264         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
3265         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
3266         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
3267         Also #undef __memchr.
3268         Use `weak_alias' only if it's defined.
3270 2000-11-10  H.J. Lu  <hjl@gnu.org>
3272         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
3274 2000-11-15  Andreas Jaeger  <aj@suse.de>
3276         * elf/chroot_canon.c: Include <stdint.h>.
3278         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
3279         (print_entry): Likewise.
3280         (add_to_cache): Likewise.
3282         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
3284         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
3285         (path_hwcap): Likewise.
3286         (search_dir): Likewise.
3288         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
3290         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
3292         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3293         (_dl_platform_string): New.
3294         (_DL_HWCAP_PLATFORM): New.
3295         (_dl_string_platform): New.
3296         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
3298         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
3299         (_dl_string_platform): New.
3300         (_DL_HWCAP_PLATFORM): New.
3301         (_dl_platform_string): New.
3303         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
3304         recognition.
3305         (_DL_HWCAP_COUNT): New.
3306         (_dl_string_platform): New.
3307         (_DL_HWCAP_PLATFORM): New.
3308         (_dl_platform_string): New.
3310 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
3312         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
3314 2000-11-14  Andreas Jaeger  <aj@suse.de>
3316         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
3318 2000-11-13  Roland McGrath  <roland@frob.com>
3320         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
3322 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
3324         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
3325         underrun and make sure the result is null terminated even if there
3326         is no trailing newline.
3328 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
3330         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3332 2000-11-10  H.J. Lu  <hjl@gnu.org>
3334         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3336 2000-11-10  Andreas Jaeger  <aj@suse.de>
3338         * elf/ldconfig.c (create_links): Fix alloca calculation.
3339         Patch by Ben Collins <bcollins@debian.org>.
3341 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
3343         * inet/getnameinfo.c (getnameinfo): Use correct destination
3344         parameter for if_indextoname.
3345         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
3347 2000-11-09  H.J. Lu  <hjl@gnu.org>
3349         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
3350         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
3351         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
3352         xdr_keystatus.
3354         * time/Versions (GLIBC_2.1): Move getitimer to...
3355         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
3357 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
3359         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
3360         "make install", to work around a binary incompatibility between
3361         glibc 2.1 and glibc 2.2 gconv modules.
3363 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
3365         * intl/locale.alias: Add thai.
3366         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
3368 2000-11-07  Akim Demaille  <akim@epita.fr>
3370         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
3371         argument `data' for consistency with the prototypes.
3372         Qualify it `const'.
3373         (obstack_copy, obstack_copy0): Rename the second argument as
3374         `address' for consistency.  Qualify it `const'.
3375         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3376         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3377         `const' their input argument (`data' or `address').
3378         Adjust the corresponding macros to include `const' in casts.
3380 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3382         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
3383         target family.
3385 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3387         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
3388         socket creation.
3390 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3392         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
3393         ai_protocol by internal table if service was not given.
3395 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3397         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
3398         numerical port was specified with protocol without socktype.
3400 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3402         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
3404 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3406         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
3408 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3410         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
3411         sin6_scope_id field.
3413 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3415         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
3417 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3419         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
3421 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3423         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
3424         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
3426 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
3428         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
3429         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
3431 2000-11-09  H.J. Lu  <hjl@gnu.org>
3433         * io/Versions (GLIBC_2.1.1): Remove lockf64.
3436 See ChangeLog.11 for earlier changes.