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