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