Update.
[platform/upstream/glibc.git] / ChangeLog
1 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
2
3         * iconvdata/Makefile (modules): Add GBBIG5.
4         (distribute): Add gbbig5.c.
5         * iconvdata/gbbig5.c: New file.
6         * iconvdata/gconv-modules: Add entries for GBBIG5 module.
7
8 2001-02-13  Philip Blundell  <pb@futuretv.com>
9
10         * manual/crypt.texi: Remove outdated references to crypt add-on.
11
12         * manual/creature.texi: Improve wording slightly.
13
14 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
15
16         * io/ftw.c: Always use readdir64.
17         * io/ftw64.c: Likewise.
18         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
19         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
20         * sysdeps/generic/glob.c: Likewise.  Convert results if gl_readdir
21         callback to dirent.  Still allow compiling outside glibc.
22         * sysdeps/gnu/glob64.c: Define COMPILE_GLOB64.
23         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
24
25         * malloc/mtrace.c: Use fopen64.
26         * posix/spawni.c: Use __open64.
27         * sysdeps/unix/opendir.c: Likewise.
28         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
29
30         * sysdeps/generic/ftruncate64.c: Define __ftruncate64 and make old
31         name a weak alias.
32         * sysdeps/unix/sysv/aix/ftruncate64.c: Likewise.
33         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
34         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
35         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
36
37         * resolv/res_data.c: Add cast to avoid warning.
38
39         * include/unistd.h: Declare __ftruncate64.
40
41         * sysdeps/generic/utmp_file.c: Use LFS functions and type.
42
43         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use __lseek64
44         instead of __lseek.
45
46 2001-02-13  Andreas Jaeger  <aj@suse.de>
47
48         * login/getutent_r.c: Include <stdlib.h> for NULL.
49         * login/getutid_r.c: Likewise.
50
51 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
52
53         * sysdeps/dbl-64/e_j0.c: Little optimization, use sincos.
54         * sysdeps/dbl-64/e_j1.c: Likewise.
55         * sysdeps/dbl-64/e_jn.c: Likewise.
56         * sysdeps/flt-32/e_j0f.c: Likewise.
57         * sysdeps/flt-32/e_j1f.c: Likewise.
58         * sysdeps/ldbl-96/e_j0l.c: Likewise.
59
60 2000-12-02  H.J. Lu  <hjl@gnu.org>
61
62         * resolv/res_libc.c (res_init): Don't make it default.
63
64 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
65
66         * manual/debug.texi: Improved the wording.
67         Patch by Philip Blundell <pb@futuretv.com>.
68
69 2001-02-12  Andreas Jaeger  <aj@suse.de>
70
71         * posix/Makefile (tests): Don't run bug-regex2 when
72         cross-compiling.
73
74         * libio/Makefile (tests): Don't run test-freopen when
75         cross-compiling.
76
77         * manual/stdio.texi (Streams and I18N): Fix typos.
78
79 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
80
81         * sysdeps/i386/fpu/libm-test-ulps: Adjust for errors in y0l.
82
83         * math/libm-test.inc (j0_test): Make expected results long double
84         constants.
85         (y0_test): Likewise.
86
87         * sysdeps/ieee754/ldbl-96/e_j0l.c: New file.
88         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
89
90 2001-02-11  Jakub Jelinek  <jakub@redhat.com>
91
92         * sysdeps/generic/strtoll.c (__strtoq_internal): Ressurect alias
93         which was exported from libc.
94         * sysdeps/generic/strtoull.c (__strtouq_internal): Likewise.
95
96 2001-02-12  Andreas Jaeger  <aj@suse.de>
97
98         * manual/arith.texi (Parsing of Integers): Fix some wordings.
99
100 2001-02-11  Ulrich Drepper  <drepper@redhat.com>
101
102         * sysdeps/generic/getsysstat.c: Change return value of get_phys_pages
103         and get_avphys_page to long int.
104         * sysdeps/unix/sysv/linux/getsysstat.c: Likewise.
105         * include/sys/sysinfo.h: Likewise.
106         * sysdeps/generic/sys/sysinfo.h: Likewise.
107         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
108
109         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Fail if we
110         cannot return as many values as the user asked for.
111
112 2001-02-11  Andreas Jaeger  <aj@suse.de>
113
114         * manual/resource.texi (Memory Resources): Fix typo.
115
116         * libio/Makefile ($(objpfx)test-freopen.out): Pass
117         run-program-prefix.
118
119         * libio/test-freopen.sh: Use run_program_prefix.
120
121 2001-02-10  Andreas Jaeger  <aj@suse.de>
122
123         * stdlib/Makefile (tests): Don't run tst-fmtmsg when
124         cross-compiling.
125         ($(objpfx)tst-fmtmsg.out): Pass run-program-prefix.
126
127         * stdlib/tst-fmtmsg.sh (test): Use run_program_prefix for static
128         only builds.
129
130         * elf/Makefile (tests): Only run tst-pathopt with shared libs.
131
132         * posix/Makefile: Fix typo, it's build-static-nss.
133
134         * iconv/Makefile (extra-objs): New.
135
136 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
137
138         * sysdeps/unix/stime.c: Include <time.h>.
139
140         * sysdeps/mach/hurd/setitimer.c: Include <time.h>.
141
142 2001-02-10  Andreas Jaeger  <aj@suse.de>
143
144         * manual/string.texi (Search Functions): Fix typo.
145
146 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
147
148         * sysdeps/unix/bsd/times.c: Reorder includes and add <time.h>.
149         (timeval_to_clock_t): Add clk_tck argument and use that instead of
150         CLK_TCK.
151         (__times): Use __getclktck to get the number of clock ticks per
152         second and use its return value instead of CLK_TCK.
153
154 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
155
156         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (_HAVE_SA_LEN): Define.
157
158 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
159
160         * sysdeps/mach/gettimeofday.c: Include <stddef.h>.
161
162 2001-02-10  Andreas Jaeger  <aj@suse.de>
163
164         * wctype/wcfuncs.c (func): Add prototype declarations to avoid
165         warning.
166
167 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
168
169         * posix/Makefile: Add rules to build and run bug-regex2.
170         * posix/bug-regex2.c: New file.
171
172 2001-02-10  Jakub Jelinek  <jakub@redhat.com>
173
174         * posix/regex.c (convert_mbs_to_wcs): Change is_binary to char *.
175         (regex_compile): Likewise.
176         (FREE_VARIABLES): Don't free is_binary1 and is_binary2.
177         (re_match_2_internal): Use just is_binary instead of two variables.
178         Use REGEX_TALLOC to allocate it and FREE_VAR to free on failure.
179
180 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
181
182         * version.h (VERSION): Bump to 2.2.2.
183
184         * iconv/Makefile (distribute): Add iconv_charmap.c and
185         dummy-repertoire.c.
186         * elf/Makefile (distribute): Add firstobj.c.
187         * Makefile (distribute): Add include/pthread.h.
188
189         * configure.in: Require makeinfo version 4.
190
191         * libio/tst_wscanf.c (main): Add cast to avoid warning.
192         * libio/tst_swscanf.c (main): Likewise..
193
194 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
195
196         * sysdeps/generic/setenv.c (unsetenv): Remove const from len.
197         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
198         __NO_MATH_INLINES.
199         * sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
200         if not RTLD_BOOTSTRAP.
201         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
202         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
203
204 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
205
206         * locale/programs/linereader.c (get_ident): Stop loop if EOF.  Use
207         lr_ungetc to push back last read character.
208         * locale/programs/linereader.h (lr_ungetc): Don't push back is
209         character is EOF.
210         (lr_ignore_rest): Don't warn about garbage if it is really the end
211         of the file.
212
213         * manual/Makefile: Use ifnottext and not ifinfo to protect Top node
214         definition.
215
216 2001-02-08  Ulrich Drepper  <drepper@redhat.com>
217
218         * Makerules (build-shlib): Work around different order of
219         processing of -B option in different gcc versions.
220
221         * posix/regex.c: Fix alignment problem.
222         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
223
224         * sysdeps/alpha/strrchr.S: Little optimization.
225         Patch by Richard Henderson <rth@redhat.com>.
226
227         * sysdeps/alpha/alphaev67/strrchr.S: New file.
228         Contributed by Rick Gorton <rick.gorton@alpha-processor.com>.
229
230 2001-02-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
231
232         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Correct function name
233         in the assembler end directive.
234
235 2001-02-08  Andreas Jaeger  <aj@suse.de>
236
237         * manual/stdio.texi (Closing Streams): Fix typos.
238
239 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
240
241         * sysdeps/alpha/alphaev67/strncat.S: Align last write address.
242         Patch by Richard Henderson <rth@redhat.com>.
243         Reported by Claus-Justus Heine <heine@instmath.rwth-aachen.de>.
244
245         * stdlib/strfmon.c [USE_IN_LIBIO]: Define lock variable and store
246         pointer in FILE structure before calling _IO_init.
247         * stdlib/Makefile: Add -D_IO_MTSAFE_IO to CFLAGS for strfmon and
248         strfmon_l if necessary.
249         Reported by Jury Gerold <gjury@grips.com>.
250
251         * sysdeps/gnu/netinet/tcp.h: Correct values of TCP_ macros.
252         Patch by Pekka.Pietikainen@cern.ch.
253
254         * posix/regex.c: Correct several problems with 64-bit architectures
255         introduced in the MBS changes.
256         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
257
258 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
259
260         * math/tgmath.h: Only add l suffixes if __NO_LONG_DOUBLE_MATH is
261         not defined.
262         * sysdeps/alpha/fpu/bits/mathinline.h: Honour __NO_MATH_INLINES.
263
264 2001-02-07  Andreas Jaeger  <aj@suse.de>
265
266         * manual/install.texi (Tools for Compilation): Fix typo.
267         Reported by Pavel Machek <pavel@bug.ucw.cz>.
268
269 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
270
271         * stdlib/strtod.c: Never stop prematurely reading digits before the
272         decimal point is found.  Compute exponent limit for negative exponents
273         correctly.  For numbers ending in all zeros eat the zeros even before
274         the decimal point if the exponent is negative [PR libc/2072].
275         * stdlib/Makefile (tests): Add bug-strtod.
276         * stdlib/bug-strtod.c: New file.
277
278 2001-02-07  Andreas Jaeger  <aj@suse.de>
279
280         * posix/bug-regex1.c: Include <wchar.h> for fwide.
281
282 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
283
284         * posix/regex.c (regex_compile): Don't store pointer in wchar_t array.
285         Store index.
286         (compile_range): Handle index being passed, not pointer.
287         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
288
289         * posix/regex.c: Fix a cast in the code for bracket handling which
290         caused 8-bit uncleanliness.
291         Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.
292
293         * posix/Makefile (tests): Add bug-regex1.
294         * posix/bug-regex1.c: New file.
295         Contributed by Jim Meyering <jim@meyering.net>.
296
297         * posix/regex.c: Many cleanups for incorrect format strings.
298
299 2001-02-06  Andreas Jaeger  <aj@suse.de>
300
301         * time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
302
303 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
304
305         * locale/programs/locale.c (write_locales): Use scandir to read
306         directory so that the entries are sorted.
307
308 2001-02-06  Andreas Jaeger  <aj@suse.de>
309
310         * include/pthread.h: New file.
311
312         * wctype/wctype.h: Move internal interfaces from here to...
313         * include/wctype.h: ...here.
314
315         * wcsmbs/wchar.h: Move __wcslen from here to...
316         * include/wchar.h: ...here.
317
318         * posix/sys/wait.h: Move __wait from here to...
319         * include/sys/wait.h: ...here.
320
321         * string/string.h: Move __ffs and __strerror_r from here to...
322         * include/string.h: ...here.
323
324         * stdlib/stdlib.h: Move __on_exit from here to...
325         * include/stdlib.h: ...here.
326
327         * libio/stdio.h: Move __vsnprintf from here to...
328         * include/stdio.h: ...here.
329
330 2001-02-06  Andreas Schwab  <schwab@suse.de>
331
332         * sysdeps/unix/sysv/linux/ia64/ioperm.c: Don't include kernel
333         headers.
334
335         * timezone/Makefile: Don't assume that $(inst_zonedir) is a subdir
336         of $(inst_datadir).
337
338 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
339
340         * iconvdata/Makefile: Add dependency for bug-iconv2.out.
341
342 2001-02-06  Andreas Jaeger  <aj@suse.de>
343
344         * elf/firstobj.c: Add prototype.
345
346         * posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
347         (truncate_wchar): Likewise.
348
349 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
350
351         * locale/programs/locale.c: Implement --verbose option for -a
352         which prints detailed information about the locales.
353
354 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
355
356         * sunrpc/xdr_rec.c (set_input_fragment): Change type of header
357         variable to uint32_t.
358         Reported by Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>.
359
360 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
361
362         * locale/C-translit.h.in: Add transliterations for CJK units of
363         measurement.
364
365 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
366
367         * elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
368         string.  Include <inttypes.h> instead of <stdint.h>.
369
370         * localedata/Makefile (tests): Add bug-iconv-trans.
371         Define bug-iconv-trans-ENV.
372         * localedata/bug-iconv-trans.c: New file.
373
374 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
375
376         * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output
377         pointer, to avoid accumulating output from incomplete (unsuccessful)
378         transliteration attempts.
379
380 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
381
382         * elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
383         string.  Include <inttypes.h> instead of <stdint.h>.
384
385         * configure.in: Add check for bison.
386         * config.make.in: Define BISON variable.
387         * intl/Makefile: Use BISON instead of YACC when generating plural.c.
388         Rename YFLAGS to BISONFLAGS.
389
390 2001-02-05  Andreas Jaeger  <aj@suse.de>
391
392         * io/test-lfs.c (do_test): Test lseek64 return value, call
393         test_ftello.
394         (test_ftello): New function to test ftello64 and fseeko64.
395
396         * signal/signal.h: Move __sigaction from here to...
397         * include/signal.h: ...here.
398
399         * io/fcntl.h: Move __fcntl and __open to...
400         * include/fcntl.h: ...here.
401
402 2001-02-04  Philip Blundell  <philb@gnu.org>
403
404         * configure.in: Distinguish ARM from Thumb.
405
406 2001-02-04  Philip Blundell  <philb@gnu.org>
407
408         * sysdeps/arm/dl-machine.h (elf_machine_rel): Correct handling of
409         PC24 relocs with negative value.
410
411 2001-02-04  Ulrich Drepper  <drepper@redhat.com>
412
413         * iconv/Makefile (iconv_prog-modules): Define.  Add vpath to find
414         files in locale/programs.  Add CFLAGS definition to allow compiling
415         localedef files.
416         * iconv/dummy-repertoire.c: New file.
417         * iconv/iconv_charmap.c: New file.
418         * iconv/iconv_prog.h: New file.
419         * iconv/iconv_prog.c: Make verbose and omit_invalid global.
420         (main): If parameter for -f and -t contain slashes try first to resolve
421         the strings as filenames of charmap files.  Use them for conversion
422         in this case.
423         * iconvdata/run-iconv-test.sh: If charmaps exist also run tests with
424         iconv getting charmap names as parameters.
425         * locale/programs/linereader.c (lr_token): Take extra parameters
426         verbose and pass it to get_string.
427         (get_string): Take extra parameters verbose.
428         * locale/programs/charmap.c (parse_charmap): Take extra parameters
429         verbose and be_quiet.  Change all callers of lr_token and
430         parse_charmap.
431         * locale/programs/charmap.h: Likewise.
432         * locale/programs/ld-address.c: Likewise.
433         * locale/programs/ld-collate.c: Likewise.
434         * locale/programs/ld-ctype.c: Likewise.
435         * locale/programs/ld-identification.c: Likewise.
436         * locale/programs/ld-measurement.c: Likewise.
437         * locale/programs/ld-messages.c: Likewise.
438         * locale/programs/ld-monetary.c: Likewise.
439         * locale/programs/ld-name.c: Likewise.
440         * locale/programs/ld-numeric.c: Likewise.
441         * locale/programs/ld-paper.c: Likewise.
442         * locale/programs/ld-telephone.c: Likewise.
443         * locale/programs/ld-time.c: Likewise.
444         * locale/programs/linereader.c: Likewise.
445         * locale/programs/linereader.h: Likewise.
446         * locale/programs/localedef.c: Likewise.
447         * locale/programs/locfile.c: Likewise.
448         * locale/programs/locfile.h: Likewise.
449         * locale/programs/repertoire.c: Likewise.
450
451 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
452
453         * iconv/iconv_prog.c (main): If output file name is "-" write to
454         stdout.
455         (main): If -f or -t argument is missing use charset of the current
456         locale.
457
458 2001-02-03  Andreas Jaeger  <aj@suse.de>
459
460         * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
461         boundary for SSE/SSE-2 alignment.
462
463         * posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
464         annexc.
465
466 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
467
468         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: File was using crlf.
469         Remove comma at end of enum.
470
471         * elf/dl-init.c: Add a few __builtin_expect.
472
473         * hesiod/hesiod.c: Remove unnecessary code.  Remove all uses of strcat.
474
475 2001-02-02  Ulrich Drepper  <drepper@redhat.com>
476
477         * hesiod/hesiod.c (hesiod_resolve): Also search HS records if
478         errno is ECONNREFUSED.
479
480         * posix/Makefile: Define MBS_SUPPORT for regex.c.
481         * posix/regex.c: Implement multibyte character handling.
482         Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
483
484         * string/tst-svc.input: Add two more test cases.
485         * string/tst-svc.expect: Modify to reflect new test cases.
486
487 2001-02-01  Jakub Jelinek  <jakub@redhat.com>
488
489         * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
490         tp->name tests with tp->name[0] tests.
491
492 2001-01-29  Ben Collins  <bcollins@debian.org>
493
494         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
495         Fix check for name == NULL.
496
497 2001-02-01  Ulrich Drepper  <drepper@redhat.com>
498
499         * elf/Makefile: Add rules to build and run initfirst test.
500         * elf/initfirst.c: New file.
501         * elf/firstobj.c: New file.
502
503         * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so).
504         * configure.in: Test for -z initfirst linker option.
505         * config.make.in: Add have-z-initfirst.
506         * elf/dl-init.c (_dl_init): Split out actual initialization code in
507         new function call_init.  If _dl_initfirst is non-NULL initialize first.
508         * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set
509         remember object in _dl_initfirst.
510         * elf/soinit.c: Remove special support for calling
511         __pthread_initialize_minimal.
512
513         * conform/conformtest.pl: Add missing $prepend in type test.
514
515 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
516
517         * elf/elf.h (SHT_CHECKSUM): New definition.
518
519         * posix/fnmatch_loop.c: Remove incorrect reverse condition in
520         [. .] matching.  Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
521         * posix/tst-fnmatch.input: Add tests for [. .] in locales.
522
523 2001-01-31  Mark Kettenis  <kettenis@gnu.org>
524
525         * misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
526         to get definition of `struct timeval'.
527
528 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
529
530         * posix/tst-fnmatch.input: Add test cases for de_DE.UTF-8 locale.
531         * posix/fnmatch_loop.c: Fix handling of [= =] for multibyte charsets.
532
533 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
534
535         * iconv/gconv_open.c (__gconv_open): Set conv_flags if IGNORE is
536         seen, not flags.
537
538         * nis/nis_findserv.c: Include <time.h>.
539
540 2001-01-30  Yong Li  <yong.li@asu.edu>
541
542         * iconv/iconv_prog.c (main): Correct error handling method name.
543
544 2001-01-29  Ben Collins  <bcollins@debian.org>
545
546         * sysdeps/sparc/fpu/fraiseexcpt.c: Include <float.h>.
547         * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
548         * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
549         * sysdeps/s390/fpu/fraiseexcpt.c: Likewise.
550
551 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
552
553         * locale/programs/ld-measurement.c (measurement_finish): Fix a typo.
554         Patch by Marko Myllynen <myllynen@lut.fi>.
555
556         * string/bits/string2.h (__strpbrk_c2): Correct parameter types
557         (int instead of char).
558         (__strpbrk_c3): Likewise.
559         Reported by GOTO Masanori <gotom@debian.or.jp>.
560
561         * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
562         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
563         * include/sys/socket.h: Add SA_LEN here for internal use.
564         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
565
566 2001-01-29  Ulrich Drepper  <drepper@redhat.com>
567
568         * malloc/Makefile: Don't build memusagestat if cross-compiling.
569
570         * sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
571
572         * math/libm-test.inc (rint_test): Add a few more tests for round
573         to even rounding.
574
575 2001-01-28  Ulrich Drepper  <drepper@redhat.com>
576
577         * conform/data/pthread.h-data: Correct return type of pthread_exit.
578
579         * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
580
581         * conform/data/stdlib.h-data: Add _Exit.
582
583         * inet/arpa/inet.h: Don't include <sys/types.h>.  Define socklen_t
584         if not already happened.
585         * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>.
586         Don't include <limits.h> and <bits/sockaddr.h>.
587
588         * conform/data/netinet/in.h-data: Allow all of <inttypes.h>.
589
590         * conform/data/spawn.h-data: Allow all of <sched.h>.
591
592         * sysdeps/ia64/fpu/fraiseexcpt.c: Include <float.h>.  Removed
593         unused variable.
594
595         * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning.
596         * sunrpc/xdr_sizeof.c (x_inline): Likewise.
597
598         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include <float.h>.
599
600         * conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
601         * libio/stdio.h: Define va_list correctly.
602
603         * conform/data/pthread.h-data: Make priority protocol related
604         functions optional.  Fix typos.
605
606         * posix/sched.h: Define sched_priority as __sched_priority.
607         * sysdeps/generic/bits/sched.h (struct sched_param): Rename element
608         to __sched_priority.
609         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
610
611 2001-01-27  Ulrich Drepper  <drepper@redhat.com>
612
613         * sysdeps/generic/clock_getcpuclockid.c: Include <time.h> instead
614         of <sys/time.h>.
615
616         * sysdeps/unix/stime.c: Include <stddef.h> for NULL.
617         * sysdeps/unix/time.c: Likewise.
618
619         * conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
620         * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
621         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
622         * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
623         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
624         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
625         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
626         * time/time.h: Likewise.
627
628         * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
629         * conform/data/complex.h-data: New file.
630         * conform/data/tgmath.h-data: New file.
631
632         * conform/data/wchar.h-data: Add missing functions.
633
634         * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
635
636         * conform/data/termios.h-data: Add missing const in tcsetattr()
637         prototype.
638
639         * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
640         Don't define pid_t here.
641
642         * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
643
644         * conform/data/sys/time.h-data: Allow sys/select.h.
645         * conform/data/sys/un.h-data: Fix typo.
646         * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
647         * sysdeps/posix/clock_getres.c: Include <time.h> instead of
648         <sys/time.h>.
649         * sysdeps/unix/clock_nanosleep.c: Likewise.
650         * sysdeps/unix/i386/clock_getcpuclockid.c: Likewise.
651         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
652         * sysdeps/unix/clock_gettime.c: Also include <time.h>.
653         * sysdeps/unix/clock_settime.c: Likewise.
654
655         * sysdeps/generic/pselect.c: Include <stddef.h> for NULL.
656         * login/getutent.c: Likewise.
657         * login/getutid.c: Likewise.
658         * login/getutline.c: Likewise.
659
660         * socket/sys/un.h: Define SUN_LEN only if __USE_MISC.
661
662         * sysdeps/unix/sysv/linux/bits/statvfs.h: Change type of f_fsid field
663         to unsigned long.  Add __f_unused.  Define _STATVFSBUF_F_UNUSED.
664         * sysdeps/unix/sysv/linux/internal_statvfs.c: Adjust initialization of
665         f_fsid field after change in struct statvfs.
666         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: New file.
667         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: New file.
668         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: New file.
669
670         * conform/data/sys/stat.h-data: Remove isfdtype.  Use
671         optional-macro.
672
673         * conform/data/sys/socket.h-data: Fix typos.  Correct getsockopt,
674         recvfrom, send, and socketpair prototypes.  Add allow lines.
675         * socket/sys/socket.h: Include <sys/uio.h>.
676         Don't use fancy __SOCKADDR_ARG definition unless __USE_GNU.
677         Fix type of second parameter of listen.
678         Don't declare isfdtype unless __USE_MISC.
679         * sysdeps/generic/listen.c: Fix type of second parameter of listen.
680         * sysdeps/mach/hurd/listen.c: Likewise.
681         * sysdeps/generic/bits/socket.h (struct sockaddr_storage): Define
682         ss_family and __ss_family.
683         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
684         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
685         (struct msghdr): Change type of msg_iovlen to int and type of
686         msg_controllen to socklen_t.
687         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file.
688         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: New file.
689         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: New file.
690         * inet/rcmd.c (rcmd_af): __ss_family is now ss_family.
691         (rresvport_af): Likewise.
692
693         * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant.
694         * conform/conformtest.pl: Implement handling of symbol.
695
696         * signal/signal.h: Fix handling of __need_* symbols.
697         * misc/sys/select.c: Define fd_set here.  Remove __fd_set.  Define
698         fd_mask only if __USE_MISC.  Declare pselect for __USE_XOPEN2K.
699         * include/sys/select.h: Use fd_set not __fd_set.
700         * sysdeps/generic/bits/select.h: Likewise.
701         * sysdeps/i386/bits/select.h: Likewise.
702         * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS,
703         __FDELT, __FDMASK, and __fd_set here.
704         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
705         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
706         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
707         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
708         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
709         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
710         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
711         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
712         * time/sys/time.h: Define struct timeval before including <time.h>
713         and <sys/select.h>.
714
715         * conform/data/sys/time.h-data: fd_set is a typedef.
716         * conform/data/sys/select.h-data: New file.
717         * conform/data/sys/mman.h-data: Make typed mem stuff optional.
718         * conform/conformtest.pl (@headers): Add sys/select.h.
719         (type, optional-type): Unless testing a typedef instantiate object.
720         Implement optional-function.
721
722         * math/test-misc.c: Include <float.h>.
723
724 2001-01-27  Andreas Jaeger  <aj@suse.de>
725
726         * misc/efgcvt_r.c: Include <float.h>.
727
728 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
729
730         * conform/data/stdlib.h-data: Account for XPG6 changes.
731         * stdlib/stdlib.h (__random): Change return value type to long.
732         (posix_memalign): Cleanup parameter names.
733         (setenv, unsetenv): Make available for __USE_XOPEN2K.
734         Change return type of unsetenv to int.
735         (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
736         * include/stdlib.h: Change return type of unsetenv to int.
737         Change return type of random to long int.
738         * sysdeps/generic/setenv.c (unsetenv): Change return type to int.
739         Return -1 and set errno if parameter is invalid.
740         * stdlib/random.c (__random): Change return value type to long.
741
742         * conform/data/stdio.h-data: Account for changes in XPG6.
743
744         * conform/data/spawn.h-data: Correct posix_spawnattr_setflags
745         prototype.
746
747         * conform/conformtest.pl: Define $mustprepend{"signal.h"}.
748         * conform/data/signal.h-data: Fix sigev_notify_function entry.
749         Fix typo (SIGVALRM -> SIGVTALRM).
750         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
751         with real type.
752         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
753         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
754         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
755         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
756         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
757
758         * conform/conformtest.pl: Implement optional-element.  Define
759         $mustprepend{"sched.h"}.
760         * conform/data/sched.h-data: Make sporadic scheduler definitions
761         optional.
762
763         * pwd/pwd.h: Don't define getpwent_r for XPG.
764
765         * io/sys/poll.h: Define nfds_t and use it in poll prototype.
766         * sysdeps/generic/poll.c: Use nfds_t type in function definition.
767         * sysdeps/mach/hurd/poll.c: Likewise.
768         * sysdeps/unix/bsd/poll.c: Likewise.
769         * sysdeps/unix/sysv/linux/poll.c: Likewise.
770         * sysdeps/unix/sysv/aix/poll.c: Likewise.
771         * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.
772         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
773         * sysdeps/unix/sysv/linux/m68k/bits/poll.h: Likewise.
774         * sysdeps/unix/sysv/linux/mips/bits/poll.h: Likewise.
775         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
776         * conform/data/poll.h-data: Fix typo in poll prototype.
777
778         * sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
779         only if __USE_MISC.
780         * conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
781
782         * sysdeps/gnu/net/if.h: Cleanup namespace.  Define IF_NAMESIZE.
783
784         * inet/netinet/in.h: Make IPPROTO_ constants also macros.
785
786         * conform/conformtest.pl: Implement optional-type.
787
788         * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>.  Include
789         <rpc/netdb.h> only if __USE_MISC.  Include <stdint.h> instead of
790         defining uint32_t here.  Define IPPORT_RESERVED.
791         (struct hostent): Type of h_length element is int.
792         (getnameinfo): Type of flags parameter is unsigned int.
793         * inet/getnameinfo.c (getnameinfo): flags argument is unsigned.
794         * conform/data/netdb.h-data: Add many missing definitions.
795
796         * conform/conformtest.pl: Implement optional-macro.
797         * conform/data/math.h-data: Update for XPG6.
798
799         * math/math.h (HUGE): Define as FLT_MAX value but don't use
800         FLT_MAX.  Don't include <float.h>.
801         (MAXFLOAT): Likewise.
802
803         * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
804
805         * include/bits/xopen_lim.h: Don't define FOPEN_MAX here.
806
807         * conform/data/limits.h-data: Mark constants as optional wherever
808         appropriate.
809
810         * posix/bits/posix2_lim.h: Set correct values for
811         _POSIX2_COLL_WEIGHTS_MAX and _POSIX2_CHARCLASS_NAME_MAX.  Remove
812         EQUIV_CLASS_MAX.
813
814         * posix/bits/posix1_lim.h: Define _POSIX_TZNAME_MAX as 6.
815         Required by POSIX.
816
817         * intl/loadmsgcat.c: Include <locale.h.> for _LIBC.
818
819         * conform/data/netinet/in.h-data: Add reserved prefixes.
820
821         * conform/data/arpa/inet.h-data: Fix a few typos.
822
823 2001-01-26  Andreas Jaeger  <aj@suse.de>
824
825         * sysdeps/generic/strtol.c: Include <locale.h>
826         * stdlib/strtod.c: Likewise
827         * stdlib/strfmon.c: Likewise.
828         * string/strcoll.c: Likewise.
829         * string/strxfrm.c: Likewise.
830         * wctype/wcfuncs_l.c: Likewise.
831         * wctype/wctype_l.c: Likewise.
832         * wctype/wctrans_l.c: Likewise.
833
834         * include/bits/locale.h: New file.
835
836 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
837
838         * locale/langinfo.h: Correct logic in #ifs when defining YESSTR
839         and NOSTR.
840
841         * locale/Makefile (headers): Add bits/locale.h.
842         * locale/langinfo.h: Don't include <locale.h>.  Include <bits/locale.h>
843         and use __LC_ constants instead of LC_.
844         * locale/locale.h: Include <bits/locale.h> and define LC_ constants
845         using __LC_ constants.
846         * locale/bits/locale.h: New file.
847         * locale/loadlocale.c: Include <locale.h>.
848         * locale/nl_langinfo.h: Likewise.
849
850         * posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
851
852         * io/sys/stat.h: Define S_IFSOCK for XPG6.
853
854         * conform/data/fcntl.h-data: posix_madvise is not expected here.
855
856         * conform/conformtest.pl: Fix handling of macro-str.
857
858         * conform/data/inttypes.h-data: Add missing definition and all of
859         stdint.h-data.
860
861         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20.
862
863 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
864
865         * conform/conformtest.pl (@headers): Add stdint.h.
866         * conform/data/stdint.h-data: New file.
867
868         * conform/conformtest.pl: Recognize options --headers and
869         --dialect.  Add dialect-specific CFLAGS.
870
871         * conform/conformtest.pl: Implement handling of recursive
872         allow-header.
873
874         * conform/data/locale.h-data: Add new struct lconv members.
875
876         * posix/wordexp.h: Correct definition of wordexp_t.
877         * posix/wordexp.c: Moved to ...
878         * sysdeps/generic/wordexp.c: ...here.  New file.
879         * sysdeps/unix/sysv/linux/alpha/wordexp.c: New file.
880         * sysdeps/unix/sysv/linux/ia64/wordexp.c: New file.
881         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: New file.
882         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.2.2): Add
883         wordexp.
884         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
885         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
886
887         * math/tgmath.h: Pretty printing.
888
889         * math/Makefile (tests): Add test-tgmath.
890         (CFLAGS-test-tgmath.c): New variable.
891         * math/test-tgmath.c: New file.  Contributed by Jakub Jelinek.
892
893         * conform/conformtest.pl: Handle allow-header in secondary headers
894         correctly.
895
896         * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
897         #ifdef.
898
899         * conform/data/netinet/in.h-data: Use correct comment character.
900         * conform/data/sys/stat.h-data: Likewise.
901
902 2001-01-25  Jakub Jelinek  <jakub@redhat.com>
903
904         * math/tgmath.h (__TGMATH_BINARY_FIRST_REAL_ONLY,
905         __TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
906         __TGMATH_TERNARY_REAL_ONLY): Use proper arguments to
907         __builtin_classify_type, add ##f suffixes where appropriate.
908         (__TGMATH_UNARY_REAL_IMAG): Remove extraneous left parenthesis.
909         (__TGMATH_BINARY_REAL_IMAG): Likewise, use proper arguments to
910         __builtin_classify_type.
911         (fma): Fix spelling of first argument.
912
913 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
914
915         * conform/data/unistd.h-data: Mark functions removed in XPG6
916         correctly.
917
918         * posix/unistd.h: Don't make functions removed in XPG6 available if
919         __USE_XOPEN2K.
920
921         * conform/conformtest.pl: Implement optional-constant.
922         * conform/data/unistd.h-data: Use optional-constant wherever
923         appropriate.
924
925         * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS
926         constants and add _SC_STREAMS.
927         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
928
929         * sysdeps/unix/sysv/linux/statvfs64.c: Rename to __statvfs64 and
930         make old name weak alias.
931         * sysdeps/generic/statvfs64.c: Likewise.
932         * sysdeps/unix/sysv/linux/fstatvfs64.c: Rename to __fstatvfs64 and
933         make old name weak alias.
934         * sysdeps/generic/fstatvfs64.c: Likewise.
935         * include/sys/statvfs.h: New file.
936
937         * sysdeps/generic/bits/confname.h: Define _PC_REC_INCR_XFER_SIZE,
938         _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, and
939         _PC_REC_XFER_ALIGN.
940         * sysdeps/posix/pathconf.c (__pathconf): Implement handling of
941         _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
942         _PC_REC_MIN_XFER_SIZE, and _PC_REC_XFER_ALIGN.
943         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
944
945         * conform/conformtest.pl: Run Unix tests for XPG6.
946         Implement handling of known namespace violations.
947         Improve printing of results.
948
949         * posix/unistd.h (usleep): Correct return type.
950         * sysdeps/unix/sysv/linux/usleep.c: Correct return type.
951         * sysdeps/unix/bsd/usleep.c: Correct return type.
952         * sysdeps/mach/usleep.c: Correct return type.
953         * sysdeps/generic/usleep.c: Correct return type.
954
955         * posix/unistd.h (sync): Correct return type.
956         * sysdeps/generic/sync.c: Likewise.
957         * sysdeps/mach/hurd/sync.c: Likewise.
958
959         * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
960
961         * posix/unistd.h: Make seteuid and setegid available for XPG6.
962
963         * wcsmbs/wchar.h: Get FILE definition for XPG5.
964
965         * conform/data/ctype.h-data: Use correct comment form.
966         * conform/data/errno.h-data: Likewise.
967         * conform/data/math.h-data: Likewise.
968         * conform/data/mqueue.h-data: Likewise.
969         * conform/data/netdb.h-data: Likewise.
970         * conform/data/pthread.h-data: Likewise.
971
972 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
973
974         * conform/data/wordexp.h-data: Fix typo.
975
976         * conform/conformtest.pl: Handle allow-header correctly.
977
978         * conform/data/time.h-data: Use correct comment form.
979
980         * conform/conformtest.pl (checknamespace): Ignore #undef lines.
981
982         * configure.in: Comment out binutils version test.
983
984         * stdlib/strtod.c (str_to_mpn): Correct parsing of thousands
985         separators.
986         Reported by Lagardere Jean-Francois <LAGARDEREJ@thmulti.com>.
987
988         * stdlib/tst-strtod.c (locale_test): New function.
989         (main): Call locale_test.
990         * stdlib/Makefile (tst-strtod-ENV): New variable.
991
992 2001-01-24  Mark Kettenis  <kettenis@gnu.org>
993
994         * hurd/hurdsig.c (_hurdsig_getenv): Remove spurious innermost
995         declaration of value such that we actually return the value of the
996         environment variable.
997
998 2001-01-24  Andreas Jaeger  <aj@suse.de>
999
1000         * sysdeps/unix/sysv/linux/init-first.c: Remove extra __sysctl
1001         prototype.
1002         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1003
1004         * include/sys/sysctl.h: New file.
1005
1006 2001-01-23  Andreas Jaeger  <aj@suse.de>
1007
1008         * stdlib/Makefile ($(objpfx)isomac.out): Also pass sysincludes to
1009         isomac.
1010
1011         * elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
1012         arguments.  Reported by Jiri Kubicek <kubicek@bitsmart.com>,
1013         closes PR libc/2039.
1014
1015         * manual/install.texi (Tools for Compilation): Change required
1016         binutils version.
1017
1018 2001-01-22  Andreas Jaeger  <aj@suse.de>
1019
1020         * configure.in: Add test for new enough binutils version, move
1021         compiler/binutils test up.
1022
1023         * Versions.def: Add version GLIBC_2.2.2.
1024
1025 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1026
1027         * iconvdata/TESTS: UTF-8 test data for IBM932 and IBM943 are now
1028         available.
1029         * iconvdata/testdata/IBM932: New file.
1030         * iconvdata/testdata/IBM932..UTF8: New file.
1031         * iconvdata/testdata/IBM943: New file.
1032         * iconvdata/testdata/IBM943..UTF8: New file.
1033         Contributed by Masahide Washizawa <washi@jp.ibm.com>.
1034
1035 2001-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1036
1037         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset.
1038
1039 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1040
1041         * malloc/malloc.c: Remove a few unnecessary initializers of global
1042         variables.
1043
1044 2000-12-09  H.J. Lu  <hjl@gnu.org>
1045
1046         * nss/Makefile (routines): Add digits_dots.
1047         * nss/Versions (libc): Add __nss_hostname_digits_dots to GLIBC_2.2.2.
1048         * nss/digits_dots.c (__nss_hostname_digits_dots): Turn template
1049         into a function.
1050         * nss/nsswitch.h (__nss_hostname_digits_dots): New internal NSS
1051         function.
1052         * nss/getXXbyYY.c (H_ERRNO_VAR_P): New definition.
1053         (TYPE_VAR_P): Likewise.
1054         (FLAGS_VAR): Likewise.
1055         (AF_VAR_P): Likewise.
1056         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
1057         instead of including digits_dots.c.
1058         * nss/getXXbyYY_r.c (H_ERRNO_VAR_P): New definition.
1059         (TYPE_VAR_P): Likewise.
1060         (FLAGS_VAR): Likewise.
1061         (AF_VAR_P): Likewise.
1062         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
1063         instead of including digits_dots.c.
1064
1065 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1066
1067         * sysdeps/posix/getaddrinfo.c: Reduce .data size.
1068
1069 2001-01-21  Andreas Jaeger  <aj@suse.de>
1070
1071         * elf/constload2.c: Add prototype for init.
1072
1073 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1074
1075         * stdlib/stdlib.h (drand48_data): Make available only for
1076         __USE_MISC.  Rename elements to protect namespace.  Change type
1077         and position of a and init element.
1078         * stdlib/drand48-iter.c: Don't handle unsigned short > 16 bit
1079         differently.  Adjust for drand48_data change.  Don't compute a here,
1080         it comes from drand48_data.
1081         * stdlib/lcong48_r.c: Don't handle unsigned short > 16 bit
1082         differently.  Adjust for drand48_data change.  Compute a here.
1083         * stdlib/srand48_r.c: Likewise.
1084         * stdlib/drand48.c: Adjust for drand48_data change.
1085         * stdlib/lrand48.c: Likewise.
1086         * stdlib/mrand48.c: Likewise.
1087         * stdlib/seek48.c: Likewise.
1088         * stdlib/drand48_r.c: Likewise.
1089         * stdlib/lrand48_r.c: Likewise.
1090         * stdlib/mrand48_r.c: Likewise.
1091         * stdlib/seed48_r.c: Likewise.  Don't handle unsigned short > 16 bit
1092         differently.
1093         * stdlib/erand48_r.c: Don't handle unsigned short > 16 bit differently.
1094         * stdlib/jrand48_r.c: Likewise.
1095
1096         * po/sv.po: Update from translation team.
1097
1098 2001-01-21  Andreas Jaeger  <aj@suse.de>
1099
1100         * stdio-common/vfprintf.c (vfprintf): Add casts.
1101
1102 2001-01-20  Ulrich Drepper  <drepper@redhat.com>
1103
1104         * iconvdata/run-iconv-test.sh: Reorgnize a bit to allow running only
1105         the ASCII test.
1106         * iconvdata/TESTS: Add entries for IBM932 and IBM943.
1107
1108         * iconvdata/Makefile (modules): Add IBM932 and IBM943.
1109         * iconvdata/gconv-modules: Add entries for IBM932 and IBM943.
1110         * iconvdata/ibm932.c: New file.
1111         * iconvdata/ibm932.h: New file.
1112         * iconvdata/ibm943.c: New file.
1113         * iconvdata/ibm943.h: New file.
1114         Patches by Masahide Washizawa <washi@jp.ibm.com>.
1115
1116         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix typo
1117         preventing optimization from being done.  Set the correct type bit
1118         in seen.  Don't define and use _dl_base_addr unless
1119         NEED_DL_BASE_ADDR is defined.
1120
1121         * io/ftw.c (ftw_dir): Add slash after directory name if there
1122         wasn't any.  Reported by loris <loris@iol.it>.
1123         * io/Makefile (tests): Add bug-ftw2.
1124         * io/bug-ftw2.c: New file.
1125
1126 2001-01-19  Ulrich Drepper  <drepper@redhat.com>
1127
1128         * stdlib/jrand48_r.c (__jrand48_r): Correct constructing of
1129         results.  Reported by Jeff Higham <jhigham@algorithmics.com>.
1130         * stdlib/tst-rand48.c: New file.
1131         * stdlib/Makefile (tests): Add tst-rand48.
1132
1133         * locale/newlocale.c (__newlocale): Fix test for setting all
1134         categories.
1135
1136 2001-01-19  Mark Kettenis  <kettenis@gnu.org>
1137
1138         * sysdeps/mach/hurd/chroot.c (chroot): Revert 1999-02-27 changes,
1139         but change looking up the initial directory port in a similar way
1140         as done by _hurd_change_directory_port_from_name.
1141         * hurd/fchroot.c (fchroot): Likewise.
1142
1143 2001-01-18  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If HAVE_AUX_XID is
1146         defined don't look whether the AT_*ID values were set.
1147         If HAVE_AUX_PAGESIZE is defined don't look whether the pagesize is set.
1148         (_dl_show_auxv): Rewrite to avoid switch statement.
1149         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1150         __ASSUME_AT_PAGESIZE for kernel >= 2.4.1.
1151         * sysdeps/unix/sysv/linux/ldsodefs.h: Define HAVE_AUX_XID.
1152         Define HAVE_AUX_PAGESIZE if __ASSUME_AT_PAGESIZE is defined.
1153
1154         * sysdeps/unix/sysv/linux/fxstat64.c: Add one __builtin_expect.
1155         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1156         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1157
1158         * elf/rtld.c (process_envvars): Call __strtoul_internal instead of
1159         strtoul.
1160         * elf/dl-minimal.c (strtol, __strtol_internal, strtoul): Removed.
1161         (__sigjmp_save): Set __mask_was_saved to zero since we don't save
1162         anything.
1163         * dlfcn/eval.c (__strtol_internal): Define here.
1164         (eval): Use __strtol_internal instead of strtol.
1165
1166         * elf/elf.h: Add a few more EF_MIPS_* constants.
1167
1168 2001-01-17  Ulrich Drepper  <drepper@redhat.com>
1169
1170         * manual/Makefile (chapters): Add debug.
1171         * manual/debug.texi: New file.
1172         * manual/examples/execinfo.c: New file.
1173         Patch by suckfish@ihug.co.nz.
1174
1175 2001-01-17  Andreas Schwab  <schwab@suse.de>
1176
1177         * sysdeps/m68k/bits/byteswap.h (__bswap_32): Add cast to avoid
1178         invalid asm.
1179
1180 2001-01-17  Andreas Jaeger  <aj@suse.de>
1181
1182         * nscd/connections.c (nscd_run): Use proper format specifier.
1183
1184 2001-01-16  Ulrich Drepper  <drepper@redhat.com>
1185
1186         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Move x86_cap_flags and
1187         x86_platforms data into new file after prepending _dl_.  Change
1188         users.
1189         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: New file.
1190         * sysdeps/unix/sysv/linux/i386/Dist: Add dl-procinfo.c.
1191         * sysdeps/unix/sysv/linux/i386/Makefile: Add rules to build
1192         dl-procinfo.c.
1193
1194         * setjmp/setjmp.h: Cleanup definition of setjmp macro.
1195
1196         * sysdeps/i386/elf/bsd-setjmp.S: Real implementation.
1197         * sysdeps/i386/elf/bsd-_setjmp.S: Removed.
1198         * sysdeps/i386/elf/setjmp.S (setjmp): Removed here.
1199         (_setjmp): Likewise.
1200         * sysdeps/i386/bsd-_setjmp.S: Real implementation.
1201         * sysdeps/i386/bsd-setjmp.S: Real implementation.
1202         * sysdeps/i386/bits/setjmp.h: Remove PUSH_SIGNAL_MASK definition.
1203         * sysdeps/i386/setjmp.S: Remove PIC support.  This is the non-ELF
1204         version.
1205
1206 2001-01-16  Andreas Jaeger  <aj@suse.de>
1207
1208         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (SIGCONTEXT): Fix
1209         misapplied last patch.
1210
1211 2001-01-15  Ulrich Drepper  <drepper@redhat.com>
1212
1213         * stdlib/random.c (__initstate): Clean up a cast.
1214         (__setstate): Likewise.
1215
1216         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select
1217         syscall handling.  The generic Linux version should work.
1218
1219 2001-01-15  Andreas Jaeger  <aj@suse.de>
1220
1221         * sysdeps/unix/sysv/linux/sys/sendfile.h: Fix typo.
1222
1223         * stdio-common/tstscanf.c (main): Add two testcases for '*' modifier.
1224
1225 2001-01-14  Jakub Jelinek  <jakub@redhat.com>
1226
1227         * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
1228         netgroup_keys, print_rpc, rpc_keys, print_shadow, shadow_keys):
1229         New functions.
1230         (group_keys, hosts_keys, network_keys, passwd_keys, protocols_keys):
1231         If number is 0, list all.
1232         (services_keys): Likewise.  Lookup aliases as well.
1233         (databases): New table.
1234         (build_doc): Prepare argp doc text with list of supported databases.
1235         (main): Change to table driven processing.
1236
1237 2001-01-14  Thorsten Kukuk <kukuk@suse.de>
1238
1239         * sunrpc/xdr.c (xdr_long, xdr_u_long): Fix comments about these
1240         functions.
1241
1242 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
1243
1244         * sunrpc/xdr.c (xdr_long, xdr_u_long): Return FALSE if trying to
1245         encode value which does not fit in the 32bit type.
1246
1247 2001-01-15  Hiroyuki Machida <machida@sm.sony.co.jp>
1248
1249         * sysdeps/unix/sysv/linux/mips/register-dump.h (REGISTER_DUMP):
1250         Change type of CTX to (struct sigcontext *).
1251         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Likewise.
1252         (GET_FRAME): Likewise.
1253         (GET_STACK): Likewise.
1254         (SIGCONTEXT): Likewise. Add 2nd arg _code.
1255         (SIGCONTEXT_EXTRA_ARGS): Add 2nd arg _code.
1256
1257 2001-01-13  Ulrich Drepper  <drepper@redhat.com>
1258
1259         * manual/texinfo.tex: Update from upstream version.
1260
1261 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
1262
1263         * inet/ether_ntoh.c (lookup_function): Change arguments to match
1264         _nss_*_getntohost_r prototype.
1265         (ether_ntohost): Pass errno pointer to NSS function.
1266
1267 2001-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1268
1269         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
1270         (MAP_LOCKED): New definition.
1271         (MAP_NORESERVE): New definition.
1272
1273 2001-01-12  Ulrich Drepper  <drepper@redhat.com>
1274
1275         * assert/assert.h: Use static_cast instead of C-style cast for C++.
1276         Patch by Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>.
1277
1278 2001-01-12  Ben Collins  <bcollins@debian.org>
1279
1280         * sysdeps/generic/segfault.c (install_handler): Use access, not
1281         __access.
1282
1283 2001-01-12  Andreas Jaeger  <aj@suse.de>
1284
1285         * posix/fnmatch_loop.c (FCT): Remove signed warnings.
1286         * posix/wordexp.c (do_parse_glob): Likewise.
1287         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1288         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1289         * elf/dl-open.c (_dl_open): Likewise.
1290         * elf/dl-close.c (_dl_close): Likewise.
1291         * elf/dl-load.c (_dl_map_object): Likewise.
1292         * iconv/iconv_prog.c (process_fd): Likewise.
1293         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
1294
1295         * locale/localeinfo.h (struct locale_data): Use __flexarr instead
1296         of a zero-length array.
1297
1298 2001-01-11  Jakub Jelinek  <jakub@redhat.com>
1299
1300         * stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
1301         * stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
1302         * stdlib/cxa_on_exit.c: Remove.
1303         * stdlib/Makefile: Revert last patch.
1304         * stdlib/Versions: Likewise.
1305         * include/stdlib.h: Likewise.
1306         * stdlib/exit.h: Revert last patch.
1307         (struct exit_function): Add second argument to cxa fn.
1308         * stdlib/exit.c: Revert last patch.
1309         (exit): Add hidden second argument.
1310
1311 2001-01-11  H.J. Lu  <hjl@gnu.org>
1312
1313         * elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
1314         * elf/dl-open.c (_dl_open): Here.
1315         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
1316         Make it static.
1317         (_dl_static_init): Initialize the variables every time when possible.
1318         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
1319         Undefine it first.
1320
1321 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1322
1323         * stdlib/Makefile (routines): Add cxa_on_exit.
1324         * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit.
1325         * stdlib/cxa_on_exit.c: New file.
1326         * include/stdlib.h: Add prototype for __cxa_on_exit.
1327         * stdlib/exit.c: Handle ef_cxa2.
1328         * stdlib/exit.h (enum): Add ef_cxa2.
1329         (struct exit_function): Add cxa2.
1330
1331         * Versions.def [ld]: Add GLIBC_2.2.1.
1332
1333 2001-01-10  H.J. Lu  <hjl@gnu.org>
1334
1335         * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries.
1336         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add
1337         dl-static.
1338         * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init.
1339         * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined.
1340         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file.
1341         * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file.
1342         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c.
1343
1344 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1345
1346         * libio/stdio.h: Remove definition of off_t.
1347
1348 2001-01-11  Andreas Jaeger  <aj@suse.de>
1349
1350         * wcsmbs/tst-mbrtowc.c (utf8_test): New function by Markus Kuhn
1351         <mkuhn@acm.org>.
1352
1353 2001-01-10  Ulrich Drepper  <drepper@redhat.com>
1354
1355         * sunrpc/Makefile (distribute): Add errqueue.h.
1356
1357 2001-01-10  H.J. Lu  <hjl@gnu.org>
1358
1359         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
1360         r9, r10 and r11 for language specific registers.
1361
1362 2001-01-10  Jakub Jelinek  <jakub@redhat.com>
1363
1364         * sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
1365         UDP socket.
1366         (clntudp_call): Handle MSG_ERRQUEUE.
1367         * sysdeps/generic/errqueue.h: New file.
1368         * sysdeps/unix/sysv/linux/errqueue.h: New file.
1369
1370 2001-01-10  H.J. Lu  <hjl@gnu.org>
1371
1372         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_getpagesize): Removed.
1373
1374 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1375
1376         * CONFORMANCE: Update.
1377
1378 2001-01-09  Ulrich Drepper  <drepper@redhat.com>
1379
1380         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1381         Minimal cleanups.  Add assert to ensure memory handling is correct.
1382
1383         * manual/conf.texi (File Minimums): Fix _POSIX_PATH_MAX value.
1384         Reported by Ben Collins <bcollins@debian.org>.
1385
1386         * time/strftime.c (my_strftime): Mark previous GNU extensions
1387         which are now in C99 as such.
1388
1389 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
1390
1391         * elf/rtld.c (process_envvars): Place output files for profiling
1392         in SUID binaries in /var/profile.
1393
1394         * elf/dl-load.c (_dl_map_object): Don't look in cache for
1395         preloading in SUID binaries.
1396
1397         * elf/dl-profile.c (_dl_start_profile): Open the output file with
1398         O_NOFOLLOW if possible.
1399
1400         * include/stdlib.h: Add __posix_openpt declaration.
1401         * stdlib/stdlib.h: Add posix_openpt declaration.
1402         * login/Versions: Add posix_openpt for GLIBC_2.2.1.
1403         * sysdeps/generic/getpt.c: Define posix_openpt.
1404         * sysdeps/unix/bsd/getpt.c: Likewise.
1405         * sysdeps/unix/sysv/linux/getpt.c: Likewise.
1406
1407         * time/Makefile (tests): Add tst-mktime.
1408         * time/tst-mktime.c: New file.
1409
1410         * posix/tst-dir.c (main): One more mkdir() test.
1411
1412         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1413         Remove getpagesize syscall.  We assume that the pagesize is always
1414         determined from the auxiliary vector.
1415
1416         * intl/dcigettext.c: Fix a few warnings.
1417         Patch by Bruno Haible <haible@ilog.fr>.
1418
1419 2001-01-08  Andreas Jaeger  <aj@suse.de>
1420
1421         * io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
1422         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1423
1424 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
1425
1426         * sysdeps/generic/segfault.c (install_handler): Check output file
1427         name with access().
1428
1429         * resolv/res_query.c: Use simply getenv() for HOSTALIASES.
1430         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.
1431
1432         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma.
1433
1434         * malloc/memusage.c (me): Use access() to determine whether we
1435         should write the output file or not.
1436
1437         * libio/bits/stdio.h (printf): Define macro to map printf call to
1438         fprintf which gcc can optimize.
1439         * stdio-common/printf.c: Undefine printf.
1440
1441 2001-01-07  Ulrich Drepper  <drepper@redhat.com>
1442
1443         * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last
1444         patch.  We must use unsigned int for l member of union.
1445
1446         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call
1447         _dl_aux_init for shared libraries.
1448
1449         * sysdeps/unix/sysv/linux/glob64.c: Moved to ...
1450         * sysdeps/gnu/glob64.c: ...here.  New file.
1451
1452 2001-01-07  Ben Collins  <bcollins@debian.org>
1453
1454         * manual/examples/longopt.c: Make the "struct option" a little
1455         more like it should be, adding usage of required_argument,
1456         noargument and such, and also setting the options string right.
1457
1458         * manual/sysinfo.texi (Load Average): New section, documents
1459         getloadavg().
1460
1461 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
1462
1463         * version.h (VERSION): Bump to 2.2.1.
1464
1465         * sysdeps/unix/sysv/linux/mips/Dist: Remove sys/acct.h.
1466         * sysdeps/alpha/Dist: Add alphaev6/stxncpy.S and alphaev6/stxcpy.S.
1467         * sysdeps/unix/sysv/aix/Dist: Add uitrunc.c, savef.S, and restf.S.
1468         * dlfcn/Makefile (distribute): Add errmsg1mod.c.
1469         * Makefile (distribute): Add include/libc-internal.h.
1470         * libio/Makefile (distribute): Avoid overwriting.
1471
1472         * iconvdata/ibm937.c (BODY to IBM937): Correct several mistakes in
1473         buffer and table handling.
1474
1475 2001-01-05  H.J. Lu  <hjl@gnu.org>
1476
1477         * elf/dl-support.c (non_dynamic_init): Move the auxiliary
1478         vector checking to ...
1479         (_dl_aux_init): Here. New function. Defined only if
1480         HAVE_AUX_VECTOR is defined.
1481
1482         * sysdeps/generic/libc-start.c (__libc_start_main): Call
1483         _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined.
1484
1485         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call
1486         _dl_aux_init.
1487
1488         * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed.
1489         (HAVE_AUX_VECTOR): Defined.
1490         (_dl_aux_init): Declared.
1491
1492 2001-01-05  Ben Collins  <bcollins@debian.org>
1493
1494         * manual/string.texi (Finding Tokens in a String): Document XPG
1495         basename() and dirname(), as well as GNU basename().
1496
1497 2001-01-05  Jakub Jelinek  <jakub@redhat.com>
1498
1499         * Makeconfig (preprocess-version): Replace -traditional with
1500         -x assembler-with-cpp.
1501
1502 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1503
1504         * math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
1505         for GCC 2.97 or later.
1506
1507 2001-01-05  Ben Collins  <bcollins@debian.org>
1508
1509         * manual/stdio.texi (getline): Clarify the return value in the
1510         case of EOF being reached before a newline.
1511
1512 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
1513
1514         * sunrpc/pmap_clnt.c (__get_myaddress): Return TRUE if successful,
1515         FALSE otherwise.
1516         (pmap_set, pmap_unset): Check __get_myaddress return value.
1517
1518 2001-01-05  Mark Kettenis  <kettenis@gnu.org>
1519
1520         * sysdeps/generic/netinet/if_ether.h: Include <sys/types.h>.
1521         (struct ether_addr): Declare ether_addr_octet member as
1522         `u_int8_t'.  Add __attribute__ ((__packed__)).
1523
1524 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1525
1526         * sysdeps/mach/hurd/readdir64.c: New file.
1527         * sysdeps/mach/hurd/readdir64_r.c: New file.
1528
1529 2001-01-07  Mark Kettenis  <kettenis@gnu.org>
1530
1531         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Add comment about
1532         `struct statfs' and `struct statvfs' being identical.
1533         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1534
1535 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1536
1537         * sysdeps/mach/hurd/fstatfs64.c: New file.
1538         * sysdeps/mach/hurd/fstatvfs64.c: New file.
1539         * sysdeps/mach/hurd/statfs64.c: New file.
1540         * sysdeps/mach/hurd/statvfs64.c: New file.
1541         * sysdeps/mach/hurd/statfsconv.c: New file.
1542         * sysdeps/mach/hurd/Dist: Add statfsconv.c.
1543
1544 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
1545
1546         * iconv/skeleton.c: Reset outbuf for next round of the loop.
1547         Reported by Owen Taylor <otaylor@redhat.com>.
1548         * iconv/Makefile (tests): Add tst-iconv3.
1549         * iconv/tst-iconv3.c: New file.
1550
1551         * iconvdata/ibm930.c: Fix handling of state.  Optimize a bit.
1552         * iconvdata/ibm933.c: Likewise.
1553         * iconvdata/ibm935.c: Likewise.
1554         * iconvdata/ibm937.c: Likewise.
1555         * iconvdata/ibm939.c: Likewise.
1556         * iconvdata/ibm930.h: Adjust single byte table for optimization.
1557         * iconvdata/ibm933.h: Likewise.
1558         * iconvdata/ibm935.h: Likewise.
1559         * iconvdata/ibm939.h: Likewise.
1560
1561         * iconvdata/testdata/IBM930: Add misssing SI.
1562         * iconvdata/testdata/IBM933: Likewise.
1563         * iconvdata/testdata/IBM935: Likewise.
1564         * iconvdata/testdata/IBM937: Likewise.
1565         * iconvdata/testdata/IBM939: Likewise.
1566
1567 2001-01-06  Andreas Jaeger  <aj@suse.de>
1568
1569         * configure.in: Check for old add-ons that shouldn't be used with
1570         current glibc anymore.
1571
1572 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1573
1574         * sysdeps/mach/hurd/readdir_r.c (__readdir_r): Return error number
1575         instead of -1 on failure.  Don't forget to copy file name into
1576         *ENTRY if successful.  Set *RESULT to NULL upon reaching the end
1577         of the directory.
1578
1579 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
1580
1581         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Don't forget to
1582         copy st_atime member.
1583
1584 2001-01-05  Ulrich Drepper  <drepper@redhat.com>
1585
1586         * io/ftw.c (ftw_dir): Don't add a second slash at the beginning
1587         for searches from the root directory.
1588         Reported by loris <loris@iol.it> [PR libc/1991].
1589         * io/Makefile (tests): Add bug-ftw1.
1590         * io/bug-ftw1.c: New file.
1591
1592         * elf/dl-support.c (non_dynamic_init): Don't define DL_FIND_AUXV
1593         if it is not available.  Instead use it only if it is available.
1594         * sysdeps/unix/sysv/linux/ldsodefs.h: New file.
1595
1596         * iconv/gconv_simple.c (internal_ics4_loop): Correct test for
1597         overflowing output buffer.
1598         (internal_ucs4_loop_unaligned): Likewise.
1599         (ucs4_internal_loop): Likewise.
1600         (ucs4_internal_loop_unaligned): Likewise.
1601         (internal_ucs4le_loop): Likewise.
1602         (internal_ucs4le_loop_unaligned): Likewise.
1603         (ucs4le_internal_loop): Likewise.
1604         (ucs4le_internal_loop_unaligned): Likewise.
1605         Reported by Owen Taylor <otaylor@redhat.com>.
1606         * iconv/Makefile (tests): Add tst-iconv2.
1607         * iconv/tst-iconv2.c: New file.
1608
1609 2001-01-04  H.J. Lu  <hjl@gnu.org>
1610
1611         * elf/dl-support.c (DL_FIND_AUXV): New.  Defined if not defined.
1612         (_dl_clktck): Declared.
1613         (non_dynamic_init): Take 3 arguments.
1614         Set _dl_pagesize, _dl_platform and _dl_clktck from AUX.
1615
1616 2001-01-01  Bruno Haible  <haible@clisp.cons.org>
1617
1618         Finish implementation of plural form handling.
1619         * intl/dcigettext.c (known_translation_t): Rename 'domain' field to
1620         'domainname'.  Remove 'plindex' field. Add 'domain' and
1621         'translation_length' fields.
1622         (transcmp): Don't compare 'plindex' fields.
1623         (plural_lookup): New function.
1624         (DCIGETTEXT): Change cache handing in the plural case.  Don't call
1625         plural_eval before the translation and its catalog file have been
1626         found. Remove plindex from cache key.  Add 'translation_length' and
1627         'domain' to cache result.
1628         (_nl_find_msg): Remove index argument, return length of translation
1629         to the caller instead.  Weaken comparison of string lengths, to account
1630         for plural entries.  Call iconv() on the entire result string, not
1631         only on the portion needed so far.
1632         * intl/loadinfo.h (_nl_find_msg): Remove index argument, add lengthp
1633         argument.
1634         * intl/loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change.
1635
1636 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
1637
1638         * intl/plural.y (yylex): Minimal improvement in number scanner.
1639
1640 2000-07-31  Bruno Haible  <haible@clisp.cons.org>
1641
1642         * intl/plural.y: Include config.h. Needed to define 'inline' away for
1643         C compilers that don't support it.
1644         (yylex): Don't use gcc specific case range syntax.
1645         * intl/loadmsgcat.c (INIT_GERMANIC_PLURAL): New macro, for old
1646         compilers.
1647
1648 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
1649
1650         * intl/finddomain.c: Remove unneeded includes.
1651
1652 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
1653
1654         * intl/localealias.c (memcpy): Return first argument, just like the
1655         real memcpy function does.
1656         * intl/bindtextdom.c (memcpy): Likewise.
1657         * intl/finddomain.c (memcpy): Likewise.
1658         * intl/l10nflist.c (memcpy): Likewise.
1659         * intl/textdomain.c (memcpy): Likewise.
1660         From Paul Eggert <eggert@twinsun.com>.
1661
1662 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
1663
1664         * resolv/resolv.h (struct __res_state): Add nsinit field.
1665         * resolv/res_send.c (res_nsend): Use it instead of nscount.
1666         * resolv/res_init.c (__res_vinit): Initialize it.
1667         (res_nclose): Clear it instead of nscount.
1668
1669 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
1670
1671         * malloc/mtrace.pl: Fix matching of addresses.
1672         Patch by Aharon Robbins <arnold@skeeve.com>.
1673
1674         * Versions.def (ld): Add GLIBC_2.2.
1675
1676         * catgets/gencat.c: Copyright 2001.
1677         * csu/version.c: Likewise.
1678         * debug/catchsegv.sh: Likewise.
1679         * debug/xtrace.sh: Likewise.
1680         * elf/ldconfig.c: Likewise.
1681         * elf/sprof.c: Likewise.
1682         * iconv/iconv_prog.c: Likewise.
1683         * locale/locale.c: Likewise.
1684         * locale/localedef.c: Likewise.
1685         * malloc/memusage.sh: Likewise.
1686         * malloc/mtrace.pl: Likewise.
1687         * nscd/nscd.c: Likewise.
1688         * posix/getconf.c: Likewise.
1689
1690 2001-01-04  Mark Kettenis  <kettenis@gnu.org>
1691
1692         * include/stdio.h: Only provide __getwc_unlocked prototype if
1693         USE_IN_LIBIO is defined.
1694
1695 2001-01-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1696
1697         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
1698         handling.
1699
1700 2001-01-03  Andreas Schwab  <schwab@suse.de>
1701
1702         * sysdeps/generic/strtoll.c: Remove unused __strtoq_internal alias.
1703         * sysdeps/generic/strtoull.c: Remove unused __strtouq_internal alias.
1704
1705         * sysdeps/wordsize-64/strtol.c: Add strtoq alias and fix strtoll alias.
1706         * sysdeps/wordsize-64/strtoul.c: Add strtouq alias and fix
1707         strtoull alias.
1708         * sysdeps/wordsize-64/wcstol.c: Add wcstoq alias and fix wcstoll alias.
1709         * sysdeps/wordsize-64/wcstoul.c: Add wcstouq alias and fix
1710         wcstoull alias.
1711
1712         * sysdeps/generic/strtoul.c: Make sure we find strtol.c in this
1713         directory.
1714         * sysdeps/generic/strtol_l.c: Likewise.
1715         * sysdeps/generic/strtoul_l.c: Likewise.
1716         * sysdeps/generic/wcstoul.c: Likewise, for wcstol.c.
1717
1718         * sysdeps/wordsize-64/strtol_l.c: Fix alias.
1719         * sysdeps/wordsize-64/strtoul_l.c: Likewise.
1720         * sysdeps/wordsize-64/wcstol_l.c: Fix alias.
1721         * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
1722
1723 2001-01-04  Andreas Jaeger  <aj@suse.de>
1724
1725         * nss/nsswitch.c: Include files for missing prototypes, remove
1726         buggy declaration of prototypes.
1727
1728 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1729
1730         * resolv/Versions: Fix bracing.
1731         * sysdeps/powerpc/soft-fp/Versions: Likewise.
1732         * sysdeps/sparc/sparc64/soft-fp/Versions: Likewise.
1733
1734 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1735
1736         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
1737
1738 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
1739
1740         * manual/Makefile (TEXI2PDF): Change to texi2dvi --pdf.
1741         Suggested by Minko Markov <mmarkov@home.com>.
1742
1743 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1744
1745         * sysdeps/powerpc/elf/start.S (__data_start): Make it global.
1746         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): Print the name of
1747         the failing symbol.
1748         (__process_machine_rela): Pass symbol to dl_reloc_overflow().
1749
1750 2001-01-02  Ben Collins  <bcollins@debian.org>
1751
1752         * time/tzset.c (tzset_internal): Make sure we fall back to UTC
1753         if TZ is not set and TZDEFAULT is not present.
1754
1755 2001-01-01  Ben Collins  <bcollins@debian.org>
1756
1757         * string/strings.h: Make sure we declare our functions even if
1758         string.h is already included, based on whether or not __USE_BSD is
1759         defined.
1760
1761 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
1762
1763         * dlfcn/dlerror.c (dlerror): Handle call of dlerror() before any
1764         other dlopen() and dlsym().
1765         Based on a patch by Ben Collins <bcollins@debian.org>.
1766
1767 2001-01-02  Andreas Jaeger  <aj@suse.de>
1768
1769         * dlfcn/errmsg1.c (main): Call dlerror initially.
1770         Reported by Ben Collins <bcollins@debian.org>.
1771
1772 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
1773
1774         * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
1775         value is ignored if the selected locale is the C locale.
1776         * intl/tst-gettext.c: Set locale for above change.
1777         * intl/tst-translit.c: Likewise.
1778
1779 2001-01-02  Andreas Jaeger  <aj@suse.de>
1780
1781         * libio/wgenops.c (_IO_wdoallocbuf): Use correct wide access macro.
1782         (_IO_switch_to_wget_mode): Likewise.
1783         (_IO_sputbackwc): Likewise.
1784         (_IO_sungetwc): Use wint_t for result.
1785
1786         * stdio-common/vfscanf.c (__vfscanf): Use WINT_T for done.
1787
1788         * sysdeps/generic/strtol.c (strtol): Make cnt size_t for correct
1789         signedness.
1790
1791         * sysdeps/generic/printf_fphex.c (putc): Cast _IO_putwc_unlocked
1792         to (int) to avoid warnings.
1793         * stdio-common/printf_fp.c (putc): Likewise.
1794         * stdio-common/printf_size.c (putc): Likewise.
1795
1796         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make
1797         constant unsigned.
1798
1799 2001-01-01  Andreas Jaeger  <aj@suse.de>
1800
1801         * inet/rcmd.c (rcmd_af): Use socklen_t for len.
1802
1803 2000-12-31  Andreas Jaeger  <aj@suse.de>
1804
1805         * include/libc-internal.h: Add prototype for __libc_freeres.
1806
1807         * sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
1808         for prototypes, remove redundant prototypes.
1809         * gmon/gmon.c: Likewise.
1810         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
1811         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
1812         * malloc/mtrace.c: Likewise.
1813
1814         * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
1815         prototypes.
1816         * elf/soinit.c: Likewise.
1817         * sysdeps/generic/prof-freq.c: Likewise.
1818         * sysdeps/mach/hurd/profil.c: Likewise.
1819         * debug/noophooks.c: Likewise.
1820         * debug/pcprofile.c: Likewise.
1821         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1822         * sysdeps/generic/get_clockfreq.c: Likewise.
1823         * malloc/set-freeres.c: Likewise.
1824
1825         * locale/localeinfo.h: Add internal prototypes.
1826
1827         * elf/rtld.c (dl_main): Fix prototype.
1828
1829         * iconvdata/tst-table-to.c (main): Use return instead of exit to
1830         avoid warning.
1831
1832         * nis/rpcsvc/yp_prot.h: Remove __P.
1833         * nis/rpcsvc/ypupd.h: Likewise.
1834         * nis/rpcsvc/yp.h: Likewise.
1835
1836         * sunrpc/rpc_main.c: Add noreturn attributes.
1837         * sunrpc/rpc_scan.h: Likewise.
1838
1839         * sunrpc/rpc_hout.c (storexdrfuncdecl): Make static.
1840
1841         * sunrpc/rpcinfo.c: Add noreturn attribute to brdcst.
1842
1843         * sunrpc/proto.h: Add noreturn attributes to error and crash.
1844
1845         * posix/bsd-getpgrp.c: Add prototype to avoid warning.
1846
1847         * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
1848
1849         * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
1850
1851         * include/rpc/rpc_msg.h: Add prototypes for some functions.
1852         * include/rpc/auth.h: Likewise.
1853         * include/rpc/auth_des.h: Likewise.
1854         * include/rpc/clnt.h: Likewise.
1855         * include/rpc/rpc.h: Likewise.
1856         * include/rpc/svc.h: Likewise.
1857         * include/rpc/svc_auth.h: Likewise.
1858
1859         * include/rpc/des_crypt.h: New file.
1860
1861         * malloc/memusagestat.c (main): Use return instead of exit to
1862         avoid warning.
1863         * io/pwd.c (main): Likewise.
1864         * iconvdata/tst-table-from.c (main): Likewise.
1865         * ctype/test_ctype.c (main): Likewise.
1866         * setjmp/tst-setjmp.c (main): Likewise.
1867         * signal/tst-signal.c (main): Likewise.
1868         * stdlib/tst-strtol.c (main): Likewise.
1869         * stdlib/tst-strtod.c (main): Likewise.
1870         * stdlib/tst-strtoll.c (main): Likewise.
1871         * stdlib/tst-xpg-basename.c (main): Likewise.
1872         * dirent/tst-seekdir.c (main): Likewise.
1873         * grp/testgrp.c (main): Likewise.
1874         * inet/test_ifindex.c (main): Likewise.
1875         * io/test-utime.c (main): Likewise.
1876         * posix/test-vfork.c (main): Likewise.
1877         * posix/testfnm.c (main): Likewise.
1878         * stdio-common/temptest.c (main): Likewise.
1879         * stdio-common/test_rdwr.c (main): Likewise.
1880         * stdio-common/tst-fileno.c (main): Likewise.
1881         * stdio-common/tst-sscanf.c (main): Likewise.
1882         * stdio-common/tstscanf.c (main): Likewise.
1883         * string/bug-strncat1.c (main): Likewise.
1884         * string/bug-strpbrk1.c (main): Likewise.
1885         * string/bug-strspn1.c (main): Likewise.
1886         * string/test-ffs.c (main): Likewise.
1887         * string/tst-inlcall.c (main): Likewise.
1888         * string/tst-svc.c (main): Likewise.
1889         * timezone/test-tz.c (main): Likewise.
1890         * wctype/test_wcfuncs.c (main): Likewise.
1891         * wctype/test_wctype.c (main): Likewise.
1892
1893         * stdlib/tst-random.c: Add attribute noreturn to fail.
1894
1895 2000-12-28  Wolfram Gloger  <wg@malloc.de>
1896
1897         * malloc/malloc.c (MALLOC_COPY): Handle case if source and
1898         destination overlap.  Assume dest is always below source if
1899         overlapping.
1900
1901 2000-12-30  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * elf/dl-close.c (_dl_close): We can ignore the NODELETE flag if the
1904         object was not yet initialized.
1905
1906 2000-12-28  H.J. Lu  <hjl@gnu.org>
1907
1908         * elf/dl-deps.c (_dl_map_object_deps): Make sure the DSO state
1909         is always consistent even if its dependency is failed.
1910
1911         * elf/dl-open.c (_dl_open): Increment the open count before
1912         calling _dl_close () in case of failure.
1913
1914         * elf/neededtest4.c: New file.
1915         * elf/neededobj5.c: New file.
1916         * elf/neededobj6.c: New file.
1917
1918         * elf/Makefile (distribute): Add neededobj5.c and neededobj6.c.
1919         (tests): Add neededtest4.
1920         (modules-names): Add neededobj5 and neededobj6.
1921         ($(objpfx)neededobj6.so): New target.
1922         ($(objpfx)neededtest4): New target.
1923         ($(objpfx)neededtest4.out): New target.
1924
1925 2000-12-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1926
1927         * misc/sys/cdefs.h (__attribute_format_strfmon__): Define.
1928         * stdlib/monetary.h: Add strfmon format attributes.
1929
1930 2000-12-28  Roland McGrath  <roland@frob.com>
1931
1932         * sysdeps/mach/hurd/ioctl.c (do_ioctl): Avoid double-increment after
1933         __mempcpy does it for us.
1934
1935 2000-12-28  Andreas Jaeger  <aj@suse.de>
1936
1937         * sysdeps/generic/dl-environ.c: Add prototype for unsetenv.
1938
1939         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for
1940         __new_setrlimit.
1941
1942         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for
1943         __old_getrlimit64.
1944
1945         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for
1946         __new_getrlimit.
1947
1948         * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for
1949         __chown_is_lchown and __real_chown.
1950
1951         * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
1952         _dl_reloc_bad_type.
1953
1954         * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
1955         up GCC's warning about "deprecated use of label at end of compound
1956         statement."
1957         * sunrpc/rpc_cout.c (emit_inline): Likewise.
1958
1959         * gmon/bb_exit_func.c: Include <sys/gmon.h> for internal
1960         prototypes.
1961         Remove struct bb and __bb_head since those are declared by
1962         sys/gmon.h.
1963
1964 2000-12-22  Ben Collins  <bcollins@debian.org>
1965
1966         * manual/charset.texi: Fix typo in description of WCHAR_MAX.
1967
1968         * manual/argp.texi: Document argp_domain as part of struct argp.
1969
1970 2000-12-28  Andreas Jaeger  <aj@suse.de>
1971
1972         * catgets/Makefile (generated): Add sample.SJIS.cat.
1973
1974         * sunrpc/rpc_dtable.c: Include rpc/clnt.h for prototypes.
1975
1976         * elf/dl-minimal.c: Add prototypes.
1977
1978         * include/locale.h: Add internal prototypes.
1979         * include/sys/gmon.h: Likewise.
1980
1981         * dlfcn/errmsg1mod.c: Add prototype for foo to shut up GCC.
1982
1983 2000-12-27  Ben Collins  <bcollins@debian.org>
1984
1985         * elf/dl-open.c (_dl_open): Correctly set the new objname pointer
1986         when reallocating the error strings.
1987         Reported by Kalle Olavi Niemitalo <kon@iki.fi>
1988
1989 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
1990
1991         * dlfcn/Makefile (tests): Add errmsg1.
1992         (modules-names): Add errmsg1mod.
1993         Add rules to run errmsg1.
1994         * dlfcn/errmsg1.c: New file.
1995         * dlfcn/errmsg1mod.c: New file.
1996
1997         * dlfcn/dlerror.c (dlerror): Always create output string which
1998         includes object file name.
1999
2000         * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop
2001         if we would go through it only once.
2002         Patch by Rick Gorton <rick.gorton@api-networks.com>.
2003
2004         * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter.
2005         Patch by Richard Henderson <rth@redhat.com>.
2006
2007 2000-12-27  Jakub Jelinek  <jakub@redhat.com>
2008
2009         * malloc/malloc.c (memmove): Add prototypes.
2010         (MALLOC_MEMMOVE): Define.
2011         (chunk_realloc): Use it instead of MALLOC_COPY if source and
2012         destination might overlap.
2013
2014 2000-12-27  Andreas Jaeger  <aj@suse.de>
2015
2016         * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested
2017         function.
2018         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2019         * locale/programs/locale.c (show_locale_vars): Likewise.
2020         (show_info): Likewise.
2021         * locale/programs/ld-collate.c (collate_output): Likewise.
2022         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2023         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2024         * stdlib/rpmatch.c (rpmatch): Likewise.
2025
2026         * setjmp/tst-setjmp.c: Make local functions static.
2027         * setjmp/jmpbug.c: Likewise.
2028         * signal/tst-signal.c: Likewise.
2029         * stdio-common/tfformat.c: Likewise.
2030         * string/tst-svc.c: Likewise.
2031         * time/clocktest.c: Likewise.
2032         * time/tst-getdate.c: Likewise.
2033         * dirent/list.c: Likewise.
2034         * dirent/opendir-tst1.c: Likewise.
2035         * posix/runtests.c: Likewise.
2036         * posix/tst-getaddrinfo.c: Likewise.
2037         * posix/tst-chmod.c: Likewise.
2038         * posix/wordexp-test.c: Likewise.
2039         * misc/tst-efgcvt.c: Likewise.
2040         * timezone/tst-timezone.c: Likewise.
2041         * rt/tst-clock.c: Likewise.
2042         * rt/tst-shm.c: Likewise.
2043         * rt/tst-aio2.c: Likewise.
2044         * rt/tst-aio3.c: Likewise.
2045         * rt/tst-aio4.c: Likewise.
2046         * rt/tst-aio5.c: Likewise.
2047
2048         * dlfcn/failtest.c: Add prototype for foo.
2049
2050         * dlfcn/glrefmain.c: Add prototype for do_test.
2051
2052         * dlfcn/tst-dladdr.c: Add prototype for do_test.
2053
2054         * string/test-ffs.c (main): Add prototype for nested function.
2055
2056         * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype.
2057
2058         * nss/XXX-lookup.c: Add prototype to shut up GCC.
2059
2060         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix
2061         setetherent prototype.
2062         Add internal interfaces.
2063
2064         * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise.
2065         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise.
2066
2067         * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC.
2068
2069         * nis/nis_intern.h: Add prototype for __pmap_getnisport.
2070
2071         * nss/nss_files/files-ethers.c: Include netinet/ether.h to get
2072         prototypes, remove struct etherent since it's declared in ether.h.
2073         Fix ntohost declaration.
2074
2075         * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC.
2076
2077         * include/getopt.h: Add internal interfaces.
2078         * include/termios.h: Likewise.
2079         * include/resolv.h: Likewise.
2080         * include/netdb.h: Likewise.
2081         * include/grp.h: Likewise.
2082         * include/pwd.h: Likewise.
2083         * include/shadow.h: Likewise.
2084         * include/rpc/netdb.h: Likewise.
2085         * include/setjmp.h: Likewise.
2086
2087         * include/stdio.h: Add prototypes for compatibility functions.
2088         * include/grp.h: Likewise.
2089         * include/pwd.h: Likewise.
2090         * include/shadow.h: Likewise.
2091
2092         * include/fenv.h: Define internal interfaces.
2093
2094 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
2095
2096         * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant
2097         argument case separately.
2098         * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise.
2099
2100 2000-12-27  Andreas Jaeger  <aj@suse.de>
2101
2102         * include/sys/wait.h: Add some prototypes.
2103         * Rules (dummy.c): Create also prototype to shut up GCC.
2104
2105 2000-12-27  Andreas Jaeger  <aj@suse.de>
2106
2107         * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment,
2108         it's not needed at the moment.
2109         * sysdeps/generic/if_index.c (__protocol_available): Likewise.
2110         * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise.
2111
2112 2000-12-26  Andreas Jaeger  <aj@suse.de>
2113
2114         * libio/getc_u.c: Include stdio.h via system path to get internal
2115         prototypes.
2116         * libio/getwc_u.c: Likewise.
2117
2118         * stdlib/strfmon.c: Fix prototype of __printf_fp.
2119
2120         * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
2121         __printf_fp prototypes to ...
2122         * include/printf.h: ...here.
2123
2124         * include/stdio.h: Add some internal prototypes to shut up GCC.
2125         * include/stdlib.h: Likewise.
2126
2127         * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
2128         declaration.
2129
2130         * include/signal.h: Add prototypes for internal sigpause
2131         interfaces.
2132
2133 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
2134
2135         * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
2136         64bit platforms.  Reported by Dave Gilbert <gilbertd@treblig.org>.
2137
2138         * string/Makefile (tests): Add tst-bswap.
2139         * string/tst-bswap.c: New file.
2140
2141 2000-12-11  Bruno Haible  <haible@clisp.cons.org>
2142
2143         * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
2144
2145 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
2146
2147         * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call.
2148         Patch by Ed Connell <Ed.Connell@sas.com>.
2149
2150 2000-12-24  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * locale/iso-639.def: Correct one entry.  Add two missing entries.
2153
2154         * locale/iso-4217.def: Change entry for Eritrea.
2155         Reported by Daniel Yacob <yacob@geez.org>.
2156
2157 2000-12-23  Ben Collins  <bcollins@debian.org>
2158
2159         * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937
2160         description.
2161
2162         * manual/stdio.texi (Dynamic Output): Document the return value of
2163         asprintf.  Also make the asprintf/snprintf examples a little
2164         better (check for some error returns).
2165
2166 2000-12-22  Andreas Jaeger  <aj@suse.de>
2167
2168         * include/stdio.h: Add __ftrylockfile prototype.
2169
2170 2000-12-21  H.J. Lu  <hjl@gnu.org>
2171
2172         * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type):
2173         Make sign_exponent element signed.
2174
2175         * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type):
2176         Fix a typo.
2177
2178         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch.
2179
2180 2000-12-21  Andreas Jaeger  <aj@suse.de>
2181
2182         * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
2183         * inet/ether_hton.c: Likewise
2184         * inet/ether_ntoh.c: Likewise.
2185
2186         * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
2187         declaration to match prototype.
2188
2189         * include/netinet/ether.h (struct etherent): Declare here so that
2190         all implementations use the same struct.
2191
2192         * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
2193         prototypes.
2194         (struct ether): Removed.
2195         Use struct etherent instead of ether everywhere.
2196
2197         * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.
2198
2199         * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.
2200
2201         * sunrpc/publickey.c: Include auth_des.h for prototypes.
2202
2203 2000-12-20  Ulrich Drepper  <drepper@redhat.com>
2204
2205         * math/test-misc.c: Add more tests for nextafter functions.
2206
2207         * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to
2208         normal correctly.  Correct test for sign.
2209         Based on a patch by HJ Lu.
2210
2211 2000-12-19  Ulrich Drepper  <drepper@redhat.com>
2212
2213         * Makeconfig (preprocess-version): Add -traditional to gcc call.
2214         Cleanup sed calls.
2215
2216 2000-12-19  Andreas Jaeger  <aj@suse.de>
2217
2218         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New.
2219
2220         * nis/nis_intern.h: Add prototype for __do_niscall3.
2221
2222         * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to
2223         match prototype.
2224
2225         * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat.
2226
2227         * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New.
2228
2229         * include/aliases.h (DECLARE_NSS_PROTOTYPES): New.
2230
2231 2000-12-18  Ulrich Drepper  <drepper@redhat.com>
2232
2233         * math/test-misc.c: Add more tests for nextafter.
2234         * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
2235         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2236         (ieee_long_double_shape_type): Make sign_exponent element signed.
2237
2238         * manual/message.texi: Add Estonian to plural overview list.
2239         Correct rule for Slavic languages.
2240         Patch by Stanislav Brabec <utx@penguin.cz>.
2241
2242         * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
2243
2244 2000-12-18  Andreas Jaeger  <aj@suse.de>
2245
2246         * test-skeleton.c: Use temp_name_list instead of name_list to
2247         avoid collision with name_list from inet/netgroup.h.
2248
2249         * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
2250
2251         * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
2252         * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
2253         * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
2254         * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
2255
2256         * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
2257         declaration to match prototype.
2258         * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
2259         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
2260         * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
2261         Likewise.
2262         * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
2263         * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
2264         * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
2265         * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
2266         (_nss_nis_getservbyport_r): Likewise.
2267         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
2268         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
2269         * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
2270         (_nss_nis_setnetent): Likewise
2271         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
2272         (_nss_nis_endnetgrent): Likewise.
2273         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
2274         Likewise.
2275         (_nss_nisplus_setnetgrent): Likewise.
2276         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
2277         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
2278         * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
2279         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
2280         Likewise.
2281         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
2282         Likewise.
2283         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
2284         Likewise.
2285         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
2286         Likewise.
2287         * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
2288         * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
2289         * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
2290         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2291         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
2292         (_nss_dns_getnetbyaddr_r): Likewise.
2293
2294 2000-12-17  Andreas Jaeger  <aj@suse.de>
2295
2296         * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
2297         parameter.
2298
2299         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
2300         unused attribute to shut up gcc warnings.
2301
2302         * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
2303         * sysdeps/generic/k_tanl.c: Likewise.
2304         * sysdeps/generic/k_cosl.c: Likewise.
2305         * sysdeps/generic/e_j0l.c: Likewise.
2306         * sysdeps/generic/e_j1l.c: Likewise.
2307         * sysdeps/generic/e_jnl.c: Likewise.
2308         * sysdeps/generic/e_lgammal_r.c: Likewise.
2309
2310         * elf/vismain.c: Move prototypes for functions in vismod*.c to
2311         vismod.h.
2312         * elf/vismod.h: New file.
2313         * elf/Makefile (distribute): Add vismod.h.
2314         * elf/vismod1.c: Include vismod.h.
2315         * elf/vismod2.c: Likewise.
2316         * elf/vismod3.c: Likewise.
2317
2318         * elf/constload3.c: Add prototype declarations to shut up gcc.
2319         * elf/failobj.c: Likewise.
2320         * elf/nodelmod3.c: Likewise.
2321         * elf/filtmod1.c: Likewise.
2322         * elf/filtmod2.c: Likewise.
2323         * elf/reldepmod1.c: Likewise.
2324         * elf/reldepmod2.c: Likewise.
2325         * elf/reldepmod3.c: Likewise.
2326         * elf/reldepmod4.c: Likewise.
2327         * elf/unload2dep.c: Likewise.
2328         * elf/unload2mod.c: Likewise.
2329         * elf/ltglobmod1.c: Likewise.
2330         * elf/pathoptobj.c: Likewise.
2331         * elf/neededobj1.c: Likewise.
2332         * elf/neededobj2.c: Likewise.
2333         * elf/neededobj3.c: Likewise.
2334         * elf/neededobj4.c: Likewise.
2335         * elf/nextmod1.c: Likewise.
2336         * elf/nextmod2.c: Likewise.
2337
2338         * locale/programs/ld-collate.c (collate_finish): Don't use labels
2339         at end of compound statement.
2340         * locale/programs/locale.c (show_info): Likewise.
2341         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2342
2343 2000-12-16  Jakub Jelinek  <jakub@redhat.com>
2344
2345         * catgets/gencat.c (read_input_file): Avoid calling obstack_free
2346         with a pointer not returned by obstack_ functions.
2347
2348 2000-12-16  Ulrich Drepper  <drepper@redhat.com>
2349
2350         * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
2351         version.
2352         (struct stat64): Likewise.
2353         Reported by Michael Keezer <mkeezer@redhat.com>.
2354
2355         * timezone/asia: Update from tzdata2000h.
2356         * timezone/australasia: Likewise.
2357         * timezone/backward: Likewise.
2358         * timezone/europe: Likewise.
2359         * timezone/northamerica: Likewise.
2360         * timezone/southamerica: Likewise.
2361         * timezone/zone.tab: Likewise.
2362
2363 2000-12-14  Jakub Jelinek  <jakub@redhat.com>
2364
2365         * io/ftw.c (ftw_dir): If process_entry returned non-zero result
2366         and dir.stream is NULL, only free dir.content.
2367         * io/ftwtest.c (cb, main): Add --early-exit option to test it.
2368         * io/ftwtest-sh: Test with --early-exit.
2369
2370 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
2371
2372         * misc/efgcvt.c (FCVT_MAXDIG): Define.
2373         (FCVT_BUFPTR): New variable.
2374         (fcvt): If fcvt_r returns -1 on the static short buffer,
2375         try to malloc a sufficiently large one and retry.
2376         (free_mem): New function.
2377         * misc/qefgcvt.c (FCVT_MAXDIG): Define.
2378         * misc/tst-efgcvt.c (fcvt_tests): Add new test.
2379
2380 2000-12-15  Ulrich Drepper  <drepper@redhat.com>
2381
2382         * misc/dirname.c (dirname): Fix search for second to last slash.
2383
2384 2000-12-13  Andreas Jaeger  <aj@suse.de>
2385
2386         * misc/tst-dirname.c (main): Fix typo in test to really use
2387         the examples from Unix98.
2388         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2389
2390 2000-12-09  H.J. Lu  <hjl@gnu.org>
2391
2392         * sysdeps/ia64/fpu/s_fabs.S: New file.
2393         * sysdeps/ia64/fpu/s_fabsf.S: New file.
2394         * sysdeps/ia64/fpu/s_fabsl.S: New file.
2395
2396 2000-12-15  Andreas Jaeger  <aj@suse.de>
2397
2398         * stdio-common/scanf9.c (main): Reformat and change to avoid
2399         warnings.
2400
2401         * stdio-common/tstdiomisc.c: Make local functions static.
2402         * stdio-common/tst-printf.c: Likewise.
2403
2404         * elf/constload2.c: Add prototype declarations to shut up gcc.
2405         * elf/dep1.c: Likewise.
2406         * elf/dep2.c: Likewise.
2407         * elf/dep3.c: Likewise.
2408         * elf/dep4.c: Likewise.
2409         * elf/ltglobmod2.c: Likewise.
2410
2411         * libio/fmemopen.c: Make local functions static.
2412
2413         * elf/Makefile (distribute): Added testobj.h.
2414
2415         * elf/testobj.h: New file.
2416
2417         * elf/testobj1.c: Include testobj.h and move prototype
2418         declarations to testobj.h.
2419         * elf/testobj2.c: Likewise.
2420         * elf/testobj3.c: Likewise.
2421         * elf/testobj4.c: Likewise.
2422         * elf/testobj5.c: Likewise.
2423         * elf/testobj6.c: Likewise.
2424         * elf/testobj1_1.c: Likewise.
2425         * elf/preloadtest.c: Likewise.
2426
2427 2000-12-15  Ben Collins  <bcollins@debian.org>
2428
2429         * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
2430         Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
2431
2432 2000-12-14  H.J. Lu  <hjl@gnu.org>
2433
2434         * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
2435         field in a float is 8 bits, not 11 bits.
2436
2437 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
2438
2439         * math/test-misc.c (main): Adjust m for IEEE quad long double.
2440
2441 2000-12-13  Andreas Jaeger  <aj@suse.de>
2442
2443         * manual/message.texi (Using gettextized software): Fix typo.
2444
2445         * manual/charset.texi (Converting a Character): Fix mbstouwcs
2446         program to compile.
2447         Patch by Martin Buchholz <martin@xemacs.org>.
2448
2449         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
2450         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2451
2452 2000-12-11  Andreas Jaeger  <aj@suse.de>
2453
2454         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
2455         kernel_sigset_t and use it.
2456         Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
2457
2458 2000-12-10  Richard Henderson  <rth@redhat.com>
2459
2460         * sysdeps/alpha/alphaev67/fpu/Implies: New file.
2461         * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
2462         * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
2463
2464 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
2465
2466         * sysdeps/alpha/htonl.S: Fix a typo.
2467
2468 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
2469
2470         * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
2471
2472 2000-12-10  Andreas Jaeger  <aj@suse.de>
2473
2474         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
2475         cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
2476         Drepper <drepper@redhat.com>.
2477
2478 2000-12-09  Andreas Jaeger  <aj@suse.de>
2479
2480         * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
2481
2482         * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
2483         generic version.
2484         Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
2485
2486         * locale/programs/ld-collate.c (handle_ellipsis): Fix format
2487         string.
2488
2489         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
2490         format string.
2491
2492         * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
2493         * nscd/connections.c (handle_request): Likewise.
2494         * nscd/pwdcache.c (addpwbyname): Likewise.
2495         * nscd/grpcache.c (addgrbyname): Likewise.
2496
2497         * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
2498
2499 2000-12-09  Ulrich Drepper  <drepper@redhat.com>
2500
2501         * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
2502
2503         * Makeconfig (default_cflags): Make -O2 the default for stable
2504         releases.
2505
2506 2000-12-08  H.J. Lu  <hjl@gnu.org>
2507
2508         * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
2509         * sysdeps/ia64/fpu/s_isinf.S: This.
2510         Add a .pred.rel.mutex note to avoid false report.
2511
2512         * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
2513         * sysdeps/ia64/fpu/s_isnan.S: This.
2514
2515         * sysdeps/ia64/fpu/s_fpclassify.S: New file.
2516         * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
2517         * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
2518         * sysdeps/ia64/fpu/s_isinff.S: New file.
2519         * sysdeps/ia64/fpu/s_isinfl.S: New file.
2520         * sysdeps/ia64/fpu/s_isnanf.S: New file.
2521         * sysdeps/ia64/fpu/s_isnanl.S: New file.
2522         * sysdeps/ia64/fpu/s_finite.S: New file.
2523         * sysdeps/ia64/fpu/s_finitef.S: New file.
2524         * sysdeps/ia64/fpu/s_finitel.S: New file.
2525         * sysdeps/ia64/fpu/s_signbit.S: New file.
2526         * sysdeps/ia64/fpu/s_signbitf.S: New file.
2527         * sysdeps/ia64/fpu/s_signbitl.S: New file.
2528         * sysdeps/ia64/fpu/s_copysign.S: New file.
2529         * sysdeps/ia64/fpu/s_copysignf.S: New file.
2530         * sysdeps/ia64/fpu/s_copysignl.S: New file.
2531
2532 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
2533
2534         * math/libm-test.inc (main): Fix typos in messages.
2535
2536         * string/stratcliff.c: Add test for rawmemchr.
2537
2538 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
2539
2540         * elf/dl-open.c (_dl_open): If objname points right after errstring,
2541         allocate it together with errstring using alloca.
2542         * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
2543         to "", because it might point to local stack.
2544
2545 2000-12-05  H.J. Lu  <hjl@gnu.org>
2546
2547         * nss/Makefile (routines): Add getnssent and getnssent_r.
2548         * nss/nsswitch.h (__nss_setent): New internal NSS function.
2549         (__nss_endent): Likewise.
2550         (__nss_getent_r): Likewise.
2551         (__nss_getent): Likewise.
2552         * nss/getnssent_r.c: New file.
2553         * nss/getnssent.c: New file.
2554         * nss/getXXent.c (H_ERRNO_VAR): Updated.
2555         (GETFUNC_NAME): Updated to call __nss_getent ().
2556         * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
2557         (STAYOPEN_TMPVAR): Updated.
2558         (STAYOPEN_VAR): Updated.
2559         (SETFUNC_NAME): Updated to call __nss_setent ().
2560         (ENDFUNC_NAME): Updated to call __nss_endent ().
2561         (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
2562
2563 2000-12-08  Andreas Jaeger  <aj@suse.de>
2564
2565         * nscd/dbg_log.h (dbg_log): Correct attribute.
2566
2567 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
2568
2569         * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
2570         cp + len.  Compute where from dirname.
2571         Reported by <jreiser@BitWagon.com>.
2572
2573 2000-12-08  Richard Henderson  <rth@twiddle.net>
2574
2575         * sysdeps/alpha/_mcount.S: Fix typo.
2576         * sysdeps/alpha/strncpy.S: Likewise.
2577
2578         * sysdeps/alpha/alphaev6/Implies: New file.
2579         * sysdeps/alpha/alphaev67/Implies: New file.
2580         * sysdeps/alpha/alphaev67/ffs.S: New file.
2581         * sysdeps/alpha/alphaev67/ffsll.S: New file.
2582         * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
2583         * sysdeps/alpha/alphaev67/stpcpy.S: New file.
2584         * sysdeps/alpha/alphaev67/stpncpy.S: New file.
2585         * sysdeps/alpha/rawmemchr.S: New file.
2586         * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
2587         * sysdeps/alpha/strcpy.S: Likewise.
2588
2589         From GMP 3.1.1:
2590         * sysdeps/alpha/alphaev6/addmul_1.s: New file.
2591
2592         From rick.gorton@alpha-processor.com:
2593         * sysdeps/alpha/alphaev6/memchr.S: New file.
2594         * sysdeps/alpha/alphaev6/memcpy.S: New file.
2595         * sysdeps/alpha/alphaev6/memset.S: New file.
2596         * sysdeps/alpha/alphaev6/stxcpy.S: New file.
2597         * sysdeps/alpha/alphaev6/stxncpy.S: New file.
2598         * sysdeps/alpha/alphaev67/strcat.S: New file.
2599         * sysdeps/alpha/alphaev67/strchr.S: New file.
2600         * sysdeps/alpha/alphaev67/strlen.S: New file.
2601         * sysdeps/alpha/alphaev67/strncat.S: New file.
2602         * sysdeps/alpha/htonl.S: Use a shorter sequence.
2603
2604 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
2605
2606         * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
2607         Reported by <pspencer@fields.utoronto.ca>.
2608
2609 2000-12-07  Jes Sorensen  <jes@linuxcare.com>
2610
2611         * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
2612         Pointed out by Hans Boehm.
2613
2614 2000-12-07  H.J. Lu  <hjl@gnu.org>
2615
2616         * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
2617
2618 2000-12-07  Andreas Jaeger  <aj@suse.de>
2619
2620         * misc/error.c: Add format attributes for __error and __error_at_line.
2621
2622         * nscd/dbg_log.h: Add format attribute.
2623
2624 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
2625
2626         * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
2627         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
2628
2629 2000-12-07  Dan Pop  <Dan.Pop@cern.ch>
2630
2631         * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
2632
2633 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
2634
2635         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
2636         (sysdep_routines): Add uitrunc.
2637         * sysdeps/unix/sysv/aix/uitrunc.c: New file.
2638         Patches by Michael Keezer <mkeezer@redhat.com>.
2639
2640 2000-12-06  Roland McGrath  <roland@frob.com>
2641
2642         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
2643         argument data, since it will be used to copy out too (for INOUT).
2644         Reported by Marcus Brinkmann <marcus@gnu.org>.
2645
2646         * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
2647         (__ioctl): Use uintptr_t instead of unsigned long int.
2648
2649 2000-12-06  Jim Wilson  <wilson@redhat.com>
2650
2651         * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
2652
2653 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
2654
2655         * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
2656         x.5 rounding correctly.
2657
2658 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
2659
2660         * stdio-common/perror.c (perror): Conditionalize code dealing with
2661         wide-oriented streams on USE_IN_LIBIO.
2662
2663 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
2664
2665         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
2666         as internal_function.
2667
2668 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
2669
2670         * sysdeps/alpha/elf/start.S (__data_start): Define.
2671
2672 2000-12-05  H.J. Lu  <hjl@gnu.org>
2673
2674         * nss/getXXent_r.c (setup): Change the return type to int.
2675
2676 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
2677
2678         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
2679         (sysdep_routines): Add restf and savef.
2680         * sysdeps/unix/sysv/aix/restf.c: New file.
2681         * sysdeps/unix/sysv/aix/savef.c: New file.
2682         Patches by Michael Keezer <mkeezer@redhat.com>.
2683
2684         * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
2685         if O_DIRECTORY is not defined.
2686         Patch by Michael Keezer <mkeezer@redhat.com>.
2687
2688         * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
2689         Patch by Michael Keezer <mkeezer@redhat.com>.
2690
2691         * locale/programs/linereader.c (get_toplvl_escape): Recognize more
2692         than 4 bytes in escape sequence.
2693         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2694
2695 2000-12-05  Andreas Jaeger  <aj@suse.de>
2696
2697         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
2698         set mips2.
2699
2700         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
2701
2702         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
2703
2704         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
2705         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2706
2707         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
2708         internal_function.
2709         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
2710         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
2711
2712         * sysdeps/generic/dl-cache.c: Remove declaration of
2713         _dl_sysdep_read_whole_file.
2714
2715         * elf/dl-load.c (_dl_map_object): Remove declaration of
2716         _dl_load_cache_lookup.
2717
2718         * sysdeps/generic/ldsodefs.h: Add declarations of
2719         _dl_load_cache_lookup, _dl_unload_cache,
2720         _dl_sysdep_read_whole_file, _dl_sysdep_start and
2721         _dl_sysdep_start_cleanup.
2722
2723         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
2724         now.
2725
2726         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
2727         * sysdeps/generic/dl-environ.c: Likewise.
2728
2729         * stdio-common/printf_fp.c: Include <gmp.h> instead of
2730         <stdlib/gmp.h>.
2731         * math/atest-exp.c: Likewise.
2732         * math/atest-exp2.c: Likewise.
2733         * math/atest-sincos.c: Likewise.
2734         * stdio-common/_itoa.c: Likewise.
2735         * stdio-common/_itowa.c: Likewise.
2736
2737         * include/gmp.h: New file with internal prototypes.
2738
2739         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
2740         here to...
2741         * include/setjmp.h: ...here.
2742
2743         * locale/Makefile (routines): Remove codeset_name since it's not
2744         needed anywhere.
2745
2746         * locale/codeset_name.c: Removed.
2747
2748 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
2749
2750         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
2751
2752 2000-12-05  Andreas Jaeger  <aj@suse.de>
2753
2754         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
2755
2756 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2757
2758         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
2759         available.
2760
2761 2000-12-05  Andreas Jaeger  <aj@suse.de>
2762
2763         * nss/test-netdb.c: Mark local functions as static to avoid
2764         warnings.
2765         (main): Use return to silence warning.
2766
2767         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
2768
2769         * stdio-common/test-popen.c: Mark local functions as static to
2770         avoid warnings.
2771         (main): Use return to silence warning.
2772
2773         * stdlib/testsort.c (compare): Mark as static to avoid warning.
2774
2775         * assert/test-assert.c: Mark local functions as static to avoid
2776         warnings.
2777         * assert/test-assert-perr.c: Likewise.
2778
2779         * math/libm-test.inc (main): Use return to silence warnings.
2780
2781 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
2782
2783         * math/fenv.h: Fix typo in comment.
2784
2785         * math/test-misc.c (main): Add a few more over and underflow tests
2786         for scalb.
2787
2788         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
2789         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2790         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2791         * math/w_scalb.c: Don't use matherr except in SVID mode.
2792         * math/w_scalbf.c: Likewise.
2793         * math/w_scalbl.c: Likewise.
2794         * math/test-misc.c: Add test for NaN and scalbl.
2795         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2796
2797 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
2798
2799         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
2800         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
2801         * include/libc-symbols.h (strong_alias): Define special version
2802         for HAVE_ASM_GLOBAL_DOT_NAME.
2803         (weak_alias): Likewise.
2804         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
2805         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
2806         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
2807         getutxline, pututxline, and utmpxname.
2808         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
2809         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
2810         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
2811         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
2812         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
2813         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
2814         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
2815         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
2816         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
2817         Patches by Michael Keezer <mkeezer@redhat.com>.
2818
2819 2000-12-04  H.J. Lu  <hjl@gnu.org>
2820
2821         * configure.in: Change --with-oldest-abi=ABI to
2822         --enable-oldest-abi=ABI.
2823
2824 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
2825
2826         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
2827         fwprintf instead of fprintf.
2828
2829 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
2830
2831         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
2832         DECIMAL_DIG definitions.
2833         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
2834         * sysdeps/generic/bits/mathdef.h: Likewise
2835         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
2836         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
2837         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
2838         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
2839         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
2840         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
2841
2842 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
2843
2844         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
2845
2846         * math/atest-exp.c: Mark local functions as static to avoid warnings.
2847         * math/atest-exp2.c: Likewise.
2848         * math/atest-sincos.c: Likewise.
2849
2850         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
2851         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2852
2853         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
2854         the handling of denormalized numbers.
2855
2856         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
2857         numbers on x86.
2858         * sysdeps/i386/fpu/fpclassifyl.c: New file.
2859
2860         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
2861         pseudo denormal representation of LDBL_MIN.
2862
2863         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
2864         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
2865
2866         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
2867         * iconvdata/jis0208.c: Likewise.
2868         * iconvdata/jis0212.c: Likewise.
2869         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
2870
2871         * math/test-misc.c (main): More tests for frexp and some for
2872         fpclassify and isnormal.
2873
2874         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
2875         test for subnormal.
2876         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2877
2878         * math/test-misc.c (main): Add tests for frexp.
2879         Reported by Fred J. Tydeman <tydeman@tybor.com>.
2880         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
2881
2882 2000-12-02  H.J. Lu  <hjl@gnu.org>
2883
2884         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
2885         '\0' to wcschr.
2886
2887 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
2888
2889         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
2890         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2891         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2892
2893         * sysdeps/generic/glob.c: Adjust types of several variables to
2894         avoid warnings.
2895
2896 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
2897
2898         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
2899
2900 2000-11-30  Roland McGrath  <roland@frob.com>
2901
2902         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
2903         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
2904         allow multiple instances using the same function name in one file.
2905
2906 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
2907
2908         * configure.in: Correct test for pserver CVS access.
2909
2910 2000-11-28  H.J. Lu  <hjl@gnu.org>
2911
2912         * libio/libio.h: Remove extra "#if ... #endif".
2913
2914 2000-11-29  H.J. Lu  <hjl@gnu.org>
2915
2916         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
2917
2918 2000-12-01  H.J. Lu  <hjl@gnu.org>
2919
2920         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
2921         * nss/getXXent_r.c: Likewise.
2922         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2923
2924 2000-11-30  H.J. Lu  <hjl@gnu.org>
2925
2926         * scripts/abi-versions.awk (oldest_abi): New variable.
2927         Handle the oldest ABI supported.
2928
2929         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
2930         for scripts/abi-versions.awk.
2931
2932         * configure.in: Add --with-oldest-abi=ABI.
2933         * configure: Rebuild.
2934
2935         * config.make.in (oldest-abi): New.
2936
2937         * config.h.in (GLIBC_OLDEST_ABI): New.
2938
2939         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
2940
2941 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
2942
2943         * locale/setlocale.c (setname): Free for all categories, not just
2944         LC_ALL.
2945         (setlocale): Store a copy of string passed by user, not the string
2946         itself.
2947
2948 2000-11-30  Roland McGrath  <roland@frob.com>
2949
2950         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
2951         rather than _hurd_fd_subinit, so it happens after it's safe to use
2952         libc facilities like malloc.
2953
2954 2000-11-28  Andreas Jaeger  <aj@suse.de>
2955
2956         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
2957         declaration, adjust declaration of __syscall_getdents to match
2958         kernel.
2959
2960 2000-11-29  H.J. Lu  <hjl@gnu.org>
2961
2962         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
2963
2964 2000-11-29  Andreas Jaeger  <aj@suse.de>
2965
2966         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
2967
2968 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
2969
2970         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
2971         * dlfcn/defaultmod2.c: Likewise.
2972         * dlfcn/dlopen.c: Likewise.
2973         * dlfcn/dlopenold.c: Likewise.
2974         * dlfcn/failtestmod.c: Likewise.
2975         * dlfcn/glreflib1.c: Likewise.
2976         * dlfcn/glreflib2.c: Likewise.
2977         * dlfcn/eval.c: Likewise.  Add attributes.
2978
2979         * ctype/ctype-extn.c: Define isblank and not __isblank.
2980
2981         * time/strftime.c: Add const where necessary to avoid warnings.
2982         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
2983
2984 2000-11-22  Paul Eggert  <eggert@twinsun.com>
2985
2986         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
2987         size of (size_t) -1; it's not portable.
2988
2989 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
2990
2991         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
2992         crappy i486 FPU.
2993         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
2994
2995 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
2996
2997         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
2998
2999         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
3000         _mcount is required by profiled binaries.
3001
3002         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
3003         * sysdeps/ia64/machine-gmon.h: ...here.
3004
3005 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
3006
3007         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
3008         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
3009         and ibm1129.h.
3010         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
3011         IBM1129.
3012         * iconvdata/ibm922.c: New file.
3013         * iconvdata/ibm922.h: New file.
3014         * iconvdata/ibm1124.c: New file.
3015         * iconvdata/ibm1124.h: New file.
3016         * iconvdata/ibm1129.c: New file.
3017         * iconvdata/ibm1129.h: New file.
3018         * iconvdata/testdata/IBM922: New file.
3019         * iconvdata/testdata/IBM922..UTF8: New file.
3020         * iconvdata/testdata/IBM1124: New file.
3021         * iconvdata/testdata/IBM1124..UTF8: New file.
3022         * iconvdata/testdata/IBM1129: New file.
3023         * iconvdata/testdata/IBM1129..UTF8: New file.
3024
3025 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
3026
3027         * catgets/gencat.c (normalize_line): Take extra parameter with escape
3028         character.  Change callers.
3029         (open_conversion): Determine mapping of 0x5c as wchar_t value.
3030         * catgets/Makefile: Add rules to build and run test-gencat.
3031         * catgets/sample.SJIS: New file.
3032         * catgets/test-gencat.c: New file.
3033         * catgets/test-gencat.sh: New file.
3034         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3035
3036 2000-11-28  Andreas Jaeger  <aj@suse.de>
3037
3038         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
3039         Linux version.
3040
3041 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
3042
3043         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
3044
3045 2000-11-28  Andreas Jaeger  <aj@suse.de>
3046
3047         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
3048         __flexarr.
3049         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
3050         Likewise.
3051
3052 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
3053
3054         * misc/getusershell.c: Make strings in okshells array const.
3055         * misc/regexp.c: Add const to cast to avoid warnings.
3056         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
3057         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
3058         __setresuid.
3059         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
3060         setresgid.
3061         * misc/error.c: Add prototypes for __error and __error_at_line.
3062         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
3063         statement to avoid warning.
3064         * test-skeleton.c: Mark timeout_handler with noreturn.
3065         * iconv/skeleton.c (get16u): Add const to cast.
3066         (get32u): Likewise.
3067         * iconvdata/gb18030.c: Likewise.
3068         * iconvdata/iso-2022-cn-ext.c: Likewise.
3069         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
3070         * iconvdata/big5.c: Likewise.
3071         * iconvdata/big5hkscs.c: Likewise.
3072         * iconvdata/iso_6937.c: Likewise.
3073         * iconvdata/iso_6937-2.c: Likewise.
3074         * iconvdata/t.61.c: Likewise.
3075         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
3076         * iconvdata/unicode.c: Likewise.
3077         * iconvdata/utf-16.c: Likewise.
3078         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
3079         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
3080         with little code shuffling.
3081
3082         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
3083         the problems introduced when the user selects -O3.
3084
3085         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
3086         * misc/sys/cdefs.h: Define __flexarr.
3087         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
3088
3089         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
3090         * iconv/skeleton.c: Likewise.
3091         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
3092         * iconv/loop.c (get16): Add const to cast.
3093         (get32): Likewise.
3094
3095 2000-11-27  Andreas Jaeger  <aj@suse.de>
3096
3097         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
3098         to avoid warning.
3099         * login/programs/utmpdump.c (print_entry): Likewise.
3100
3101 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3102
3103         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
3104         in a single asm as they may be used to access other stored
3105         registers.
3106         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
3107
3108 2000-11-27  Andreas Jaeger  <aj@suse.de>
3109
3110         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
3111         * rt/tst-aio64.c: Likewise.
3112
3113 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
3114
3115         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
3116         for gencat run.
3117         (libc.cat): Likewise.
3118         * catgets/gencat.c: Implement handling of message catalogs encoded
3119         with stateful character sets.
3120         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3121
3122 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
3123
3124         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
3125
3126         * inet/getnameinfo.c: Adjust casts to avoid warnings.
3127         * inet/rcmd.c: Likewise.
3128         * inet/ruserpass.c: Likewise.
3129         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
3130         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
3131         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
3132         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
3133         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
3134         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
3135         * include/aliases.h: Add prototypes for internal __getalias* functions.
3136         * include/netdb.h: Add prototypes for __old_gethostent_r,
3137         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
3138         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
3139         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
3140         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
3141         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
3142         __old_getrpcbynumber_r, __old_getrpcent_r.
3143
3144         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
3145         __getrpcent_r prototypes.
3146
3147 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
3148
3149         * string/strcoll.c: Add casts to avoid warnings.
3150         * string/strnlen.c: Likewise.
3151         * string/strxfrm.c: Likewise.
3152         * sysdeps/generic/_strerror.c: Likewise.
3153         * sysdeps/generic/memrchr.c: Likewise.
3154         * sysdeps/generic/strcasestr.c: Likewise.
3155         * sysdeps/generic/strstr.c: Likewise.
3156
3157         * locale/weight.h (findidx): Add const to cast to avoid warning.
3158
3159         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
3160         * elf/loadtest.c: Likewise.
3161         * elf/multiload.c: Likewise.
3162         * elf/next.c: Likewise.
3163         * elf/nodelete.c: Likewise.
3164         * elf/noload.c: Likewise.
3165         * elf/order.c: Likewise.
3166         * elf/origtest.c: Likewise.
3167         * elf/preloadtest.c: Likewise.
3168         * elf/restest1.c: Likewise.
3169
3170         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
3171         parameter of asm must be in %ecx.
3172
3173         * string/tester.c: Mark test functions as static to avoid warnings.
3174
3175         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
3176         preserve value over different gconv-modules files.
3177
3178 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
3179
3180         * locale/findlocale.c: Add casts to avoid warnings.
3181         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
3182         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
3183         to avoid warnings.
3184         * misc/tsearch.c (const_node): New type.
3185         (trecurse): Correct casts to avoid warnings.
3186         (__twalk): Likewise.
3187         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
3188         LONG_BIT.
3189
3190         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
3191
3192         * test-skeleton.c: Mark local functions as static to avoid warnings.
3193
3194 2000-11-23  H.J. Lu  <hjl@gnu.org>
3195
3196         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
3197         support the background job.
3198         Fix a typo.
3199
3200 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
3201
3202         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
3203         has same names but lower cost.
3204
3205 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
3206
3207         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
3208         which never occur during bootstrap.
3209         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3210
3211 2000-11-23  Andreas Jaeger  <aj@suse.de>
3212
3213         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
3214
3215         * nss/Versions: Remove _nss_files_getipnodebyname_r.
3216
3217         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
3218
3219 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3220
3221         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
3222         (called++) return;'
3223
3224 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
3225
3226         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
3227
3228         * csu/abi-note.S: Correct comment for operating system number.
3229
3230 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
3231
3232         * Versions.def: Add GLIBC_2.2.1 for glibc.
3233
3234 2000-11-22  Andreas Schwab  <schwab@suse.de>
3235
3236         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
3237         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
3238
3239 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
3240
3241         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
3242         absolute time for pthread_cond_timedwait call.
3243         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
3244
3245         * rt/Makefile (tests): Add tst-aio6.
3246         * rt/tst-aio6.c: New file.
3247
3248 2000-11-23  Andreas Jaeger  <aj@suse.de>
3249
3250         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
3251
3252 2000-11-22  Andreas Jaeger  <aj@suse.de>
3253
3254         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
3255
3256 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3257
3258         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
3259
3260 2000-11-21  Andreas Schwab  <schwab@suse.de>
3261
3262         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
3263         * sysdeps/arm/setjmp.S: Likewise.
3264         * sysdeps/arm/fpu/setjmp.S: Likewise.
3265         * sysdeps/i386/setjmp.S: Likewise.
3266         * sysdeps/i386/elf/setjmp.S: Likewise.
3267         * sysdeps/s390/setjmp.S: Likewise.
3268         * sysdeps/s390/elf/setjmp.S: Likewise.
3269         * sysdeps/sh/sh3/setjmp.S: Likewise.
3270         * sysdeps/sh/sh4/setjmp.S: Likewise.
3271         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3272         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3273         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3274         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
3275
3276 2000-11-21  Andreas Jaeger  <aj@suse.de>
3277
3278         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
3279         NORETURN, fix parameter list.
3280
3281         * string/bug-strncat1.c (main): Fix typo.
3282         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
3283
3284 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
3285
3286         * configure.in: Add --enable-all-warnings.
3287         * config.make.in (all-warnings): New variable.
3288         * Makeconfig (+gccwarn): Define with many more warnings if
3289         all-warnings is yes.
3290
3291 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
3292
3293         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
3294         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
3295         * malloc/tst-valloc.c (main): Cast valloc return value to long.
3296         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
3297         * math/test-fpucw.c (main): Use %lx in format string, cast
3298         control words to long.
3299         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
3300         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
3301         large that it is unsigned warning.
3302
3303         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
3304         it to long on sparc64.
3305
3306 2000-11-20  Andreas Jaeger  <aj@suse.de>
3307
3308         * nscd/nscd.h (termination_handler): Add noreturn attribute.
3309         (receiv_print_stats): Likewise.
3310
3311         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
3312
3313 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
3314
3315         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
3316
3317         * csu/gmon-start.c: Always have prototype for __gmon_start.
3318         * csu/version.c: Add prototypes for __libc_print_version and
3319         __libc_main.
3320         * iconv/gconv.c: Include gconv_int.h and gconv.h.
3321         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
3322         and __to_name.
3323         * iconv/gconv_builtin.h: Add ASCII module definitions.
3324         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
3325         (add_module): Add cast to avoid warning.  Rework construction of
3326         strings for new module.
3327         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
3328         (derivation_compare): Likewise.
3329         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
3330         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
3331         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
3332         (struct gconv_alias): Remove const from fromname and toname.
3333         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
3334         for loop functions.
3335         (internal_ucs4_loop): Use correct const-ness.
3336         (ucs4_internal_loop): Likewise.
3337         (internal_ucs4le_loop): Likewise.
3338         (ucs4le_internal_loop_single): Likewise.
3339         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
3340         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
3341         assignments appropriately.
3342         (struct known_trans): Remove const from fname.
3343         (trans_compare): Make s1 and s2 const.
3344         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
3345         avoid warning.
3346         * iconv/skeleton.c: Remove cast in calls of loop functions.
3347         * iconvdata/gconv-modules: Remove US-ASCII definitions.
3348         * iconvdata/iso646.c: Remove US_ASCII support.
3349         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
3350         * include/unistd.h: Add __libc_check_standard_fds prototype.
3351         * string/bits/string2.h (__mempcpy_args): Add const to casts.
3352         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
3353         _fini.
3354         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
3355         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
3356         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
3357         warning.
3358         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
3359         __libc_init_first and _dl_start.
3360         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
3361         (DCIGETTEXT): Make domaindata variable const.
3362         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
3363         to avoid warning.
3364
3365 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
3366
3367         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
3368
3369         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
3370         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
3371         __unused? members.
3372
3373         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
3374         value defined in /usr/include/asm-mips/fcntl.h.
3375
3376 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
3377
3378         * stdio-common/Makefile (tests): Add test-vfprintf.
3379         (test-vfprintf-ENV): New variable.
3380         * stdio-common/test-vfprintf.c: New file.
3381
3382         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
3383
3384         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
3385         (tst-mbrtowc-ENV): New variable.
3386         (tst-wcrtomb-ENV): New variable.
3387         * wcsmbs/tst-mbrtowc.c: New file.
3388         * wcsmbs/tst-wcrtomb.c: New file.
3389
3390 2000-11-16  Andreas Jaeger  <aj@suse.de>
3391
3392         * manual/install.texi (Tools for Compilation): Update
3393         documentation for GCC 2.95.2.
3394
3395 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
3396
3397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
3398         if IPv4 and IPv6 requests timed out.
3399
3400 2000-11-18  Akim Demaille  <akim@epita.fr>
3401
3402         * malloc/obstack.h: Formatting changes.
3403         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3404         prevents type checking.
3405         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3406         cast the value to (void *): assigning a `foo *' to a `void *'
3407         variable is valid.
3408         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3409
3410 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
3411
3412         * scripts/config.guess: Update from upstream maintainer.
3413         * scripts/config.sub: Likewise.
3414
3415 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
3416
3417         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
3418         * libio/freopen64.c (freopen64): Likewise.
3419         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3420
3421         * libio/Makefile: Add rules to build and run test-freopen.
3422         * libio/test-freopen.c: New file.
3423         * libio/test-freopen.sh: New file.
3424
3425 2000-11-15  H.J. Lu  <hjl@gnu.org>
3426
3427         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
3428         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
3429         (DL_DT_FINI_ADDRESS): Likewise.
3430
3431         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
3432         return type to ElfW(Addr).
3433         (_dl_function_address): New prototype.
3434         (DL_FUNCTION_ADDRESS): Defined.
3435         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
3436         (DL_DT_FINI_ADDRESS): Likewise.
3437
3438         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
3439
3440         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
3441         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
3442
3443         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
3444         (_dl_function_address): This.
3445
3446         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
3447         function pointer for DT_FINI.
3448         * elf/dl-close.c (_dl_close): Likewise.
3449
3450         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
3451         function pointer for DT_INIT.
3452
3453 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
3454
3455         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
3456         end of wexpbuf buffer.
3457
3458 2000-11-16  Andreas Jaeger  <aj@suse.de>
3459
3460         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
3461         definition of F_GETLK, F_SETLK, F_SETLKW.
3462
3463 2000-11-16  Andreas Jaeger  <aj@suse.de>
3464
3465         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
3466         it's not defined.
3467
3468 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
3469
3470         * dlfcn/default.c (main): Add test for dladdr of main returning
3471         argv[0] in dli_fname field.
3472
3473 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
3474
3475         * Makeconfig (run-program-prefix): Move test-static test into the
3476         variable.
3477
3478         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
3479         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
3480         schedule instructions.
3481         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
3482         schedule instructions, fix a bug in copying auxiliary data.
3483
3484 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3485
3486         * manual/startup.texi (Program Arguments): Fix type of main's envp
3487         parameter.
3488         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
3489
3490         * iconvdata/gconv-modules: Add CP950 alias.
3491
3492 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
3493
3494         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
3495         syscall-list.h goal.
3496         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
3497
3498 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3499
3500         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
3501
3502         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
3503         output of program.
3504
3505         * intl/tst-gettext2.c: Set C locale if setting other locale
3506         failed.  Use gettext() not _().
3507
3508         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
3509         successfully loaded a new locale.
3510
3511 2000-11-13  Andreas Jaeger  <aj@suse.de>
3512
3513         * configure.in: Require gcc 2.95 or newer.
3514
3515 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3516
3517         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
3518         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
3519
3520 2000-11-11  Jim Meyering  <meyering@lucent.com>
3521
3522         * string/strndup.c (strndup): Cast return value to `char *'.
3523
3524 2000-11-15  Jim Meyering  <meyering@ascend.com>
3525
3526         * sysdeps/generic/memchr.c: Remove some useless parentheses.
3527         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
3528         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
3529         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
3530         Also #undef __memchr.
3531         Use `weak_alias' only if it's defined.
3532
3533 2000-11-10  H.J. Lu  <hjl@gnu.org>
3534
3535         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
3536
3537 2000-11-15  Andreas Jaeger  <aj@suse.de>
3538
3539         * elf/chroot_canon.c: Include <stdint.h>.
3540
3541         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
3542         (print_entry): Likewise.
3543         (add_to_cache): Likewise.
3544
3545         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
3546
3547         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
3548         (path_hwcap): Likewise.
3549         (search_dir): Likewise.
3550
3551         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
3552
3553         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
3554
3555         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3556         (_dl_platform_string): New.
3557         (_DL_HWCAP_PLATFORM): New.
3558         (_dl_string_platform): New.
3559         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
3560
3561         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
3562         (_dl_string_platform): New.
3563         (_DL_HWCAP_PLATFORM): New.
3564         (_dl_platform_string): New.
3565
3566         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
3567         recognition.
3568         (_DL_HWCAP_COUNT): New.
3569         (_dl_string_platform): New.
3570         (_DL_HWCAP_PLATFORM): New.
3571         (_dl_platform_string): New.
3572
3573 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
3574
3575         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
3576
3577 2000-11-14  Andreas Jaeger  <aj@suse.de>
3578
3579         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
3580
3581 2000-11-13  Roland McGrath  <roland@frob.com>
3582
3583         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
3584
3585 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
3586
3587         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
3588         underrun and make sure the result is null terminated even if there
3589         is no trailing newline.
3590
3591 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
3592
3593         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3594
3595 2000-11-10  H.J. Lu  <hjl@gnu.org>
3596
3597         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3598
3599 2000-11-10  Andreas Jaeger  <aj@suse.de>
3600
3601         * elf/ldconfig.c (create_links): Fix alloca calculation.
3602         Patch by Ben Collins <bcollins@debian.org>.
3603
3604 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
3605
3606         * inet/getnameinfo.c (getnameinfo): Use correct destination
3607         parameter for if_indextoname.
3608         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
3609
3610 2000-11-09  H.J. Lu  <hjl@gnu.org>
3611
3612         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
3613         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
3614         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
3615         xdr_keystatus.
3616
3617         * time/Versions (GLIBC_2.1): Move getitimer to...
3618         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
3619
3620 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
3621
3622         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
3623         "make install", to work around a binary incompatibility between
3624         glibc 2.1 and glibc 2.2 gconv modules.
3625
3626 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
3627
3628         * intl/locale.alias: Add thai.
3629         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
3630
3631 2000-11-07  Akim Demaille  <akim@epita.fr>
3632
3633         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
3634         argument `data' for consistency with the prototypes.
3635         Qualify it `const'.
3636         (obstack_copy, obstack_copy0): Rename the second argument as
3637         `address' for consistency.  Qualify it `const'.
3638         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3639         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3640         `const' their input argument (`data' or `address').
3641         Adjust the corresponding macros to include `const' in casts.
3642
3643 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3644
3645         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
3646         target family.
3647
3648 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3649
3650         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
3651         socket creation.
3652
3653 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3654
3655         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
3656         ai_protocol by internal table if service was not given.
3657
3658 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3659
3660         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
3661         numerical port was specified with protocol without socktype.
3662
3663 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3664
3665         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
3666
3667 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3668
3669         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
3670
3671 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3672
3673         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
3674         sin6_scope_id field.
3675
3676 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3677
3678         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
3679
3680 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3681
3682         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
3683
3684 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
3685
3686         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
3687         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
3688
3689 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
3690
3691         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
3692         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
3693
3694 2000-11-09  H.J. Lu  <hjl@gnu.org>
3695
3696         * io/Versions (GLIBC_2.1.1): Remove lockf64.
3697
3698
3699 See ChangeLog.11 for earlier changes.