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