Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-12-05  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4         set mips2.
5
6         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
7
8         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
9
10         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
11         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
12
13         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
14         internal_function.
15         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
16         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
17
18         * sysdeps/generic/dl-cache.c: Remove declaration of
19         _dl_sysdep_read_whole_file.
20
21         * elf/dl-load.c (_dl_map_object): Remove declaration of
22         _dl_load_cache_lookup.
23
24         * sysdeps/generic/ldsodefs.h: Add declarations of
25         _dl_load_cache_lookup, _dl_unload_cache,
26         _dl_sysdep_read_whole_file, _dl_sysdep_start and
27         _dl_sysdep_start_cleanup.
28
29         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
30         now.
31
32         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
33         * sysdeps/generic/dl-environ.c: Likewise.
34
35         * stdio-common/printf_fp.c: Include <gmp.h> instead of
36         <stdlib/gmp.h>.
37         * math/atest-exp.c: Likewise.
38         * math/atest-exp2.c: Likewise.
39         * math/atest-sincos.c: Likewise.
40         * stdio-common/_itoa.c: Likewise.
41         * stdio-common/_itowa.c: Likewise.
42
43         * include/gmp.h: New file with internal prototypes.
44
45         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
46         here to...
47         * include/setjmp.h: ...here.
48
49         * locale/Makefile (routines): Remove codeset_name since it's not
50         needed anywhere.
51
52         * locale/codeset_name.c: Removed.
53
54 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
55
56         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
57
58 2000-12-05  Andreas Jaeger  <aj@suse.de>
59
60         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
61
62 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
63
64         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
65         available.
66
67 2000-12-05  Andreas Jaeger  <aj@suse.de>
68
69         * nss/test-netdb.c: Mark local functions as static to avoid
70         warnings.
71         (main): Use return to silence warning.
72
73         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
74
75         * stdio-common/test-popen.c: Mark local functions as static to
76         avoid warnings.
77         (main): Use return to silence warning.
78
79         * stdlib/testsort.c (compare): Mark as static to avoid warning.
80
81         * assert/test-assert.c: Mark local functions as static to avoid
82         warnings.
83         * assert/test-assert-perr.c: Likewise.
84
85         * math/libm-test.inc (main): Use return to silence warnings.
86
87 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
88
89         * math/fenv.h: Fix typo in comment.
90
91         * math/test-misc.c (main): Add a few more over and underflow tests
92         for scalb.
93
94         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
95         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
96         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
97         * math/w_scalb.c: Don't use matherr except in SVID mode.
98         * math/w_scalbf.c: Likewise.
99         * math/w_scalbl.c: Likewise.
100         * math/test-misc.c: Add test for NaN and scalbl.
101         Reported by Fred J. Tydeman <tydeman@tybor.com>.
102
103 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
104
105         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
106         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
107         * include/libc-symbols.h (strong_alias): Define special version
108         for HAVE_ASM_GLOBAL_DOT_NAME.
109         (weak_alias): Likewise.
110         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
111         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
112         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
113         getutxline, pututxline, and utmpxname.
114         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
115         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
116         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
117         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
118         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
119         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
120         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
121         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
122         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
123         Patches by Michael Keezer <mkeezer@redhat.com>.
124
125 2000-12-04  H.J. Lu  <hjl@gnu.org>
126
127         * configure.in: Change --with-oldest-abi=ABI to
128         --enable-oldest-abi=ABI.
129
130 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
131
132         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
133         fwprintf instead of fprintf.
134
135 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
136
137         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
138         DECIMAL_DIG definitions.
139         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
140         * sysdeps/generic/bits/mathdef.h: Likewise
141         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
142         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
143         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
144         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
145         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
146         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
147
148 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
149
150         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
151
152         * math/atest-exp.c: Mark local functions as static to avoid warnings.
153         * math/atest-exp2.c: Likewise.
154         * math/atest-sincos.c: Likewise.
155
156         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
157         Reported by Fred J. Tydeman <tydeman@tybor.com>.
158
159         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
160         the handling of denormalized numbers.
161
162         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
163         numbers on x86.
164         * sysdeps/i386/fpu/fpclassifyl.c: New file.
165
166         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
167         pseudo denormal representation of LDBL_MIN.
168
169         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
170         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
171
172         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
173         * iconvdata/jis0208.c: Likewise.
174         * iconvdata/jis0212.c: Likewise.
175         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
176
177         * math/test-misc.c (main): More tests for frexp and some for
178         fpclassify and isnormal.
179
180         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
181         test for subnormal.
182         Reported by Fred J. Tydeman <tydeman@tybor.com>.
183
184         * math/test-misc.c (main): Add tests for frexp.
185         Reported by Fred J. Tydeman <tydeman@tybor.com>.
186         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
187
188 2000-12-02  H.J. Lu  <hjl@gnu.org>
189
190         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
191         '\0' to wcschr.
192
193 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
194
195         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
196         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
197         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
198
199         * sysdeps/generic/glob.c: Adjust types of several variables to
200         avoid warnings.
201
202 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
203
204         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
205
206 2000-11-30  Roland McGrath  <roland@frob.com>
207
208         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
209         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
210         allow multiple instances using the same function name in one file.
211
212 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
213
214         * configure.in: Correct test for pserver CVS access.
215
216 2000-11-28  H.J. Lu  <hjl@gnu.org>
217
218         * libio/libio.h: Remove extra "#if ... #endif".
219
220 2000-11-29  H.J. Lu  <hjl@gnu.org>
221
222         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
223
224 2000-12-01  H.J. Lu  <hjl@gnu.org>
225
226         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
227         * nss/getXXent_r.c: Likewise.
228         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
229
230 2000-11-30  H.J. Lu  <hjl@gnu.org>
231
232         * scripts/abi-versions.awk (oldest_abi): New variable.
233         Handle the oldest ABI supported.
234
235         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
236         for scripts/abi-versions.awk.
237
238         * configure.in: Add --with-oldest-abi=ABI.
239         * configure: Rebuild.
240
241         * config.make.in (oldest-abi): New.
242
243         * config.h.in (GLIBC_OLDEST_ABI): New.
244
245         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
246
247 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
248
249         * locale/setlocale.c (setname): Free for all categories, not just
250         LC_ALL.
251         (setlocale): Store a copy of string passed by user, not the string
252         itself.
253
254 2000-11-30  Roland McGrath  <roland@frob.com>
255
256         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
257         rather than _hurd_fd_subinit, so it happens after it's safe to use
258         libc facilities like malloc.
259
260 2000-11-28  Andreas Jaeger  <aj@suse.de>
261
262         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
263         declaration, adjust declaration of __syscall_getdents to match
264         kernel.
265
266 2000-11-29  H.J. Lu  <hjl@gnu.org>
267
268         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
269
270 2000-11-29  Andreas Jaeger  <aj@suse.de>
271
272         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
273
274 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
275
276         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
277         * dlfcn/defaultmod2.c: Likewise.
278         * dlfcn/dlopen.c: Likewise.
279         * dlfcn/dlopenold.c: Likewise.
280         * dlfcn/failtestmod.c: Likewise.
281         * dlfcn/glreflib1.c: Likewise.
282         * dlfcn/glreflib2.c: Likewise.
283         * dlfcn/eval.c: Likewise.  Add attributes.
284
285         * ctype/ctype-extn.c: Define isblank and not __isblank.
286
287         * time/strftime.c: Add const where necessary to avoid warnings.
288         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
289
290 2000-11-22  Paul Eggert  <eggert@twinsun.com>
291
292         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
293         size of (size_t) -1; it's not portable.
294
295 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
296
297         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
298         crappy i486 FPU.
299         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
300
301 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
302
303         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
304
305         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
306         _mcount is required by profiled binaries.
307
308         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
309         * sysdeps/ia64/machine-gmon.h: ...here.
310
311 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
312
313         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
314         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
315         and ibm1129.h.
316         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
317         IBM1129.
318         * iconvdata/ibm922.c: New file.
319         * iconvdata/ibm922.h: New file.
320         * iconvdata/ibm1124.c: New file.
321         * iconvdata/ibm1124.h: New file.
322         * iconvdata/ibm1129.c: New file.
323         * iconvdata/ibm1129.h: New file.
324         * iconvdata/testdata/IBM922: New file.
325         * iconvdata/testdata/IBM922..UTF8: New file.
326         * iconvdata/testdata/IBM1124: New file.
327         * iconvdata/testdata/IBM1124..UTF8: New file.
328         * iconvdata/testdata/IBM1129: New file.
329         * iconvdata/testdata/IBM1129..UTF8: New file.
330
331 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
332
333         * catgets/gencat.c (normalize_line): Take extra parameter with escape
334         character.  Change callers.
335         (open_conversion): Determine mapping of 0x5c as wchar_t value.
336         * catgets/Makefile: Add rules to build and run test-gencat.
337         * catgets/sample.SJIS: New file.
338         * catgets/test-gencat.c: New file.
339         * catgets/test-gencat.sh: New file.
340         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
341
342 2000-11-28  Andreas Jaeger  <aj@suse.de>
343
344         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
345         Linux version.
346
347 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
348
349         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
350
351 2000-11-28  Andreas Jaeger  <aj@suse.de>
352
353         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
354         __flexarr.
355         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
356         Likewise.
357
358 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
359
360         * misc/getusershell.c: Make strings in okshells array const.
361         * misc/regexp.c: Add const to cast to avoid warnings.
362         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
363         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
364         __setresuid.
365         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
366         setresgid.
367         * misc/error.c: Add prototypes for __error and __error_at_line.
368         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
369         statement to avoid warning.
370         * test-skeleton.c: Mark timeout_handler with noreturn.
371         * iconv/skeleton.c (get16u): Add const to cast.
372         (get32u): Likewise.
373         * iconvdata/gb18030.c: Likewise.
374         * iconvdata/iso-2022-cn-ext.c: Likewise.
375         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
376         * iconvdata/big5.c: Likewise.
377         * iconvdata/big5hkscs.c: Likewise.
378         * iconvdata/iso_6937.c: Likewise.
379         * iconvdata/iso_6937-2.c: Likewise.
380         * iconvdata/t.61.c: Likewise.
381         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
382         * iconvdata/unicode.c: Likewise.
383         * iconvdata/utf-16.c: Likewise.
384         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
385         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
386         with little code shuffling.
387
388         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
389         the problems introduced when the user selects -O3.
390
391         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
392         * misc/sys/cdefs.h: Define __flexarr.
393         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
394
395         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
396         * iconv/skeleton.c: Likewise.
397         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
398         * iconv/loop.c (get16): Add const to cast.
399         (get32): Likewise.
400
401 2000-11-27  Andreas Jaeger  <aj@suse.de>
402
403         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
404         to avoid warning.
405         * login/programs/utmpdump.c (print_entry): Likewise.
406
407 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
408
409         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
410         in a single asm as they may be used to access other stored
411         registers.
412         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
413
414 2000-11-27  Andreas Jaeger  <aj@suse.de>
415
416         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
417         * rt/tst-aio64.c: Likewise.
418
419 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
420
421         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
422         for gencat run.
423         (libc.cat): Likewise.
424         * catgets/gencat.c: Implement handling of message catalogs encoded
425         with stateful character sets.
426         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
427
428 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
429
430         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
431
432         * inet/getnameinfo.c: Adjust casts to avoid warnings.
433         * inet/rcmd.c: Likewise.
434         * inet/ruserpass.c: Likewise.
435         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
436         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
437         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
438         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
439         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
440         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
441         * include/aliases.h: Add prototypes for internal __getalias* functions.
442         * include/netdb.h: Add prototypes for __old_gethostent_r,
443         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
444         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
445         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
446         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
447         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
448         __old_getrpcbynumber_r, __old_getrpcent_r.
449
450         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
451         __getrpcent_r prototypes.
452
453 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
454
455         * string/strcoll.c: Add casts to avoid warnings.
456         * string/strnlen.c: Likewise.
457         * string/strxfrm.c: Likewise.
458         * sysdeps/generic/_strerror.c: Likewise.
459         * sysdeps/generic/memrchr.c: Likewise.
460         * sysdeps/generic/strcasestr.c: Likewise.
461         * sysdeps/generic/strstr.c: Likewise.
462
463         * locale/weight.h (findidx): Add const to cast to avoid warning.
464
465         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
466         * elf/loadtest.c: Likewise.
467         * elf/multiload.c: Likewise.
468         * elf/next.c: Likewise.
469         * elf/nodelete.c: Likewise.
470         * elf/noload.c: Likewise.
471         * elf/order.c: Likewise.
472         * elf/origtest.c: Likewise.
473         * elf/preloadtest.c: Likewise.
474         * elf/restest1.c: Likewise.
475
476         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
477         parameter of asm must be in %ecx.
478
479         * string/tester.c: Mark test functions as static to avoid warnings.
480
481         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
482         preserve value over different gconv-modules files.
483
484 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
485
486         * locale/findlocale.c: Add casts to avoid warnings.
487         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
488         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
489         to avoid warnings.
490         * misc/tsearch.c (const_node): New type.
491         (trecurse): Correct casts to avoid warnings.
492         (__twalk): Likewise.
493         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
494         LONG_BIT.
495
496         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
497
498         * test-skeleton.c: Mark local functions as static to avoid warnings.
499
500 2000-11-23  H.J. Lu  <hjl@gnu.org>
501
502         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
503         support the background job.
504         Fix a typo.
505
506 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
507
508         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
509         has same names but lower cost.
510
511 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
512
513         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
514         which never occur during bootstrap.
515         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
516
517 2000-11-23  Andreas Jaeger  <aj@suse.de>
518
519         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
520
521         * nss/Versions: Remove _nss_files_getipnodebyname_r.
522
523         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
524
525 2000-11-18  Martin Buchholz  <martin@xemacs.org>
526
527         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
528         (called++) return;'
529
530 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
531
532         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
533
534         * csu/abi-note.S: Correct comment for operating system number.
535
536 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
537
538         * Versions.def: Add GLIBC_2.2.1 for glibc.
539
540 2000-11-22  Andreas Schwab  <schwab@suse.de>
541
542         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
543         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
544
545 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
546
547         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
548         absolute time for pthread_cond_timedwait call.
549         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
550
551         * rt/Makefile (tests): Add tst-aio6.
552         * rt/tst-aio6.c: New file.
553
554 2000-11-23  Andreas Jaeger  <aj@suse.de>
555
556         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
557
558 2000-11-22  Andreas Jaeger  <aj@suse.de>
559
560         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
561
562 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
563
564         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
565
566 2000-11-21  Andreas Schwab  <schwab@suse.de>
567
568         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
569         * sysdeps/arm/setjmp.S: Likewise.
570         * sysdeps/arm/fpu/setjmp.S: Likewise.
571         * sysdeps/i386/setjmp.S: Likewise.
572         * sysdeps/i386/elf/setjmp.S: Likewise.
573         * sysdeps/s390/setjmp.S: Likewise.
574         * sysdeps/s390/elf/setjmp.S: Likewise.
575         * sysdeps/sh/sh3/setjmp.S: Likewise.
576         * sysdeps/sh/sh4/setjmp.S: Likewise.
577         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
578         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
579         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
580         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
581
582 2000-11-21  Andreas Jaeger  <aj@suse.de>
583
584         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
585         NORETURN, fix parameter list.
586
587         * string/bug-strncat1.c (main): Fix typo.
588         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
589
590 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
591
592         * configure.in: Add --enable-all-warnings.
593         * config.make.in (all-warnings): New variable.
594         * Makeconfig (+gccwarn): Define with many more warnings if
595         all-warnings is yes.
596
597 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
598
599         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
600         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
601         * malloc/tst-valloc.c (main): Cast valloc return value to long.
602         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
603         * math/test-fpucw.c (main): Use %lx in format string, cast
604         control words to long.
605         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
606         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
607         large that it is unsigned warning.
608
609         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
610         it to long on sparc64.
611
612 2000-11-20  Andreas Jaeger  <aj@suse.de>
613
614         * nscd/nscd.h (termination_handler): Add noreturn attribute.
615         (receiv_print_stats): Likewise.
616
617         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
618
619 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
620
621         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
622
623         * csu/gmon-start.c: Always have prototype for __gmon_start.
624         * csu/version.c: Add prototypes for __libc_print_version and
625         __libc_main.
626         * iconv/gconv.c: Include gconv_int.h and gconv.h.
627         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
628         and __to_name.
629         * iconv/gconv_builtin.h: Add ASCII module definitions.
630         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
631         (add_module): Add cast to avoid warning.  Rework construction of
632         strings for new module.
633         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
634         (derivation_compare): Likewise.
635         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
636         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
637         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
638         (struct gconv_alias): Remove const from fromname and toname.
639         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
640         for loop functions.
641         (internal_ucs4_loop): Use correct const-ness.
642         (ucs4_internal_loop): Likewise.
643         (internal_ucs4le_loop): Likewise.
644         (ucs4le_internal_loop_single): Likewise.
645         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
646         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
647         assignments appropriately.
648         (struct known_trans): Remove const from fname.
649         (trans_compare): Make s1 and s2 const.
650         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
651         avoid warning.
652         * iconv/skeleton.c: Remove cast in calls of loop functions.
653         * iconvdata/gconv-modules: Remove US-ASCII definitions.
654         * iconvdata/iso646.c: Remove US_ASCII support.
655         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
656         * include/unistd.h: Add __libc_check_standard_fds prototype.
657         * string/bits/string2.h (__mempcpy_args): Add const to casts.
658         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
659         _fini.
660         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
661         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
662         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
663         warning.
664         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
665         __libc_init_first and _dl_start.
666         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
667         (DCIGETTEXT): Make domaindata variable const.
668         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
669         to avoid warning.
670
671 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
672
673         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
674
675         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
676         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
677         __unused? members.
678
679         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
680         value defined in /usr/include/asm-mips/fcntl.h.
681
682 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
683
684         * stdio-common/Makefile (tests): Add test-vfprintf.
685         (test-vfprintf-ENV): New variable.
686         * stdio-common/test-vfprintf.c: New file.
687
688         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
689
690         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
691         (tst-mbrtowc-ENV): New variable.
692         (tst-wcrtomb-ENV): New variable.
693         * wcsmbs/tst-mbrtowc.c: New file.
694         * wcsmbs/tst-wcrtomb.c: New file.
695
696 2000-11-16  Andreas Jaeger  <aj@suse.de>
697
698         * manual/install.texi (Tools for Compilation): Update
699         documentation for GCC 2.95.2.
700
701 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
702
703         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
704         if IPv4 and IPv6 requests timed out.
705
706 2000-11-18  Akim Demaille  <akim@epita.fr>
707
708         * malloc/obstack.h: Formatting changes.
709         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
710         prevents type checking.
711         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
712         cast the value to (void *): assigning a `foo *' to a `void *'
713         variable is valid.
714         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
715
716 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
717
718         * scripts/config.guess: Update from upstream maintainer.
719         * scripts/config.sub: Likewise.
720
721 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
722
723         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
724         * libio/freopen64.c (freopen64): Likewise.
725         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
726
727         * libio/Makefile: Add rules to build and run test-freopen.
728         * libio/test-freopen.c: New file.
729         * libio/test-freopen.sh: New file.
730
731 2000-11-15  H.J. Lu  <hjl@gnu.org>
732
733         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
734         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
735         (DL_DT_FINI_ADDRESS): Likewise.
736
737         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
738         return type to ElfW(Addr).
739         (_dl_function_address): New prototype.
740         (DL_FUNCTION_ADDRESS): Defined.
741         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
742         (DL_DT_FINI_ADDRESS): Likewise.
743
744         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
745
746         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
747         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
748
749         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
750         (_dl_function_address): This.
751
752         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
753         function pointer for DT_FINI.
754         * elf/dl-close.c (_dl_close): Likewise.
755
756         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
757         function pointer for DT_INIT.
758
759 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
760
761         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
762         end of wexpbuf buffer.
763
764 2000-11-16  Andreas Jaeger  <aj@suse.de>
765
766         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
767         definition of F_GETLK, F_SETLK, F_SETLKW.
768
769 2000-11-16  Andreas Jaeger  <aj@suse.de>
770
771         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
772         it's not defined.
773
774 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
775
776         * dlfcn/default.c (main): Add test for dladdr of main returning
777         argv[0] in dli_fname field.
778
779 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
780
781         * Makeconfig (run-program-prefix): Move test-static test into the
782         variable.
783
784         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
785         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
786         schedule instructions.
787         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
788         schedule instructions, fix a bug in copying auxiliary data.
789
790 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
791
792         * manual/startup.texi (Program Arguments): Fix type of main's envp
793         parameter.
794         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
795
796         * iconvdata/gconv-modules: Add CP950 alias.
797
798 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
799
800         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
801         syscall-list.h goal.
802         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
803
804 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
805
806         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
807
808         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
809         output of program.
810
811         * intl/tst-gettext2.c: Set C locale if setting other locale
812         failed.  Use gettext() not _().
813
814         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
815         successfully loaded a new locale.
816
817 2000-11-13  Andreas Jaeger  <aj@suse.de>
818
819         * configure.in: Require gcc 2.95 or newer.
820
821 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
822
823         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
824         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
825
826 2000-11-11  Jim Meyering  <meyering@lucent.com>
827
828         * string/strndup.c (strndup): Cast return value to `char *'.
829
830 2000-11-15  Jim Meyering  <meyering@ascend.com>
831
832         * sysdeps/generic/memchr.c: Remove some useless parentheses.
833         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
834         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
835         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
836         Also #undef __memchr.
837         Use `weak_alias' only if it's defined.
838
839 2000-11-10  H.J. Lu  <hjl@gnu.org>
840
841         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
842
843 2000-11-15  Andreas Jaeger  <aj@suse.de>
844
845         * elf/chroot_canon.c: Include <stdint.h>.
846
847         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
848         (print_entry): Likewise.
849         (add_to_cache): Likewise.
850
851         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
852
853         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
854         (path_hwcap): Likewise.
855         (search_dir): Likewise.
856
857         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
858
859         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
860
861         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
862         (_dl_platform_string): New.
863         (_DL_HWCAP_PLATFORM): New.
864         (_dl_string_platform): New.
865         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
866
867         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
868         (_dl_string_platform): New.
869         (_DL_HWCAP_PLATFORM): New.
870         (_dl_platform_string): New.
871
872         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
873         recognition.
874         (_DL_HWCAP_COUNT): New.
875         (_dl_string_platform): New.
876         (_DL_HWCAP_PLATFORM): New.
877         (_dl_platform_string): New.
878
879 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
880
881         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
882
883 2000-11-14  Andreas Jaeger  <aj@suse.de>
884
885         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to
886         _dl_hwcap.
887
888 2000-11-13  Roland McGrath  <roland@frob.com>
889
890         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
891
892 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
893
894         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
895         underrun and make sure the result is null terminated even if there
896         is no trailing newline.
897
898 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
899
900         * sysdeps/alpha/fpu/libm-test-ulps: Update.
901
902 2000-11-10  H.J. Lu  <hjl@gnu.org>
903
904         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
905
906 2000-11-10  Andreas Jaeger  <aj@suse.de>
907
908         * elf/ldconfig.c (create_links): Fix alloca calculation.
909         Patch by Ben Collins <bcollins@debian.org>.
910
911 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
912
913         * inet/getnameinfo.c (getnameinfo): Use correct destination
914         parameter for if_indextoname.
915         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
916
917 2000-11-09  H.J. Lu  <hjl@gnu.org>
918
919         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
920         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
921         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
922         xdr_keystatus.
923
924         * time/Versions (GLIBC_2.1): Move getitimer to...
925         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
926
927 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
928
929         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL-C during
930         "make install", to work around a binary incompatibility between
931         glibc 2.1 and glibc 2.2 gconv modules.
932
933 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
934
935         * intl/locale.alias: Add thai.
936         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
937
938 2000-11-07  Akim Demaille  <akim@epita.fr>
939
940         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
941         argument `data' for consistency with the prototypes.
942         Qualify it `const'.
943         (obstack_copy, obstack_copy0): Rename the second argument as
944         `address' for consistency.  Qualify it `const'.
945         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
946         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
947         `const' their input argument (`data' or `address').
948         Adjust the corresponding macros to include `const' in casts.
949
950 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
951
952         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
953         target family.
954
955 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
956
957         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
958         socket creation.
959
960 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
961
962         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
963         ai_protocol by internal table if service was not given.
964
965 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
966
967         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
968         numerical port was specified with protocol without socktype.
969
970 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
971
972         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
973
974 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
975
976         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
977
978 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
979
980         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
981         sin6_scope_id field.
982
983 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
984
985         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
986
987 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
988
989         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
990
991 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
992
993         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
994         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
995
996 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
997
998         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
999         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
1000
1001 2000-11-09  H.J. Lu  <hjl@gnu.org>
1002
1003         * io/Versions (GLIBC_2.1.1): Remove lockf64.
1004
1005
1006 See ChangeLog.11 for earlier changes.