2.5-18.1
[glibc.git] / ChangeLog.11
blobf2f274f3eb055f66126053e10dbae4f7fdd60114
1 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
3         * version.h (VERSION): Bump to 2.2.
4         (RELEASE): Set to stable.
6         * posix/Makefile (tst-dir-ARGS): Fix problem with compiling in
7         source directory.
8         (tst-chmod-ARGS): Likewise.
10 2000-11-09  H.J. Lu  <hjl@gnu.org>
12         * io/Versions (GLIBC_2.2): Add __open64.
14 2000-11-09  Jakub Jelinek  <jakub@redhat.com>
16         * locale/C-time.c (_nl_C_LC_TIME): Fix value for _NL_TIME_WEEK_1STWEEK.
18 2000-11-09  Jakub Jelinek  <jakub@redhat.com>
20         * locale/programs/ld-paper.c (paper_output): Fix offset into width
21         field.
23 2000-10-27  Bruno Haible  <haible@clisp.cons.org>
25         * locale/programs/charmap.c (charmap_read): Verify ASCII
26         compatibility of charmap.
28 2000-11-08  Ulrich Drepper  <drepper@redhat.com>
30         * catgets/gencat.c (main): Don't use exit() to avoid warnings with
31         broken compilers.
33         * include/features.h (__STDC_ISO_10646__): Correct value to be
34         200009L.  Patch by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
36 2000-11-08  H.J. Lu  <hjl@gnu.org>
38         * pwd/Versions (GLIBC_2.1.2): Add getpwnam_r.
40 2000-11-08  Jakub Jelinek  <jakub@redhat.com>
42         * string/bits/string2.h: Check if _USE_STRING_ARCH_ macros are
43         defined, not _HAVE_STRING_ARCH_.
44         * sysdeps/i386/bits/string.h (_USE_STRING_ARCH_memset,
45         _USE_STRING_ARCH_strchr): Define.
46         * sysdeps/i386/i486/bits/string.h (_USE_STRING_ARCH_memset,
47         _USE_STRING_ARCH_strchr): Define.
48         * sysdeps/sparc/bits/string.h: New file.
50 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
52         * locale/C-translit.h.in: Tweak <U2014> result.
53         * locale/C-translit.h: Regenerated.
55 2000-11-08  Ulrich Drepper  <drepper@redhat.com>
57         * posix/unistd.h: Add attribute((const)) to sysconf prototype.
59         * iconvdata/euc-kr.c (euckr_from_ucs4): Map 0x20a9 to \xa3dc.
60         (BODY from direction): Remove special handling of \x5c.
61         * iconvdata/EUC-KR.irreversible: Adjust for this change.
62         * iconvdata/testdata/EUC-KR..UTF8: Likewise.
63         Reported by Jungshik Shin <jshin@pantheon.yale.edu>.
65 2000-11-07  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
67         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Skip FPU fields.
69 2000-11-06  Ulrich Drepper  <drepper@redhat.com>
71         * iconvdata/big5.c: Regenerated after BIG5 charmap change.
72         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
74         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Fix typo in
75         comparison with new cache magic bytes.
76         Patch by Denis Zaitsev <zzz@cd-club.ru>.
78 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
80         * locale/C-translit.h.in: Update from translit_neutral.
81         * locale/C-translit.h: Regenerated.
82         * intl/tst-translit.c: Update.
84 2000-11-04  Mark Kettenis  <kettenis@gnu.org>
86         * sysdeps/mach/hurd/Dist: Remove clk_tck.c.
88         * sysdeps/mach/hurd/Versions [libc] (GLIBC_2.1.1): Remove
89         __libc_clk_tck.
90         * sysdeps/mach/hurd/Makefile [$(subdir)==posix] (sysdep_routines):
91         Remove clk_tck.
92         * sysdeps/mach/hurd/clk_tck.c: Removed.
93         * sysdeps/mach/hurd/getclktck.c: New file.
94         * sysdeps/mach/hurd/setitimer.c (quantize_timeval): Use
95         __getclktck instead of __libc_clk_tck.
96         * sysdeps/mach/hurd/bits/time.h: Use __sysconf for CLK_TCK instead
97         of __libc_clk_tck.
98         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
100 2000-11-03  Ulrich Drepper  <drepper@redhat.com>
102         * posix/Versions: Export __sysconf.
104 2000-11-02  Ulrich Drepper  <drepper@redhat.com>
106         * version.h (VERSION): Bump to 2.1.97.
108         * iconvdata/Makefile (distribute): Add viscii.c.
110         * elf/Makefile (distribute): Add tst-pathopt.sh.
112         * sysdeps/i386/i486/bits/string.h (strcmp): Cast arguments to
113         __strcmp_cc, __strcmp_cg, and __strcmp_gc to unsigned char *.
114         (__strcmp_cc, __strcmp_cg, __strcmp_gc): Remove casts of values here.
115         Reported by Denis Zaitsev <zzz@cd-club.ru>.
117         * iconvdata/utf-16.c (PREPARE_LOOP): Correct typo preventing BOM from
118         being written.
120         * manual/socket.texi (Local Namespace Concepts): Don't mention what
121         permissions are necessary to connect to a socket.
122         Reported by Peter Eisentraut <peter_e@gmx.net>.
124         * sysdeps/generic/backtracesyms.c (__backtrace_symbols): Fix
125         computation of total for 64-bit machines.
126         Patch by Byron Stanoszek <gandalf@winds.org>.
128         * manual/arith.texi (Rounding): Correct description of fesetround
129         return value.  Patch by Conrado Badenas <Conrado.Badenas@uv.es>.
131 2000-10-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
133         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add the symbol's
134         value plus the run-time displacement to the relocation for non-GOT
135         symbols.  Set the relocation to the GOT entry for GOT symbols.
137 2000-11-02  Ulrich Drepper  <drepper@redhat.com>
139         * sysdeps/unix/sysv/linux/s390/bits/time.h: Removed.
141 2000-11-01  Ulrich Drepper  <drepper@redhat.com>
143         * iconvdata/TESTS: Add entries for IBM856, IBM930, IBM933, IBM935,
144         IBM937, IBM939, and IBM1046.
145         * iconvdata/testdata/IBM1046: New file.
146         * iconvdata/testdata/IBM930..UTF8: New file.
147         * iconvdata/testdata/IBM1046..UTF8: New file.
148         * iconvdata/testdata/IBM933: New file.
149         * iconvdata/testdata/IBM935: New file.
150         * iconvdata/testdata/IBM937: New file.
151         * iconvdata/testdata/IBM856..UTF8: New file.
152         * iconvdata/testdata/IBM939: New file.
153         * iconvdata/testdata/IBM933..UTF8: New file.
154         * iconvdata/testdata/IBM935..UTF8: New file.
155         * iconvdata/testdata/IBM930: New file.
156         * iconvdata/testdata/IBM856: New file.
157         * iconvdata/testdata/IBM937..UTF8: New file.
158         * iconvdata/testdata/IBM939..UTF8: New file.
159         Contributed by Masahide Washizawa <washi@yamato.ibm.co.jp>.
161 2000-11-01  Martin Buchholz  <martin@xemacs.org>
163         * manual/memory.texi (Hooks for Malloc): Fix `caller' arg docs to
164         agree with implementation.
166 2000-11-01  Ulrich Drepper  <drepper@redhat.com>
168         * sysdeps/unix/sysv/linux/bits/time.h (CLK_TCK): Cast sysconf result
169         to __clock_t.
170         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
171         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
172         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
173         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
175         * sysdeps/unix/sysv/linux/bits/socket.h (CMSG_ALIGN): Cast result
176         of unary ~ to size_t.
178         * stdlib/strtod.c: Make gcc shut up about SWAP use.
180         * sysdeps/i386/fpu/bits/mathinline.h: Add support for builtin
181         unordered compare functions to gcc 2.97 and up.
183         * string/bits/string2.h: Disable strstr optimizations for newer
184         gcc versions.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
186         * configure.in (with_cvs): Test for pserver access.
188 2000-10-31  Ulrich Drepper  <drepper@redhat.com>
190         * elf/Versions [ld] (GLIBC_2.2): Export _dl_clktck and _dl_pagesize.
191         * elf/dl-load.c: Define _dl_clktck.
192         * elf/elf.h: Define AT_CLKTCK.
193         * include/time.h: Declare __getclktck.
194         * misc/Makefile (routines): Add getclktck.
195         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_CLKTCK.
196         (_dl_show_auxv): Show AT_CLKTCK value.
197         * sysdeps/generic/getclktck.c: New file.
198         * sysdeps/unix/sysv/linux/getclktck.c: New file.
199         * sysdeps/unix/sysv/linux/alpha/getclktck.c: New file.
200         * sysdeps/unix/sysv/linux/ia64/getclktck.c: New file.
201         * sysdeps/posix/sysconf.c: Use __getclktck to handle _SC_CLK_TCK.
202         * sysdeps/unix/sysv/linux/getpagesize.c: New file.
203         * sysdeps/unix/sysv/linux/bits/time.h: Use __sysconf to for CLK_TCK.
204         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
205         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
206         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
207         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
209         * sunrpc/clnt_gen.c (clnt_create): Don't set timeout with
210         clnt_control for any protocol.  This would make it impossible for
211         the user to provide one in clnt_call().
212         Reported by Hitoshi Guutara Maruyama <maruyama@sh.rim.or.jp>.
213         * sunrpc/clnt_tcp.c (clnt_call): Don't use timeout in tests with zero,
214         use ct->ct_wait.
215         * sunrpc/clnt_unix.c (clnt_call): Likewise.
217 2000-10-31  Jes Sorensen  <jes@linuxcare.com>
219         * sysdeps/ia64/fpu/s_isinfl.S: New file,  - assembly based
220         implementation based on suggestion by Richard Henderson.
221         * sysdeps/ia64/fpu/s_isinfl.c: Removed.
223 2000-10-30  Jes Sorensen  <jes@linuxcare.com>
225         * sysdeps/ia64/fpu/s_isnanl.S: New file - assembly based
226         implementation based on suggestion by Richard Henderson.
227         * sysdeps/ia64/fpu/s_isnanl.c: Removed.
229 2000-10-31  Ulrich Drepper  <drepper@redhat.com>
231         * locale/programs/locale.c (print_item): Fix one more problem with
232         string lists.  Patch by Chen Xiangyang <chenxy@opencjk.org>.
234         * locale/categories.def: Add number of arguments to ctype-map-names
235         and ctype-class-names entries.  Mark era as stringlist.
237         * iconvdata/Makefile (modules): Add IBM856, IBM930, IBM933, IBM935,
238         IBM937, IBM939, and IBM1046.
239         (distribute): Add ibm856.c, ibm930.c, ibm933.c, ibm935.c, ibm937.c,
240         ibm939.c, ibm1046.c, ibm856.h, ibm930.h, ibm933.h, ibm935.h, ibm937.h,
241         ibm939.h, and ibm1046.h.
242         * iconvdata/gconv-modules: Add entries for IBM856, IBM930, IBM933,
243         IBM935, IBM937, IBM939, and IBM1046.
244         * iconvdata/ibm1046.c: New file.
245         * iconvdata/ibm1046.h: New file.
246         * iconvdata/ibm856.c: New file.
247         * iconvdata/ibm856.h: New file.
248         * iconvdata/ibm930.c: New file.
249         * iconvdata/ibm930.h: New file.
250         * iconvdata/ibm933.c: New file.
251         * iconvdata/ibm933.h: New file.
252         * iconvdata/ibm935.c: New file.
253         * iconvdata/ibm935.h: New file.
254         * iconvdata/ibm937.c: New file.
255         * iconvdata/ibm937.h: New file.
256         * iconvdata/ibm939.c: New file.
257         * iconvdata/ibm939.h: New file.
258         Patches by Masahide Washizawa <washi@yamato.ibm.co.jp>.
260 2000-10-30  Ulrich Drepper  <drepper@redhat.com>
262         * locale/localeinfo.h (enum value_type): Add wstring, wstringarray,
263         and wstringlist.
264         * locale/categories.def: Mark wide char strings as wstring or
265         stringarray.
266         * locale/programs/locale.c (show_info): Handle wstring, wstringarray,
267         and wstringlist.  Print keywords only if there is real output.
268         Reported by Chen Xiangyang <chenxy@opencjk.org>.
270         * sysdeps/sparc/fpu/bits/mathinline.h: Add __THROW where necessary.
271         Patch by Ben Collins <bcollins@debian.org>.
273         * stdio-common/Makefile (tests): Add tst-fmemopen.
274         * stdio-common/tst-fmemopen.c: New file.
275         Test case by Ben Collins <bcollins@debian.org>.
277         * libio/iofopncook.c (_IO_cookie_seek): Correct test for error.
279         * libio/fmemopen.c (fmemopen_read): Return 0 at end of buffer.
280         (fmemopen_write): Set errno at end of buffer.
282         * posix/runtests.c (main): Don't use exit() to avoid warning with
283         broken compilers.
285         * string/bug-strncat1.c: Undefine __USE_STRING_INLINES before
286         defining it again to avoid warning.
287         * string/bug-strpbrk1.c: Likewise.
288         * string/bug-strspn1.c: Likewise.
290 2000-10-29  Bruno Haible  <haible@clisp.cons.org>
292         * locale/C-translit.h.in: Include more rules from translit_neutral.
293         Remove a few German and Danish specific rules.
294         * locale/gen-translit.pl: Avoid an error when printing a string
295         containing a '%' character.
296         * locale/C-translit.h: Regenerated.
297         * intl/translit.po: Choose different translations.
298         * intl/tst-translit.c: Update.
300 2000-10-29  Bruno Haible  <haible@clisp.cons.org>
302         * locale/programs/ld-ctype.c (translit_include_t): New type.
303         (locale_ctype_t): Remove translit_copy_locale, translit_copy_repertoire
304         fields, add translit_include field.
305         (ctype_read): After seeing "translit_start" in ignore_content mode,
306         skip the entire translit section, not only one line.  Remove dead test
307         for tok_translit_end.  Enqueue include statements into a list.
308         Signal error if tok_eof seen before tok_translit_end.
309         (translit_flatten): New function.
310         (allocate_arrays): Call translit_flatten.
312 2000-10-30  Ulrich Drepper  <drepper@redhat.com>
314         * locale/findlocale.c (free_mem): We can remove NODELETE marked
315         data, just not the C locale data.
317         * intl/tst-gettext.c: Use setlocale() in addition to setting envvar.
318         * intl/tst-gettext.sh: Copy locale data if necessary.
319         * intl/Makefile (generated-dirs): Add localedir.
321         * intl/dcigettext.c (guess_category_value): For libc always use
322         the setlocale() method.
324         * intl/Makefile: Add rules to build, run and, distribute tst-gettext2.
325         * intl/tst-gettext2.c: New file.
326         * intl/tst-gettext2.sh: New file.
327         * intl/tstlang1.po: New file.
328         * intl/tstlang2.po: New file.
329         Patch by Andreas Jaeger <aj@suse.de>.
331 2000-10-26  GOTO Masanori  <gotom@debian.or.jp>
333         * intl/locale.alias: Add ja_JP.ujis alias.
335 2000-10-30  Ulrich Drepper  <drepper@redhat.com>
337         * locale/findlocale.c (_nl_find_locale): Don't store normalized
338         name in *NAME.
340 2000-10-29  Ben Collins  <bcollins@debian.org>
342         * sysdeps/generic/lockf64.c: In the case of F_TEST, set l_type to
343         F_RDLCK explicitly.
344         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
346 2000-10-29  Ulrich Drepper  <drepper@redhat.com>
348         * iconvdata/big5.c: Update.
349         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
351         * iconvdata/Makefile (distribute): Add BIG5.irreversible.
352         * iconvdata/BIG5.irreversible: New file.
354 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
356         * posix/regex.h (__restrict_arr): Move definition out of #ifndef block.
357         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
358         doesn't define __restrict_arr.
360 2000-10-29  Ulrich Drepper  <drepper@redhat.com>
362         * manual/search.texi: Correct description if VISIT values.
363         Patch by Ben Collins <bcollins@debian.org>.
365         * string/bits/string2.h (strspn): Evaluate first argument if
366         second is "".
367         (strpbrk): Likewise.
368         * sysdeps/i386/i486/bits/string.h: Likewise.
369         * string/Makefile (tests): Add bug-strspn1 and bug-strpbrk1.
370         * string/bug-strspn1.c: New file.
371         * string/bug-strpbrk1.c: New file.
372         Test cases by Joseph S. Myers <jsm28@cam.ac.uk>.
374         * string/bits/string2.h (strncat): Terminate string correctly.
375         * sysdeps/i386/i486/bits/string.h (strncat): Likewise.
376         * string/Makefile (tests): Add bug-strncat1.
377         * string/bug-strncat1.c: New file.
378         Test case by Joseph S. Myers <jsm28@cam.ac.uk>.
380 2000-10-27  Ben Collins  <bcollins@debian.org>
382         * sysdeps/generic/lockf.c (lockf): Set l_type to F_RDLCK before
383         calling for F_GETLK.
385 2000-10-29  Ulrich Drepper  <drepper@redhat.com>
387         * elf/dl-load.c (open_path): Don't exit loop early if we didn't
388         use a directory at all.
390         * elf/Makefile: Add rules to build and run tst-pathopt.
391         * elf/tst-pathopt.c: New file.
392         * elf/tst-pathopt.sh: New file.
393         * elf/pathoptobj.c: New file.
395         * elf/elf.h (SHN_XINDEX): Define.
397 2000-10-28  Ulrich Drepper  <drepper@redhat.com>
399         * io/Makefile (tests): Add test-stat2.
400         (test-stat2-ARS): New variable.
401         * io/test-stat2.c: New file.
403         * Makeconfig (ETAGS): Remove -T flag.
405         * elf/dl-load.c (open_verify): Only try to load ET_DYN and ET_EXEC
406         objects.  Reject all other types.
407         (_dl_map_object_from_fd): Optimize a bit.
409 2000-10-27  Ulrich Drepper  <drepper@redhat.com>
411         * stdio-common/Makefile (tests): Add tst-fseek.
412         * stdio-common/tst-fseek.c: New file.
414         * posix/regex.c (gettext): Use correct translation domain for glibc.
416         * argp/argp-parse.c: Use __dcgettext instead of dcgettext for glibc.
417         * argp/argp-help.c: Likewise.
418         * inet/getnameinfo.c (getnameinfo): Use __snprintf instead of snprintf.
419         * inet/rexec.c (rexec_af): Use __snprintf instead of snprintf.
420         * misc/regexp.c (__step): Use __regexec instead of regexec.
421         (__advance): Likewise.
422         * nss/digits_dots.c: Use __inet_aton instead of inet_aton.
423         * nscd/gethstbynm2_r.c (__inet_aton): Define as inet_aton since
424         the former is not exported.
425         * misc/daemon.c (daemon): Use __fork instead of fork.
427         * stdlib/fmtmsg.c (fmtmsg): Change output format slightly to make
428         it look better and bring it closer to SysV behavior.
429         * stdlib/Makefile (distribute): Add tst-fmtmsg.sh.
430         (test-srcs): Add tst-fmtmsg.
431         (tests): Add $(objpfx)tst-fmtmsg.out.  Add rule to generate it.
432         * stdlib/tst-fmtmsg.sh: New file.
433         * stdlib/tst-fmtmsg.c: New file.
435         * iconvdata/Makefile (modules): Add VISCII.
436         (gen-8bit-modules): Add viscii.
437         * iconvdata/viscii.c: New file.
438         * iconvdata/gconv-modules: Add entries for VISCII.
439         * iconvdata/tst-tables.sh: Add VISCII.
441 2000-10-27  Andreas Schwab  <schwab@suse.de>
443         * sysdeps/m68k/fpu/libm-test-ulps: Add some more ulps.
445 2000-10-26  Ulrich Drepper  <drepper@redhat.com>
447         * version.h (VERSION): Bump to 2.1.96.
449         * inet/getipnodebyad.c: Removed.
450         * inet/getipnodebynm.c: Removed.
451         * inet/tst-ipnode.c: Removed.
452         * inet/freehostent.c: Removed.
454         * sysdeps/unix/bsd/osf/=dirstream.h: Removed.
456         * sysdeps/unix/sysv/linux/Dist: Add bits/initspin.h.
458         * elf/Makefile (distribute): Add neededobj4.c.
460         * iconvdata/Makefile (distribute): Add BIG5HKSCS.irreversible.
462         * sysdeps/hppa/Dist: New file.
463         * sysdeps/unix/sysv/linux/hppa/Dist: New file.
465         * posix/tst-chmod.c (do_test): Account for people running the
466         tests as root.
468         * locale/langinfo.h (THOUSEP): Define this and don't duplicate
469         definition of THOUSANDS_SEP.
471         * locale/C-monetary.c: Set mon_decimal to empty string.
472         Add missing entry _NL_MONETARY_CRNCYSTR.
473         * stdio-common/printf_fp.c: If MON_DECIAL_POINT is not provided use
474         DECIMAL_POINT information.
475         * locale/C-numeric.c: Set mon_grouping entry to empty string.
476         * locale/C-time.c: Add date_fmt entries.  Remove two wrong entries.
477         Correct value for number of entries.
478         * locale/localeconv.c: Normalize result passed back in .grouping.
479         Fix assignment to .int_* entries.
481         * locale/Makefile (tests): Add tst-C-locale.
482         * locale/tst-C-locale.c: New file.
484         * locale/setlocale.c: Use LOCALEDIR and not LOCALE_PATH to locate
485         locale files.
486         * locale/newlocale.c: Likewise.
488 2000-10-26  GOTO Masanori  <gotom@debian.or.jp>
490         * locale/langinfo.h: Define _DATE_FMT and _NL_W_DATE_FMT.
491         * locale/categories.def: New support for date_fmt.
492         * locale/programs/ld-time.c: Likewise.
493         * locale/programs/locfile-kw.gperf: Likewise.
494         * locale/programs/locfile-kw.h: Likewise.
495         * locale/programs/locfile-token.h: Likewise.
497 2000-10-26  Jakub Jelinek  <jakub@redhat.com>
499         * sysdeps/ieee754/ldbl-128/e_hypotl.c: New.
501         * math/libm-test.inc (cabs_test, cexp_test, csqrt_test, hypot_test):
502         Increase precision of constants.
503         * sysdeps/alpha/fpu/libm-test-ulps: Update.
504         * sysdeps/arm/libm-test-ulps: Update.
505         * sysdeps/i386/fpu/libm-test-ulps: Update.
506         * sysdeps/ia64/fpu/libm-test-ulps: Update.
507         * sysdeps/m68k/fpu/libm-test-ulps: Update.
508         * sysdeps/mips/fpu/libm-test-ulps: Update.
509         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
510         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
511         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
512         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
513         * sysdeps/s390/fpu/libm-test-ulps: Update.
515 2000-10-26  Ulrich Drepper  <drepper@redhat.com>
517         * io/Makefile (tests): Add tst-fcntl.
518         * io/tst-fcntl.c: New file.
520         * posix/Makefile (tests): Add tst-chmod.
521         (tst-chmod-ARGS): Define.
522         * posix/tst-chmod.c: New file.
524         * test-skeleton.c: Before calling user-defined function remove
525         parameters from argument list.
526         * posix/tst-exec.c: Adjust to this change.
527         * posix/tst-spawn.c: Likewise.
529         * sysdeps/unix/opendir.c (__opendir): Optimize a bit.  Add
530         __builtin_expect.
532 2000-10-25  Ulrich Drepper  <drepper@redhat.com>
534         * intl/Makefile (tests): Add tst-ngettext.
535         * intl/tst-ngettext.c: New file.
537 2000-10-25  Bruno Haible  <haible@clisp.cons.org>
539         * manual/charset.texi: Fix spelling of __GCONV_FULL_OUTPUT.
540         * manual/message.texi (Translation with gettext): Remove paragraph
541         about macros contained in libintl.h.
542         (bind_textdomain_codeset): Describe codeset argument.
543         (Using gettextized software): Add setlocale call to sample code.
545 2000-10-26  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
546             Yutaka Niibe  <gniibe@chroot.org>
548         * sysdeps/sh/dl-machine.h (elf_machine_rela): Handle in place
549         relocation which is generated by new ld.
550         * sysdeps/sh/elf/initfini.c (_init): Preseted __fpscr_values.
551         (_fini): Delete an obsolete register prefix.
552         * sysdeps/unix/sysv/linux/sh/Versions: Add __xstat64, __fxstat64,
553         __lxstat64, alphasort64, glob64, readdir64, readdir64_r, scandir64
554         and versionsort64 as the 2.2-versioned symbols.
555         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: New file.
556         * sysdeps/unix/sysv/linux/sh/brk.c: Changes for the new system call
557         calling convention of the kernel.
558         * sysdeps/unix/sysv/linux/sh/pipe.S: Likewise.
559         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
560         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
561         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
562         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
563         * sysdeps/unix/sysv/linux/sh/fcntl.c: New file.
564         * sysdeps/unix/sysv/linux/sh/lockf64.c: New file.
565         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include the kernel header
566         file and delete the definitions of struct user and user_fp.
567         * sysdeps/unix/sysv/linux/sh/syscall.S: New file.
568         * sysdeps/unix/sysv/linux/sh/syscalls.list: Remove entries for
569         s_ioctl, s_ipc, s_llseek, s_chown, s_fchown, s_lchown, s_execve,
570         rt_sigaction, rt_sigpending, rt_sigprocmask, rt_sigqueueinfo,
571         rt_sigsuspend, rt_sigtimedwait, s_getcwd, s_getdents, s_getgroups,
572         s_getpriority, s_getegid, s_geteuid, s_getuid, getresgid, getresuid,
573         s_getrlimit, s_poll, s_pread64, s_ptrace, s_pwrite64, s_reboot,
574         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
575         s_setfsgid, s_setfsuid, s_setgid, s_setgroups, s_setregid,
576         s_setresgid, s_setresuid, s_setreuid, s_setuid, s_sysctl,
577         s_ugetrlimit, s_ustat, sys_fstat, sys_lstat, sys_mknod, sys_readv,
578         sys_stat, sys_writev and syscall.
580 2000-10-25  Ulrich Drepper  <drepper@redhat.com>
582         * io/test-lfs.c (do_prepare): Rewrite so it doesn't fail on systems
583         without LFS support.
585         * sysdeps/ieee754/dbl-64/e_jn.c: Use __ieee754_sqrt instead of __sqrt.
586         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
587         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
588         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
589         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
591 2000-10-25  David Mosberger  <davidm@hpl.hp.com>
593         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Multiply slot
594         number by four to use bins of width 4 to get accurate
595         instruction-level profiling.
597 2000-10-25  Andreas Jaeger  <aj@suse.de>
599         * sysdeps/generic/dl-cache.h (CACHEMAGIC_VERSION_NEW): Correct string.
601 2000-10-25  Jakub Jelinek  <jakub@redhat.com>
603         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): When
604         converting struct flock64 to struct flock and back, use fcntl commands
605         which work on struct flock.
607 2000-10-25  Jakub Jelinek  <jakub@redhat.com>
609         * math/test-misc.c (main): Only check modfl if NO_LONG_DOUBLE is not
610         defined.
611         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
612         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
614 2000-10-25  Ulrich Drepper  <drepper@redhat.com>
616         * sysdeps/arm/libm-test-ulps: Updated.
618         * sysdeps/generic/dl-cache.h (CACHEMAGIC_VERSION_NEW): New value.
620 2000-10-25  Andreas Jaeger  <aj@suse.de>
622         * elf/dl-load.c (_dl_map_object_from_fd): Remove unused variable.
623         (_dl_map_object): Likewise.
625 2000-10-24  Paul Eggert  <eggert@twinsun.com>
627         * time/strftime.c (my_strftime macro)
628         [!defined _LIBC && HAVE_TZNAME && HAVE_TZSET]:
629         When redefining, do it without args, so that it works even if
630         emacs is defined and an extra argument is passed to my_stftime.
631         (my_strftime function): When evaluating a subformat, pass
632         ut_argument as well.
634 2000-10-24  Andreas Schwab  <schwab@suse.de>
636         * sysdeps/unix/sysv/linux/ia64/Versions: Add pciconfig_read and
637         pciconfig_write.
639 2000-10-25  Ulrich Drepper  <drepper@redhat.com>
641         * sysdeps/generic/dl-cache.c (_dl_cache_verify_ptr): Correct test
642         for files with new cache format.
643         (_dl_load_cache_lookup): Add variable cache_data_size for size of the
644         data.  Correctly report error if neither old not new signature is
645         found. Little optimizations.
646         Mostly based on a patch by Denis Zaitsev <zzz@cd-club.ru>.
648         * elf/dl-close.c (_dl_close): Optimize a bit by optimizing out the
649         nsearchlist variable.
651 2000-10-24  Ulrich Drepper  <drepper@redhat.com>
653         * elf/dl-lookup.c (add_dependency): Fix test to check whether
654         dependency already exists.
655         * elf/Makefile: Add testobj1 and testobj2 as dependencies of testobj6.
656         * elf/loadtest.c (main): Add test at the end that everything is
657         unloaded.
659         * elf/dl-open.c (dl_open_worker): Fix typo in comment.
661         * elf/elf.h: Add even more IA-64 relocations.
663 2000-10-24  Geoffrey Keating  <geoffk@cygnus.com>
665         * io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
666         has a limit set---for instance, a limit of 2^31 bytes, which can't
667         easily be reset by non-LFS-aware shells.
669         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT
670         explicitly rather than getting it from <asm/page.h>.
672 2000-10-24  Ulrich Drepper  <drepper@redhat.com>
674         * elf/dl-close.c (_dl_close): Handle relocation dependencies of
675         the dependencies of the object currently unloaded.
677         * elf/dl-close.c (_dl_close): Don't free memory for global scope
678         list immediately when empty.  Move code to...
679         (free_mem): ...here.  Called as part of __libc_subfreeres list.
681         * elf/dl-deps.c (_dl_map_object_deps): Put l_initfini array before
682         r_list array in allocated memory.
683         * elf/dl-close.c (_dl_close): Optimize access to l_initfini list
684         and remove use of r_list.
686         * elf/dl-close.c (_dl_close): Use correct list (l_initfini) when
687         computing new opencounts.
688         * elf/Makefile: Add rules to build and run neededtest3.
689         * neededtest3.c: New file.
690         * neededobj4.c: New file.
692         * elf/neededtest.c (main): Correct tests for failing dlopen.
694 2000-10-24  Andreas Jaeger  <aj@suse.de>
696         * elf/dl-lookup.c (add_dependency): Remove unused variable j.
698 2000-10-24  Ulrich Drepper  <drepper@redhat.com>
700         * malloc/obstack.c (_obstack_newchunk): Correctly align first returned
701         block.
702         * malloc/tst-obstack.c: New file.
703         Patch and test case by Alexandre Duret-Lutz <duret_g@epita.fr>.
704         * malloc/Makefile (tests): Add tst-obstack.
706         Complete revamp of the reference counter handling.
707         * include/link.h (struct link_map): Add l_idx field.
708         * elf/dl-close.c: Handle decrementing of reference counters more
709         correctly. If necessary decrement reference counters of dependencies
710         of dependencies.
711         * elf/dl-lookup.c (add_dependency): Only increment reference counter
712         of the object itself and not also its dependencies.
713         * elf/dl-open.c: Increment reference counters here.
714         * elf/dl-deps.c: Remove reference counter handling here.
715         * elf/dl-load.c: Likewise.
716         * elf/rtld.c: Adjust for _dl_map_deps not handling reference counters.
718         * elf/loadtest.c: Print loaded objects at the beginning.
720 2000-10-24  Andreas Jaeger  <aj@suse.de>
722         * sysdeps/mips/dl-machine.h: Partly revert patch from 2000-10-18.
724 2000-10-23  Ulrich Drepper  <drepper@redhat.com>
726         * include/link.h (struct link_map): New bit field l_faked.
727         * elf/dl-deps.c: Use l_faked field in struct link_map instead of
728         the magic l_opencount==0.
729         * elf/dl-load.c: Likewise.
730         * elf/dl-version.c: Likewise.
731         * elf/rtld.c: Likewise.
733         * elf/dl-close.c (_dl_close): Add a few more __builtin_expect.
735 2000-10-23  Jim Meyering  <meyering@ascend.com>
737         Allow this code to be used outside of glibc.
738         * sysdeps/generic/memrchr.c: Undef __memrchr, too.
739         [!weak_alias]: Define __memrchr to memrchr.
740         Guard weak_alias use with `#ifdef weak_alias'.
742 2000-10-23  Ulrich Drepper  <drepper@redhat.com>
744         * elf/unload.c: Generate more debugging output.
746         * elf/neededtest.c: Make it more complicated.
747         * elf/neededtest2.c: New file.
748         * elf/Makefile: Add rules to build and run neededtest2.
750         * elf/dl-sym.c (_dl_sym): Use exact check for caller PC in range
751         of DSO address space.
752         (_dl_vsym): Likewise.
754         * elf/dl-sym.c (_dl_sym): For RTLD_DEFAULT, search in objects
755         global scope if we can determine it.
757 2000-10-23  Andreas Schwab  <schwab@suse.de>
759         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (RLIMIT_LOCKS): Added.
760         (RLIMIT_NLIMITS): Sync with kernel definition.
761         (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros.
763 2000-10-23  Andreas Schwab  <schwab@suse.de>
765         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
767 2000-10-23  Ulrich Drepper  <drepper@redhat.com>
769         * elf/elf.h (R_IA64_GPREL32MSB, R_IA64_GPREL32LSB): New definitions.
771 2000-10-22  Bruno Haible  <haible@clisp.cons.org>
773         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Add irreversible mappings
774         for 0x8BF8, 0xA27E..0xA2A7.
775         * iconvdata/BIG5HKSCS.irreversible: New file.
777 2000-10-23  Jakub Jelinek  <jakub@redhat.com>
779         * timezone/zdump.c (main): setlocale LC_CTYPE as well as LC_MESSAGES.
780         * timezone/zic.c (main): Likewise.
782 2000-10-23  Thorsten Kukuk  <kukuk@suse.de>
784         * nscd/connections.c (invalidate_cache): Don't invalidate a cache
785         if it is not enabled.
787 2000-10-23  Andreas Jaeger  <aj@suse.de>
789         * sysdeps/s390/fpu/libm-test-ulps: New ulps.
791         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add fcntl64.
792         Patch by Ralf Baechle <ralf@gnu.org>.
794 2000-10-21  Ulrich Drepper  <drepper@redhat.com>
796         * elf/dl-load.c (_dl_map_object_from_fd): Split out ELF file
797         verification in open_verify.
798         (open_verify): New function.  Called instead of open.  Ignores valid
799         files for other architectures.
800         (open_path): Call open_verify instead of open.
801         (_dl_map_object): Likewise.
802         Somewhat based on a patch by Don Dugger <n0ano@valinux.com>.
804         * io/pwd.c (main): The output was missing a newline.
806         * posix/fnmatch_loop.c: Make FNM_LEADING_DIR behave as GNU tar
807         expects it.  Patch by Colin Watson <riva.ucam.org>.
808         * posix/tst-fnmatch.input: Add test cases for FNM_LEADING_DIR.
810         * elf/dl-open.c (add_to_global): New function.  Split out from
811         dl_open_worker.
812         (dl_open_worker): Call add_to_global not only for new objects, also for
813         previously loaded objects when (mode & RTLD_GLOBAL) and the object
814         was not yet in the global scope.
815         * elf/Makefile: Add rules to build and run lateglobal.
816         * elf/lateglobal.c: New file.
817         * elf/ltglobmod1.c: New file.
818         * elf/ltglobmod2.c: New file.
820 2000-10-20  Ulrich Drepper  <drepper@redhat.com>
822         * include/link.h (struct link_map): Add l_soname_added bitfield.
823         * elf/dl-load.c (_dl_map_object): Remember when we added the
824         SONAME to the l_libname list and don't try it again.
826         * elf/dl-close.c: Decrement opencount for all dependencies which can
827         be removed even if the object is not yet unloaded.
828         * elf/dl-deps.c (_dl_map_object_deps): If dependency is already in
829         the list decrement opencount of all dependencies.
830         * elf/dl-load.c (_dl_map_object_from_fd): Increment object of object
831         and all dependencies.
832         (_dl_map_object): Likewise.
833         * elf/dl-lookup.c (add_dependency): Likewise.
835         * elf/loadtest.c: Add debug when with more output.
837         * elf/Makefile: Add rules to build and run unload2.
838         * elf/unload2.c: New file.
839         * elf/unload2mod.c: New file.
840         * elf/unload2dep.c: New file.
842         * intl/libintl.h (ngettext macro): Add missing parameter.
843         (dngettext macro): Likewise.
845 2000-10-19  H.J. Lu  <hjl@gnu.org>
847         * elf/Makefile (distribute): Add neededtest.c, neededobj1.c,
848         neededobj2.c and neededobj3.c.
849         (tests): Add neededtest.
850         (modules-names): Add neededobj1, neededobj2 and neededobj3.
851         ($(objpfx)neededobj1.so): New target.
852         ($(objpfx)neededobj2.so): Likewise.
853         ($(objpfx)neededobj3.so): Likewise.
854         ($(objpfx)neededtest): Likewise.
855         ($(objpfx)neededtest.out): Likewise.
856         * elf/neededtest.c: New. Based on the bug report from
857         Allen Bauer <kylix_rd@hotmail.com>.
858         * elf/neededobj1.c: Likewise.
859         * elf/neededobj2.c: Likewise.
860         * elf/neededobj3.c: Likewise.
862 2000-10-20  Ulrich Drepper  <drepper@redhat.com>
864         * elf/dl-load.c (_dl_map_object_from_fd): Pass pointer to ELF header
865         to elf_machine_matches_host.
866         * sysdeps/alpha/dl-machine.h (elf_machine_matches_host): Parameter
867         is now pointer to ELF header.
868         * sysdeps/arm/dl-machine.h: Likewise.
869         * sysdeps/generic/dl-machine.h: Likewise.
870         * sysdeps/hppa/dl-machine.h: Likewise.
871         * sysdeps/i386/dl-machine.h: Likewise.
872         * sysdeps/ia64/dl-machine.h: Likewise.
873         * sysdeps/m68k/dl-machine.h: Likewise.
874         * sysdeps/mips/dl-machine.h: Likewise.
875         * sysdeps/mips/mips64/dl-machine.h: Likewise.
876         * sysdeps/powerpc/dl-machine.h: Likewise.
877         * sysdeps/s390/dl-machine.h: Likewise.
878         * sysdeps/sh/dl-machine.h: Likewise.
879         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
880         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
881         Patch by Martin Schwidefsksy <schwidefsky@de.ibm.com>.
883 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
885         * include/limits.h: Include bits/wordsize.h, use #if __WORDSIZE == 64
886         check instead of #ifdef __alpha__.
887         * include/bits/xopen_lim.h (WORD_BIT, LONG_BIT): Don't count on
888         INT_MAX, __INT_MAX__, LONG_MAX or __LONG_MAX__ being defined when
889         this is included.
891 2000-10-20  Ulrich Drepper  <drepper@redhat.com>
893         * posix/wordexp-tst.sh (testout): Place output file in build
894         directory.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
896         * sysdeps/powerpc/fpu/bits/mathinline.h: Pretty print.
898 2000-10-19  Ulrich Drepper  <drepper@redhat.com>
900         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
901         Correctly handle numeric group member information.
902         Patch by tomasw@cs.huji.ac.il.
904         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
905         Complete test for strtol overflow.
907 2000-10-19  Jakub Jelinek  <jakub@redhat.com>
909         * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Pass union
910         semun as 4th argument to semctl syscall, not address of it.
912 2000-10-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
914         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl64() syscall.
916 2000-10-17  Andreas Schwab  <schwab@suse.de>
918         * string/string.h: Remove declaration of __strcasecmp and __strcasestr.
919         * include/string.h: Declare them here.
921 2000-10-18  Ralf Baechle  <ralf@gnu.org>
923         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Include <asm/unistd.h>.
925 2000-10-19  Geoffrey Keating  <geoffk@cygnus.com>
927         * sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
928         of the unordered comparison functions that use the GCC builtins.
930         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.
931         (__process_machine_rela): Print the address of an overflowing
932         reloc.
934 2000-10-18  Ulrich Drepper  <drepper@redhat.com>
936         * sysdeps/unix/sysv/linux/shm_open.c: Correct default mount point
937         in comments.
938         (freeit): Remove unnecessary test.
940 2000-10-18  Andreas Jaeger  <aj@suse.de>
942         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_OK): New.
943         (ELF_MACHINE_BEFORE_RTLD_RELOC): Handle newer linkers.
944         (elf_machine_runtime_link_map): Likewise.
945         (elf_machine_runtime_setup): Likewise.
946         Handle dynamic linker's local got entries.
947         Patches by Ralf Baechle <ralf@gnu.org>.
949 2000-10-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
951         * sysdeps/mips/dl-machine.h (_dl_runtime_resolve): Define $sp as
952         the frame pointer.  Allocate stack space for $a0 for
953         __dl_runtime_resolve().  Do not save $sp in $s0 as it's
954         callee-saved anyway.
956 2000-10-17  Ulrich Drepper  <drepper@redhat.com>
958         * sysdeps/powerpc/fpu/libm-test-ulps: Update for changes in
959         libm-test.inc.
961 2000-10-17  Andreas Schwab  <schwab@suse.de>
963         * sysdeps/m68k/fpu/libm-test-ulps: Update for changes in
964         libm-test.inc.
966 2000-10-17  Jakub Jelinek  <jakub@redhat.com>
968         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
969         Add missing backslash.
971 2000-10-16  Ulrich Drepper  <drepper@redhat.com>
973         * sysdeps/generic/dl-sysdep.c (DL_FIND_ARG_COMPONENTS): Little cleanup.
975         * sysdeps/i386/fpu/libm-test-ulps: Update for changes in libm-test.inc.
977 2000-10-16  Jakub Jelinek  <jakub@redhat.com>
979         * math/libm-test.inc (M_LOG_SQRT_PIl, M_LOG_2_SQRT_PIl): Increase
980         precision.
981         (acos_test, asin_text, cexp_test, cos_test, cproj_test, exp10_test,
982         sin_test, sincos_test, sqrt_test): Likewise.  Add L suffixes also
983         to parameters.
984         (acosh_test, asinh_test, atan2_test, atanh_test, atan_test, cabs_test,
985         cacosh_test, cacos_test, casinh_test, casin_test, catanh_test,
986         catan_test, cbrt_test, ccosh_test, ccos_test, clog10_test, cosh_test,
987         csinh_test, csin_test, csqrt_test, ctanh_test, ctan_test, erfc_test,
988         erf_test, exp2_test, expm1_test, exp_test, fmod_test, hypot_test,
989         j0_test, j1_test, jn_test, lgamma_test, llrint_test, llround_test,
990         log10_test, log1p_test, log2_test, log_test, lrint_test, lround_test,
991         nextafter_test, nexttoward_test, pow_test, round_test, scalb_test,
992         sinh_test, static void, tanh_test, tan_test, tgamma_test, y0_test,
993         y1_test, yn_test): Add L suffixes also to parameters.
994         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Fix mask.
995         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
996         * soft-fp/op-2.h (_FP_FRAC_SRS_2): Fix computation of sticky bit.
998 2000-10-16  Ulrich Drepper  <drepper@redhat.com>
1000         * timezone/Makefile: Define HAVE_GETTEXT for zdump.c, zic.c,
1001         ialloc.c, and scheck.c.
1002         * malloc/obstack.c: Always include <libintl.h> for glibc.
1003         * posix/getopt.c: Likewise.
1004         Reported by Petr Vandrovec <VANDROVE@vc.cvut.cz>.
1006 2000-10-15  Pete Wyckoff  <pw@osc.edu>
1008         * Rules: Define _LIBC during generation of bits/stdio_lim.d.
1010 2000-10-15  Pete Wyckoff  <pw@osc.edu>
1012         * iconvdata/tst-tables.sh: Invoke other shell scripts through ${SHELL}.
1013         * iconvdata/tst-table.sh: Likewise.
1015 2000-10-15  Ulrich Drepper  <drepper@redhat.com>
1017         * elf/dl-error.c (_dl_signal_error): Allocate memory for objname
1018         as well.  Reported by Alexander V. Lukyanov <lav@yars.free.net>.
1020         * iconvdata/gconv-modules: Add aliases for Winblowz charsets.
1021         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1023 2000-10-13  Andreas Schwab  <schwab@suse.de>
1025         * elf/elf.h (R_IA64_PCREL60B): Add relocation.
1027 2000-10-15  Ulrich Drepper  <drepper@redhat.com>
1029         * sysdeps/unix/sysv/linux/hppa/brk.c: Cleanups.
1030         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
1031         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
1032         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Likewise.
1033         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
1035 2000-10-14  Ulrich Drepper  <drepper@redhat.com>
1037         * math/libm-test.inc (frexp_test): Add L suffix also to parameters.
1038         (hypot_test): Likewise.
1040         * sysdeps/generic/printf_fphex.c: Compute width of decimal point
1041         string correctly.  Handle padding correctly.
1043         * sysdeps/ia64/fpu/printf_fphex.c: Use sizeof in _itowa parameters
1044         correctly.
1045         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
1046         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
1048 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1050         * FAQ.in: Add --start-group and --end-group.
1052 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1054         * malloc/memusage.c: Conditionalize stack usage calculation on
1055         stack direction.
1057 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1059         * config.h.in: Add ASM_LINE_SEP.
1060         * configure.in: Add test for comment and line separators.
1061         * include/libc-symbols.h: Define and use ASM_LINE_SEP, and add tabs to
1062         placate some hppa assemblers.
1063         * sysdeps/hppa/sysdep.h: Likewise.
1064         * sysdeps/gnu/siglist.c: Insert \n and \t into inline asm.
1065         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
1067 2000-10-12  David Huggins-Daines  <dhd@linuxcare.com>
1069         * sysdeps/unix/sysv/linux/Makefile: Include <bits/initspin> in
1070         $(sysdep_headers).
1071         * sysdeps/unix/sysv/linux/bits/initspin.h: Dummy version for
1072         non-threaded platforms.
1074 2000-10-12  David Huggins-Daines  <dhd@linuxcare.com>
1076         * configure.in: Add definitions for hppa.
1077         * elf/elf.h: Add PLABEL32 relocation for hppa ELF32, comments
1078         for IPLT and EPLT relocations.
1079         * shlib-versions: Version symbol definitions for hppa-linux.
1080         * sysdeps/unix/sysv/linux/configure.in: Define $arch_minimum_kernel
1081         for hppa.
1083 2000-10-12  David Huggins-Daines  <dhd@linuxcare.com>
1085         * sysdeps/hppa/Makefile: New file.
1086         * sysdeps/hppa/Versions: New file.
1088         * sysdeps/hppa/setjmp.S: New file.
1089         * sysdeps/hppa/__longjmp.S: New file.
1090         * sysdeps/hppa/bits/setjmp.h: New file.
1091         * sysdeps/hppa/frame.h: New file.
1093         * sysdeps/hppa/add_n.s: Don't use %r19 (linkage table pointer).
1094         * sysdeps/hppa/sub_n.s: Likewise.
1095         * sysdeps/hppa/lshift.s: Likewise.
1096         * sysdeps/hppa/rshift.s: Likewise.
1097         * sysdeps/hppa/udiv_qrnnd.s: Likewise.
1098         * sysdeps/hppa/hppa1.1/addmul_1.s: Likewise.
1099         * sysdeps/hppa/hppa1.1/submul_1.s: Likewise.
1100         * sysdeps/hppa/hppa1.1/mul_1.s: Likewise.
1101         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s: Likewise.
1103         * sysdeps/hppa/dl-machine.h: New file.
1104         * sysdeps/hppa/dl-fptr.c: New file (note that this is almost
1105         identical to the IA-64 one).
1106         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
1107         * sysdeps/hppa/dl-symaddr.c: Likewise.
1109         * sysdeps/hppa/elf/initfini.c: New file.
1110         * sysdeps/hppa/elf/start.S: New file.
1112         * sysdeps/hppa/fpu/bits/fenv.h: New file.
1113         * sysdeps/hppa/fpu/fclrexcpt.c: New file.
1114         * sysdeps/hppa/fpu/fedisblxcpt.c: New file.
1115         * sysdeps/hppa/fpu/feenablxcpt.c: New file.
1116         * sysdeps/hppa/fpu/fegetenv.c: New file.
1117         * sysdeps/hppa/fpu/fegetexcept.c: New file.
1118         * sysdeps/hppa/fpu/fegetround.c: New file.
1119         * sysdeps/hppa/fpu/feholdexcpt.c: New file.
1120         * sysdeps/hppa/fpu/fesetenv.c: New file.
1121         * sysdeps/hppa/fpu/fesetround.c: New file.
1122         * sysdeps/hppa/fpu/feupdateenv.c: New file.
1123         * sysdeps/hppa/fpu/fegetexcptflg.c: New file.
1124         * sysdeps/hppa/fpu/fraiseexcpt.c: New file.
1125         * sysdeps/hppa/fpu/fsetexcptflg.c: New file.
1126         * sysdeps/hppa/fpu/ftestexcept.c: New file.
1128         * sysdeps/unix/sysv/linux/hppa/Makefile: New file.
1129         * sysdeps/unix/sysv/linux/hppa/Versions: New file.
1130         * sysdeps/unix/sysv/linux/hppa/syscalls.list: New file.
1131         * sysdeps/unix/sysv/linux/hppa/sysdep.c: New file.
1132         * sysdeps/unix/sysv/linux/hppa/sysdep.h: New file.
1135         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: New file.
1136         * sysdeps/unix/sysv/linux/hppa/bits/ioctls.h: New file.
1137         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: New file.
1138         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: New file.
1139         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: New file.
1140         * sysdeps/unix/sysv/linux/hppa/brk.c: New file.
1141         * sysdeps/unix/sysv/linux/hppa/clone.S: New file.
1142         * sysdeps/unix/sysv/linux/hppa/socket.S: New file.
1143         * sysdeps/unix/sysv/linux/hppa/syscall.S: New file.
1144         * sysdeps/unix/sysv/linux/hppa/setrlimit.c: New file.
1145         * sysdeps/unix/sysv/linux/hppa/getrlimit.c: New file.
1146         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: New file.
1147         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: New file.
1148         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: New file.
1149         * sysdeps/unix/sysv/linux/hppa/mmap.c: New file.
1150         * sysdeps/unix/sysv/linux/hppa/profil-counter.h: New file.
1151         * sysdeps/unix/sysv/linux/hppa/procfs.h: New file.
1152         * sysdeps/unix/sysv/linux/hppa/ucontext.h: New file.
1153         * sysdeps/unix/sysv/linux/hppa/umount.c: New file.
1155 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1157         * sysdeps/hppa/hppa1.1/Implies: New file.
1158         * sysdeps/hppa/memusage.h: New file.
1160 2000-10-28  Jes Sorensen  <jes@linuxcare.com>
1162         * sysdeps/unix/sysv/linux/ia64/Versions: Export ioperm, iopl, inb,
1163         inw, inl, _inb, _inw, _inl, outb, outw, outl, _outb, _outw,
1164         _outl.  Reported by Bill Nottingham.
1166 2000-04-06  Andreas Schwab  <schwab@suse.de>
1168         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Save and
1169         restore register r8 for functions that return a structure.
1171 2000-10-12  Jakub Jelinek  <jakub@redhat.com>
1173         * math/libm-test.inc (M_PI_6l, M_E2l, M_E3l, M_2_SQRT_PIl,
1174         M_SQRT_PIl): Increase precision.
1175         (cbrt_test): If cbrt is not implemented, don't test it.
1176         Add L suffix to double constants in results which differ from their
1177         L suffixed counterparts.
1178         (exp10_test, fmod_test, frexp_test, hypot_test, sqrt_test): Likewise.
1180         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1182 2000-10-11  Jakub Jelinek  <jakub@redhat.com>
1184         * inet/rexec.c (rexec_af): Convert rport to host order before
1185         passing it to snprintf.
1187 2000-10-14  Ulrich Drepper  <drepper@redhat.com>
1189         * sysdeps/gnu/netinet/tcp.h: Use u_intXX_t types instead of
1190         uintXX_t since this is what <sys/types.h> defines and we include
1191         this header.  Reported by Bernhard Rosenkraenzer <bero@redhat.de>.
1193         * intl/localealias.c (read_alias_file): Update string pointers
1194         in map[] if realloc() changed the values.
1195         Patch by Jakub Jelinek <jakub@redhat.com>.
1197         * manual/stdio.texi: Update printf extension documentation after
1198         z became a valid modifier.
1199         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1201         * timezone/africa: Update from tzcode2000g and tzdata2000g.
1202         * timezone/asia: Likewise.
1203         * timezone/australasia: Likewise.
1204         * timezone/backward: Likewise.
1205         * timezone/europe: Likewise.
1206         * timezone/iso3166.tab: Likewise.
1207         * timezone/northamerica: Likewise.
1208         * timezone/southamerica: Likewise.
1209         * timezone/zone.tab: Likewise.
1211 2000-10-14  Geoffrey Keating  <geoffk@cygnus.com>
1213         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl()
1214         syscall.
1216 2000-10-13  Michael Fedrowitz  <michael@fedrowitz.de>
1218         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: New file.
1219         * sysdeps/unix/sysv/linux/m68k/fcntl.c: New file.
1220         * sysdeps/unix/sysv/linux/m68k/getdents64.c: New file.
1221         * sysdeps/unix/sysv/linux/m68k/getrlimit.c: New file.
1222         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: New file.
1223         * sysdeps/unix/sysv/linux/m68k/glob64.c: New file.
1224         * sysdeps/unix/sysv/linux/m68k/lockf64.c: New file.
1225         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: New file.
1226         * sysdeps/unix/sysv/linux/m68k/readdir64.c: New file.
1227         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: New file.
1228         * sysdeps/unix/sysv/linux/m68k/scandir64.c: New file.
1229         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: New file.
1230         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: New file.
1231         * sysdeps/unix/sysv/linux/m68k/Dist: Add oldgetrlimit64.c.
1232         * sysdeps/unix/sysv/linux/m68k/Makefile: Add oldgetrlimit64.
1233         * sysdeps/unix/sysv/linux/m68k/Versions: Export __xstat64,
1234         __fxstat64, __lxstat64, alphasort64, glob64, getrlimit, setrlimit,
1235         getrlimit64, readdir64, readdir64_r, scandir64, versionsort64 at
1236         GLIBC_2.2.
1237         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add oldgetrlimit,
1238         oldsetrlimit for GLIBC_2.0.
1240         * sysdeps/m68k/dl-machine.h (_dl_start_user): Pass correct
1241         arguments to _dl_init.
1243 2000-10-13  Geoffrey Keating  <geoffk@cygnus.com>
1245         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs for my Pentium III
1246         building with the default options.
1248 2000-10-11  Andreas Jaeger  <aj@suse.de>
1250         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set cache.
1251         Patch by Denis Zaitsev <zzz@cd-club.ru>.
1253 2000-10-09  Jakub Jelinek  <jakub@redhat.com>
1255         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): If x == y,
1256         return y not x.
1257         * manual/arith.texi (nextafter): Document it.
1258         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Fix a comment.
1260 2000-10-08  Ulrich Drepper  <drepper@redhat.com>
1262         * version.h (VERSION): Bump to 2.1.95.
1264         * configure.in: Remove warning message.
1266         * nscd/Makefile (distribute): Add nscd-types.h.
1267         * elf/Makefile (distribute): Add gccframe.h.
1268         * sysdeps/sparc/sparc32/Dist: Add ieee754.h.
1269         * sysdeps/ia64/Dist: Add ieee754.h.
1271 2000-10-07  Ulrich Drepper  <drepper@redhat.com>
1273         * elf/elf.h: Add a few section-related symbols.
1275         * include/features.h (__STDC_ISO_10646__): Set to correct date.
1276         Patch by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
1278 2000-10-06  Jes Sorensen  <jes@linuxcare.com>
1280         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Implement
1281         overflow generation by adding DBL_MAX to DBL_MAX instead of
1282         setting the bits manually in the fpsr and generating the exception
1283         with kill() if necessary.
1284         (feraiseexcept): Implement underflow by dividing DBL_MIN by
1285         DBL_MIN - similar to the overflow change described above.
1287 2000-08-27  H.J. Lu  <hjl@gnu.org>
1289         * sysdeps/unix/sysv/linux/ia64/clone.S: Make it a dummy as clone
1290         is not supported under Linux/ia64, use clone2.
1292 2000-10-06  Jakub Jelinek  <jakub@redhat.com>
1294         * malloc/malloc.h (__THROW): Define to nothing if not gcc.
1295         * misc/sys/cdefs.h (__THROW): Likewise.
1297 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
1299         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: New file.
1301 2000-10-02  Jakub Jelinek  <jakub@redhat.com>
1303         * sunrpc/svc_udp.c (svcudp_recv): Set msg_controllen to all
1304         remaining xp_pad space.
1306 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
1308         * elf/dl-close.c (_dl_close): Check imap's l_flags_1 for
1309         DF_1_NODELETE, not list[i]'s.
1311 2000-10-04  Ulrich Drepper  <drepper@redhat.com>
1313         * iconvdata/euc-kr.c (euckr_from_ucs4): Handle U20a9.
1314         (BODY from direction): Map \x5c to U20a9.
1315         * iconvdata/testdata/EUC-KR..UTF8: Adjust to this change.
1316         * iconvdata/EUC-KR.irreversible: New file.
1317         * iconvdata/Makefile (distribute): Add EUC-KR.irreversible.
1319         * argp/argp-parse.c (argp_default_argp): Set libc as message domain.
1320         (argp_version_argp): Likewise.
1322 2000-10-04  Jakub Jelinek  <jakub@redhat.com>
1324         * stdio-common/vfscanf.c (_IO_vfscanf): For [ conversion do
1325         input_error() if EOF is seen before processing.
1326         * stdio-common/tstscanf.c (main): Add testcase.
1328 2000-10-04  Ulrich Drepper  <drepper@redhat.com>
1330         * argp/argp-help.c: Make sure we get the correct gettext and
1331         dgettext definitions.
1332         * argp/argp-parse.c: Likewise.
1334 2000-10-03  Ulrich Drepper  <drepper@redhat.com>
1336         * locale/programs/linereader.c (get_string): Also clear wide
1337         string info if illegal_string.
1339 2000-10-03  Andreas Schwab  <schwab@suse.de>
1341         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: New file.
1343 2000-10-02  Jakub Jelinek  <jakub@redhat.com>
1345         * elf/nextmod1.c (failing_rtld_next_use): Ensure it is not tail call
1346         optimized.
1348         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: New file.
1350 2000-10-02  Ralf Baechle  <ralf@gnu.org>
1352         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Add missing .mips0 at the
1353         end of inline assembler code.
1355 2000-10-02  Jakub Jelinek  <jakub@redhat.com>
1357         * sunrpc/svc_udp.c (svcudp_recv): Set msg_controllen to all
1358         remaining xp_pad space.
1360 2000-10-02  Ulrich Drepper  <drepper@redhat.com>
1362         * include/features.h [__USE_FILE_OFFSET && !__REDIRECT]: Define
1363         __USE_LARGEFILE64 and __USE_LARGEFILE to 1 and not nothing.
1365 2000-10-02  Andreas Jaeger  <aj@suse.de>
1367         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Synch with Linux
1368         2.4.0-test9-pre8.
1370         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Add RLIMIT_LOCKS.
1372 2000-10-01  Ralf Baechle  <ralf@gnu.org>
1374         * sysdeps/mips/dl-machine.h (RTLD_START): Fix computation of envp
1375         argument passed to _dl_init.
1377 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1379         * locale/programs/charmap-dir.h: New file.
1380         * locale/programs/charmap-dir.c: New file.
1381         * locale/programs/linereader.h (lr_create): New declaration.
1382         * locale/programs/linereader.c (lr_create): New function, split out
1383         from lr_open.
1384         (lr_open): Tailcall lr_create.
1385         * locale/programs/locale.c: Include "charmap-dir.h". Don't include
1386         <unistd.h>.
1387         (xstrdup): New declaration.
1388         (more_help): Use xstrdup instead of strdup.
1389         (write_locales): Likewise. When encountering a symbolic link, call
1390         stat.
1391         (write_charmaps): Simplify using the charmap-dir.h functions.
1392         Use xstrdup instead of strdup.
1393         * locale/programs/charmap.c: Include "charmap-dir.h". Don't include
1394         <dirent.h> and <unistd.h>.
1395         (cmlr_open): New function.
1396         (charmap_read): Use cmlr_open instead of lr_open. Simplify using the
1397         charmap-dir.h functions.
1398         * locale/Makefile (distribute): Add charmap-dir.h.
1399         (lib-modules): Add charmap-dir.
1400         (CFLAGS-charmap-dir.c): Set to -Wno-write-strings, because posix_spawn
1401         wants a 'char **', not a 'const char **'.
1402         * include/spawn.h: New file.
1404 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1406         * posix/spawn_faction_init.c: Include "spawn_int.h".
1407         (__posix_spawn_file_actions_realloc): Fix second realloc argument.
1409 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1411         * locale/programs/config.h (DEFAULT_CHARMAP): Set to ANSI_X3.4-1968.
1413 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1415         * wcsmbs/wcwidth.h (__ctype32_wctype): Remove declaration.
1416         (internal_wcwidth): Remove the tests for L'\0' and iswprint.
1417         * locale/programs/ld-ctype.c (find_idx): If max == NULL, return
1418         a pointer to the table entry, without extending the table.
1419         (allocate_arrays): Set a width only for characters with 'print'
1420         property. Set the width of L'\0' to 0.
1421         * locale/C-ctype.c (_nl_C_LC_CTYPE_width): Use default entry 0xff
1422         for unprintable characters.  Set entry of NUL to 0.
1424 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1426         * locale/programs/charmap.c (charmap_read): Avoid redundant tests.
1427         Don't forget to call closedir when the filename was found as a
1428         code_set_name.
1430 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1432         * iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
1433         type to 'void *'.
1435 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
1437         * locale/programs/ld-ctype.c (wctype_table_init): Initialize level1,
1438         level2, and level3 as well.
1439         (wctype_table_add): Remove a few unnecessary conditionals.
1441 2000-09-30  Ralf Baechle  <ralf@gnu.org>
1443         * wcsmbs/Versions [libc] (GLIBC_2.0): Add __mbrtowc.
1445 2000-09-30  H.J. Lu  <hjl@gnu.org>
1447         * sysdeps/ieee754/ldbl-96/s_ceill.c (__ceill): Handle overflow.
1448         * sysdeps/ieee754/ldbl-96/s_floorl.c (__floorl): Likewise.
1450 2000-09-29  H.J. Lu  <hjl@gnu.org>
1452         * math/libm-test.inc (init_max_error): Clear all exceptions
1453         before starting test.
1454         (acosh_test): Test for existence of function.
1455         (asinh_test): Likewise.
1456         (atan2_test): Likewise.
1457         (cabs_test): Likewise.
1458         (cacos_test): Likewise.
1459         (cacosh_test): Likewise.
1460         (casin_test): Likewise.
1461         (casinh_test): Likewise.
1462         (catan_test): Likewise.
1463         (catanh_test): Likewise.
1464         (ccos_test): Likewise.
1465         (ccosh_test): Likewise.
1466         (cexp_test): Likewise.
1467         (clog_test): Likewise.
1468         (clog10_test): Likewise.
1469         (cosh_test): Likewise.
1470         (cpow_test): Likewise.
1471         (csin_test): Likewise.
1472         (csinh_test): Likewise.
1473         (csqrt_test): Likewise.
1474         (ctan_test): Likewise.
1475         (ctanh_test): Likewise.
1476         (fmod_test): Likewise.
1477         (hypot_test): Likewise.
1478         (remainder_test): Likewise.
1479         (remquo_test): Likewise.
1480         (sincos_test): Likewise.
1481         (sinh_test): Likewise.
1482         (tanh_test): Likewise.
1484 2000-09-29  H.J. Lu  <hjl@gnu.org>
1486         * sysdeps/ia64/ieee754.h: New file.
1488         * sysdeps/ia64/fpu/math_ldbl.h: New file.
1490 2000-09-30  Jakub Jelinek  <jakub@redhat.com>
1492         * elf/ldconfig.h (FLAG_X8664_LIB64): Define.
1493         * sysdeps/unix/sysv/linux/i386/readelflib.c: New file.
1495 2000-09-30  Ulrich Drepper  <drepper@redhat.com>
1497         * manual/charset.texi: Correct notations, reference to C90 amd 1,
1498         and some other details.
1499         * manual/ctype.texi: Likewise.
1500         Patches by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
1502 2000-09-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1504         * sysdeps/ieee754/flt-32/s_frexpf.c: Make it aliasing safe.
1506 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
1508         * elf/cache.c (save_cache): Initialize __unused field in new cache
1509         as well to get reproducable results.
1511 2000-09-29  H.J. Lu  <hjl@gnu.org>
1513         * sysdeps/ia64/fpu/libm-test-ulps: Updated for long double.
1515 2000-09-29  H.J. Lu  <hjl@gnu.org>
1517         * sysdeps/ia64/bits/huge_val.h: New file.
1519 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
1521         * elf/chroot_canon.c: Don't report a failure if the last path
1522         component is not available.
1523         * elf/ldconfig.c (parse_conf): Use canonicalized name when reporting
1524         error.
1526         * elf/cache.c (print_cache): Use stat64 instead of stat.
1527         * elf/ldconfig.c (chroot_stat): Likewise.
1528         (create_links): Likewise.
1529         (manual_link): Likewise.
1530         (search_dir): Likewise.
1531         * elf/readlib.c (process_file): Likewise.
1533         * Makefile (install): Set LC_ALL and LANGUAGE to C before running
1534         ldconfig.
1536 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
1538         * elf/chroot_canon.c: New file.
1539         * elf/Makefile: Build and distribute it.
1540         * elf/ldconfig.h (process_file): Add real_file_name argument.
1541         (chroot_canon): Add prototype.
1542         * elf/ldconfig.c (cache_file): Remove const.
1543         (chroot_stat): New.
1544         (create_links): Add real_path argument.
1545         If opt_chroot, maintain both real and given filenames.
1546         (manual_link): Likewise.
1547         (search_dir): Likewise.
1548         (parse_conf): If opt_chroot, use chroot_canon to find the real
1549         config file.
1550         (main): For -r, try to use chroot, if it fails, leave opt_chroot set
1551         and use chroot_canon where appropriate to do the same as if chroot
1552         succeeded.
1553         * elf/readlib.c (process_file): Add real_file_name argument, pass it
1554         to fopen.
1556 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
1558         * math/complex.h (_Complex): We can be more specific when _Complex
1559         is defined by the compiler.
1561 2000-09-29  H.J. Lu  <hjl@gnu.org>
1563         * sysdeps/unix/sysv/linux/ia64/dl-cache.h: New.
1565         * elf/cache.c (print_entry): Replace 64bit with IA-64 in message
1566         for x86/IA-64 binary.
1568 2000-09-29  Andreas Schwab  <schwab@suse.de>
1570         * sysdeps/unix/sysv/linux/ia64/readelflib.c: New file.
1572         * elf/cache.c (print_entry): Check for FLAG_IA64_LIB64.
1574 2000-09-29  Mark Kettenis  <kettenis@gnu.org>
1576         * sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
1577         implementation for use by the dynamic linker.
1579 2000-09-29  Andreas Jaeger  <aj@suse.de>
1581         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Protect DN_* by
1582         __USE_GNU.
1583         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1584         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
1585         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1586         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1587         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1588         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1590 2000-09-29  Andreas Jaeger  <aj@suse.de>
1592         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Synch with Linux
1593         2.4.0-test9-pre7.
1594         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1595         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
1596         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1597         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1599         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1601 2000-09-29  David Mosberger  <davidm@hpl.hp.com>
1603         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__ia64_syscall): Cleanup.
1605         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Implement.
1607 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
1609         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix it so it actually
1610         works: call to __sigjmp_save must be done unconditionally to
1611         ensure jmp_buf is initialized properly.
1613 2000-09-27  Andreas Jaeger  <aj@suse.de>
1615         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Synch with Linux
1616         2.4.0-test9-pre7.
1618 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
1620         * nscd/nscd-client.h (NSCD_VERSION): Bump to 3.
1621         Use nscd_ssize_t where appropriate.
1622         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use nscd_ssize_t instead of
1623         ssize_t where appropriate.
1624         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1625         * nscd/hstcache.c (cache_addhst): Likewise.
1626         * nscd/grpcache.c (cache_addgr): Likewise.
1627         * sysdeps/generic/nscd-types.h: New file.
1628         * sysdeps/alpha/nscd-types.h: New file.
1630 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
1632         * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
1633         INADDR_LOOPBACK instead of numeric value.
1635 2000-09-28  H.J. Lu  <hjl@gnu.org>
1637         * sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
1638         _dl_skip_args.
1639         (ELF_MACHINE_FIXED_STACK): Removed.
1641 2000-09-29  Andreas Jaeger  <aj@suse.de>
1643         * sysdeps/unix/sysv/linux/s390/lockf64.c: New file.
1645         * sysdeps/unix/sysv/linux/s390/fcntl.c: New file.
1647         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: New file.
1649         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: New file.
1651 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1653         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle unaligned
1654         relocation also for R_ALPHA_RELATIVE.
1655         Reported by Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
1657 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
1659         * intl/dcigettext.c: Outside libc, use local variable names that don't
1660         clash with those in libc.
1661         * intl/bindtextdom.c: Likewise.
1662         * intl/textdomain.c: Likewise.
1664 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1666         * elf/ldconfig.c (parse_conf): Print full name of config dir
1667         including chroot() path.
1668         (main): Remove trailing / from opt_chroot string.
1670         * include/features.h: Correct description of what happens if no
1671         *_SOURCE macro is defined.
1673         * sysdeps/posix/getaddrinfo.c (gaih_inet): Handle req->ai_socktype
1674         correctly.  Reported by Felix von Leitner <leitner@convergence.de>.
1676 2000-09-19  H.J. Lu  <hjl@gnu.org>
1678         * malloc/malloc.h (__memalign_hook): Fix the parameter order.
1679         * malloc/malloc.c (__memalign_hook): Likewise.
1680         (memalign_hook_ini): Likewise.
1682 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1684         * stdio-common/tmpnam.c (tmpnam): Optimize a bit.
1686         * sysdeps/posix/getaddrinfo.c (gaih_local): Don't use tmpnam, use
1687         underlying functions directly.
1689         * sysdeps/unix/sysv/linux/bits/resource.h: Add RLIMIT_LOCKS.
1690         * sysdeps/unix/sysv/linux/arm/bits/resource.h: Likewise.
1691         * sysdeps/unix/sysv/linux/i386/bits/resource.h: Likewise.
1692         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1693         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: Likewise.
1694         * sysdeps/unix/sysv/linux/sh/bits/resource.h: Likewise.
1695         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1697 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1699         * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
1700         define it for powerpc for kernel >= 2.4.0.
1701         * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
1702         __ASSUME_32BITUIDS.
1703         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
1704         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1705         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
1706         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
1707         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
1708         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
1710 2000-09-28  Martin Schwidefsksy  <schwidefsky@de.ibm.com>
1712         * sysdeps/s390/atomicity.h: Fix compare_and_swap.
1714         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h
1715         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1717 2000-09-28  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1719         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
1720         ucontext.h.
1721         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
1723 2000-09-27  Andreas Schwab  <schwab@suse.de>
1725         * math/Makefile (distribute): Explicitly add the long double test
1726         sources, to get them included even if long double is not supported.
1728 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
1730         * elf/soinit.c (struct object): Move definition to gccframe.h and
1731         include it.  Problem identified by HJ Lu.
1733         * sysdeps/ia64/gccframe.h: New file.  ia64 specific version of
1734         struct object to be searched for frame unwind info.
1735         * sysdeps/generic/gccframe.h: New file.  Generic version of
1736         struct object to be searched for frame unwind info.
1738 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1740         * manual/errno.texi: Correct error text for ENXIO.
1741         Reported by Jörg Schilling <schilling@fokus.gmd.de>.
1743 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
1745         * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
1746         exception status bits rather than the exception disable bits.
1747         Don't include math.h.
1749         * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
1750         status of exceptions currently raised rather than which exceptions
1751         are enabled.
1753         * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
1754         rather than unsigned long int.
1756         * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
1757         the exceptions actually requested by the caller and not just
1758         disable all exceptions.
1760         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
1761         the ia64 are enabled by clearing the respective bits in the fpsr,
1762         not setting them.
1764         * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
1765         unsigned long int rather than unsigned long to be consistent with
1766         the coding conventions.
1768 2000-09-20  H.J. Lu  <hjl@gnu.org>
1770         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
1771         unsigned long int.
1772         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
1774 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1776         * string/bits/string2.h: Unify #if usage.
1778 2000-09-27  Jakub Jelinek  <jakub@redhat.com>
1780         * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
1781         and disabling underflow or overflow, disable inexact as well.
1783 2000-09-26  Andreas Jaeger  <aj@suse.de>
1785         * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
1787         * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND.
1789         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETLKW64,
1790         F_GETLK64, F_SETLK64): Update from Linux-2.4.0-test9-pre4.
1792         * elf/ldconfig.c (search_dir): Allow unlimited path length.
1793         (create_links): Likewise.
1795 2000-09-27  Ulrich Drepper  <drepper@redhat.com>
1797         * posix/tst-dir.c: Test a few error cases of chdir.
1799 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1801         * math/math_private.h: Don't add long double prototypes if
1802         NO_LONG_DOUBLE is defined.
1804         * sysdeps/unix/i386/i586/clock_nanosleep.c (CLOCK_P): Remove
1805         CLOCK_MONOTONIC.
1806         * sysdeps/unix/i386/i586/clock_gettime.c (EXTRA_CLOCK_CASES): Likewise.
1807         * sysdeps/unix/i386/i586/clock_getres.c (EXTRA_CLOCK_CASES): Likewise.
1809         * sysdeps/unix/sysv/linux/i386/bits/time.h: Remove CLOCK_MONOTONIC.
1811 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
1813         * sysdeps/sparc/sparc32/bits/endian.h: Remove.
1814         * sysdeps/sparc/sparc32/ieee754.h: New.
1815         * sysdeps/sparc/sparc64/bits/endian.h: Move...
1816         * sysdeps/sparc/bits/endian.h: ...here.
1817         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Optimize.
1818         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Check
1819         %o1, not %o0 to see if we're parent or child.  Optimize.
1821 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
1823         * sysdeps/unix/sysv/linux/ia64/fork.S: New file (based on code
1824         by Hans Boehm).
1825         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file (based on
1826         code by Hans Boehm).
1827         * sysdeps/unix/sysv/linux/ia64/fork.c: Deleted (obsoleted by fork.S).
1829 2000-09-20  H.J. Lu  <hjl@gnu.org>
1831         * sysdeps/ia64/fpu/printf_fphex.c: New file.
1833         * sysdeps/ia64/fpu/libm-test-ulps: New file.
1835 2000-09-17  H.J. Lu  <hjl@gnu.org>
1837         * sysdeps/ia64/Makefile (long-double-fcts): New.  Defined as yes.
1839         * sysdeps/ia64/fpu/s_isinfl.c: New file.  Include
1840         sysdeps/i386/fpu/s_isinfl.c.
1842         * sysdeps/ia64/fpu/s_isnanl.c: New file.  Include
1843         sysdeps/i386/fpu/s_isnanl.c.
1845         * sysdeps/ia64/fpu/s_nextafterl.c: New file.  Include
1846         sysdeps/i386/fpu/s_nextafterl.c.
1848         * sysdeps/ia64/fpu/bits/mathdef.h: New file.  Copied from
1849         sysdeps/i386/fpu/bits/mathdef.h.
1851 2000-09-16  H.J. Lu  <hjl@gnu.org>
1853         * sysdeps/generic/ldsodefs.h (DL_UNMAP): New.  Defined if
1854         DL_UNMAP_IS_SPECIAL is not defined.
1856         * sysdeps/ia64/dl-lookupcfg.h (DL_UNMAP_IS_SPECIAL): Defined.
1857         (_dl_unmap): New prototype.
1858         (DL_UNMAP): New.  Defined as _dl_unmap.
1860         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_unmap.
1862         * elf/dl-close.c (_dl_close): Replace __munmap with DL_UNMAP.
1864 2000-09-16  H.J. Lu  <hjl@gnu.org>
1866         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_ADDRESS): New. Defined
1867         if ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
1869         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): New
1870         prototype.
1871         (DL_LOOKUP_ADDRESS): New. Defined as _dl_lookup_address.
1873         * sysdeps/ia64/dl-fptr.c (_dl_lookup_address): New. Lookup
1874         the memory location of a function from a function descriptor.
1876         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_lookup_address.
1878         * elf/dl-addr.c (_dl_addr): Use DL_LOOKUP_ADDRESS to get the
1879         memory location.
1881 2000-09-14  Jes Sorensen  <jes@linuxcare.com>
1883         * sysdeps/ia64/bits/byteswap.h (__bswap_16): Don't mark output
1884         variable as input argument.
1885         (__bswap_32): Likewise.
1887         * sysdeps/ia64/dl-machine.h: Add missing stop bit in RTLD_START()
1888         - found by Jim Wilson <wilson@cygnus.com>
1890 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1892         * string/strxfrm.c: Only require alignment on __alignof__ (int32_t)
1893         instead of 4.
1895 2000-09-26  Andreas Schwab  <schwab@suse.de>
1897         * locale/programs/ld-collate.c (collate_output): Only require
1898         alignment on __alignof__ (int32_t) instead of 4.
1899         * locale/loadlocale.c (_nl_load_locale): Likewise.
1900         * string/strcoll.c: Likewise.
1902 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
1904         * sysdeps/ieee754/ldbl-96/e_atan2l.c (__ieee754_atan2l): Add
1905         parentheses around arithmetic used in | statement to kill compiler
1906         warning.
1908         * math/math_private.h: Add prototype for __finitel.
1909         (__ilogbl): Likewise.
1910         (__isinfl): Likewise.
1911         (__isnanl): Likewise.
1912         (__atanl): Likewise.
1913         (__copysignl): Likewise.
1914         (__expm1l): Likewise.
1915         (__floorl): Likewise.
1916         (__frexpl): Likewise.
1917         (__ldexpl): Likewise.
1918         (__log1pl): Likewise.
1919         (__nanl): Likewise.
1920         (__rintl): Likewise.
1921         (__scalbnl): Likewise.
1922         (__sqrtl): Likewise.
1923         (fabsl): Likewise.
1924         (__sincosl): Likewise.
1926 2000-09-26  Andreas Schwab  <schwab@suse.de>
1928         * sysdeps/m68k/fpu/libm-test-ulps: New file
1930 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1932         * locale/langinfo.h (__nl_langinfo_l): Add prototype.
1934 2000-09-26  Andreas Jaeger  <aj@suse.de>
1936         * misc/mkstemp64.c: New file.
1937         * misc/Makefile (routines): Add mkstemp64.
1938         * stdlib/stdlib.h: Add prototype and redirection magic.
1939         * misc/Versions: Add mkstemp64.
1941 2000-09-26  Thorsten Kukuk  <kukuk@suse.de>
1943         * nscd/dbg_log.c (dbg_log): Add missing format string.
1945 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1947         * catgets/catgets.c (catopen): Use getenv instead of __secure_getenv
1948         since we filter out the variable once.
1949         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1950         * locale/newlocale.c (__newlocale): Likewise.
1951         * locale/setlocale.c (setlocale): Likewise.
1952         * malloc/malloc.c (ptmalloc_init): Likewise.
1953         * resolv/res_hconf.c (_res_hconf_init): Likewise.
1954         * resolv/res_init.c (__res_vinit): Likewise.
1955         * time/tzfile.c (__tzfile_read): Likewise.
1956         * sysdeps/generic/unsecvars.h: New file.
1957         * elf/dl-support.c (non_dynamic_init): Use it here to remove variables.
1958         * elf/rtld.c (process_envvars): Likewise.
1959         * elf/Makefile (distribute): Add unsecvars.h.
1961         * misc/daemon.c (daemon): Fail if !noclose and we cannot open the
1962         real /dev/null device.
1964         * sysdeps/generic/check_fds.c: Include device-nrs.h.
1965         * sysdeps/generic/device-nrs.h: New file.
1966         * sysdeps/unix/sysv/linux/device-nrs.h: New file.
1967         * misc/Makefile (distribute): Add device-nrs.h.
1969         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Use O_TRUNC to
1970         remove possible garbage at the end of the file.
1972 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
1974         * stdio-common/tmpnam_r.c: Warn about insecure tmpnam_r.
1975         * stdio-common/tmpnam.c: Warn about insecure tmpnam.
1976         * stdio-common/tempnam.c: Warn about insecure tempnam.
1977         * misc/mktemp.c: Warn about insecure mktemp.
1979         * sysdeps/generic/check_fds.c: Check that file opened is really
1980         /dev/null.
1981         * posix/wordexp.c (exec_comm_child): Likewise.
1983         * elf/rtld.c (process_envvars): Open debug output file with O_NOFOLLOW.
1985         * locale/Makefile (routines): Add nl_langinfo_l.
1986         * locale/Versions [libc] (GLIBC_2.2): Add __nl_langinfo_l.
1987         * locale/nl_langinfo_l.c: New file.
1988         * locale/nl_langinfo.c: Allow use of file for __nl_langinfo_l
1989         definition.
1991 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
1993         * iconvdata/gbk.c (USE_PRIVATE_AREA): Define to 0.
1994         (__gbk_to_ucs): Conditionalize private area mappings.
1995         (__gbk_from_ucs4_tab9): Likewise.
1996         (BODY for TO_LOOP): Likewise.
1997         * iconvdata/testdata/GBK: Don't use characters not yet in Unicode.
1998         * iconvdata/testdata/GBK..UTF-8: Likewise.
1999         * iconvdata/tst-tables.sh: Enable GBK test.
2001 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
2003         * iconvdata/gbk.c (__gbk_to_ucs): Swap U+2014 and U+2015.
2004         (__gbk_from_ucs4_tab4): Swap entries for U+2014 and U+2015.
2005         (BODY for FROM_LOOP): Reject input > 0xFEA0, avoids out-of-bounds
2006         array access.
2007         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Map 0xA844 to 0xA1AA.
2008         * iconvdata/testdata/GBK..UTF8: Swap U+2014 and U+2015.
2010 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
2012         * iconvdata/johab.c (final_to_ucs): Fix typos.
2013         (jamo_from_ucs_table): Likewise.
2014         (BODY for FROM_LOOP): Map 0x5c to U+20A9. Reject ranges
2015         0xD9E6..0xD9FE and 0xDEF2..0xDEFE.
2016         (BODY for TO_LOOP): Map U+20A9 to 0x5c. Don't produce values in
2017         the range 0xD9E6..0xD9FE.
2018         * iconvdata/tst-tables.sh: Enable JOHAB testing.
2020 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
2022         * iconv/gconv_conf.c (__gconv_get_path): Fix problem with relative
2023         GCONV_PATH.
2025 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
2027         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
2028         stream is in wide mode.
2030         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
2032 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
2034         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
2035         by 3, not 2.
2036         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
2038 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
2040         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
2041         reallocation logic for MALLOC (%as, %aS formats).
2043 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
2045         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
2046         Add missing case in va_arg handling for numbers.
2047         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
2048         handling.
2049         * stdio/tst-printf.sh: Adjust expected results.
2050         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2052 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
2054         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
2055         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
2056         characters.
2057         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
2058         as equivalent to uppercase hexadecimal digits.
2060 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
2062         * iconvdata/testdata/EUC-KR..UTF8: New file.
2063         * iconvdata/testdata/EUC-TW: New file.
2064         * iconvdata/testdata/EUC-TW..UTF8: New file.
2065         * iconvdata/testdata/EUC-JP: New file.
2066         * iconvdata/testdata/EUC-JP..UTF8: New file.
2067         * iconvdata/testdata/ISO-2022-JP: New file.
2068         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
2069         * iconvdata/testdata/ISO-2022-JP-2: New file.
2070         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
2071         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
2072         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
2073         * iconvdata/testdata/ISO-2022-CN: New file.
2074         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
2075         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
2076         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
2077         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
2078         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
2080 2000-09-24  Andreas Jaeger  <aj@suse.de>
2082         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
2083         function add_single_dir.
2084         (add_single_dir): New function.
2085         (search_dir): Use add_single_dir instead of recursing.
2087         * sysdeps/generic/dl-cache.h: Include stdint.h.
2088         (struct file_entry_new): Use fixed sizes for interoperability
2089         between 32bit and 64bit systems, add __unused to make alignment
2090         explicit.
2091         (CACHE_VERSION): Increment.
2092         (struct cache_file_new): Use fixed sizes, add one more unused
2093         entry to make alignment explicit.
2095 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
2097         * elf/ldconfig.c (search_dir): Make more use of d_type information.
2099 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
2101         * stdio-common/printf-parse.h (parse_one_spec): Clear
2102         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
2104 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
2106         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
2107         #undef since we don't have msync.
2109         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
2110         constant since that is what clock_t is.
2111         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
2113 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
2115         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
2116         multiply by LOAD_SCALE.
2118 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
2120         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
2121         (crypt_r, setkey_r, encrypt_r): Likewise.
2123 2000-09-22  Andreas Jaeger  <aj@suse.de>
2125         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
2126         array size.
2128         * sysdeps/alpha/fpu/libm-test-ulps: New file.
2129         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
2131 2000-09-21  Andreas Jaeger  <aj@suse.de>
2133         * math/libm-test.inc (atan_test): Test for existence of function.
2134         (expm1_test): Likewise.
2135         (acos_test): Likewise.
2136         (asin_test): Likewise.
2137         (exp_test): Likewise.
2138         (log10_test): Likewise.
2139         (log_test): Likewise.
2140         (pow_test): Likewise.
2141         (sqrt_test): Likewise.
2142         (cos_test): Likewise.
2143         (sin_test): Likewise.
2144         (tan_test): Likewise.
2145         (log1p_test): Likewise.
2146         (log2_test): Likewise.
2148         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
2150         * libio/oldiofsetpos64.c: Fix alias names.
2152 2000-09-21  Martin Buchholz  <martin@xemacs.org>
2154         * manual/terminal.texi (Allocation): Sample code correction.
2156 2000-09-20  Andreas Jaeger  <aj@suse.de>
2158         * iconvdata/Makefile (generated): Add tst-tables.out.
2160         * intl/Makefile (generated): Add test output.
2162 2000-09-19  Andreas Jaeger  <aj@suse.de>
2164         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
2165         Reported by Jens-Uwe Mager <jum@helios.de>.
2167 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
2169         * version.h (VERSION): Bump to 2.1.94.
2171         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
2172         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
2173         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
2174         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
2176         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
2178 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
2180         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
2181         range 0xD800..0xDFFF.
2182         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
2183         (BODY for FROM_LOOP): Likewise.
2184         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
2185         (internal_ucs2_loop): Likewise.
2186         (ucs2reverse_internal_loop): Likewise.
2187         (internal_ucs2reverse_loop): Likewise.
2189 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
2191         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
2192         names.
2194 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
2196         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
2197         * iconvdata/tst-table-to.c (main): Likewise.
2199 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
2201         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
2202         __isoir165_tab.
2203         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
2204         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
2205         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
2206         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
2207         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
2208         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
2209         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
2210         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
2211         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
2212         encodings when needed.  When outputting an announcement, don't clear
2213         most other announcements.
2215 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
2217         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
2218         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
2220 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
2222         * intl/Versions: Add bind_textdomain_codeset.
2224 2000-09-16  Ralf Baechle  <ralf@gnu.org>
2226         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
2227         as function.
2228         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
2229         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
2230         it will even work when not loaded to the standard address.
2231         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
2232         before the dynamic linker itself is relocated.
2234 2000-09-18  Andreas Jaeger  <aj@suse.de>
2236         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
2237         __ASSUME_32BITUIDS for MIPS.
2238         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
2239         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
2241 2000-09-17  H.J. Lu  <hjl@gnu.org>
2243         * catgets/Makefile ($(objpfx)de/libc.cat): Use
2244         $(make-target-directory) instead of mkdir.
2246 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2248         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
2249         __ASSUME_32BITUIDS for __powerpc__.
2250         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
2251         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
2253 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
2255         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
2256         patch.
2257         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
2259 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
2261         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
2262         first.
2263         * sysdeps/m68k/Implies: Likewise.
2264         * sysdeps/sparc/sparc64/Implies: Likewise.
2266 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
2268         * elf/readlib.c (process_file): Don't error for stale .so links either.
2270 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
2272         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
2273         __builtin_expect.
2275         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
2276         Patch by Thorsten Kukuk <kukuk@suse.de>.
2278         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
2279         (test): Add default.
2280         (modules-names): Add defaultmod1 and defaultmod2.
2281         Add rules to build test objects.
2283 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
2285         * wctype/wctype.h: Always include <bits/types.h>.
2286         Reported by Jim Meyering <meyering@ascend.com>.
2288         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
2289         * elf/dl-support.c: Likewise.
2291         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
2292         st_blocks member in stat and stat64 structs.
2293         Patch by Bill Nottingham <notting@redhat.com>.
2295         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
2296         take longer.
2298         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
2299         __extension__ to _Complex_I definition since gcc warns if -pedantic.
2300         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
2301         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2303         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
2304         necessary.  Move includes of POSIX and Unix limits files to the end.
2305         * stdlib/Makefile (tests): Add tst-limits.
2306         * stdlib/tst-limits.h: New file.
2308 2000-09-15  Andreas Jaeger  <aj@suse.de>
2310         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
2312         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
2314 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
2316         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
2317         clobber.
2318         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
2319         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
2321 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
2323         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
2324         (tests): Add next.
2325         (modules-names): Add nextmod1 and nextmod2.
2326         Add rules to build and run next.
2327         * elf/next.c: New file.
2328         * elf/nextmod1.c: New file.
2329         * elf/nextmod2.c: New file.
2331 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
2333         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
2335 2000-09-15  Andreas Jaeger  <aj@suse.de>
2337         * sysdeps/mips/fpu/fenv_libc.h: New file.
2338         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
2339         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
2340         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
2342         * sysdeps/mips/fpu/feenablxcpt.c: New file.
2343         * sysdeps/mips/fpu/fegetexcept.c: New file.
2344         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
2346 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
2348         * intl/Makefile: Avoid unnecessary test reruns.
2350         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
2352         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
2353         to not use sysctl().  Too many architectures have problems with it.
2355 2000-09-14  Andreas Jaeger  <aj@suse.de>
2357         * scripts/config.sub: New version from subversions.gnu.org.
2359         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
2360         long.
2362 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
2364         * posix/regex.c (compile_range): Cast collseq index to unsigned char
2365         to avoid accessing data before collseq.
2367         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
2368         pasting strings together.
2370 2000-09-14  Greg McGary  <greg@mcgary.org>
2372         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
2373         copyright notice.
2374         * sysdeps/generic/bp-semctl.h: Likewise.
2375         * sysdeps/generic/bp-start.h: Likewise.
2376         * sysdeps/generic/bp-sym.h: Likewise.
2377         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
2378         rename prototype.
2380 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
2382         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
2383         don't fail.
2385         * elf/elf.h: Add missing official relocations.
2387         * libio/stdio.h: Define __FILE if __need___FILE is defined.
2388         * stdio/stdio.h: Likewise.
2389         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
2390         * include/stdio.h: Handle __need___FILE like __need_FILE.
2391         * include/wchar.h: Use __FILE instead of FILE.
2392         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
2393         * libio/fwscanf.c: Likewise.
2394         * libio/getwc.c: Likewise.
2396         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
2397         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
2398         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
2400         * assert/assert.h: Update comment header about ISO C section.
2401         * math/complex.h: Likewise.
2402         * ctype/ctype.h: Likewise.
2403         * include/errno.h: Likewise.
2404         * include/limits.h: Likewise.
2405         * locale/locale.h: Likewise.
2406         * math/math.h: Likewise.
2407         * setjmp/setjmp.h: Likewise.
2408         * signal/signal.h: Likewise.
2409         * stdio/stdio.h: Likewise.
2410         * libio/stdio.h: Likewise.
2411         * stdlib/stdlib.h: Likewise.
2412         * string/string.h: Likewise.
2413         * time/time.h: Likewise.
2414         * wcsmbs/wchar.h: Likewise.
2415         * wctype/wctype.h: Likewise.
2416         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2418 2000-09-13  Andreas Jaeger  <aj@suse.de>
2420         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
2421         for no more entries.
2422         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
2423         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
2424         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
2426 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
2428         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
2429         constant since this is what clock_t is.
2430         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
2431         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
2432         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
2433         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
2435         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
2436         definitions are requested.
2438 2000-09-13  Andreas Jaeger  <aj@suse.de>
2440         * shlib-versions: libBrokenLocale needs minimal version for ia64,
2441         sparc64 and sh to synch with libc.
2443 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
2445         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
2446         (distribute): Add iso-2022-cn-ext.c.
2447         Add definitions to compile the new module.
2448         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
2449         * iconvdata/iso-2022-cn-ext.c: New file.
2450         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
2451         ucs4_from_isoir165.  Increment input pointer if successful.
2453         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
2455         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
2457 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
2459         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
2460         __syscall_getdents64 wrapper.
2462         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
2464 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
2466         * iconvdata/gb18030.c: Many many changes.  Make consistent with
2467         charmap and with itself.
2468         * iconvdata/tst-tables.sh: Test GB18030.
2470 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
2472         * iconv/skeleton.c: Fix last patch, add missing parameter to
2473         unaligned function call.
2475 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
2477         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
2478         of decimal ellipsis.
2480 2000-09-11  Bruno Haible <haible@clisp.cons.org>
2482         * locale/programs/ld-collate.c (collate_read): Always initialize
2483         error_section.next.
2485 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
2487         * locale/programs/ld-collate.c (collate_finish): Upper bound for
2488         ruleidx is 128, not 256.
2490 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
2492         * locale/programs/ld-collate.c (collate_read): Correct check for
2493         already inserted entries.
2495 2000-09-10  Bruno Haible <haible@clisp.cons.org>
2497         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
2498         second try as well.
2500 2000-09-10  Bruno Haible <haible@clisp.cons.org>
2502         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
2503         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
2505 2000-09-10  Bruno Haible <haible@clisp.cons.org>
2507         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
2508         SAVE_RESET_STATE.
2510 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
2512         * iconvdata/utf-7.c: New file.
2513         * iconvdata/gconv-modules (UTF-7): New module entries.
2514         * iconvdata/Makefile (modules): Add UTF-7.
2515         (distribute): Add utf-7.c.
2516         * iconvdata/testdata/UTF-7: New file.
2517         * iconvdata/testdata/UTF-7..UTF8: New file.
2518         * iconvdata/TESTS (UTF-7): New entry.
2519         * iconvdata/run-iconv-test.sh: Fix confusing output.
2521 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
2523         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
2525 2000-09-10  David S. Miller  <davem@redhat.com>
2527         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
2528         frame pointer offset for non-fast path.
2530 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
2532         * locale/programs/3level.h (*_init): Initialize level1, level2,
2533         and level3 as well.
2534         (*_add): Remove a few unnecessary conditionals.
2536 2000-09-05  Wolfram Gloger  <wg@malloc.de>
2538         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
2539         ensure usability of mutex as an `in use' flag.
2541 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
2543         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
2545         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
2546         ugly GMON_WEAK_START hack.
2547         Patch by Philip Blundell <philb@gnu.org>.
2549         * sysdeps/i386/i486/bits/string.h: Pretty printing.
2551 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
2553         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
2554         and PPC_ICBI asm for broken compilers.
2555         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2557 2000-09-09  Andreas Jaeger  <aj@suse.de>
2559         * manual/message.texi (Advanced gettext functions): Fix typo.
2561         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
2562         strncpy prototype.
2564 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
2566         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
2567         warnings.
2568         * sysdeps/ia64/memccpy.S: Likewise.
2569         Patches by Jim Wilson <wilson@redhat.com>.
2571         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
2572         before trying to read /proc.
2573         Patch by Matt Wilson <msw@redhat.com>.
2574         * include/sys/utsname.h: Declare __uname.
2575         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
2576         * sysdeps/mach/hurd/uname.c: Likewise.
2577         * sysdeps/unix/syscalls.list: Likewise.
2579         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
2580         unloading a bit.
2582 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
2584         * posix/getopt.c (_getopt_internal): When long_only is set always
2585         recognize conflicts just like before.
2587 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2589         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
2591 2000-09-08  Greg McGary  <greg@mcgary.org>
2593         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
2594         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
2595         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
2597 2000-09-08  Andreas Jaeger  <aj@suse.de>
2599         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
2601         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
2603         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
2604         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
2605         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
2607 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
2609         * iconvdata/tst-tables.sh: Enable EUC-KR test.
2611         * elf/dl-load.c (lose): Decrement _nl_loaded.
2612         (_dl_map_object_from_fd): Don't try to dlopen executables.
2614         * iconvdata/tst-tables.sh: Actually return with an error if
2615         something goes wrong.
2616         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
2617         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
2619         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
2621         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
2622         * iconvdata/tst-table-from.c: Include <string.h>.
2623         (try): Correct cast in iconv call.
2625         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
2626         too.
2627         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
2628         (sysdep_routines): Remove dl-start.
2629         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2631         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
2633         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
2634         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
2636 2000-09-06  Andreas Schwab  <schwab@suse.de>
2638         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
2640 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
2642         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
2644         * scripts/config.sub: Strip out -unknown for Linux targets.
2645         Patch by Scott Bambrough <scottb@netwinder.org>.
2647         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
2648         add one more test.
2650 2000-09-07  Andreas Jaeger  <aj@suse.de>
2652         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
2654         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
2655         syscalls.
2657         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
2659         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
2660         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
2662         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
2664         * stdlib/tst-bsearch.c (main): Add more test cases.
2666         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
2667         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2668         Reported by GOTO Masanori <gotom@debian.or.jp>.
2670 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
2672         * posix/Makefile (tests): Add tst-dir.
2673         (tst-dir-ARGS): New variable.
2674         * posix/tst-dir.c: New file.
2676 2000-09-07  Andreas Jaeger  <aj@suse.de>
2678         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
2679         (SYS_fcntl64): New.
2681         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
2683 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
2685         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
2686         use the hack with tryopen_o_directory to determine at runtime
2687         whether it works.
2688         * sysdeps/unix/sysv/linux/opendir.c: New file.
2689         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2690         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
2692         * catgets/Depend: New file.  Add intl.
2693         * catgets/Makefile (tests): Add tst-catgets.
2694         (generated): Remove de.msg.
2695         (generated-dirs): Add de.
2696         Add dependency if tst-catgets output on de/libc.cat.
2697         * catgets/tst-catgets.c: New file.
2699         * po/ja.po: New file.
2700         * po/el.po: Update from translation team.
2702         * wcsmbs/Depend: New file.
2703         * wcsmbs/Makefile (tests): Add tst-btowc.
2704         (tst-btowc-ENV): Define.
2705         * wcsmbs/tst-btowc.c: New file.
2707         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
2708         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
2710         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
2712         * stdlib/Makefile (tests): Add tst-bsearch.
2713         * stdlib/tst-bsearch.c: New file.
2715         * posix/getopt.c (_getopt_internal): Don't recognize an option
2716         name as ambiguous if it's a prefix for more than one name but the
2717         other struct option values are identical.
2719         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
2720         Don't depend on visual inspection of the output file to recognize
2721         errors.
2722         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
2724 2000-09-06  Andreas Jaeger  <aj@suse.de>
2726         * sysdeps/alpha/soft-fp/Dist: New file.
2727         * sysdeps/i386/soft-fp/Dist: New file.
2728         * sysdeps/mips/mips64/soft-fp/Dist: New file.
2729         * sysdeps/mips/soft-fp/Dist: New file.
2730         * sysdeps/powerpc/soft-fp/Dist: New file.
2731         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
2732         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
2734         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
2735         Use sysdep_routines instead of routines to fix make dist failure.
2736         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
2737         out code).
2738         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
2740         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
2741         sysdep_headers instead of headers for make dist.
2743         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
2744         Likewise.
2746 2000-09-06  Andreas Schwab  <schwab@suse.de>
2748         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
2750 2000-09-06  Andreas Jaeger  <aj@suse.de>
2752         * soft-fp/Makefile (distribute): Remove ChangeLog.
2754         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
2755         sysdep_routines instead of routines for make dist.
2757 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2759         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
2760         compatibility check for old stream and call _IO_wide in doubt.
2761         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
2762         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
2763         needed tst for such an old structure and don't do anything.
2764         * libio/freopen.c: Remove declaration of _IO_stdin_used.
2766 2000-09-06  Andreas Jaeger  <aj@suse.de>
2768         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
2769         sysdep-dl-routines and sysdep_routines instead of rtld-routines
2770         and dl-routines.
2772         * soft-fp/ChangeLog: Merged with this file.
2774 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2776         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
2778         * soft-fp/Makefile (distribute): Add the math functions, too.
2780         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
2782 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
2784         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
2785         as a statement.
2787         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
2788         * soft-fp/sysdeps/powerpc/q_*: New files.
2790 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2792         * stdio-common/vfprintf.c (process_string_arg): Handle precision
2793         in wide char case correctly.  Don't allocate too long temporary
2794         strings with alloca.
2796         * stdio-common/Makefile (tests): Add tst-swprintf.
2797         (tst-swprintf-ENV): New variable.
2798         * stdio-common/tst-swprintf.c: New file.
2800 2000-09-05  Andreas Jaeger  <aj@suse.de>
2802         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
2803         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
2804         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2806 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2808         * configure.in: Strip out "unknown" from configuration names.
2810 2000-09-05  Andreas Jaeger  <aj@suse.de>
2812         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
2814         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
2815         * sysdeps/sparc/sparc32/Implies: Likewise.
2816         * sysdeps/powerpc/Implies: Likewise.
2818         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
2819         * libio/oldiofgetpos64.c: Likewise.
2821         * soft-fp/Makefile (distribute): Remove configure.
2823         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
2825         * soft-fp/configure: Remove.
2827         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
2828         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
2830         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
2831         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
2833         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
2834         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
2836         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
2837         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
2839         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
2840         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
2842         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
2843         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
2845         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
2846         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
2848         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
2849         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
2851         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
2852         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
2854         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
2855         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
2857         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
2858         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
2860         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
2861         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
2863         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
2864         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
2866         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
2867         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
2869         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
2870         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
2872         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
2873         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
2875         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
2876         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
2878         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
2879         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
2881         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
2882         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
2884         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
2885         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
2887         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
2888         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
2890         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
2891         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
2893         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
2894         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
2896         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
2897         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
2899         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
2900         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
2902         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
2903         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
2905         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
2906         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
2908         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
2909         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
2911         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
2912         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
2914         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
2915         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
2917         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
2918         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
2920         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
2921         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
2923         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
2924         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
2926         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
2927         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
2929         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
2930         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
2932         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
2933         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
2935         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
2936         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
2938         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
2939         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
2941         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
2942         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
2944         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
2945         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
2947         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
2948         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
2950         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
2951         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
2953         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
2954         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
2956         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
2957         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
2959         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
2960         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
2962         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
2963         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
2965         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
2966         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
2968         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
2969         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
2971         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
2972         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
2974         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
2975         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
2977         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
2978         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
2980         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
2981         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
2983         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
2984         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
2986         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
2987         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
2989         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
2990         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
2992         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
2993         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
2995         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
2996         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
2998         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
2999         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
3001         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
3002         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
3004         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
3005         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
3007         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
3008         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
3010         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
3011         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
3013         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
3014         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
3016         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
3017         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
3019         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
3020         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
3022         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
3023         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
3025         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
3026         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
3028         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
3029         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
3031         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
3032         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
3034         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
3035         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
3037         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
3038         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
3040         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
3041         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
3043         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
3044         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
3046         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
3047         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
3049         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
3050         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
3052         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
3053         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
3055         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
3056         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
3058         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
3059         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
3061         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
3062         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
3064         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
3065         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
3067         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
3068         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
3070         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
3071         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
3073         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
3074         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
3076         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
3077         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
3079         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
3080         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
3082         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
3083         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
3085         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
3086         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
3088         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
3089         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
3091         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
3092         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
3094         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
3095         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
3097         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
3098         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
3100         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
3101         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
3103         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
3104         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
3106         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
3107         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
3109         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
3110         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
3112         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
3113         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
3115         * soft-fp/sysdeps/powerpc/Versions: Move from here...
3116         * sysdeps/powerpc/soft-fp/Versions: ... to here.
3118         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
3119         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
3121         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
3122         change symbol version.
3123         * libio/oldiofgetpos64.c: Likewise.
3124         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
3126         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
3127         typo.
3128         Reported by dyky@kondara.org, closes PR libc/1886.
3130         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
3131         libc/1880.
3133 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
3135         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
3136         script when ^C is hit.
3138         * locale/programs/localedef.c (construct_output_path): Correct
3139         computation of endp after asprintf.
3140         * locale/programs/locfile.c (write_locale_data): Don't add extra
3141         slash in filename.
3143 2000-09-05  Andreas Jaeger  <aj@suse.de>
3145         * scripts/config.guess: New upstream version.
3146         * scripts/config.sub: Likewise.
3147         * manual/texinfo.tex: Likewise.
3149 2000-09-04  Andreas Schwab  <schwab@suse.de>
3151         * elf/Makefile (all-dl-routines): New variable.
3152         (elide-routines.os): Use it instead of $(dl-routines).
3153         (all-rtld-routines): New variable.
3154         (extra-objs): Use it instead of $(rtld-routines).
3155         ($(objpfx)dl-allobjs.os): Likewise.
3156         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
3157         sysdep-dl-routines and sysdep_routines instead of rtld-routines
3158         and dl-routines.
3160 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3162         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
3163         Set fname to NULL if the module wasn't found.
3165 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3167         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
3168         true if trans->name already ends in ".so".
3170 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3172         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
3173         void.
3174         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
3175         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
3176         (__gconv_release_shlib): Change return type to void.
3177         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
3178         step->__counter here.
3179         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
3180         if the reference is zero.
3181         (release_step): New function.
3182         (gen_steps): Always initialize the __counter to 1. Use release_step.
3183         Don't call the destructor on the step whose initializer failed.
3184         (increment_counter): Use release_step. Don't normally run destructors
3185         here.
3186         (__gconv_close_transform): Use release_step.
3188 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3190         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
3191         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
3193 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3195         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
3196         If the first byte is 0x8E, don't ask for 4 bytes until it has been
3197         verified that the second byte is valid. Leave it to cns11643_to_ucs4
3198         to check for incomplete input.
3199         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
3200         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
3201         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
3202         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
3203         0x9f9d..0x9fa5.
3204         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
3205         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
3206         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
3207         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
3208         upto index 0x0052.
3210 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3212         * iconv/gconv_db.c (find_derivation): Always use the least-cost
3213         solution.
3215 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3217         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
3218         are invalid.
3220 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3222         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
3223         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
3224         U+007E.
3226 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3228         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
3230 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3232         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
3234 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
3236         * iconvdata/tst-tables.sh: New file.
3237         * iconvdata/tst-table.sh: New file.
3238         * iconvdata/tst-table-from.c: New file.
3239         * iconvdata/tst-table-to.c: New file.
3240         * iconvdata/tst-table-charmap.sh: New file.
3241         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
3242         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
3243         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
3244         ISIRI-3342.irreversible, SJIS.irreversible.
3245         (tests): Add dependency on tst-tables.out.
3246         (tst-tables.out, tst-tables-clean): New rules.
3247         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
3248         * iconvdata/ISIRI-3342.irreversible: New file.
3249         * iconvdata/EUC-JP.irreversible: New file.
3250         * iconvdata/SJIS.irreversible: New file.
3252 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
3254         * manual/locale.texi (General Numeric): Update description of
3255         representation of the grouping information in the locale data.
3256         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
3258 2000-09-04  Andreas Jaeger  <aj@suse.de>
3260         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
3261         * iconv/iconv_prog.c (options): Fix typo.
3262         Reported by dyky@kondara.org, closes PR libc/1885.
3264 2000-09-04  Andreas Jaeger  <aj@suse.de>
3266         * sysdeps/generic/fegetenv.c: It's __fegetenv.
3267         Reported by Rob Levin <lilo@transvirtual.com>.
3269 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
3271         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
3272         to the typedefs of __timezone_ptr_t.
3273         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
3275 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
3277         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
3278         the loop.
3280 2000-09-01  H.J. Lu  <hjl@gnu.org>
3282         * Makeconfig (built-program-cmd): Don't use the dynamic linker
3283         to run a binary if it is in $(tests-static).
3285         * Rules (binaries-static): Add $(tests-static).
3287 2000-09-02  Andreas Jaeger  <aj@suse.de>
3289         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
3291         * libio/fmemopen.c (fmemopen_close): Revert one part of last
3292         patch.
3294 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
3296         * iconvdata/big5hkscs.c: Regenerated from charmap.
3297         * iconvdata/testdata/BIG5HKSCS: Regenerated.
3298         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
3300         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
3301         statement.  General cleanup.
3303 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
3305         * wctype/wcfuncs.c (iswblank): New function.
3306         * wctype/wcfuncs_l.c (__iswblank_l): New function.
3307         * wctype/wcextra.c: Remove file.
3308         * wctype/wcextra_l.c: Remove file.
3309         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
3311 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
3313         * locale/programs/ld-collate.c (collate_output): Remove redundant
3314         assert call.
3315         * string/strcoll.c: Likewise.
3316         * string/strxfrm.c: Include assert.h.  Add assert calls like in
3317         string/strcoll.c.
3319 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
3321         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
3322         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
3323         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
3324         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
3325         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
3326         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
3327         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
3328         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
3329         _NL_CTYPE_GAP5/6 respectively.
3331         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
3332         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
3333         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
3334         Don't initialize __ctype_names and __ctype_width.
3335         * wctype/cname-lookup.h: Remove file.
3336         * wctype/Makefile (distribute): Remove cname-lookup.h.
3337         * wctype/wchar-lookup.h: Include stdint.h.
3338         * wctype/wctype.c (__wctype): Assume new locale format.
3339         * wctype/wctype_l.c (__wctype_l): Likewise.
3340         * wctype/iswctype.c: Don't include cname-lookup.h.
3341         (__iswctype): Assume new locale format.
3342         * wctype/iswctype_l.c: Don't include cname-lookup.h.
3343         (__iswctype_l): Assume new locale format.
3344         * wctype/wctrans.c: Don't include ctype.h.
3345         (wctrans): Assume new locale format.
3346         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3347         * wctype/towctrans.c: Don't include cname-lookup.h.
3348         (__towctrans): Assume new locale format.
3349         * wctype/towctrans_l.c: Don't include cname-lookup.h.
3350         (__towctrans_l): Assume new locale format.
3351         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
3352         localeinfo.h instead.
3353         (__NO_WCTYPE): Remove unused macro.
3354         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
3355         declarations.
3356         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
3357         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
3358         (towlower, towupper): Likewise.
3359         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
3360         localeinfo.h instead.
3361         (__NO_WCTYPE): Remove unused macro.
3362         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3363         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3364         __iswxdigit_l): Assume new locale format.
3365         (__towlower_l, __towupper_l): Likewise.
3366         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
3367         (__ctype32_b): Remove declaration.
3368         (internal_wcwidth): Assume new locale format.
3369         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
3370         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
3371         to map32_b, rename width_3level to width.
3372         (ctype_output): Always create new locale format. Don't emit
3373         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
3374         (allocate_arrays): Always create new locale format.
3376         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
3377         * locale/weightwc.h (findidx): Assume new locale format.
3378         * string/strcoll.c (wcscoll): Remove local variables size, layers,
3379         names.
3380         * string/strxfrm.c (wcsxfrm): Likewise.
3381         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
3382         local variable collseq to 'const char *'.
3383         (SUFFIX): Don't use, don't undefine.
3384         * posix/fnmatch.c: Remove SUFFIX definition.
3385         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
3386         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
3387         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
3388         (collate_finish): Always create new locale format. Remove local
3389         variables min_total, act_size.
3390         (collate_output): Always create new locale format. Remove local
3391         variables table_size, names, tablewc. Rename tablewc_3level to
3392         tablewc.
3394 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
3396         * locale/programs/ld-collate.c (obstack_int32_grow,
3397         obstack_int32_grow_fast): New inline functions.
3398         (output_weightwc, collate_output): Use them where possible.
3400 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
3402         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
3403         patch (_mode -> _flags).
3405         * libio/Makefile (headers): Add stdio_ext.h.
3406         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
3407         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
3408         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
3409         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
3410         __fsetlocking, and _flushlbf.
3411         * libio/__fbufsize.c: New file.
3412         * libio/__flbf.c: New file.
3413         * libio/__fpending.c: New file.
3414         * libio/__fpurge.c: New file.
3415         * libio/__freadable.c: New file.
3416         * libio/__freading.c: New file.
3417         * libio/__fsetlocking.c: New file.
3418         * libio/__fwritable.c: New file.
3419         * libio/__fwriting.c: New file.
3420         * libio/stdio_ext.h: New file.
3421         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
3422         * libio/libio.h (_IO_USER_LOCK): Define.
3423         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
3424         test _IO_USER_LOCK flag first.
3426         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
3427         malloc fails.
3429 2000-09-01  Andreas Jaeger  <aj@suse.de>
3431         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
3433         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
3435 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
3437         * math/Makefile (tests): Add tst-defintions.
3438         * math/tst-definitions.c: New file.
3440         * stdlib/Makefile (headers): Add bits/wchar.h.
3441         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
3442         * sysdeps/generic/bits/wchar.h: New file.
3443         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
3444         file to define WCHAR_MIN and WCHAR_MAX.
3445         Change UINT*8_MAX and UIN*16_MAX value to type int.
3446         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
3447         file to define WCHAR_MIN and WCHAR_MAX.
3448         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
3449         int values.
3450         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
3451         * sysdeps/generic/bits/mathdef.h: Likewise.
3452         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
3453         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
3454         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3455         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
3456         * locale/locale.h (struct lconv): Add __ prefix to the new members
3457         if not C99.
3458         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
3459         imaxdiv optimizations.
3460         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
3461         * sysdeps/wordsize-64/ldiv.c: Likewise.
3462         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
3463         const fenv_t*.
3464         * sysdeps/generic/bits/fenv.h: Likewise.
3465         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
3466         * sysdeps/ia64/bits/fenv.h: Likewise.
3467         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
3468         * sysdeps/mips/bits/fenv.h: Likewise.
3469         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
3470         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
3471         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
3473         * inet/rcmd.c: Use *stat64 instead of *stat internally.
3474         * inet/ruserpass.c: Likewise.
3475         * catgets/open_catalog.c: Likewise.
3476         * intl/loadmsgcat.c: Likewise.
3477         * io/getdirname.c: Likewise.
3478         * locale/loadlocale.c: Likewise.
3479         * misc/getusershell.c: Likewise.
3480         * stdlib/canonicalize.c: Likewise.
3481         * sysdeps/posix/euidaccess.c: Likewise.
3482         * sysdeps/posix/isfdtype.c: Likewise.
3483         * sysdeps/posix/posix_fallocate.c: Likewise.
3484         * sysdeps/posix/tempname.c: Likewise.
3485         * sysdeps/unix/grantpt.c: Likewise.
3486         * sysdeps/unix/opendir.c: Likewise.
3487         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
3488         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
3489         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
3490         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
3491         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3492         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3493         * sysvipc/ftok.c: Likewise.
3494         * time/getdate.c: Likewise.
3496         * time/getdate.c: Add extra access test.
3498 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
3500         * version.h (VERSION): Bump to 2.1.93.
3502         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
3503         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
3505         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
3506         Make this a new rule depending on tst-gettext.out and run mtrace.
3507         * intl/tst-gettext.c: Call mtrace.
3508         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
3510         * elf/dl-reloc.c: Add a few more __builtin_expect.
3512         * configure.in: Remove --with-gettext option.
3514         * intl/dcigettext.c (free_mem): Correct freeing of
3515         _nl_domain_bindings list.
3517         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
3518         allocated memory.
3520         * intl/locale.alias: Add aliases for bokmal and nynorsk.
3522         * locale/iso-639.def: Fix 639-1 code for Bokmal.
3524         * stdio-common/itoa-digits.c: Move upper digits to...
3525         * stdio-common/itoa-udigits.c: ...here.  New file.
3526         * stdio-common/Makefile (routines): Add itoa-udigits.
3528         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
3529         relocate ld.so don't add supprt for relocations which should not
3530         appear in ld.so.
3532         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
3533         __secure_getenv.  Instead test __libc_enable_secure once.
3535         * io/pwd.c (main): Provide a good example, use *_unlocked function.
3537 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
3539         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
3540         whether the new record should be freed if it's a duplicate.
3541         (add_module): Adjust insert_module call.
3542         (__gconv_read_conf): Likewise.
3543         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
3544         mtrace-tst-loading.
3545         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
3547         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
3548         _dl_all_init_dirs.
3549         * include/link.h (struct r_search_path_struct): New.
3550         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
3551         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
3552         _dl_all_init_dirs.
3553         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
3554         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
3555         added at startup time.
3556         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
3557         contains element to remember fact that we can free memory.
3558         (all_dirs): Renamed to _dl_all_dirs.  Made global.
3559         (_dl_init_all_dirs): New variable.
3560         (fillin_rpath): Save one malloc call.
3561         (decompose_rpath): Change interface.  New first parameter points to
3562         r_search_path_struct.
3563         (_dl_init_paths): Adjust for changes.  Mark all memory as not
3564         deletable.  Set _dl_init_all_paths value.
3565         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
3566         parameter replaced with r_search_path_struct *.  Information about
3567         freeing now contained in r_search_path_struct.
3568         (_dl_map_object): Adjust for above changes.
3570         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
3572         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
3573         when adding new entries.
3575         * elf/dl-load.c (fillin_rpath): Make local copy of where string
3576         since the object being loaded can be unloaded.
3578         * iconvdata/Makefile (tests): Add tst-loading.
3579         * iconvdata/tst-loading.c: New file.
3581 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
3583         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
3584         When comparing a char with an int, always cast the char to
3585         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
3586         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
3588 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
3590         * time/strftime.c (my_strftime): Add compatibility code for use
3591         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
3593         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
3594         return 0 for success but always < 0 on failure.
3596         * nss/getXXbyYY_r.c: Define result to *result before including
3597         digits_dots.c.
3599 2000-08-30  Andreas Jaeger  <aj@suse.de>
3601         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
3603 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
3605         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
3606         official file.
3607         * iconvdata/TESTS: Add BIG5HKSCS entry.
3608         * iconvdata/testdata/BIG5HKSCS: New file.
3609         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
3611         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
3612         always true.
3614         * libio/iogetline.c: Set mode before the loop in case n==0.
3615         * libio/iogetwline.c: Likewise.
3617 2000-08-29  H.J. Lu  <hjl@gnu.org>
3619         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
3620         of fp->_mode < 0.
3621         (_IO_new_file_overflow): Likewise.
3622         * libio/genops.c (_IO_flush_all): Likewise.
3623         * libio/ioftell.c (_IO_ftell): Likewise.
3625 2000-08-29  Akira Higuchi  <a@kondara.org>
3627         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
3628         and __end_fct fields of struct __gconv_step.
3629         * iconv/Makefile (tests): Add iconv-bug2.
3630         * iconv/iconv-bug2.c: New file.
3632         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
3633         instead of 'inptr - inend' to ksc5601_to_ucs4.
3635         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
3637         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
3638         character or shift sequence is found at the end of the input
3639         string, return__GCONV_INCOMPLETE_INPUT instead of
3640         __GCONV_EMPTY_INPUT.
3641         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3642         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3644         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
3645         __GCONV_ILLEGAL_INPUT for 8bit characters.
3647 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
3649         * signal/signal.h (sigpause): Move __THROW before __asm__.
3651         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
3652         names don't match don't return.
3653         Patch by Olaf Kirch <okir@flash.lst.de>.
3655 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3657         * time/strftime.c (my_strftime): Handle # flag for %b as well.
3659 2000-08-27  H.J. Lu  <hjl@gnu.org>
3661         * posix/Makefile (otherlibs): Add for building with static-nss
3662         for "make check".
3664 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3666         * libio/stdio.h: Add fmemopen prototype.
3668 2000-08-25  Andreas Jaeger  <aj@suse.de>
3670         * libio/Makefile (routines): Add fmemopen.
3671         (tests): Add test-fmemopen.
3672         * libio/Versions: Add fmemopen with version GLIBC_2.2.
3673         * libio/test-fmemopen.c: New file.
3674         * libio/fmemopen.c: New file.
3675         Patches by Hanno Mueller <kontakt@hanno.de>.
3677 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3679         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
3680         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
3682         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
3683         to avoid crashing statically linked applications.
3685 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3687         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
3688         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
3690         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
3691         If the result is fits in the buffer, copy only as many bytes as needed.
3693         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
3694         buffer after copying numbuf into it.
3695         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
3697 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3699         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
3700         the result.  When string_len < len, don't clear the rest of the buffer.
3702 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3704         Support for new LC_COLLATE format.
3705         * locale/coll-lookup.h: New file.
3706         * locale/weightwc.h (findidx): When size == 0, call
3707         collidx_table_lookup.
3708         * wcsmbs/wcscoll.c: Include coll-lookup.h.
3709         * wcsmbs/wcsxfrm.c: Likewise.
3710         * posix/fnmatch.c: Likewise.
3711         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
3712         collseq_table_lookup.
3713         * locale/programs/3level.h: New file.
3714         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
3715         by including "3level.h".
3716         * locale/programs/ld-collate.c (wchead_table, collidx_table,
3717         collseq_table): New types, defined by including "3level.h".
3718         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
3719         (encoding_mask, encoding_byte): Remove.
3720         (utf8_encode): Use simple shifts instead.
3721         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
3722         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
3723         (collate_output): New local variable tablewc_3level. When
3724         !oldstyle_tables, set table_size to 0 and names to NULL and fill
3725         tablewc_3level instead of tablewc. Change format of TABLEWC and
3726         COLLSEQWC entries written to the file.
3727         * locale/C-collate.c (collseqwc): Change format.
3728         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
3729         of COLLSEQWC.
3730         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
3732 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3734         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
3735         (locale_ctype_t): New charnames_idx field.
3736         (ctype_startup): Initialize charnames_idx field.
3737         (find_idx): Speed up dramatically by using charnames_idx inverse table.
3739 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3741         * locale/C-ctype.c: Switch to new locale format.
3742         (_nl_C_LC_CTYPE_names): Remove array.
3743         (STRUCT_CTYPE_CLASS): New macro.
3744         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
3745         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
3746         New three-level tables.
3747         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
3748         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
3749         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
3750         12 class tables and 2 map tables at the end.
3751         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
3752         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
3753         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
3754         New declarations.
3755         (b): Remove trailing semicolon.
3756         (__ctype_names, __ctype_width): Don't initialize.
3757         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
3759 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3761         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
3762         is guaranteed to be allocated with the same malloc() and may be
3763         passed to free().
3764         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
3765         been set to empty by an earlier open_path call, don't pass it again.
3767 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3769         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
3770         we are not optimizing.
3772         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
3773         inclusion.
3775         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
3776         really match EOF.
3777         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3779 2000-08-28  Andreas Jaeger  <aj@suse.de>
3781         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
3783 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
3785         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
3786         getpeername.  Use ISO C style function definition.
3787         (getpeername): Provide weak alias.
3788         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
3789         setrlimit.  Use ISO C style function definition.
3790         (setrlimit): Provide weak alias.
3792 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3794         * shlib-versions: Add a rule for S/390 to the libm version list.
3795         * sysdeps/s390/Versions: New file.
3796         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
3797         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
3798         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3799         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
3800         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
3801         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
3802         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
3803         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
3804         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
3805         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
3806         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
3807         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
3808         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
3809         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
3810         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
3811         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
3812         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
3813         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
3815 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3817         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
3818         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
3820         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
3821         * elf/dl-close.c (_dl_close): Print debug message if object is not
3822         unloaded.
3823         * elf/dl-open.c (dl_open_worked): Print message about opencount before
3824         returning to caller.
3826         * po/zh.po: Renamed to...
3827         * po/zh_TW.po: ...this.
3829 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
3831         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
3833         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
3834         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
3835         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
3836         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
3838 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
3840         * locale/programs/ld-collate.c (insert_weights): Also update
3841         backpointer of next element.
3842         (collate_read): Allow definition of new collation symbols in stage 2.
3843         Symbol after reorder-after can be UCS4 value.
3844         Allow reordering of collation symbols and elements.
3845         Do not only move reorder entry in new position.  Instead call
3846         insert_weight to do this and read the weights.
3848         * locale/findlocale.c (free_mem): Add cast to avoid warning.
3850         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
3851         to determine invalid locale name.
3852         * locale/findlocale.c (_nl_find_locale): Likewise.
3854         * posix/annexc.c: Correct test for unavailable feature.
3856         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
3857         __inline.
3859 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
3861         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
3862         syscall.
3864         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
3865         (sysdep_routines): Add oldgetrlimit64.
3867         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
3868         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
3869         (tests): Add unload, reldep, reldep2, and reldep3.
3870         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
3871         and reldepmod4.
3872         Add rules to build and run unload, reldep, reldep2, and reldep3.
3873         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
3874         Don't create relocation dependency if it is nonzero.
3875         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
3876         can never happen here.
3877         (_dl_lookup_versioned_symbol): Add new parameter explicit.
3878         Don't create relocation dependency if it is nonzero.
3879         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
3880         stuff.  This can never happen here.
3881         * sysdeps/generic/ldsodefs.h: Change prototypes.
3882         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
3883         _dl_lookup_up and _dl_lookup_versioned_symbol.
3884         (RESOLV): Likewise.
3885         * elf/dl-runtime.c (fixup): Likewise.
3886         (profile_fixup): Likewise.
3887         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
3888         _dl_lookup_symbol.
3889         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
3890         * elf/rtld.c (dl_main): Likewise.
3891         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
3892         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
3893         and pass down the caller map.
3894         (_dl_vsym): Likewise.
3895         * elf/reldep.c: New file.
3896         * elf/reldep2.c: New file.
3897         * elf/reldep3.c: New file.
3898         * elf/reldepmod1.c: New file.
3899         * elf/reldepmod2.c: New file.
3900         * elf/reldepmod3.c: New file.
3901         * elf/reldepmod4.c: New file.
3902         * elf/unload.c: New file.
3903         * elf/unloadmod.c: New file.
3905         * elf/do-lookup.h: Remove unused undef_name parameter.
3906         * elf/dl-lookup.c: Adjust callers.
3908 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
3910         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
3911         irreversible in recursive call of conversion function to signal that
3912         no error handling is wanted.
3913         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
3914         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
3915         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
3916         recursive error handling call, otherwise to &lirreversible.  Use it
3917         for calls to conversion functions.
3918         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
3919         transliterating.
3920         (ucs4_internal_loop_unaligned): Likewise.
3921         (ucs4le_internal_loop): Likewise.
3922         (ucs4le_internal_loop_unaligned): Likewise.
3924 2000-08-25  Greg McGary  <greg@mcgary.org>
3926         * sysdeps/i386/memchr.S: Check high bound against chars
3927         actually scanned.
3928         * sysdeps/i386/memcmp.S: Likewise.
3929         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
3930         account for pointers that lie one beyond end-of-buffer.
3932 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
3934         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
3935         * elf/nodelete.c (fini_ran): New global variable.
3936         (do_test): Before every dlclose call clear fini_ran and test
3937         afterwards that it is not set by the destructors.
3938         * elf/nodelmod1.c: Add destructor which sets fini_ran.
3939         * elf/nodelmod2.c: Likewise.
3940         * elf/nodelmod4.c: Likewise.
3942 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
3944         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
3945         getrlimit to the list.
3947 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
3949         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
3950         long double format so use ldbl-96 instead of ldbl-128.
3952 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
3954         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
3955         even if bits 10 a 11 are non-zero.
3956         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
3958         * Makeconfig: Ensures the soversions.mk part of Makefile gets
3959         included before building gnu/lib-names.h
3960         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3962         * elf/dl-close.c (_dl_close): Don't run destructors of objects
3963         marked DF_1_NODELETE.
3965         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
3966         since we call sigaction in the child.
3968 2000-08-25  Andreas Jaeger  <aj@suse.de>
3970         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
3971         gconv-modules.
3973 2000-08-25  Andreas Jaeger  <aj@suse.de>
3975         * manual/arith.texi (Control Functions): Clarify possible
3976         arguments.  Closes PR libc/1856.
3978 2000-08-24  H.J. Lu  <hjl@gnu.org>
3980         * stdio-common/Makefile (tests): Don't do it for cross compiling.
3981         * malloc/Makefile (tests): Likewise.
3983 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
3985         * iconvdata/unicode.c (gconv_init): Correct test for direction.
3987 2000-08-24  Andreas Jaeger  <aj@suse.de>
3989         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
3990         only if LIBGD is available.
3992 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
3994         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
3995         problems with now restrict parameter types.
3996         (convaddr4to6): Likewise.
3998 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
4000         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
4001         * sysdeps/s390/fpu/feenablxcpt.c: New file.
4002         * sysdeps/s390/fpu/fegetexcept.c: New file.
4003         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
4004         FPC_VALID_MASK.
4006 2000-08-24  Andreas Jaeger  <aj@suse.de>
4008         * malloc/Makefile (extra-objs): Add memusagestat.o.
4009         (generated): Added memusage and memusagestat for make clean.
4011         * libio/tst_putwc.c (do_test): Delete temporary file.
4012         Move inclusion of test-skeleton to front to have prototype for
4013         add_temp_file.
4015         * posix/Makefile (generated): Add wordexp-tst.out.
4017 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
4019         * resolv/res_hconf.c (free_mem): Remove not needed if.
4021         * time/tzset.c (free_mem): New function.
4022         * string/strsignal.c (free_mem): New function.
4023         * inet/inet_ntoa.c (free_mem): New function.
4024         * sunrpc/clnt_perr.c (free_mem): New function.
4026 2000-08-24  Andreas Jaeger  <aj@suse.de>
4028         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
4029         * sysdeps/unix/sysv/syscalls.list: Likewise.
4031         * posix/unistd.h: Move internal prototypes from here ...
4032         * include/unistd.h: ... to here.
4034         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
4036 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
4038         * grp/initgroups.c (initgroups): Deallocate groups array.
4039         Reported by jani.raiha@sonera.com [PR libc/1868].
4041         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
4042         * sysdeps/alpha/Dist: Likewise.
4044 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
4046         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
4047         destructor).  Reported by Solar Designer <solar@false.com>.
4049         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
4050         avoid adding double slashes.
4052 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
4054         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
4055         out of the __REDIRECT macro.
4057 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
4059         * stdio-common/vfscanf.c: Add %F format support.
4061         * locale/programs/ld-ctype.c (ctype_output): Make sure
4062         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
4063         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
4064         (ctype_read): Enable returning of wide character strings for reading
4065         transliteration information.
4067 2000-08-23  Andreas Jaeger  <aj@suse.de>
4069         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
4070         Use static __inline instead of _EXTERN_INLINE.
4072         * misc/sys/select.h: Move prototypes of __select from here ...
4073         * include/sys/select.h: ... to here.
4075         * socket/sys/socket.h: Move prototypes of __send and __connect
4076         from here....
4077         * include/sys/socket.h: ... to here.
4079         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
4080         lr_error.
4082 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
4084         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
4085         __setrlimit as strong name. Takes only 2 arguments.
4087         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
4088         takes only 2 arguments.
4090 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4092         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
4094         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
4096 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
4098         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
4099         default_missing character being specified, pick the first
4100         representable.
4102 2000-08-23  Andreas Jaeger  <aj@suse.de>
4104         * include/wchar.h: Add some pure attributes.
4106         * time/time.h: Add const attribute for dysize.
4108         * include/stdlib.h: Add malloc attribute to __posix memalign.
4110         * stdlib/stdlib.h: Add some pure and malloc attributes.
4111         * wcsmbs/wchar.h: Likewise.
4113         * dirent/dirent.h: Add some pure attributes.
4114         * include/dirent.h: Likewise.
4116 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
4118         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
4119         on 64bit arches.
4121 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
4123         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
4124         missing buffer size checks.
4126 2000-08-23  Andreas Jaeger  <aj@suse.de>
4128         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
4129         strong name.
4130         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4132         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
4133         otherwise __LINUX_KERNEL_VERSION might not be defined.
4134         (MIN): Define if not already defined.
4136 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
4138         * stdio-common/vfprintf.c: Handle %F format.
4139         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
4140         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
4142         * stdio-common/tstdiomisc.c: Add test for %F printf format.
4144         * po/zh.po: New file.
4146         * iconvdata/sjis.c: In conversion from UCS4, correct test for
4147         enough room in target buffer.
4148         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
4149         * iconvdata/bug-iconv1.c: New file.
4150         * iconvdata/Makefile (tests): Add bug-iconv1.
4152         * locale/iso-4217.def: Update entry for Nicaragua.
4154 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
4156         * hurd/hurdsig.c: Rearrange headers a bit.
4157         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
4158         when cthreads is being used.
4160 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
4162         * elf/Makefile (distribute): Add dl-osinfo.h.
4163         * sysdeps/generic/dl-osinfo.h: New file.
4164         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
4165         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
4166         if defined.
4167         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
4168         only for !SHARED case.  Get the code from dl-osinfo.h.
4170         * stdlib/random_r.c: Cleanups.
4171         * stdlib/tst-random.c: New file.
4172         * stdlib/Makefile (tests): Add tst-random.
4173         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
4175 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4177         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
4178         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
4179         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
4180         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
4182 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
4184         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
4185         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
4186         (__syscall__sysctl): Add.
4188 2000-08-21  Andreas Jaeger  <aj@suse.de>
4190         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
4191         libc/1864).
4192         * stdlib/tst-strtoll.c: Likewise.
4194 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
4196         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
4197         correctly.
4198         (__initstate_r): Set errno on error.
4199         (__random_r): Likewise.
4200         (__setstate_r): Correct offset when computing
4201         new rptr and fptr.  Test for arg_state being NULL.
4202         Reported by Michael Fischer <fischer@cs.yale.edu>.
4204         * posix/regex.h: Add macro definitions to allow compiling outside
4205         glibc.
4207         * sysdeps/i370/Implies: Removed.
4208         * sysdeps/mvs/Implies: Removed.
4210         * catgets/catgets.c (catopen): Filter out env_var values with / if
4211         necessary.
4213         * locale/findlocale.c (_nl_find_locale): Move test for unusable
4214         locale name after all getenvs.
4216         * configure.in: Allow sed versions like 3.02.8.
4217         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
4219 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
4221         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
4223 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
4225         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
4226         of gethostbyname2_r call.
4228         * intl/locale.alias: Add aliases for Korean.
4230 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4232         * sysdeps/s390/__longjmp.c: Remove unused variable result.
4233         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
4234         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
4235         * sysdeps/s390/fpu/fegetenv.c: New file.
4236         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
4237         * sysdeps/s390/fpu/feholdexcpt.c: New file.
4238         * sysdeps/s390/fpu/fenv_libc.h: New file.
4239         * sysdeps/s390/fpu/fesetenv.c: New file.
4240         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
4241         * sysdeps/s390/fpu/feupdateenv.c: New file.
4242         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
4243         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
4244         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
4245         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
4246         * sysdeps/s390/fpu/ftestexcept.c: New file.
4247         * sysdeps/s390/fpu/libm-test-ulps: New file.
4248         * sysdeps/s390/gmp-mparam.h: Add end of comment.
4249         * sysdeps/s390/initfini.c: New file.
4250         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
4251         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
4252         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
4253         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
4254         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
4255         sys/procfs.h as proposed by Mark Kettenis.
4256         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
4258 2000-08-21  Andreas Jaeger  <aj@suse.de>
4260         * include/poll.h: Include include/sys/poll.h to get __poll
4261         declaration.
4263         * io/sys/poll.h: Move __poll declaration from here...
4264         * include/sys/poll.h: ...to here.
4266         * include/sys/socket.h (__getpeername): Add declaration.
4268         * include/wchar.h (__vswprintf): Add declaration.
4270         * include/stdio.h (__flockfile): Add declaration.
4271         (__funlockfile): Likewise.
4273 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
4275         * misc/sys/cdefs.h: Define __restrict_arr.
4276         * include/sys/time.h: Add restrict where required by AGd4.
4277         * inet/arpa/inet.h: Likewise.
4278         * io/sys/stat.h: Likewise.
4279         * io/sys/statvfs.h: Likewise.
4280         * misc/search.h: Likewise.
4281         * misc/sys/select.h: Likewise.
4282         * posix/glob.h: Likewise.
4283         * posix/regex.h: Likewise.
4284         * posix/spawn.h: Likewise.
4285         * posix/unistd.h: Likewise.
4286         * rt/aio.h: Likewise.
4287         * signal/signal.h: Likewise.
4288         * socket/sys/socket.h: Likewise.
4289         * stdlib/ucontext.h: Likewise.
4290         * streams/stropts.h: Likewise.
4291         * string/string.h: Likewise.
4292         * time/time.h: Likewise.
4293         * time/sys/time.h: Likewise.
4295         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
4296         and posix_spawnattr_setscheparam.
4298         * libio/stdio.h: Make cuserid prototype again available for all
4299         XPG versions.
4301         * argp/argp-help.c: Unify use of function aliases to make more compact
4302         PLT.
4303         * include/libintl.h: Likewise.
4304         * inet/rcmd.c: Likewise.
4305         * intl/dcigettext.c: Likewise.
4306         * libio/iofputws.c: Likewise.
4307         * libio/iofputws_u.c: Likewise.
4308         * libio/iogetwline.c: Likewise.
4309         * libio/swprintf.c: Likewise.
4310         * malloc/malloc.c: Likewise.
4311         * nss/digits_dots.c: Likewise.
4312         * posix/fnmatch.c: Likewise.
4313         * posix/spawn_faction_addclose.c: Likewise.
4314         * posix/spawn_faction_adddup2.c: Likewise.
4315         * posix/spawn_faction_addopen.c: Likewise.
4316         * posix/spawni.c: Likewise.
4317         * posix/wordexp.c: Likewise.
4318         * posix/spawni.c: Likewise.
4319         * resolv/res_hconf.c: Likewise.
4320         * resolv/res_init.c: Likewise.
4321         * shadow/lckpwdf.c: Likewise.
4322         * signal/sighold.c: Likewise.
4323         * signal/sigrelse.c: Likewise.
4324         * stdio-common/printf-parse.h: Likewise.
4325         * stdio-common/printf-prs.c: Likewise.
4326         * stdio-common/printf_fp.c: Likewise.
4327         * stdio-common/vfprintf.c: Likewise.
4328         * stdio-common/vfscanf.c: Likewise.
4329         * stdlib/rpmatch.c: Likewise.
4330         * sunrpc/create_xid.c: Likewise.
4331         * sunrpc/key_call.c: Likewise.
4332         * sysdeps/generic/setrlimit64.c: Likewise.
4333         * sysdeps/generic/utmp_file.c: Likewise.
4334         * sysdeps/generic/vlimit.c: Likewise.
4335         * sysdeps/posix/posix_fallocate.c: Likewise.
4336         * sysdeps/posix/posix_fallocate64.c: Likewise.
4337         * sysdeps/posix/sigpause.c: Likewise.
4338         * sysdeps/posix/sigset.c: Likewise.
4339         * sysdeps/unix/grantpt.c: Likewise.
4340         * sysdeps/unix/bsd/ualarm.c: Likewise.
4341         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4342         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
4343         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4344         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
4345         * time/strftime.c: Likewise.
4346         * wcsmbs/wcscoll.c: Likewise.
4347         * wcsmbs/wcsxfrm.c: Likewise.
4349         * time/tst-getdate.c (main): Make error messages more human readable.
4351         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
4352         postinc/predec instruction.
4353         (_FPU_SETCW): Likewise.
4354         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4356 2000-08-20  Andreas Jaeger  <aj@suse.de>
4358         * time/tst-getdate.c (main): Increase error in case of wrong
4359         conversion.
4360         Fix typo in test case.
4362 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
4364         * ctype/ctype.h (isblank): Make available if ISO C99.
4365         * wctype/wctype.h (iswblank): Make available if ISO C99.
4366         * math/math.h (signgam): Don't make available if ISO C99.
4367         * math/tgmath.h (tgamma): Renamed from gamma.
4368         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
4370         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
4371         Pretty printing.
4372         * intl/plural.y (new_exp): Take number of optional parameters in
4373         second parameter.  Test for correct number of parameters and free
4374         correctly in case of failure.  Adjust all callers.
4375         (yylex): Allow ';' as terminator character.
4377 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
4379         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
4380         walt_digits.
4382         * locale/findlocale.c (free_mem): Also free here->filename.
4384         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
4386         * math/test-fenv.c (feenv_tests): Clear all exceptions before
4387         first test.
4388         (feexcp_nomask_test): Correct printf args.
4389         (feexcp_mask_test): Likewise.
4391 2000-08-19  Andreas Jaeger  <aj@suse.de>
4393         * inet/tst-gethnm.c: Include string.h to provide prototype for
4394         strcmp.
4396         * malloc/mtrace.pl (usage): Inform about --help.
4398 2000-08-19  Wolfram Gloger  <wg@malloc.de>
4400         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
4401         size HEAP_MAX_SIZE.
4403 2000-08-19  Andreas Jaeger  <aj@suse.de>
4405         * shlib-versions: Remove libnss_db, libdb and libdb1.
4407 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
4409         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
4410         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
4411         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
4412         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
4413         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
4414         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
4415         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
4416         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
4417         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
4418         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
4419         getdents.
4420         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
4421         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
4423 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
4425         * include/glob.h (__glob64): Add prototype.
4426         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
4427         define glob and glob_in_dir.
4428         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
4429         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4430         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4431         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4432         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
4433         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
4434         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
4435         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
4437 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
4439         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
4441 2000-08-17  Andreas Jaeger  <aj@suse.de>
4443         * math/test-fenv.c (fe_single_test): New function.
4444         (fe_env_tests): Use fe_single_test.
4445         (feenable_test): New tests for feenable/fedisable and
4446         fegetexcpetions.
4447         (feexcp_mask_test): New function.
4448         (feexcp_nomask_test): New function.
4450 2000-08-19  Richard Henderson  <rth@cygnus.com>
4452         * sysdeps/alpha/fpu/fenv_libc.h: New file.
4453         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
4454         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
4455         * sysdeps/alpha/fpu/fesetround.c: Likewise.
4456         * sysdeps/alpha/fpu/fegetround.c: Likewise.
4457         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
4458         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
4459         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
4460         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
4461         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
4462         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
4463         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
4464         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
4465         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
4466         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
4467         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
4468         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
4470 2000-08-19  Andreas Jaeger  <aj@suse.de>
4472         * elf/constload1.c: Include <stdio.h> for puts prototype.
4474 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
4476         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
4477         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
4478         a dynamically loaded object remove old l_initfini list.
4479         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
4480         remove some dynamically allocated memory blocks in the dynamic
4481         loading data structures.
4482         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
4483         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
4484         Instead call _dl_check_map_versions only for the dependencies.
4485         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
4486         information of initial objects as not free-able.
4487         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
4488         element.
4490         * elf/filter.c: Call mtrace.
4491         * elf/restest1.c: Likewise.  Close the objects.
4492         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
4493         debug information.
4495         * elf/constload1.c: Add comment explaining not freed memory.
4497 2000-08-18  Andreas Jaeger  <aj@suse.de>
4499         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
4500         alignment for structs stat and stat64.
4501         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4503 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
4505         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
4506         handling.  Patch by Richard Henderson <rth@twiddle.net>.
4508         * nss/Versions: Remove libnss_db information.
4510 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
4512         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
4513         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
4514         * sysdeps/sparc/fpu/fegetexcept.c: New file.
4515         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
4517         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
4518         to match Solaris.
4520 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
4522         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
4523         (_FPU_SETCW): Likewise.
4524         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4526         * stdio-common/printf_fp.c: Fix chars_needed computation.
4527         Patch by Greg McGary <greg@mcgary.org>.
4529 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
4531         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
4532         _dl_loaded are NULL.
4534 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
4536         * manual/arith.texi (feholdexcept): Returns 0 on success.
4538 2000-08-17  Andreas Jaeger  <aj@suse.de>
4540         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
4541         (ifr_newname): New.
4542         Reported by Andi Kleen <ak@suse.de>.
4544 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
4546         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
4547         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
4548         * sysdeps/alpha/fpu/fegetexcept.c: New file.
4550 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
4552         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
4553         of buf->st_ino and kbuf->st_ino, not __st_ino.
4554         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
4555         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
4556         directive so that only linux/getdents.c is used, not some
4557         architecture specific one.
4559 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
4561         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
4562         enabled, not disabled exceptions.
4563         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4564         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
4566 2000-08-17  Greg McGary  <greg@mcgary.org>
4568         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
4569         from test program name when constructing suffix for $(LDLIBS-*).
4570         (bounded-thread-library): New variable.
4571         * crypt/Makefile
4572         [build-shared, build-static] (libcrypt-dep): Remove variable.
4573         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
4574         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
4575         * linuxthreads/Makefile (libpthread, librt): Remove variables.
4576         (librt-tests): Add variable.  (tests): Use it.
4577         [build-shared, build-static]
4578         ($(addprefix $(objpfx),$(tests)),
4579         $(addprefix $(objpfx),$(librt-tests))):
4580         Consolidate individual dependencies.
4581         [build-bounded]
4582         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
4583         Add dependencies.
4584         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
4585         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
4586         * misc/Makefile
4587         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
4588         * rt/Makefile
4589         [build-shared, build-static]
4590         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
4591         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
4593 2000-08-17  Greg McGary  <greg@mcgary.org>
4595         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
4596         * sysdeps/unix/make-syscalls.sh: Likewise.
4597         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4598         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4599         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4600         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4601         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4603 2000-08-17  Greg McGary  <greg@mcgary.org>
4605         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
4606         Wrap extern symbols in BP_SYM ().
4607         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4608         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4609         * sysdeps/i386/fpu/s_remquo.S: Likewise.
4610         * sysdeps/i386/fpu/s_remquof.S: Likewise.
4611         * sysdeps/i386/fpu/s_remquol.S: Likewise.
4612         * sysdeps/i386/fpu/s_sincos.S: Likewise.
4613         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4614         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4615         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4616         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4618 2000-08-16  Andreas Schwab  <schwab@suse.de>
4620         * sysdeps/m68k/fpu/fegetexcept.c: New file.
4621         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
4622         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
4624 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
4626         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
4627         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
4628         * elf/dl-support.c: Define _nl_nloaded.
4629         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
4630         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
4631         object to global list.
4632         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
4633         from _dl_loaded list.
4634         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4635         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
4636         number here.
4638         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
4639         unmask, exceptions.
4640         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
4641         exceptions.
4642         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
4644 2000-08-16  Andreas Jaeger  <aj@suse.de>
4646         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
4648 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
4650         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
4652 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
4654         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
4655         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
4656         (sysdep_routines): Add oldgetrlimit64.
4657         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
4658         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4660         * include/link.h: Undo last patches.  Hurd now has stat64.
4661         * elf/Makefile: Likewise.
4662         * elf/dl-load.c: Likewise.
4663         * elf/dl-misc.c: Likewise.
4664         * elf/dl-profile.c: Likewise.
4665         * sysdeps/generic/sysd-link.h: Removed.
4666         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
4668         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
4669         thread event callback function.
4670         (__aio_notify_only): Use function above.
4671         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
4673 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
4675         * sysdeps/mach/hurd/lseek64.c: New file.
4677 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
4679         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
4680         Remove typedefs.
4681         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
4682         typedefs.
4683         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
4684         typedefs.
4685         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
4687 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
4689         * sysdeps/mach/hurd/xstatconv.c: New file.
4690         * sysdeps/mach/hurd/fxstat64.c: New file.
4691         * sysdeps/mach/hurd/lxstat64.c: New file.
4692         * sysdeps/mach/hurd/xstat64.c: New file.
4693         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
4695 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
4697         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
4698         Initialize, needed for change in common symbol handling in newer
4699         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
4701 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
4703         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
4704         * elf/constload2.c: Add destructor to unload constload3.
4706         * include/link.h: Include sysd-link.h.
4707         * sysdeps/generic/sysd-link.h: New file.
4708         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
4709         * elf/Makefile (distribute): Add sysd-link.h.
4710         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
4711         types and functions directly.
4712         * elf/dl-misc.c: Likewise.
4713         * elf/dl-profile.c: Likewise.
4715         * elf/loadfail.c (main): Close all successfully loaded objects.
4717         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
4718         free wd.
4719         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
4720         there is already one.
4722         * elf/dl-close.c: Pretty print.
4724 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
4726         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
4727         global (with file scope).  Add __libc_subfreeres function to free the
4728         string.
4729         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
4730         in ttyname function.
4732         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
4734         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
4736         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
4737         mapping them to /x5c and /x7e respectively.
4739         * locale/programs/ld-ctype.c: Add support for more definitions after
4740         copy statement.
4742 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
4744         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
4745         * sysdeps/unix/sysv/linux/kernel-features.h
4746         (__ASSUME_GETDENTS64_SYSCALL): Define.
4747         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
4748         syscall if available to get d_type fields.
4749         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
4750         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
4751         __lxstat64): Export at GLIBC_2.2.
4752         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
4753         Likewise.
4754         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
4755         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
4756         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
4757         getdirentries64, versionsort64): Remove.
4758         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
4759         getdirentries64, versionsort64): Remove.
4761 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
4763         * posix/Makefile: Remove rules to generate glob package.
4765         * posix/Makefile (tests): Add tst-regexloc.
4766         (tst-regexloc-ENV): Add LOCPATH.
4767         * posix/tst-regexloc.c: New file.
4769 2000-08-12  Andreas Jaeger  <aj@suse.de>
4771         * include/features.h (__STDC_ISO_10646__): Define.
4772         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
4774 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
4776         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
4778         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
4779         for revision 6 and up).
4781         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
4782         including <time.h>.
4783         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
4784         to get definitions of just these types.
4786         * signal/signal.h: Define thread signal handling functions also for
4787         POSIX95.
4789         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
4790         POSIX95.
4791         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
4792         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
4793         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
4794         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
4796         * sysvipc/sys/shm.h: Define pid_t for XPG.
4798         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
4799         they are not anymore required here.
4801         * wcsmbs/wchar.h: Make the various wide char string and stream
4802         functions available for the respective XPG versions.
4804         * nss/Makefile: Remove rules to build and distribute nss_db.
4806         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
4807         * sysdeps/generic/scandir64.c: Likewise.
4808         * sysdeps/generic/versionsort64.c: Likewise.
4810 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
4811             Benjamin Koznik  <bkoz@redhat.com>
4813         * libio/fileops.c: Merge with libstdc++-v3.
4814         * libio/genops.c: Likewise.
4815         * libio/iofclose.c: Likewise.
4816         * libio/iofopen.c: Likewise.
4817         * libio/iofwide.c: Likewise.
4818         * libio/libio.h: Likewise.
4819         * libio/libioP.h: Likewise.
4820         * libio/stdfiles.c: Likewise.
4821         * libio/stdio.c: Likewise.
4822         * libio/wfileops.c: Likewise.
4823         * libio/wgenops.c: Likewise.
4825         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
4827 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
4829         * locale/programs/localedef.c: Implement --prefix option to allow
4830         writing in standard places of alternative install directories.
4832         * posix/regex.c (compile_range): Implement collation sequence
4833         handling for glibc.  Use simple character ordering otherwise and
4834         not strcoll.
4836 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
4838         * sysdeps/generic/scandir64.c: Include <dirent.h>.
4840 2000-08-12  Andreas Jaeger  <aj@suse.de>
4842         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
4843         __USE_FILE_OFFSET64 correctly for locking.
4844         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4846 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
4848         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4849         Define for 2.4.1 on sparc as well.
4850         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
4851         for F_GETLK64, F_SETLK64, and F_SETLKW64.
4852         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
4853         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
4855 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
4857         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
4858         defined.
4860 2000-08-12  Andreas Jaeger  <aj@suse.de>
4862         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
4863         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
4865         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
4866         mips2 for assembler.
4868         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
4869         if fnctl64 is not available for F_*LK*64.
4871         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
4873 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
4875         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4876         Define for 2.4.1 on x86.
4877         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
4878         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
4879         for F_GETLK64, F_SETLK64, and F_SETLKW64.
4881         * dirent/dirent.h: Define DT_WHT.
4883         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
4884         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
4885         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
4886         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
4887         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
4888         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
4890 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
4892         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
4893         lookup, pass pointer to array with NULL pointer [PR libc/1858].
4894         * inet/Makefile (tests): Add tst-gethnm.
4895         * inet/tst-gethnm.c: New file.
4897         * rt/aio_cancel.c: If canceling a specific request which is running
4898         *really* do nothing.
4899         * rt/aio_misc.h: Add `done' to states of a request.
4900         * rt/aio_misc.c: Add several tests for the correct state.
4901         Simplify request table memory handling.
4903 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
4905         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
4906         * dirent/scandir64.c: Move...
4907         * sysdeps/generic/scandir64.c: ...here.
4908         * dirent/alphasort64.c: Move...
4909         * sysdeps/generic/alphasort64.c: ...here.
4910         * dirent/versionsort64.c: Move...
4911         * sysdeps/generic/versionsort64.c: ...here.
4912         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
4913         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
4914         Export symbols at GLIBC_2.2.
4915         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
4916         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
4917         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
4918         __versionsort64): Add prototypes.
4919         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
4920         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
4921         unused prototype.
4922         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
4923         and GLIBC_2.2.
4924         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
4925         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
4926         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
4927         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
4928         __u_quad_t.
4929         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
4930         Adjust for kernel-2.4.0-test6 layout.
4931         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
4932         GLIBC_2.1 and GLIBC_2.2.
4933         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
4934         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
4935         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
4936         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
4937         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
4938         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
4939         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
4940         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
4941         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
4942         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
4943         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
4944         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
4945         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
4946         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
4947         __u_quad_t.
4948         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
4949         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
4950         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
4951         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
4952         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
4953         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
4954         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
4955         __u_quad_t.
4956         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
4957         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
4958         Define.
4959         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
4960         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
4961         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
4962         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
4963         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
4964         Define.
4965         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
4966         alpha/readdir.c.
4967         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
4968         alpha/readdir_r.c
4969         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
4970         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
4971         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
4972         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
4973         st_ino from __st_ino.
4974         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
4975         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
4976         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
4977         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
4978         set __st_ino in addition to st_ino.
4979         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
4980         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
4981         __old_getdents64 as well.
4982         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
4983         getdirentries64 and old_getdirentries64 as well.
4984         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
4985         __GETDENTS): Define.
4986         (GETDENTS64): Remove.
4987         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
4988         Define.
4989         (GETDENTS64): Remove.
4990         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
4991         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
4992         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
4993         as well.
4994         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
4995         __old_readdir64_r as well.
4996         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4997         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
4999 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
5001         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
5002         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
5003         define of the kernel.
5004         Add missing __SEG_PSTKOVF definition.
5005         Adjust the padding of struct siginfo and struct sigevent to
5006         match the fact that sigval_t is 64 bit.
5008 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
5010         * timezone/zic.c: Update from tzcode2000f.
5011         * timezone/australasia: Update from tzdata2000f.
5012         * timezone/europe: Likewise.
5013         * timezone/southamerica: Likewise.
5014         * timezone/yearistype: Likewise.
5016 2000-08-10  Andreas Jaeger  <aj@suse.de>
5018         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
5019         stat with current MIPS kernel.
5021 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
5023         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
5024         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
5025         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
5026         Remove the junk that's only relevant in the Linux kernel itself.
5027         Add a warning saying that this file is now obsolete, and include
5028         <sys/procfs.h>.
5029         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
5030         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
5031         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
5032         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
5033         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
5034         and add the notice that the file is primarily there for GDB.
5035         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
5037 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
5039         * time/tzfile.c (__tzfile_compute): __tzstring zones
5040         from zone_names.
5042 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
5044         * resolv/resolv.h (__res_state): Surround prototype with
5045         __BEGIN_DECLS/__END_DECLS.
5046         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
5048 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
5050         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
5051         Make independant of asm/resource.h from the Linux kernel.
5053 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
5055         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
5057 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
5059         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
5060         * locale/Makefile (locale-CPPFLAGS): Likewise.
5062 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
5064         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
5065         for AMD processors.
5067 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
5069         * misc/Versions (mincore): Export at GLIBC_2.2.
5071 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
5073         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
5075 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
5077         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
5078         socketpair.  Made socketpair a weak alias.
5079         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
5080         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
5081         conforming, but fall back on the old protocol if the socket server
5082         doesn't support it.
5083         * include/sys/socket.h: Add prototype for __socketpair.
5085 2000-08-09  Andreas Schwab  <schwab@suse.de>
5087         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
5088         long long modifier is seen.
5090         * elf/nodelete.c (do_test): Remove reference to undefined member
5091         sa_restorer.
5092         * rt/tst-aio4.c (do_test): Likewise.
5094         * configure.in: Add `-lm' when checking for libgd.
5095         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
5096         linking.
5098 2000-08-09  Andreas Jaeger  <aj@suse.de>
5100         * configure.in: Change required make versions.
5102         * manual/install.texi (Tools for Compilation): Document required
5103         make version.
5104         (Supported Configurations): Update list of supported
5105         configurations.
5107 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
5109         * locale/linereader.c (get_string): Don't print an error is a string
5110         contains an unknown character.
5112 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
5114         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
5115         (new_symbol): Take new parameters with name of the symbol.
5116         Adjust callers.
5117         (handle_ellipsis): Don't only allow character symbols.
5118         (collate_read): Allow string of collating elements contain invalid
5119         characters; ignore entry in this case.
5120         Handle ellipsis of collating symbols before first order_start.
5121         Allow ellipsis in state 0.
5123 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
5125         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
5126         error message.
5127         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
5129 2000-08-04  Greg McGary  <greg@mcgary.org>
5131         * posix/regex.c (SET_HIGH_BOUND): New macro.
5132         (MOVE_BUFFER_POINTER): Use it.
5133         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
5134         (EXTEND_BUFFER): Use it.
5136 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
5138         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
5139         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
5140         _wide_data but from _IO_FILE directly.
5141         * libio/iofclose.c: Likewise.
5142         * libio/wfileops.c: Likewise.
5144         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
5145         * libio/libioP.h: Change prototypes.
5147 2000-08-03  Greg McGary  <greg@mcgary.org>
5149         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
5150         frame pointer early so that we save caller's frame pointer.
5151         * sysdeps/i386/elf/setjmp.S: Likewise.
5153         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
5154         * io/test-utime.c: Test passing NULL as utimbuf* arg.
5156         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
5157         (MOVE_BUFFER_POINTER): Handle high_bound properly.
5158         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
5160 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
5162         * iconvdata/big5.c: Updated.
5163         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
5165 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
5167         * Makeconfig (all-subdirs): Add conform.
5168         * conform/Makefile: Include ../Rules.
5170         * Makefile (README): Add rules to generate here as well.
5172 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
5174         * version.h (VERSION): Bump to 2.1.92.
5176         * sysdeps/ia64/Dist: Add _mcount.S.
5178         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
5180         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
5182         * elf/Makefile (distribute): Add missing modules.
5184         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
5186         * posix/regex.c (compile_range): Translate range start and end
5187         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
5189         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
5190         asm/resource.h.
5192         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
5194 2000-08-02  Andreas Jaeger  <aj@suse.de>
5196         * elf/elf.h (EM_S390): Added.
5197         (R_390_*): New relocs for S390.
5199         * sysdeps/unix/sysv/linux/s390/Dist: New file.
5200         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
5201         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
5202         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
5203         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
5204         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
5205         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
5206         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
5207         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
5208         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
5209         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
5210         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
5211         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
5212         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
5213         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
5214         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
5215         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
5216         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
5217         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
5218         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
5219         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
5220         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
5221         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
5222         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
5223         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
5224         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
5225         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
5226         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
5227         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
5228         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
5229         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
5230         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
5231         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
5232         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
5233         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
5234         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
5235         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
5236         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
5237         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
5238         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
5239         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
5240         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
5241         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
5242         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
5243         * sysdeps/s390/sysdep.h: New file.
5244         * sysdeps/s390/sys/ucontext.h: New file.
5245         * sysdeps/s390/sub_n.S: New file.
5246         * sysdeps/s390/strncpy.S: New file.
5247         * sysdeps/s390/strcpy.S: New file.
5248         * sysdeps/s390/stackinfo.h: New file.
5249         * sysdeps/s390/setjmp.S: New file.
5250         * sysdeps/s390/s390-mcount.S: New file.
5251         * sysdeps/s390/mul_1.S: New file.
5252         * sysdeps/s390/memusage.h: New file.
5253         * sysdeps/s390/memset.S: New file.
5254         * sysdeps/s390/memcpy.S: New file.
5255         * sysdeps/s390/memchr.S: New file.
5256         * sysdeps/s390/machine-gmon.h: New file.
5257         * sysdeps/s390/ldbl2mpn.c: New file.
5258         * sysdeps/s390/gmp-mparam.h: New file.
5259         * sysdeps/s390/fpu/fpu_control.h: New file.
5260         * sysdeps/s390/fpu/fesetround.c: New file.
5261         * sysdeps/s390/fpu/fegetround.c: New file.
5262         * sysdeps/s390/fpu/fclrexcpt.c: New file.
5263         * sysdeps/s390/fpu/bits/fenv.h: New file.
5264         * sysdeps/s390/ffs.c: New file.
5265         * sysdeps/s390/elf/start.S: New file.
5266         * sysdeps/s390/elf/setjmp.S: New file.
5267         * sysdeps/s390/elf/bsd-setjmp.S: New file.
5268         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
5269         * sysdeps/s390/dl-machine.h: New file.
5270         * sysdeps/s390/bzero.S: New file.
5271         * sysdeps/s390/bsd-setjmp.S: New file.
5272         * sysdeps/s390/bsd-_setjmp.S: New file.
5273         * sysdeps/s390/bits/string.h: New file.
5274         * sysdeps/s390/bits/setjmp.h: New file.
5275         * sysdeps/s390/bits/huge_val.h: New file.
5276         * sysdeps/s390/bits/endian.h: New file.
5277         * sysdeps/s390/bits/byteswap.h: New file.
5278         * sysdeps/s390/bcopy.S: New file.
5279         * sysdeps/s390/backtrace.c: New file.
5280         * sysdeps/s390/atomicity.h: New file.
5281         * sysdeps/s390/asm-syntax.h: New file.
5282         * sysdeps/s390/addmul_1.S: New file.
5283         * sysdeps/s390/add_n.S: New file.
5284         * sysdeps/s390/abort-instr.h: New file.
5285         * sysdeps/s390/__longjmp.c: New file.
5286         * sysdeps/s390/Makefile: New file.
5287         * sysdeps/s390/Implies: New file.
5288         * sysdeps/s390/Dist: New file.
5289         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5291 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
5293         Remove incompatible IPv6 extension of RPC.
5294         * sunrpc/Makefile: Undo changes.
5295         * sunrpc/rpc_main.c: Likewise.
5296         * sunrpc/rpc/clnt.h: Likewise.
5297         * sunrpc/rpc/svc.h: Likewise.
5298         * sunrpc/bindrsvprt6.c: Removed.
5299         * sunrpc/clnt_tcp6.c: Removed.
5300         * sunrpc/clnt_udp6.c: Removed.
5301         * sunrpc/svc_tcp6.c: Removed.
5302         * sunrpc/svc_udp6.c: Removed.
5304         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
5305         dgettext, and dcgettetxt.
5307         * intl/locale.alias: Update japanese aliases.
5309         * sysdeps/ia64/bits/byteswap.h: New file.
5310         Patch by Dan Pop <Dan.Pop@cern.ch>.
5312         * misc/sys/cdefs.h: Define __attribute_format_arg__.
5313         * intl/libintl.h: Use it here instead of using __attribute__ directly.
5315 2000-07-13  H.J. Lu  <hjl@gnu.org>
5317         * posix/regex.c (re_max_failures): Set to 4000.
5319 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
5321         * gnulib/Makefile (tests): Add tst-gcc.
5322         * gnulib/tst-gcc.c: New file.
5324         * assert/Makefile (routines): Add __assert.
5325         * assert/Versions: Export __assert for glibc 2.2.
5326         * assert/__assert.c: New file.
5327         * assert/assert.h: Declare __assert.
5329 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
5331         * locale/localeinfo.h (_ISCTYPE): New macro.
5332         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
5333         LC_CTYPE locale format.
5334         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
5335         (ctype_output): Output class_b[nr] right before class_3level[nr].
5336         (allocate_arrays): Fill class_b, similarly to class_3level.
5338 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
5339             Joseph S. Myers  <jsm28@cam.ac.uk>
5341         * math/tgmath.h: Make standard compliant.  Don't ask how.
5343 2000-07-04  H.J. Lu  <hjl@gnu.org>
5345         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
5346         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
5347         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
5349 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5351         * include/features.h (_XOPEN_SOURCE): Update the explanation.
5352         (__USE_LARGEFILE): Add an explanation.
5353         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
5354         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
5356 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
5358         * libio/Makefile: Enable exception handling for genops, wgenops,
5359         fileops, and wfileops.
5361 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
5363         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
5364         acount that elf/rtld's main program might remove some varibales
5365         from the environment if we're trying to be secure.  Move the Hurd
5366         startup data if necessary, or, if we there is no startup data,
5367         make sure the magical convention that ARGV[0] is stored just after
5368         the environment list.
5370 2000-08-01  Philip Blundell  <philb@gnu.org>
5372         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
5373         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
5374         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
5375         oldsetrlimit for GLIBC_2.0.
5377 2000-08-01  Andreas Jaeger  <aj@suse.de>
5379         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
5380         (LINE_PARSER): Allow any number of spaces between ip address and
5381         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
5383         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
5385         * include/netdb.h: Remove getipnodebyaddr and friends, leave
5386         constants in.
5388         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
5389         _nss_nisplus_getipnodebyname_r.
5391         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
5392         now, getipnodebyname is deprecated.
5393         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
5394         Likewise.
5396         * inet/Makefile (routines): Don't build getipnodebyaddr and
5397         friends.
5399         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
5401         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
5403         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
5405         * wctype/Makefile (distribute): Add wchar-lookup.h.
5407         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
5409         * iconvdata/Makefile (distribute): Add isiri-3342.h.
5411 2000-08-01  Andreas Schwab  <schwab@suse.de>
5413         * Make-dist (dist): Resolve `..' in file names.
5415 2000-08-01  Andreas Jaeger  <aj@suse.de>
5417         * stdio-common/Makefile (distribute): Remove removed files, add
5418         new files.
5420         * Makefile (distribute): Remove include/db_185.h and db.h.
5422         * include/db_185.h: Remove, it's not needed anymore.
5423         * include/db.h: Likewise.
5425 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
5427         * inet/Makefile (tests): Remove tst-ipnode.
5428         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
5429         now.
5431 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
5433         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
5434         endp statements have already been added.
5436 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
5438         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
5439         <sysdeps/ia64/sysdep.h>.
5441         * sysdeps/ia64/_mcount.S: New file.
5443         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
5444         __gmon_start__.  Fix up extraneous whitespace.
5446 2000-01-12  H.J. Lu  <hjl@gnu.org>
5448         * sysdeps/ia64/elf/initfini.c: New file.
5450 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
5452         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
5453         dependency between branch and ar.pfs write.
5455 2000-07-31  H.J. Lu  <hjl@gnu.org>
5457         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
5458         handle the wchar_t array.
5460 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
5462         * iconvdata/gb18030.c: Don't map to and from positions in ISO
5463         10646 which are not yet assigned.
5464         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
5466 2000-07-31  Andreas Jaeger  <aj@suse.de>
5468         * inet/Versions: Remove getipnodebyaddr and friends from
5469         GLIBC_2.2.
5471         * resolv/netdb.h: Remove getipnodebyaddr and friends.
5473 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5475         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
5476         ch >= 0x81 && ch2 < 0x40 as invalid.
5478 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5480         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
5481         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
5483 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5485         * iconvdata/johab.c (BODY for TO_LOOP): After calling
5486         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
5488 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5490         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
5491         0xb8.
5492         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
5494 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5496         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
5498 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5500         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
5501         (from_ucs4): Change values of U+00A4 and U+00ED.
5502         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
5504 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5506         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
5507         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
5509 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5511         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
5512         * iconvdata/isiri-3342.h: New file.
5513         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
5514         treat 0x80 as a gap.
5516 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
5518         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
5519         (utf8_encode): Use simple shifts instead.  Fix return value.
5521 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
5523         * timezone/private.h: Update from tzcode2000e.
5524         * timezone/asia: Update from tzdata2000e.
5525         * timezone/australasia: Likewise.
5526         * timezone/europe: Likewise.
5527         * timezone/northamerica: Likewise.
5528         * timezone/zone-tab: Likewise.
5530 2000-07-30  Ralf Baechle  <ralf@gnu.org>
5532         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
5533         the order of struct sigaltstack members is different.
5535 2000-07-26  Philip Blundell  <philb@gnu.org>
5537         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
5539 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
5541         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
5542         * locale/programs/ld-ctype.c: Adjust for this.
5544         * locale/programs/ld-collate.c: Add more alignment checks.
5545         * locale/string/strcoll.c: Likewise.
5547 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
5549         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
5550         outside USE_IN_LIBIO block.
5552 2000-07-26  Philip Blundell  <philb@gnu.org>
5554         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
5555         (elf_machine_rel): Use it for out-of-range PC24 relocs.
5557 2000-07-28  Philip Blundell  <philb@gnu.org>
5559         * math/test-fpucw.c: Ignore reserved bits in control word.
5561 2000-07-28  Philip Blundell  <philb@gnu.org>
5563         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
5564         (ret): Redefine to PSEUDO_RET.
5565         (PSEUDO): Remove jump to syscall_error.
5567 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
5569         * resolv/README: Add some information about using the resolver in
5570         multi-threaded code and with C++.  Spelling fixes.
5572 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
5574         * resolv/resolv.h (struct __sockaddr_in): Remove.
5575         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
5577 2000-07-29  Greg McGary  <greg@mcgary.org>
5579         * Rules (test-bp-inputs, make-test-out): New variables.
5580         ($(objpfx)%-bp.out): New rule.
5581         ($(objpfx)%.out): Rewrite in terms of new variables.
5583         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
5584         internal function that uses vtable.
5585         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5586         * libio/vswprintf.c (_IO_vswprintf): Likewise.
5588         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
5589         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
5590         (chunk_align): Likewise.
5592         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
5593         in a way that conforms to decl, and avoids spurious bounds violation.
5595         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
5596         * sysdeps/generic/frame.h: Likewise.
5597         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
5598         around return value.
5599         (__backtrace): Qualify frame-pointer chain and return address
5600         pointers as __unbounded.  Wrap bounds around variable `current'.
5601         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
5602         around return value.
5603         (catch_segfault): Qualify frame-pointer chain and return address
5604         pointers as __unbounded.  Wrap bounds around variable `current'.
5605         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
5606         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
5607         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
5608         __unbounded.
5609         (__backtrace): Qualify frame-pointer chain and return address
5610         pointers as __unbounded.  Wrap bounds around variable `current'.
5612         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
5613         * sysdeps/i386/mul_1.S: Likewise.
5614         * sysdeps/i386/submul_1.S: Likewise.
5615         * sysdeps/i386/i586/addmul_1.S: Likewise.
5616         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
5617         * sysdeps/i386/i586/submul_1.S: Likewise.
5619 2000-07-27  Andreas Jaeger  <aj@suse.de>
5621         * libio/Depend: New file, libio needs localedata for tests.
5622         * posix/Depend: Likewise.
5624 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
5626         * stdio-common/_i18n_itoa.c: Removed.
5627         * stdio-common/_i18n_itoa.h: Removed.
5628         * stdio-common/_i18n_itowa.c: Removed.
5629         * stdio-common/_i18n_itowa.h: Removed.
5630         * stdio-common/_i18n_number.h: New file.
5631         * stdio-common/Depend: New file.
5632         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
5633         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
5634         printing.  Change printing of numbers with locale specific digits to
5635         use new code in _i18n_number.h.
5636         * stdio-common/Makefile (routines): Remove _i18n_itoa and
5637         _i18n_itowa.
5639         * stdio-common/bug13.c: Improve messages.
5641         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
5642         (set_class_defaults): Always search also for Uxxxx names.
5643         Detect insufficient number of outdigits.
5645         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
5647 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
5649         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
5650         _NL_CTYPE_MAP_NAMES.
5651         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
5652         * wctype/wcfuncs.c (towlower, towupper): Use them.
5653         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
5654         * wctype/wctrans.c (wctrans): Likewise.
5655         * wctype/wctrans_l.c (__wctrans_l): Likewise.
5657 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
5659         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
5660         Use the optimized version of this function outside glibc as well.
5662 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
5664         * locale/indigits.h (indigit_value): Correct.
5665         * locale/indigitswc.h (indigitwc_value): Correct.
5666         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
5667         conversion, add GROUP checking for it, fix GROUP number
5668         conversion with strlen(thousands) > 1.
5669         Honour width correctly in the presence of floating
5670         decimal points and thousands separators.
5671         * stdio-common/tst-sscanf.c: New test.
5672         * stdio-common/Makefile: Add it to tests.
5673         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
5674         thousands separators and group argument is non-zero.
5676 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5678         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
5679         starts at GLIBC_2.2.
5681 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5683         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
5684         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
5685         _test_and_set.
5686         (headers): Add sys/tas.h.
5687         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
5688         GLIBC_2.2 from libc.
5689         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
5690         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
5691         _test_and_set.
5693 2000-07-28  Andreas Jaeger  <aj@suse.de>
5695         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
5697         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
5698         ($(objpfx)tst-dladdr.out): new.
5699         (tests): Add tst-dladdr.
5700         ($(objpfx)glrefmain): Use libdl.
5702         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
5703         <vs@caldera.de>.
5705 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
5707         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
5708         ftruncate(64) calls.
5710 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
5712         * intl/tst-translit.c: Include string.h to get prototype for
5713         strcmp().
5715 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
5717         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
5718         name and add weak alias for __fork.
5720         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
5721         & pwrite to use __libc_<name> as strong names instead of
5722         __syscall_<name>.
5724         * include/sched.h: Add clone2 prototype.
5726 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
5728         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
5729         procedure name twice.
5731 2000-07-27  Philip Blundell  <philb@gnu.org>
5733         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
5735 2000-07-27  Andreas Jaeger  <aj@suse.de>
5737         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
5738         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
5739         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
5740         Reported by Andi Kleen <ak@suse.de>.
5742         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
5743         (do_wait): Test requests with aio_return64.
5744         (do_test): Change callers of do_wait.
5746 2000-07-26  Andreas Jaeger  <aj@suse.de>
5748         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
5749         (do_wait): Test requests with aio_return.
5750         (do_test): Change callers of do_wait.
5752 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
5754         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
5755         from request list.  Don't do the list handling here, call
5756         __aio_remove_request.
5757         * rt/aio_misc.h: Add prototype for __aio_remove_request.
5758         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
5759         request might already be processed.  Don't do the list handling
5760         here, call __aio_remove_request.
5762         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
5763         LIO_DSYNC.
5765         * rt/aio_misc.c: Add comment explaining why writer memory barriers
5766         are missing.
5768 2000-07-27  Greg McGary  <greg@mcgary.org>
5770         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
5771         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
5772         in union init.  Pass zero for ignored semnum arg to semctl.
5773         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
5775 2000-07-26  Greg McGary  <greg@mcgary.org>
5777         * sysdeps/gnu/bits/msq.h: Qualify kernel's
5778         data structure pointers as __unbounded.
5779         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5780         * sysdeps/generic/bp-semctl.h: New file.
5781         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
5782         pointers as __unbounded.  Check bounds of syscall args.
5783         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5784         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
5785         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5786         * sysdeps/unix/sysv/linux/semop.c: Likewise.
5787         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
5788         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5789         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
5790         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
5791         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
5792         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
5793         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
5794         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
5795         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
5796         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
5797         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
5798         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
5800 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
5802         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
5803         by default.
5804         * locale/C-ctype.c: Likewise.
5805         * wcsmbs/wcsmbsload.c: Likewise.
5807 2000-07-26  Greg McGary  <greg@mcgary.org>
5809         * Makeconfig (+link-bounded, link-libc-bounded,
5810         link-extra-libs-bounded): New variables.
5811         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
5812         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
5813         * Rules (tests-bp.out): New variable.
5814         (tests): Conditionally add BP tests.
5815         (binaries-bounded): Add variable and associated rule.
5816         * csu/Makefile [build-bounded] (extra-objs, install-lib):
5817         Move conditional stuff after place where condition is defined.
5819         * malloc/malloc.c (bp-checks.h): Add #include.
5820         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
5821         (_bin_at): Add unbounded version of bin_at.
5822         (IAV, chunk_alloc): Use unbounded _bin_at.
5823         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
5824         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
5825         Wrap BOUNDED_N around return value.
5826         (chunk_realloc): Adjust oldsize once.
5828         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
5829         (__ubp_memchr): Add correct decl.
5830         (_CHECK_STRING): Use __ubp_memchr.
5831         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
5832         New alias for unbounded-pointer __memchr.
5833         * sysdeps/i386/memchr.S: Likewise.
5834         * sysdeps/ia64/memchr.S: Likewise.
5835         * sysdeps/m68k/memchr.S: Likewise.
5836         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5837         * sysdeps/sparc/sparc64/memchr.S: Likewise.
5838         * sysdeps/vax/memchr.s: Likewise.
5840         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
5841         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
5842         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
5843         * sysdeps/i386/i686/strtok.S: Likewise.
5844         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
5845         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
5847         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
5848         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
5850         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
5851         bounds of copy_result to mount_proc.
5853 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5855         * wctype/wctype.h (__wctrans_l): New declaration.
5856         * wctype/wctrans_l.c: New file.
5857         * wctype/Makefile (routines): Add wctrans_l.
5859 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
5861         * posix/fnmatch_loop.c: Fixes for use outside glibc.
5862         Patch by MacGyver <macgyver@tos.net>.
5864 2000-07-26  Andreas Jaeger  <aj@suse.de>
5866         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
5867         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
5868         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
5870         * rt/tst-aio.c (test_file): Fix typo.
5871         * rt/tst-aio64.c (test_file): Likewise.
5873         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
5874         * rt/Makefile: Add rules to build and run tst-aio3.
5876         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
5877         it's not needed and confuses only.
5879 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
5881         * resolv/res_init.c: Add support for nameserver communication with
5882         IPv6.
5883         * resolv/res_send.c: Likewise.
5884         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
5885         in nsaddrs field.
5886         Patch by <venaas@nvg.ntnu.no>.
5888 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5890         * locale/programs/ld-ctype.c (wctype_table_get): New function.
5891         (wcwidth_table_get): New function.
5892         (wcwidth_table_add): Call it.
5893         (wctrans_table_get): New function.
5894         (wctrans_table_add): Call it.
5896 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5898         * rt/lio_listio.c (lio_listio): Always disable individual
5899         notification.
5900         * rt/Makefile: Add rules to build and run tst-aio2.
5901         * rt/tst-aio2.c: New file.
5903         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
5904         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
5906 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
5908         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
5909         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
5910         leading and trailing spaces from host, user and domain name.
5912 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
5914         * csu/defs.awk: Add support for need_endp.
5916 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
5918         * resolv/resolv.h: Remove __P from res_send_qhook and
5919         res_send_rhook typedefs.
5921 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5923         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
5925 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5927         * iconv/gconv_builtin.h: Add WCHAR_T alias.
5929 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
5931         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
5932         calling thread, set the cancellation flag and return success
5933         instead of EINTR.
5935 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5937         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
5938         * libio/tst-widetext.c: New file.
5939         * libio/tst-widetext.input: New file.
5941         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
5943         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
5944         empty external buffer correctly.
5946 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5948         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
5949         __STRING(entry) and not #entry.
5950         (_RTLD_EPILOGUE): Likewise.
5951         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5953 2000-07-25  Andreas Jaeger  <aj@suse.de>
5955         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
5956         according to changes in test program, run also with static only
5957         builds.
5958         ($(objpfx)tst-printf.out): Likewise.
5960         * stdio-common/tst-unbputc.sh: Likewise.
5961         * stdio-common/tst-printf.sh: Likewise.
5963 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5965         * libio/wfileops.c (_IO_wdo_write): Correct return value.
5967         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
5968         loop.
5970         * libio/fileops.c: Pretty print.
5972 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
5974         * wctype/wchar-lookup.h: New file.
5975         * wctype/iswctype.c: Include "wchar-lookup.h".
5976         (__iswctype): Support alternate locale format with 3-level tables.
5977         * wctype/iswctype_l.c (__iswctype_l): Likewise.
5978         * wctype/towctrans.c (__towctrans): Likewise.
5979         * wctype/towctrans_l.c (__towctrans_l): Likewise.
5980         * wctype/wcfuncs.c: Include "wchar-lookup.h".
5981         (__ctype32_wctype, __ctype32_wctrans): Declare external.
5982         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
5983         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
5984         __iswxdigit, towlower, towupper): Support alternate locale format
5985         with 3-level tables.
5986         * wctype/wcextra.c (iswblank): Likewise.
5987         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
5988         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
5989         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
5990         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
5991         format with 3-level tables.
5992         * wctype/wcextra_l.c (__iswblank_l): Likewise.
5993         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
5994         format, return a 3-level table pointer.
5995         * wctype/wctype_l.c (__wctype_l): Likewise.
5996         * wctype/wctrans.c (wctrans): Likewise.
5997         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
5998         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
5999         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
6000         (iswctype): Remove macro definition.
6001         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
6002         (internal_wcwidth): Support alternate locale format with 3-level
6003         tables.
6004         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
6005         New nl_items.
6006         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
6007         Define them as being type "word".
6008         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
6009         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
6010         __ctype32_width): New exported variables.
6011         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
6012         alternate locale format. Don't initialize __ctype_names and
6013         __ctype_width in the alternate locale format.
6014         * locale/programs/localedef.h (oldstyle_tables): New declaration.
6015         * locale/programs/localedef.c (oldstyle_tables): New variable.
6016         (OPT_OLDSTYLE): New macro.
6017         (options): Add --old-style option.
6018         (parse_opt): Handle --old-style option.
6019         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
6020         map_offset, class_3level, map_3level, width_3level members.
6021         (ctype_output): Support for alternate locale format: Computation of
6022         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
6023         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
6024         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
6025         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
6026         now contain both class and map tables.
6027         (struct wctype_table): New type.
6028         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
6029         functions.
6030         (struct wcwidth_table): New type.
6031         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
6032         functions.
6033         (struct wctrans_table): New type.
6034         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
6035         functions.
6036         (allocate_arrays): Support for alternate locale format: Set
6037         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
6038         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
6039         to the first 256 characters. Compute ctype->map_3level. Set
6040         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
6041         instead of ctype->width.
6043 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
6045         * libio/iogetwline.c (_IO_getwline_info): Use wide character
6046         string functions.
6048 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
6050         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
6051         in wide characters, not bytes.
6052         * libio/tst_putwc.c (do_test): Add test for writing lots of data
6053         into file.
6055 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
6057         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
6058         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
6059         LC_MEASUREMENT, LC_IDENTIFICATION.
6061         * locale/xlocale.h (struct __locale_struct): Increase size of
6062         __locales array.
6063         * locale/duplocale.c (__duplocale): Copy newly added categories as
6064         well.
6065         * locale/freelocale.c (__freelocale): Free newly added categories.
6066         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
6067         If a base is given, use it, don't simply return it.
6069 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
6071         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
6072         variables, copied_key and copied_salt, instead of boolean variables.
6074 2000-07-24  Andreas Jaeger  <aj@suse.de>
6076         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
6077         check for offset.
6079         * grp/initgroups.c (initgroups_dyn_function): Renamed from
6080         initgroups_function, adopted prototype for change from 2000-07-23.
6081         (initgroups): Follow type change.
6083         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
6084         & PAGE_MASK case, reformat.
6086         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
6087         from stdin and setup environment.
6089 2000-07-24  Andreas Schwab  <schwab@suse.de>
6091         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
6093 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
6095         * string/endian.h: Explain the _*_ENDIAN constant values a bit
6096         more.  Patch by scarlet@mit.edu [PR libc/1799].
6098         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
6099         [PR libc/1792].
6101         * argp/argp-parse.c (parser_finalize): Reverse order in which
6102         parsers are run for ARGP_KEY_END.  [PR libc/1755].
6104         * grp/initgroups.c (initgroups): Don't limit the possible number
6105         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
6106         the setgroups call while the call fails and descrease the number
6107         of groups each round.
6108         The name of the initgroups function in the NSS modules changed.
6109         (compat_call): Adapt for dynamic resizing.
6110         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
6111         Implement dynamic resizing.
6112         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
6113         Likewise.
6114         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
6115         * hesiod/Versions: Change exported interface name.
6116         * nis/Versions: Change exported interface name.
6118 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
6120         * locale/iso-639.def: Some errors corrected.
6121         Patch by Keld Simonsen.
6123         * include/limits.h: Update non-gcc portion.
6124         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
6126 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
6128         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
6129         program's data space, reallocate only the space that was just
6130         deallocated to release its backing space.
6132 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
6134         * stdio-common/vfprintf.c (process_string_arg): For wide character
6135         version, handle precision also correctly.
6137         * nss/nss_files/files-hosts.c: Correct problem with three or more
6138         entries with the same name.
6140         * nss/nss_files/files-hosts.c: Implement multi handling.
6141         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
6143 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
6145         * nss/nss_files/files-parse.c: Don't pollute namespace by using
6146         strcasecmp.
6148         * grp/Makefile: Change Makefiles and tests to run only when necessary.
6149         * malloc/Makefile: Likewise.
6150         * malloc/tst-mtrace.sh: Likewise.
6151         * posix/Makefile: Likewise.
6152         * posix/globtest.sh: Likewise.
6153         * posix/wordexp-tst.sh: Likewise.
6154         * string/Makefile: Likewise.
6156 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
6158         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
6159         size instead of LC_ALL to take into account the new locale
6160         categories.
6162 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
6164         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
6165         remainders of hash table.
6166         * locale/categories.def: Remove remainders of transliteration
6167         hash table.
6168         * locale/langinfo.h: Likewise.
6169         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
6170         transliteration tables.
6172         * locale/gen-translit.pl: New file.
6173         * locale/C-translit.h.in: New file.
6174         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
6175         data pointers with data from this file.
6176         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
6177         and gen-translit.pl.
6178         Add rule to generate C-translit.h.
6179         * intl/tst-translit.c (main): Update for now performed
6180         transliteration.
6182         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
6183         (it's no input error).
6184         * stdio-common/tstscanf.c: Add test case for format %f with input --.
6185         * stdio-common/scanf12.c: Correct expected result for first scanf.
6187         * stdio-common/vfprintf.c (process_string_arg): Correct handling
6188         of multibyte character strings in %s format with precision.
6190 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
6192         * locale/programs/ld-collate.c (collate_read): Allow collating
6193         symbols and elements be named in reorder-after instructions.
6194         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
6196         * locale/programs/ld-collate.c (handle_ellipsis): Test for
6197         duplication with generated name, not the name of the first
6198         character.
6199         Patch by Yong Li <yong.li@asu.edu>.
6201         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
6202         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
6204 2000-07-21  Wolfram Gloger  <wg@malloc.de>
6206         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
6207         allocations only if a non-main arena cannot be extended.
6209 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
6211         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
6212         in DF_1_NODEFLIB handling.
6214 2000-07-21  Andreas Jaeger  <aj@suse.de>
6216         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
6217         own rule.
6219         * libio/fwide.c: Include <wchar.h> for prototype.
6221 2000-07-21  Greg McGary  <greg@mcgary.org>
6223         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
6224         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
6225         Define in terms of chunk_at_offset.
6226         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
6227         (next_bin, prev_bin): offset by size of real array elements.
6228         (chunk_align): Make `m' a scalar, since that's how it's used.
6230 2000-07-21  Greg McGary  <greg@mcgary.org>
6232         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
6233         UNCHECK_BOUNDS.
6234         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
6235         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
6236         Wrap bounds around argv & envp and each of their string members.
6237         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
6238         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
6239         symbol in BP_SYM ().  Discard bounds of address arg.
6240         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
6241         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
6242         Discard bounds on address arg, add bounds to return value.
6244 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
6246         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
6247         * elf/filter.c: New file.
6248         * elf/filtmod1.c: New file.
6249         * elf/filtmod2.c: New file.
6251         * elf/rtld.c: Define _dl_bind_not variable.
6252         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
6253         * elf/dl-support.c: Likewise.
6254         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
6255         * elf/dl-runtime.c (fixup): Don't remember looked up value if
6256         _dl_bind_not.
6257         (profile_fixup): Likewise.
6259         * libio/Makefile (routines): Add fwide.
6260         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
6261         fwide now.  Internal calls to _IO_fwide must do locking themselves
6262         or don't need locking.
6263         * libio/fwide.c: New file.
6265         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
6267         * elf/Makefile: Add no modules for nodelete test.
6268         * elf/nodelmod3.c: New file.
6269         * elf/nodelmod4.c: New file.
6270         * elf/nodelete.c: Also test case where dependency of dlopen() object
6271         is marked nodelete.
6273         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
6274         * elf/nodlopen.c: New file.
6275         * elf/nodlopenmod.c: New file.
6276         * include/dlfcn.h: Define __RTLD_DLOPEN.
6277         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
6278         and this is a dlopen() call, do not load the binary.
6279         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
6280         * dlfcn/dlopenold.c: Likewise.
6281         * configure.in: Add test for -z nodelete option.
6282         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
6284 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
6286         Make Hesiod NSS module thread-safe.
6288         * hesiod/README.hesiod: Update.
6290         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
6291         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
6292         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
6293         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
6294         hesiod-proto.
6295         * hesiod/nss_hesiod/hesiod-init.c: New file.
6296         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
6297         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
6298         * hesiod/nss_hesiod/nss_hesiod.h: New file.
6299         * hesiod/nss_hesiod/hesiod-service.c
6300         (_nss_hesiod_getservbyport_r): New function.  Provide support for
6301         looking up services by port number.
6302         * hesiod/nss_hesiod/hesiod-proto.c: New file.
6304         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
6305         * hesiod/hesiod.h: Likewise.
6306         * hesiod/hesiod_p.h: Likewise.
6308 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
6310         Fix problems with `struct __res_state' getting too big.
6311         * resolv/resolv.h (struct __sockaddr_in): New definition.
6312         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
6313         the private parts of the structure to save some space.
6314         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
6315         (struct sockaddr_in *) in call to sock_eq.
6316         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
6318 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
6320         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
6321         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
6322         with nodelete.
6323         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
6324         to _dl_map_object.  Return immediately if no object loaded.
6325         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
6326         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
6327         if it exists into l_flags_1 word.
6328         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
6329         it to determine whether loading is wanted or not.
6330         (_dl_map_object): Likewise.
6331         Call _dl_map_object_from_fd with new parameter.
6332         * sysdeps/generic/ldsodefs.h: Update prototype.
6333         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
6334         * elf/rtld.c: Likewise.
6335         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6336         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
6337         * elf/noload.c: New file.
6338         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
6339         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
6340         * sysdeps/mips/bits/dlfcn.h: Likewise.
6341         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
6342         (tests-nodelete-yes): Define.
6343         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
6344         Add rules to build nodelete and modules.
6345         * elf/nodelete.c: New file.
6346         * elf/nodelmod1.c: New file.
6347         * elf/nodelmod2.c: New file.
6348         * configure.in: Add test for -z nodelete option.
6349         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
6351         * libio/Makefile (tests): Add tst_wprintf2.
6352         (tst_wprintf2-ARGS): Define.
6353         * libio/tst_wprintf2.c: New file.
6354         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
6356         * libio/wfiledoalloc.c: Only allocate external buffer if this
6357         hasn't happened yet.
6359         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
6360         something in the buffer.  gconv call can write up to end of the
6361         buffer, not only _IO_write_end.
6362         (_IO_wfile_overflow): Allocate also external buffer.
6364 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
6366         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
6367         strings with precision in vfwprintf correctly.
6368         * stdio-common/vfprintf.c: Fix completely broken handling of
6369         unbuffered wide character streams.
6370         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
6372         * resolv/Makefile (distribute): Add README.
6374         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
6376 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
6378         Update resolver code to BIND 8.2.3-T5B.
6380         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
6381         __res_nclose.
6382         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
6383         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
6384         __res_search.
6385         * resolv/Banner: BIND-8.2.3-T5B.
6387         * resolv/base64.c: Update from BIND 8.2.3-T5B.
6388         * resolv/herror.c: Likewise.
6389         * resolv/inet_addr.c: Likewise.
6390         * resolv/inet_net_ntop.c: Likewise.
6391         * resolv/inet_net_pton.c: Likewise.
6392         * resolv/inet_neta.c: Likewise.
6393         * resolv/inet_ntop.c: Likewise.
6394         * resolv/nsap_addr.c: Likewise.
6395         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
6396         IPv6 addresses (ISC bug #520).
6398         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
6399         * resolv/ns_parse.c: Likewise.
6400         * resolv/ns_netint.c: Likewise.
6401         * resolv/ns_samedomain.c: Likewise.
6402         * resolv/ns_ttl.c: Likewise.
6403         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
6404         RCS ID in object file.
6406         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
6407         * resolv/res_mkquery.c: Likewise.
6408         * resolv/res_query.c: Likewise.
6409         * resolv/res_init.c: Likewise.
6410         (res_setoptions): Mark internal.
6411         * resolv/res_send.c: Likewise.
6412         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
6413         by using poll instead.
6414         * resolv/res_comp.c: Likewise.
6415         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
6416         weak alias for __dn_expand.
6417         * resolv/res_data.c: Likewise.
6418         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
6419         in _res.options.  Avoids a potential security risk by avoiding a
6420         close (0).
6421         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
6422         res_mkquery, res_query, res_querydomain adn res_search weak
6423         aliases for __res_mkquery, __res_query, __res_querydomain and
6424         __res_search.
6425         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
6426         instead to avoid close(0).
6427         (res_init): Always use the static resolver context.
6428         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
6429         alias for __res_init.
6431         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
6432         RES_SET_H_ERRNO and accompanying comment to...
6433         * include/resolv.h: ... here.
6435         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
6436         * resolv/arpa/nameser_compat.h: Likewise.
6438 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
6440         * nss/makedb.c (main): Compare result of load_db with
6441         NSS_STATUS_SUCCESS and not 0.
6442         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
6444         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
6446 2000-07-18  Greg McGary  <greg@mcgary.org>
6448         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
6449         (EXTEND_BUFFER): Use it.
6451 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
6453         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
6454         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
6455         __builtin_return_address.
6456         * dlfcn/dlopenold.c: Likewise.
6457         * dlfcn/dlsym.c: Likewise.
6458         * dlfcn/dlvsym.c: Likewise.
6459         * elf/dl-profstub.c: Likewise.
6460         * malloc/malloc.c: Likewise.
6461         * sysdeps/generic/machine-gmon.h: Likewise.
6462         Based on a patch by schwidefsky@de.ibm.com.
6464 2000-07-18  Andreas Jaeger  <aj@suse.de>
6466         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
6467         NULL to elf_machine_fixup_plt t argument to silence GCC.
6469         * include/string.h: Add prototype for __memchr.
6471         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
6473         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
6474         instead of memrchr.
6476 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
6478         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
6480         * locale/C-ctype.c: Add initializers for gap elements.
6481         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
6482         for gap elements.
6484 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
6486         * nscd/nscd.c (print_version): Update copyright year.
6488 2000-07-17  Greg McGary  <greg@mcgary.org>
6490         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
6491         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
6492         signature argnames with angle-brackets for use as word delimiters,
6493         and to induce syntax errors for any args not handled.  Split
6494         multi-echo echoes and comment each stage.
6495         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
6496         * sysdeps/unix/inet/syscalls.list: Likewise.
6497         * sysdeps/unix/mman/syscalls.list: Likewise.
6498         * sysdeps/unix/syscalls.list: Likewise.
6499         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6500         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6501         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6502         * sysdeps/unix/sysv/syscalls.list: Likewise.
6503         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
6505         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
6506         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
6507         qualifiers.  Don't check NULL-terminator of argv & envp.
6508         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
6509         unbounded pointer type in word-size assertion.
6510         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
6511         cases to stifle warnings.
6513         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
6514         _IO_file_attach.
6515         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6517         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
6518         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
6519         ptr as __unbouned.
6521         * Makerules (o-objects): Supplement with $(o-objects$o).
6522         * string/Makefile (o-objects.ob): Add variable to pull
6523         unbounded versions of memcpy, memset and memchr into libc_b.
6525         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
6526         rather than non-existent __ubp_memchr.
6527         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
6528         (_CHECK_STRING, _CHECK_N): New macros.
6529         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
6530         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
6531         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
6532         Add weak alias "memchr".
6533         * sysdeps/generic/memchr.c: Likewise.
6534         * sysdeps/i386/memchr.S: Likewise.
6535         * sysdeps/ia64/memchr.S: Likewise.
6536         * sysdeps/m68k/memchr.S: Likewise.
6537         * sysdeps/sparc/sparc32/memchr.S: Likewise.
6538         * sysdeps/sparc/sparc64/memchr.S: Likewise.
6539         * sysdeps/vax/memchr.s: Likewise.
6541         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
6543         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
6544         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
6545         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
6546         __BOUNDED_POINTERS__.
6547         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
6548         for __BOUNDED_POINTERS__.
6550 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
6552         * iconv/gconv_open.c (__gconv_open): Initialize the __data
6553         field of struct __gconv_trans_data differently.  Don't pass NULL to
6554         trans_init_fct.  Simplify list append operation.
6556 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
6558         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
6559         not only those having tsearch.
6561 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
6563         * locale/langinfo.h: Add placeholder values in enum for removed
6564         LC_CTYPE entries.
6566 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
6568         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
6569         chain if the PHDR check fails.
6571 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
6573         * nss/getent.c (print_hosts): Make sure we always print a space
6574         between numeric addresses and hostnames.
6576 2000-07-17  Wolfram Gloger  <wg@malloc.de>
6578         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
6579         i.e. if n_mmaps_max>0.
6581 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
6583         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
6584         values to remove possible clash with other AI_* constants.
6585         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
6586         hexadecimal constants to stress the fact they're in fact
6587         bit flags.
6589 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
6591         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
6592         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
6593         instead of res_init.
6595 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
6597         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
6598         parameters of memset calls to avoid warnings.
6600 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
6602         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
6603         necessary.
6605         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
6606         Patch by Greg McGary <greg@mcgary.org>.
6608         * io/Makefile (tests): Add tst-getcwd.
6609         * io/tst-getcwd.c: New file.
6611         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
6613 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
6615         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
6616         structure.
6618 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
6620         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
6621         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
6623 2000-07-12  H.J. Lu  <hjl@gnu.org>
6625         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
6626         GLIBC_2.2.
6627         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
6628         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
6629         (sysdep-routines): Add clone2.
6630         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
6632 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
6634         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
6635         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
6637 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
6639         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
6640         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
6641         Change type of si_band from "int" to "long".
6642         (si_imm) [USE_GNU]: Define
6643         (si_isr) [USE_GNU]: Likewise.
6644         (ILL_BREAK) [USE_GNU]: Likewise.
6645         (FPE_DECOVF) [USE_GNU]: Likewise.
6646         (FPE_DECDIV) [USE_GNU]: Likewise.
6647         (FPE_DECERR) [USE_GNU]: Likewise.
6648         (FPE_INVASC) [USE_GNU]: Likewise.
6649         (FPE_INVDEC) [USE_GNU]: Likewise.
6650         (TRAP_BRANCH) [USE_GNU]: Likewise.
6651         (TRAP_HWBKPT) [USE_GNU]: Likewise.
6653 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
6655         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6656         bits/sigcontext as struct mcontext does not depend on it.
6658         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
6660 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
6662         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
6664 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
6666         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
6668 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6670         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
6672 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
6674         * intl/Makefile (test-srcs): Add tst-translit.
6675         (tests): Likewise.
6676         Add rules to build and run tst-translit.
6677         * intl/tst-translit.c: New file.
6678         * intl/tst-translit.sh: New file.
6679         * intl/translit.po: New file.
6681 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
6683         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
6684         transliteration function did its job, continue, don't stop.
6686         * iconvdata/iso646.c: Little optimizations in body for conversion
6687         from UCS4.
6689 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
6691         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
6693 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
6695         * configure.in: Check for pwd binary.
6696         * config.make.in: Add PWD_P to be subsituted.
6697         * Makerules: Use $(PWD_P) instead of /bin/pwd.
6699 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
6701         * iconvdata/Makefile (modules): Add GB18030.
6702         (distribute): Add gb18030.c.
6703         * iconvdata/gconv-modules: Add entries for GB18030 module.
6704         * iconvdata/gb18030.c: New file.
6705         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
6706         and Wu Jian.
6708 2000-07-13  Andreas Jaeger  <aj@suse.de>
6710         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
6711         patch.
6713         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
6714         * inet/getnetgrent.c (free_mem): Likewise.
6715         * misc/mntent.c (free_mem): Likewise.
6716         * nss/getXXbyYY.c (free_mem): Likewise.
6717         * nss/getXXent.c (free_mem): Likewise.
6718         * pwd/fgetpwent.c (free_mem): Likewise.
6719         * shadow/fgetspent.c (free_mem): Likewise.
6721 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
6723         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
6724         64-bit architecture correctly [PR libc/1794].
6726 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
6728         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
6729         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
6730         report that we are out of memory.
6731         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6732         * elf/dl-libc.c (dlerror_run): Likewise.
6733         * elf/dl-open.c (_dl_open): Likewise.
6734         * elf/rtld.c (dl_main): Likewise.
6735         * elf/dl-error.c: Define _dl_out_of_memory.
6736         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
6737         the error string.
6738         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
6739         [PR libc/1813].
6741         * dlfcn/dlerror.c (free_key_mem): Also free error string.
6743         * iconv/loop.c: Fix comment.
6745         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
6747 2000-07-13  Andreas Jaeger  <aj@suse.de>
6749         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
6750         getcwd (NULL, size) with size > 0.
6751         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
6753 2000-07-13  Andreas Jaeger  <aj@suse.de>
6755         * posix/Makefile: Remove build rules for libposix.
6757 2000-07-13  Andreas Schwab  <schwab@suse.de>
6759         * sysdeps/generic/glob.c (glob): Fix memory leak.
6760         [SHELL]: Remove reference to undefined variable `files'.
6761         Fixes PR libc/1782.
6763 2000-07-13  Andreas Jaeger  <aj@suse.de>
6765         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
6766         functions.
6768         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
6769         memory if it was allocated.
6771 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
6773         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
6774         step.
6776         * iconv/gconv_open.c (__gconv_open): Reapply
6777         2000-07-12 Bruno Haible <haible@clisp.cons.org>
6779                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
6781         * iconv/gconv_open.c: Undo last two changes for now.  They break
6782         everything.
6784 2000-07-12  Andreas Jaeger  <aj@suse.de>
6786         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
6787         compiler.
6788         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
6789         (CFLAGS-dl-cache.c): Likewise.
6790         (CFLAGS-ldconfig.c): Added, passes directory locations.
6792         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
6793         locate cache.
6794         * elf/ldconfig.c (LD_SO_CONF): Likewise.
6795         (main): Use configured LIBDIR and SLIBDIR.
6797 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
6799         * math/bits/cmathcalls.h (cimag): Add __THROW.
6800         (creal, conj): Likewise.
6801         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
6802         by negative value.
6804 2000-07-12  H.J. Lu  <hjl@gnu.org>
6806         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
6807         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
6809 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
6811         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
6812         it is wrong.
6814 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
6816         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
6818 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
6820         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
6821         __modname.
6823 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
6825         * iconv/gconv_open.c (__gconv_open): Initialize
6826         result->__steps[cnt].__data.
6828 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
6830         * nss/getent.c (services_keys): Pass port number in network byte
6831         order in call to getservbyport.
6833 2000-07-11  Andreas Jaeger  <aj@suse.de>
6835         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
6836         source dir.
6837         * intl/Makefile (do-gettext-test): Likewise.
6838         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
6840 2000-07-11  Andreas Schwab  <schwab@suse.de>
6842         * Makeconfig (run-program-prefix): New rule.
6843         (built-program-cmd): Use run-program-prefix.
6845 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
6847         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
6848         and NOEXPR unconditionally available.
6850 2000-07-12  Greg McGary  <greg@mcgary.org>
6852         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
6853         * sysdeps/posix/open64.c: Likewise.
6854         * sysdeps/generic/fegetenv.c: Likewise.
6855         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
6856         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
6857         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6858         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
6859         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
6860         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
6862 2000-07-11  Greg McGary  <greg@mcgary.org>
6864         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
6865         Add extra level of macro expansion.
6866         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
6867         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
6868         is available at the time `select' prototype is declared.
6869         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
6870         Collect non-versioned weak aliases.  Consider only non-versioned
6871         aliases for the user-visible systemcall name.  Do checks inline with
6872         call to primitive system call.
6873         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
6874         stand-alone bounds checks to suppress unused value warnings.
6875         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
6877 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
6879         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
6880         file descriptor checking in SUID programs for the Hurd.
6882         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
6883         res_hostalias instead of __hostalias for thread-safety.
6885 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
6887         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
6888         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
6890 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
6892         * include/features.h: Include ISO C99 features if the compiler used
6893         is an ISO C99 compiler.
6894         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
6896 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
6898         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
6900 2000-07-10  Andreas Jaeger  <aj@suse.de>
6902         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
6903         it's overridden by libpthreads.
6904         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
6905         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
6906         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
6907         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6908         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6910         * malloc/Makefile: Run tst-mtrace only with shared libs.
6912         * stdio-common/Makefile: Run unbputc and tst-printf tests only
6913         with shared libs.
6915 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6917         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
6918         that gpreg really points to the GOT section of the calling object.
6919         Scan all PT_LOAD segments of objects for stub_pc, instead of only
6920         checking a start address of first one.
6921         Fix typos.
6922         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
6923         Likewise.
6925         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
6927 2000-07-10  Andreas Jaeger  <aj@suse.de>
6929         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
6930         (string_alias->strong_alias).
6932 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
6934         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
6936 2000-07-07  Greg McGary  <greg@mcgary.org>
6938         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
6939         have no names without leading underscores.
6941 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
6943         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
6944         U007E.
6946         * stdio-common/Makefile (tests): Remove tst-printf here...
6947         (tests-srcs): ...and add it here.
6948         (distribute): Add tst-unbputc.sh and tst-printf.sh.
6949         Add rules to run tst-printf.sh.
6950         * stdio-common/tst-printf.c: Move code around so that there is really
6951         no further output where it's stated.
6952         * stdio-common/tst-printf.sh: New file.
6954 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
6956         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
6957         (do_write): Renamed from pwrite.
6958         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
6959         `struct _IO_cookie_file'.
6961 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
6963         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
6964         detected.
6965         * malloc/tst-mtrace.sh: Run mtrace script.
6967 2000-07-07  Greg McGary  <greg@mcgary.org>
6969         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
6970         Move all three components of a bounded pointer.
6972 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
6974         * locale/programs/locale.c (write_locales): Don't simply add all
6975         directories found in the subdir, test whether at least the
6976         LC_CTYPE file is in there.
6978 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
6980         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
6981         * iconvdata/euc-kr.c: Likewise.
6983         * stdio-common/vfprintf.c (process_string_arg): Check result of
6984         wcrtomb call and bail out if it failed.
6986         * malloc/Makefile (test-srcs): Add tst-mtrace.
6987         (distribute): Add tst-mtrace.sh.
6988         Add rule to run tst-mtrace.sh.
6989         * malloc/tst-mtrace.c: New file.
6990         * malloc/tst-mtrace.sh: New file.
6992         * include/signal.h: Declare __libc_sigaction.
6993         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
6994         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
6995         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
6996         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6997         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
6998         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6999         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
7001         * configure.in: Fix CFLAGS-memprofstat.c definition after
7002         2000-06-19 change.
7003         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
7005 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
7007         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
7008         instead of NULL to elf_machine_fixup_plt t argument.
7009         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7010         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
7011         cast.
7013 2000-07-06  Andreas Jaeger  <aj@suse.de>
7015         * crypt/Makefile (LDLIBS-cert): Removed.
7016         (LDLIBS-md5c-test): Removed.
7017         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
7018         ($(objpfx)md5c-test): Likewise for md5c-test.out.
7020 2000-07-06  Andreas Jaeger  <aj@suse.de>
7022         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
7023         of the proc system is "proc".
7025         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
7026         thread library for static programs.
7028 2000-07-06  Greg McGary  <greg@mcgary.org>
7030         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
7031         New macros.
7032         * sysdeps/generic/strcpy.c: Add bounds checks.
7033         * sysdeps/unix/fxstat.c: Likewise.
7034         * sysdeps/unix/xstat.c: Likewise.
7035         * sysdeps/unix/common/lxstat.c: Likewise.
7036         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
7037         * sysdeps/unix/sysv/linux/execve.c: Likewise.
7038         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7039         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7040         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
7041         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
7042         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
7043         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7044         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7045         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7046         * sysdeps/unix/sysv/linux/pread.c: Likewise.
7047         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7048         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
7049         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
7050         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7051         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7052         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
7053         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
7054         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
7055         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
7056         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
7057         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
7058         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7059         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
7060         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7061         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
7062         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7063         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
7064         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
7065         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
7066         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
7067         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
7068         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
7069         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7070         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
7071         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
7072         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
7073         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
7074         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
7075         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7076         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7077         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
7078         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7079         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
7080         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7081         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7082         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
7083         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
7084         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
7085         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
7086         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
7087         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7088         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7089         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7090         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7091         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7092         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7093         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
7094         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
7095         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
7096         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
7097         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
7098         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
7099         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
7101         * string/endian.h (__LONG_LONG_PAIR): New macro.
7102         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
7103         * sysdeps/unix/sysv/linux/pread.c: Likewise.
7104         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7105         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
7106         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7107         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7108         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
7109         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7110         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7111         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7112         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7113         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7115         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
7117 2000-07-06  Andreas Jaeger  <aj@suse.de>
7119         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
7120         Initialize result.
7122         * math/test-fpucw.c: Include <stdio.h> for printf.
7124 2000-07-05  Greg McGary  <greg@mcgary.org>
7126         * sysdeps/generic/bp-checks.h: New file.
7127         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
7128         with list of #include files.
7129         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
7130         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
7131         Don't generate BP thunk if `V' appears in signature.
7132         Generate thunks with complete bounds checks.
7133         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
7134         * sysdeps/unix/inet/syscalls.list: Likewise.
7135         * sysdeps/unix/mman/syscalls.list: Likewise.
7136         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7137         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7138         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7139         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
7141 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
7143         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
7144         result.  Search first in /etc/mtab (proc/mounts would be stupid).
7145         If mount not in the file fall back on /proc.
7147         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
7148         string got copied in.
7149         Patch by Solar Designer <solar@false.com>.
7151 2000-07-05  Andreas Jaeger  <aj@suse.de>
7153         * manual/install.texi (Installation): Update information about
7154         add-ons.
7155         (Configuring and compiling): Update for glibc 2.2.
7157 2000-07-04  Andreas Jaeger  <aj@suse.de>
7159         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
7160         (_FPU_IEEE): Likewise.
7162         * math/Makefile (tests): Add test-fpucw.
7164         * math/test-fpucw.c (main): New file.
7166 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
7168         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
7170         * locale/programs/ld-collate.c (collate_output): Also write out the
7171         collation sequence values and the wide character string for the
7172         collation symbol table.
7174         * posix/fnmatch.c: Include "../locale/elem-hash.h".
7175         * posix/fnmatch_loop.c: Implement collating symbol handling.
7176         * posix/tst-fnmatch.input: Add more tests, especially for collating
7177         symbol handling.
7179         * posix/regex.c: Fix comment.
7181 2000-07-05  Andreas Jaeger  <aj@suse.de>
7183         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
7184         (_FPU_GETCW): Remove extra colon.
7185         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
7187         * posix/fnmatch_loop.c (FCT): Only declare len if
7188         !WIDE_CHAR_VERSION to silence GCC.
7190         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
7191         prototype.
7192         * sysdeps/generic/strchrnul.c: Likewise.
7193         * sysdeps/generic/strlen.c: Likewise.
7194         * sysdeps/generic/strchr.c: Likewise.
7195         * sysdeps/generic/memchr.c: Likewise.
7197 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
7199         * posix/fnmatch_loop.c: Implement equivalence class handling.
7200         * posix/tst-fnmatch.input: Add tests for equivalence class
7201         handling.
7203         * posix/fnmatch_loop.c: Improve performance for single-byte
7204         character sets by not using btowc.
7206         * posix/tst-fnmatch.input: Add tests for locale dependent
7207         behaviour.
7208         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
7210         * posix/tst-fnmatch.input: Add more test cases.
7212         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
7213         are not aligned to alignof(md5_uint32) do it before calling
7214         __md5_process_bytes.
7215         * crypt/md5.c: Make sure buffers are aligned.
7216         * crypt/md5.h: Likewise.
7217         Reported by Solar Designer <solar@false.com>.
7219         * crypt/Makefile: Add dependencies for test programs.
7221         * Rules: Define LC_ALL=C in environments of all programs we run.
7223         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
7225 2000-07-03  H.J. Lu  <hjl@gnu.org>
7227         * locale/programs/ld-ctype.c (ctype_output): The size of iov
7228         is 2 + elem + offset, not 2 + elem + offset + 2.
7230 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
7232         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
7233         suite.
7234         * posix/Makefile (tests): Add tst-fnmatch.
7235         (tst-fnmatch-ENV): Define.
7236         * posix/tst-fnmatch.c: New file.
7237         * posix/tst-fnmatch.sh: New file.
7239 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
7241         * locale/programs/charmap.c (charmap_read): Prepend
7242         the condition filename == NULL.
7244 2000-07-03  Greg McGary  <greg@mcgary.org>
7246         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
7248         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
7249         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
7251         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
7252         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
7253         (FILEBUF_LITERAL): Add cast for CHAIN init.
7254         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
7255         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
7256         Revert type of `fp' to _IO_FILE*.
7257         (_IO_iter_file): Remove cast.
7258         (_IO_iter_next): Elide intermediate member reference.
7260         * sysdeps/powerpc/strchr.S:  Check bounds.
7261         Wrap extern symbols in BP_SYM ().
7263 2000-07-03  Andreas Jaeger  <aj@suse.de>
7265         * dlfcn/Makefile (generated): New.
7267 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
7269         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
7270         (__uflow): Likewise.
7271         (__underflow): Likewise.
7272         * libio/wgenops.c (__wunderflow): Likewise.
7273         * stdio-common/tst-unbputc.c: New file.
7274         * stdio-common/tst-unbputc.sh: New file.
7275         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
7277         * po/en_GB.po: New file.
7278         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
7280 2000-07-01  Andreas Jaeger  <aj@suse.de>
7282         * intl/Makefile (generated-dirs): New.
7284         * elf/Makefile (generated): trusted-dirs.h is always generated,
7285         move out of build-shared condition.
7286         (generated): Merge the two entries for build-shared.
7288 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
7290         * debug/Makefile (distribute): Add xtrace.sh.
7292 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
7294         * version.h (VERSION): Bump to 2.1.91.
7296         * configure.in: Update warning comment.  glibc should not be
7297         broken anymore.
7299         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
7300         ioperm.c, sys/procfs.h, and sys/io.h.
7302         * sysdeps/powerpc/Dist: Add bp-asm.h.
7304         * assert/Depend: Add localedata.
7305         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
7306         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
7308         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
7309         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
7310         relocation address to prevent unaligned trap.
7311         Suggested by Richard Henderson <rth@cygnus.com>.
7313 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
7315         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
7316         if redirecting and either redirection is done using defines or
7317         not optimizing.
7319 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
7321         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
7322         generated expressions.
7323         Patch by Darren McClelland <dmcclell@zetec.com>.
7325         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
7326         since zic uses setlocale and gettext but we cannot make it use the
7327         new locale data since zic calls a shell which might not use the
7328         new libc.
7330         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
7331         handling the internation currency symbol.  POSIX says that the
7332         fourth character is used to separate the currency symbol from the
7333         value.  Therefore it does not have to be printed.  But we cannot
7334         remove the space if the currency symbol is printed before the
7335         number since this is what many locales expect.
7337         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
7338         whether this information is available.
7340         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
7341         buffers in case the translation is too large.  Remember allocated
7342         memory blocks in a list.
7343         (free_mem): Free memory for translations.
7345         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
7347         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
7348         information is available set the string length to zero.
7350         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
7352 2000-06-30  Greg McGary  <greg@mcgary.org>
7354         * sysdeps/powerpc/bp-asm.h: New file.
7355         * sysdeps/powerpc/__longjmp.S:  Check bounds.
7356         Wrap extern symbols in BP_SYM ().
7357         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
7358         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
7359         * sysdeps/powerpc/setjmp.S: Likewise.
7360         * sysdeps/powerpc/add_n.S: Likewise.
7361         * sysdeps/powerpc/addmul_1.S: Likewise.
7362         * sysdeps/powerpc/lshift.S: Likewise.
7363         * sysdeps/powerpc/rshift.S: Likewise.
7364         * sysdeps/powerpc/mul_1.S: Likewise.
7365         * sysdeps/powerpc/sub_n.S: Likewise.
7366         * sysdeps/powerpc/submul_1.S: Likewise.
7367         * sysdeps/powerpc/strlen.S: Likewise.
7368         * sysdeps/powerpc/memset.S: Likewise.
7369         * sysdeps/powerpc/stpcpy.S: Likewise.
7370         * sysdeps/powerpc/strcmp.S: Likewise.
7371         * sysdeps/powerpc/strcpy.S: Likewise.
7372         * sysdeps/powerpc/elf/bzero.S: Likewise.
7374         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
7375         Line up operands column with tabs.
7377 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
7379         * elf/Makefile (LDFLAGS-origtest): Actually add it.
7381         * sysdeps/ia64/htonl.S: New file.
7382         * sysdeps/ia64/htons.S: New file.
7383         * sysdeps/ia64/memcpy.S: Replace with version which does not use
7384         floating point registers.
7385         Patches by Dan Pop <Dan.Pop@cern.ch>.
7387 2000-06-30  Andreas Jaeger  <aj@suse.de>
7389         * posix/Makefile (tests): tst-exec and tst-spawn only work with
7390         shared libraries.
7392         * io/Makefile (CFLAGS-test-lfs.c): New.
7393         (tests): Add test-lfs.
7395         * io/test-lfs.c: New file.
7397 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
7399         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
7400         instruction.
7402 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
7404         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
7406 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
7408         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
7409         alias to the fstatfs call.
7411         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
7412         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
7414         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
7415         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
7417         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
7418         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
7419         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
7420         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
7422         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
7423         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
7425         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
7426         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
7428         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
7429         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
7431         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
7433 2000-06-29  Andreas Jaeger  <aj@suse.de>
7435         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
7436         with syslog.
7437         (print_err_message): Likewise.
7438         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
7440 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
7442         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
7443         used as words is properly aligned.
7445         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
7446         data files.
7448 2000-06-29  Greg McGary  <greg@mcgary.org>
7450         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
7451         * sysdeps/unix/make-syscalls.sh: Handle signatures of
7452         length 7..9, just in case...
7453         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
7455         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
7456         (POP_ERRNO_LOCATION_RETURN): Fold insns.
7457         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
7458         (PUSH_SIGNAL_MASK): New macro.
7459         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
7460         LEAVE is unnecessary.  Check bounds of jmp_buf.
7461         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
7462         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
7463         immediately before tail-call.
7464         * sysdeps/i386/setjmp.S: Likewise.
7465         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7466         * sysdeps/i386/bsd-setjmp.S: Likewise.
7468 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
7470         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
7471         versioned_symbol.
7472         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
7473         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
7474         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
7475         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
7476         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
7477         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
7478         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
7479         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
7481 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
7483         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
7484         we later need to calling free().
7485         Patch by Matt Wilson <msw@redhat.com>.
7487         * stdio-common/tst-printf.c: Add test for above problem.
7489 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
7491         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
7492         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
7494 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
7496         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
7497         prototype for abs().
7498         * sysdeps/ieee754/flt-32/s_exp2f.c: Likewise.
7500 2000-06-23  Andreas Jaeger  <aj@suse.de>
7502         * config.h.in: Don't use regparm with bounded pointers.
7504 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
7506         * stdlib/grouping.h: Correctly handle multibyte thousands
7507         separator and decimal point.
7508         * stdlib/stdtod.c: Likewise.
7509         * sysdeps/generic/strtol.c: Likewise.
7511         * locale/categories.def: Add entries for wide character decimal point
7512         and thousands separator in numeric and monetary category.
7514 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
7516         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
7517         second definition and initialization of decimal.
7519 2000-06-28  Greg McGary  <greg@mcgary.org>
7521         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
7522         out.
7523         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
7524         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
7525         in.
7526         (_IO_JUMPS): Don't cast THIS--expect arg to be a
7527         (struct _IO_FILE_plus *).
7528         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
7529         THIS, since _IO_JUMPS no longer does it implicitly.
7530         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
7531         arg type as (struct _IO_FILE_plus *).
7532         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
7533         arg as (_IO_strfile *).
7534         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
7535         Declare 1st arg as (_IO_strfile *).
7536         * libio/fileops.c (_IO_new_file_init): Declare
7537         arg type as (struct _IO_FILE_plus *).
7538         * libio/oldfileops.c (_IO_old_file_init): Likewise.
7539         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
7540         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
7541         Declare iteration pointer as (struct _IO_FILE_plus *).
7542         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
7543                 (struct _IO_FILE_plus *).
7544         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
7545         * libio/oldstdfiles.c (_IO_list_all): Likewise.
7546         (_IO_check_libio): Set user-visible handles to
7547         (struct _IO_FILE_plus *).
7548         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
7549         to (struct _IO_FILE_plus *).
7551         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
7552         whose high bound includes vtable to all functions that will use
7553         vtable.  For streambufs, pass pointer whose bounds include struct
7554         _IO_strfile.
7555         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
7556         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
7557         * libio/iofopen.c (_IO_new_fopen): Likewise.
7558         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
7559         * libio/iofopen64.c (_IO_fopen64): Likewise.
7560         * libio/iopopen.c (_IO_new_popen): Likewise.
7561         * libio/oldiopopen.c (_IO_old_popen): Likewise.
7562         * libio/memstream.c (open_memstream): Likewise.
7563         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
7564         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
7565         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7566         * libio/iofopncook.c (_IO_cookie_init): Likewise.
7567         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
7568         * libio/vasprintf.c (_IO_vasprintf): Likewise.
7569         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
7570         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
7571         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
7572         * stdlib/strfmon.c (__strfmon_l): Likewise.
7573         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7574         (vfprintf): Qualify computed-goto targets as unbounded.
7576 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
7578         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
7579         thousands separator correctly.
7581         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
7582         * stdio-common/vfwscanf.c: Likewise.
7584 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
7586         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
7587         count into signatures for most calls.
7589 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
7591         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
7592         the generic parser now.
7594 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
7596         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
7597         table entries are 32 bit on the ia64 (as specified by the ABI),
7598         not 64 bit as on the Alpha.
7600         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
7601         change of objects to use 32 bit hash table indices (see above).
7603 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
7605         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
7606         prototype for abs().
7608 2000-06-28  Wolfram Gloger  <wg@malloc.de>
7610         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
7611         fails, try mmap_chunk() as a last resort even though n_mmaps_max
7612         may have been reached.
7614 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
7616         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
7617         symbols in multi-character weights correctly.
7619         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
7620         depending on whether the input string is empty or not.
7622         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
7623         given state and not avoiding this by modifying a local object.
7624         * wcsmbs/wcrtomb.c: Likewise.
7626         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
7627         object since some incomplete characters might be in there.
7629         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
7630         sequences with first byte 0x8e correctly.
7632         * iconvdata/jis0208.h: Remove redundant test.
7634 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
7636         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
7637         Add it where it is needed now.
7639         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
7640         the input charset into account when generating the hash table.
7641         (allocate_arrays): Correct setting default width.  Not all empty slots
7642         in the table are filled, only those not covert explicitly by the
7643         locale description and in the charset.
7645         * wctype/towctrans.c (__towctrans): Be graceful and accept error
7646         return values from the wctrans function.
7648         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
7649         wide character version.
7650         For %C handling, test correct pointer variable for NULL.
7652         * wcsmbs/wctob.c: Handle WEOF special.
7654         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
7656         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
7657         always-true test to avoid warning.
7659 2000-06-27  Greg McGary  <greg@mcgary.org>
7661         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
7662         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
7663         (symbol_version, default_symbol_version): Factor redundant
7664         definitions out of conditional.
7666 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
7668         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
7669         not obstack_blank.
7671 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
7673         * include/libc-symbols.h (symbol_version): Add extra level of
7674         macro expansion.
7675         (default_symbol_version): Likewise.
7677 2000-06-26  Greg McGary  <greg@mcgary.org>
7679         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
7680         for BP return value & push implicit struct-return pointer to
7681         __errno_location.
7682         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7683         (SYSCALL_ERROR_HANDLER): Likewise.
7684         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7685         (SYSCALL_ERROR_HANDLER): Likewise.
7687         * Makeconfig: Add missing comment.
7688         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
7689         BP-flavored startup object.
7690         ($(objpfx)b$(start-installed-name)): New rule.
7691         * include/libc-symbols.h (symbol_set_declare): Change type
7692         of `__start_##set' and `__stop_##set' to pointer-to-function.
7693         (symbol_set_declare): Change type of `set' to array of
7694         pointer-to-function.
7695         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
7696         pointer-to-function.
7698         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
7700         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
7701         Remove clock_* and timer_* entries.
7702         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
7703         arg-count with signatures.
7705         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
7706         Check bounds of arguments.
7707         * sysdeps/i386/addmul_1.S: Likewise.
7708         * sysdeps/i386/lshift.S: Likewise.
7709         * sysdeps/i386/mul_1.S: Likewise.
7710         * sysdeps/i386/rshift.S: Likewise.
7711         * sysdeps/i386/sub_n.S: Likewise.
7712         * sysdeps/i386/submul_1.S: Likewise.
7713         * sysdeps/i386/i586/add_n.S: Likewise.
7714         * sysdeps/i386/i586/addmul_1.S: Likewise.
7715         * sysdeps/i386/i586/lshift.S: Likewise.
7716         * sysdeps/i386/i586/rshift.S: Likewise.
7717         * sysdeps/i386/i586/sub_n.S: Likewise.
7718         * sysdeps/i386/i686/add_n.S: Likewise.
7720         * sysdeps/i386/memchr.S: Likewise.
7721         * sysdeps/i386/memcmp.S: Likewise.
7722         * sysdeps/i386/rawmemchr.S: Likewise.
7723         * sysdeps/i386/i586/bzero.S: Likewise.
7724         * sysdeps/i386/i586/memcpy.S: Likewise.
7725         * sysdeps/i386/i586/mempcpy.S: Likewise.
7726         * sysdeps/i386/i586/memset.S: Likewise.
7727         * sysdeps/i386/i686/bzero.S: Likewise.
7728         * sysdeps/i386/i686/memcpy.S: Likewise.
7729         * sysdeps/i386/i686/mempcpy.S: Likewise.
7730         * sysdeps/i386/i686/memset.S: Likewise.
7732         * sysdeps/i386/stpcpy.S: Likewise.
7733         * sysdeps/i386/stpncpy.S: Likewise.
7734         * sysdeps/i386/strchr.S: Likewise.
7735         * sysdeps/i386/strchrnul.S: Likewise.
7736         * sysdeps/i386/strcspn.S: Likewise.
7737         * sysdeps/i386/strpbrk.S: Likewise.
7738         * sysdeps/i386/strrchr.S: Likewise.
7739         * sysdeps/i386/strspn.S: Likewise.
7740         * sysdeps/i386/strtok.S: Likewise.
7741         * sysdeps/i386/strtok_r.S: Likewise.
7742         * sysdeps/i386/i486/strcat.S: Likewise.
7743         * sysdeps/i386/i486/strlen.S: Likewise.
7744         * sysdeps/i386/i586/strchr.S: Likewise.
7745         * sysdeps/i386/i586/strcpy.S: Likewise.
7746         * sysdeps/i386/i586/strlen.S: Likewise.
7747         * sysdeps/i386/i686/strcmp.S: Likewise.
7748         * sysdeps/i386/i686/strtok.S: Likewise.
7749         * sysdeps/i386/i686/strtok_r.S: Likewise.
7751         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
7752         * sysdeps/i386/fpu/fesetenv.c: Likewise.
7753         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
7754         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
7755         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
7757         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
7758         * sysdeps/i386/mul_1.S: Likewise.
7759         * sysdeps/i386/submul_1.S: Likewise.
7760         * sysdeps/i386/i586/add_n.S: Likewise.
7761         * sysdeps/i386/i586/addmul_1.S: Likewise.
7762         * sysdeps/i386/i586/lshift.S: Likewise.
7763         * sysdeps/i386/i586/mul_1.S: Likewise.
7764         * sysdeps/i386/i586/rshift.S: Likewise.
7765         * sysdeps/i386/i586/sub_n.S: Likewise.
7766         * sysdeps/i386/i586/submul_1.S: Likewise.
7768 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
7770         * rt/Makefile (librt-routines): Add clock_nanosleep.
7771         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
7772         * sysdeps/generic/clock_nanosleep.c: New file.
7773         * sysdeps/unix/clock_nanosleep.c: New file.
7774         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
7775         * time/time.h: Declare clock_nanosleep.
7777 2000-06-26  Greg McGary  <greg@mcgary.org>
7779         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
7780         INSN1, INSN2, TEXT, GLOBL): Remove macros.
7781         (ALIGN): Cleanup surrounding conditionals.
7783         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
7784         Call ENTER/LEAVE macros.
7785         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
7786         * sysdeps/i386/submul_1.S: Likewise.
7788         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
7789         syntax.  Define & use symbolic argument stack offsets.  Call
7790         ENTER/LEAVE macros.
7791         * sysdeps/i386/i586/mul_1.S: Likewise.
7792         * sysdeps/i386/i586/submul_1.S: Likewise.
7794 2000-06-25  Greg McGary  <greg@mcgary.org>
7796         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
7797         not as bcopy.
7799 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
7801         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
7802         * iconvdata/gen-8bit-gap.sh: Likewise.
7803         * iconvdata/gen-8bit.sh: Likewise.
7805         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
7807         * locale/programs/ld-collate.c (collate_read): Don't actually read
7808         the copy locale if we are ignoring the content.
7810         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
7811         unknown character.
7813         * locale/programs/ld-collate.c: Correct handling of different
7814         collation sections.
7815         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
7816         as extra parameter from which to copy category information.
7817         Change all callers.
7818         (load_locale): Likewise.
7819         * locale/programs/localedef.h: Update prototypes of add_to_readlist
7820         and load_locale.
7821         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
7822         * locale/programs/locfile.h: Likewise.
7823         * locale/programs/locfile-kw.gperf: Add entry for script.
7824         * locale/programs/locfile-token.h: Add tok_script.
7826         * locale/programs/locale.c: Update copyright year.
7827         * locale/programs/localedef.c: Likewise.
7829 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
7831         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
7832         Jens Moeller <jens.moeller@waii.com>.
7834 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
7836         * locale/programs/ld-name.c (name_finish): Add missing format
7837         specifier to test for name_fmt.
7839         * locale/programs/ld-address.c (iso639): Correct length of string
7840         elements.
7841         (iso3166): Likewise.
7843         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
7845         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
7846         Define.
7848         * elf/elf.h (NT_PRFPXREG): Define.
7850 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
7852         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
7853         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
7855 2000-06-23  Andreas Schwab  <schwab@suse.de>
7857         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
7858         with signatures.
7860 2000-06-23  Andreas Jaeger  <aj@suse.de>
7862         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
7864         * io/test-stat.c: Add copyright header, mention Maciej.
7866         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
7867         SYS_mincore, SYS_madvise): Added.
7869         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
7870         execve.
7872 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
7874         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
7875         (CFLAGS-tst_putwc.c): New definition.
7876         * libio/tst_getwc.c: New file.
7877         * libio/tst_getwc.input: New file.
7878         * libio/tst_putwc.c: New file.
7880         * include/string.h: Add prototype for __strdup.
7882 2000-06-22  Greg McGary  <greg@mcgary.org>
7884         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
7885         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
7886         Fix signatures.
7888 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
7890         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
7892 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
7894         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
7896 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
7898         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
7899         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
7901 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
7903         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
7904         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
7905         and __S_TYPEISSHM.
7906         * sysdeps/mach/hurd/bits/stat.h: Likewise.
7907         * sysdeps/unix/bsd/bits/stat.h: Likewise.
7908         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
7909         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7910         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
7911         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
7912         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7913         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7914         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7915         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
7916         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
7917         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
7918         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
7919         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
7920         S_TYPEISSHM.
7922 2000-06-22  Andreas Jaeger  <aj@suse.de>
7924         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
7925         with signatures.
7927         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
7929         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
7931 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
7933         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
7934         ahead.
7936 2000-06-21  Greg McGary  <greg@mcgary.org>
7938         * Makerules (elide-routines.*, elide-bp-thunks):
7939         Define unconditionally.
7941 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
7943         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
7945 2000-06-21  Andreas Jaeger  <aj@suse.de>
7947         * io/Makefile (tests): Add test-stat.
7948         (CFLAGS-test-stat.c): New.
7950         * io/test-stat.c: New file from Maciej W. Rozycki
7951         <macro@ds2.pg.gda.pl>.
7953 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
7955         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
7956         in __rlimit_resource to make them match the kernel order.
7957         rlim_t is always 64 bit, use __rlim64_t to declare it
7958         unconditionally.
7960 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
7962         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
7963         RLIM_INFINITY before defining it to avoid clash with kernel header
7965 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7967         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
7969 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
7971         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
7973 2000-06-21  Andreas Jaeger  <aj@suse.de>
7975         * stdio-common/temptest.c: Include <stdlib.h>.
7976         * stdio-common/tst-fileno.c: Likewise.
7977         * stdio-common/scanf4.c: Likewise.
7978         * stdio-common/scanf5.c: Likewise.
7979         * time/clocktest.c: Likewise.
7980         * posix/test-vfork.c: Likewise.
7981         * posix/globtest.c: Likewise.
7982         * io/test-utime.c: Likewise.
7983         * wctype/test_wcfuncs.c: Likewise.
7984         * crypt/cert.c: Likewise.
7986         * stdio-common/tst-printfsz.c: Include <string.h>.
7987         * libio/tst_swscanf.c: Likewise.
7988         * libio/tst_wscanf.c: Likewise.
7989         * posix/runtests.c: Likewise.
7990         * posix/tst-getaddrinfo.c: Likewise.
7991         * posix/wordexp-test.c: Likewise.
7992         * misc/tst-efgcvt.c: Likewise.
7994         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
7995         * nss/test-netdb.c: Likewise.
7997         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
7998         supported kernel for MIPS.
8000         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
8001         * rt/aio_suspend.c: Likewise.
8003 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
8005         * math/libm-test.inc: Include <string.h>.
8007 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
8009         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
8011 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
8013         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
8014         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
8016 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
8018         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
8020 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
8022         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
8024 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
8026         * locale/programs/ld-collate.c (insert_value): Now take string and
8027         length instead of struct token* parameter.  Adjust use of token.
8028         (handle_ellipsis): Likewise.
8029         (collate_read): Allow <Uxxxx> names and transform them into names
8030         to be passed to insert_value and handle_ellipsis.
8032         * locale/programs/ld-ctype.c (uninames): New array with names of
8033         digits in <Uxxxxxxxx> format.
8034         (ctype_finish): Correct search for space character value.  Likewise
8035         for default outdigits values.
8037 2000-06-20  Greg McGary  <greg@mcgary.org>
8039         * Makerules (objects): Add BP thunks.
8041 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
8043         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
8044         in width definitions.
8046 2000-06-20  Andreas Jaeger  <aj@suse.de>
8048         * sysdeps/mips/fpu/libm-test-ulps: New file.
8050         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
8051         first.
8053         * sysdeps/mips/fpu/feholdexcpt.c: New file.
8055         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
8057 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
8059         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
8060         change in gconv_builtin.h.
8062         * malloc/Makefile: Change all references to memprof into memusage.
8063         * malloc/memprof.c: Rename to...
8064         * malloc/memusage.c: ...this.  New file.
8065         * malloc/memprof.sh: Rename to...
8066         * malloc/memusage.sh: ...this.  New file.
8067         * malloc/memprofstat.c: Rename to...
8068         * malloc/memusagestat.c: ...this.  New file.
8069         * sysdeps/alpha/memprof.h: Rename to..
8070         * sysdeps/alpha/memusage.h: ...this.  New file.
8071         * sysdeps/arm/memprof.h: Rename to..
8072         * sysdeps/arm/memusage.h: ...this.  New file.
8073         * sysdeps/generic/memprof.h: Rename to..
8074         * sysdeps/generic/memusage.h: ...this.  New file.
8075         * sysdeps/i386/memprof.h: Rename to..
8076         * sysdeps/i386/memusage.h: ...this.  New file.
8077         * sysdeps/ia64/memprof.h: Rename to..
8078         * sysdeps/ia64/memusage.h: ...this.  New file.
8079         * sysdeps/m68k/memprof.h: Rename to..
8080         * sysdeps/m68k/memusage.h: ...this.  New file.
8081         * sysdeps/mips/memprof.h: Rename to..
8082         * sysdeps/mips/memusage.h: ...this.  New file.
8083         * sysdeps/powerpc/memprof.h: Rename to..
8084         * sysdeps/powerpc/memusage.h: ...this.  New file.
8085         * sysdeps/sparc/memprof.h: Rename to..
8086         * sysdeps/sparc/memusage.h: ...this.  New file.
8087         * sysdeps/sh/memprof.h: Rename to..
8088         * sysdeps/sh/memusage.h: ...this.  New file.
8090         * elf/sprof.c (print_version): Update year.
8092         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
8093         table entry values.  Use D_PTR.
8094         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
8095         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
8097 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
8099         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
8100         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
8101         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
8102         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
8104 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8106         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
8108 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
8110         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
8111         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
8112         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
8114         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
8116         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
8117         kernel change.
8119         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
8120         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
8121         structure.
8122         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
8123         implementation.
8125 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
8127         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
8129 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
8131         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
8133 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
8135         * iconv/gconv_int.h (strict gconv_module): Remove all members
8136         associated with regular expressions.  Use a simple string as the
8137         from name.
8138         * iconv/gconv_db.c: Remove code handling regular expressions.
8139         * iconv/gconv_conf.c: Likewise.
8140         * iconv/iconv_prog.c: Likewise.
8141         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
8143         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
8144         General namespace cleanup.
8145         (struct __gconv_trans_data): Add next field.
8146         (struct __gconv_step_data): Make __trans a pointer.
8147         * iconv/gconv_conf.c: Split out code to find gconv directories from
8148         __gconv_read_conf in new functions.
8149         * iconv/gconv_int.h: Define new data structure and declare new
8150         functions for handling of gconv directory list.
8151         * iconv/gconv_open.c: Allow more than one error handling step being
8152         used.  Call function to load error handling module if it is none
8153         of the builtin transformations.
8154         * iconv/gconv_close.c: Add code to free transliteration data.
8155         * iconv/gconv_trans.c: Add functions to load and unload modules
8156         implementing transliteration etc.
8157         * iconv/skeleton.c: Call all context functions now that more than
8158         one module is allowed.
8159         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
8160         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
8161         where the full error handling using transliteration is needed.
8162         * iconvdata/8bit-gap.c: Likewise.
8163         * iconvdata/8bit-generic.c: Likewise.
8164         * iconvdata/ansi_x3.110.c: Likewise.
8165         * iconvdata/big5.c: Likewise.
8166         * iconvdata/big5hkscs.c: Likewise.
8167         * iconvdata/euc-cn.c: Likewise.
8168         * iconvdata/euc-jp.c: Likewise.
8169         * iconvdata/euc-kr.c: Likewise.
8170         * iconvdata/euc-tw.c: Likewise.
8171         * iconvdata/gbgbk.c: Likewise.
8172         * iconvdata/gbk.c: Likewise.
8173         * iconvdata/iso-2022-cn.c: Likewise.
8174         * iconvdata/iso-2022-jp.c: Likewise.
8175         * iconvdata/iso-2022-kr.c: Likewise.
8176         * iconvdata/iso646.c: Likewise.
8177         * iconvdata/iso8859-1.c: Likewise.
8178         * iconvdata/iso_6937-2.c: Likewise.
8179         * iconvdata/iso_6937.c: Likewise.
8180         * iconvdata/johab.c: Likewise.
8181         * iconvdata/sjis.c: Likewise.
8182         * iconvdata/t.61.c: Likewise.
8183         * iconvdata/uhc.c: Likewise.
8184         * iconvdata/unicode.c: Likewise.
8185         * iconvdata/utf-16.c: Likewise.
8186         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
8187         structure correctly after last change.
8188         * wcsmbs/btowc.c: Likewise.
8189         * wcsmbs/mbrtowc.c: Likewise.
8190         * wcsmbs/mbsnrtowcs.c: Likewise.
8191         * wcsmbs/mbsrtowcs.c: Likewise.
8192         * wcsmbs/wcrtomb.c: Likewise.
8193         * wcsmbs/wcsnrtombs.c: Likewise.
8194         * wcsmbs/wcsrtombs.c: Likewise.
8195         * wcsmbs/wctob.c: Likewise.
8197         * localedata/Makefile: Set -Wno-format for some files since gcc does
8198         not know all the format specifiers.
8200 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
8202         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
8203         unneeded code.
8204         * locale/lc-time.c (_nl_init_era_entries): Likewise.
8206 2000-06-18  Andreas Jaeger  <aj@suse.de>
8208         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
8209         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
8211 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
8213         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
8214         LINUX_LINK_MAX.
8215         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
8217         * locale/programs/ld-ctype.c (ctype_output): Really write out
8218         mboutdigits information.
8219         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
8220         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
8221         * localedata/tests/trans.def: Add outdigit information.
8223         * localedata/tst-mbswcs3.c: Remove comment.
8225         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
8226         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
8227         * libio/tst_wprintf.c (main): Add test for I flag.
8229         * iconv/gconv_trans.c: Implement handling if translit_ignore.
8230         * locale/langinfo.h: Add entries for translit_ignore information.
8231         * locale/categories.def: Add entries for new LC_CTYPE elements.
8232         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
8233         pointer instead of "" where possible.
8234         * locale/programs/ld-ctype.c: Write out translit_ignore information.
8235         * intl/Depend: Add localedata.
8236         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
8237         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
8239 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
8241         * locale/langinfo.h: Add entries for default_missing information.
8242         * locale/C-ctype.c: Add initializers for new fields.
8243         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
8244         information.
8245         * locale/categories.h: Add entries for all LC_CTYPE values.
8246         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
8247         information.
8249         * localedata/tst-trans.c: Write out an error message if class is
8250         not found.
8252         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
8253         * iconv/gconv_open.c: Remove error handling specification from `from'
8254         character set name.
8255         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
8256         new parameter to always enable transliteration.
8257         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
8258         change.
8259         (struct locale_data): Add new members use_translit and options.
8260         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
8261         character set name contained modifier TRANSLIT.
8262         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
8263         and options fields.
8264         (_nl_unload_locale): Free options string if necessary.
8265         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
8266         the locale names suggested this.
8267         * locale/C-address.c: Add two new initialilzers to adjust data
8268         structure for new format.
8269         * locale/C-collate.c: Likewise.
8270         * locale/C-ctype.c: Likewise.
8271         * locale/C-identification.c: Likewise.
8272         * locale/C-measurement.c: Likewise.
8273         * locale/C-messages.c: Likewise.
8274         * locale/C-monetary.c: Likewise.
8275         * locale/C-name.c: Likewise.
8276         * locale/C-numeric.c: Likewise.
8277         * locale/C-paper.c: Likewise.
8278         * locale/C-telephone.c: Likewise.
8279         * locale/C-time.c: Likewise.
8281         * locale/setlocale.c: Add some more __builtin_expect.
8283 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
8285         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
8286         unsigned char **.
8287         (__gconv_init_fct): Remove two parameters.
8288         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
8289         gconv_transliterate.  Remove two parameters.
8290         Change prototypes of builtin functions according to __gconv_fct change.
8291         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
8292         != NULL only during error handling.  Stop in this case after the
8293         conversion.
8294         * iconv/gconv_trans.c: Replace with real implementation for
8295         __gconv_transliterate.
8296         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
8297         * iconv/gconv.c: Change calls to downstream functions once again.
8298         Use NULL for the fifth parameter instead of pointer to output buffer.
8299         * libio/iofwide.c: Likewise.
8300         * wcsmbs/btowc.c: Likewise.
8301         * wcsmbs/mbrtowc.c: Likewise.
8302         * wcsmbs/mbsnrtowcs.c: Likewise.
8303         * wcsmbs/mbsrtowcs.c: Likewise.
8304         * wcsmbs/wcrtomb.c: Likewise.
8305         * wcsmbs/wcsnrtombs.c: Likewise.
8306         * wcsmbs/wcsrtombs.c: Likewise.
8307         * wcsmbs/wctob.c: Likewise.
8308         * iconv/gconv_simple.c: Remove two parameters from error handling
8309         function call.
8310         * iconvdata/8bit-gap.c: Likewise.
8311         * iconvdata/8bit-generic.c: Likewise.
8312         * iconvdata/ansi_x3.110.c: Likewise.
8313         * iconvdata/big5.c: Likewise.
8314         * iconvdata/big5hkscs.c: Likewise.
8315         * iconvdata/euc-cn.c: Likewise.
8316         * iconvdata/euc-jp.c: Likewise.
8317         * iconvdata/euc-kr.c: Likewise.
8318         * iconvdata/euc-tw.c: Likewise.
8319         * iconvdata/gbgbk.c: Likewise.
8320         * iconvdata/gbk.c: Likewise.
8321         * iconvdata/iso-2022-cn.c: Likewise.
8322         * iconvdata/iso-2022-jp.c: Likewise.
8323         * iconvdata/iso-2022-kr.c: Likewise.
8324         * iconvdata/iso646.c: Likewise.
8325         * iconvdata/iso8859-1.c: Likewise.
8326         * iconvdata/iso_6937-2.c: Likewise.
8327         * iconvdata/iso_6937.c: Likewise.
8328         * iconvdata/johab.c: Likewise.
8329         * iconvdata/sjis.c: Likewise.
8330         * iconvdata/t.61.c: Likewise.
8331         * iconvdata/uhc.c: Likewise.
8332         * iconvdata/unicode.c: Likewise.
8333         * iconvdata/utf-16.c: Likewise.
8335 2000-06-15  Greg McGary  <greg@mcgary.org>
8337         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
8338         of callnum assignment.  Tolerate callnum expressions containing
8339         parens.
8341 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
8343         * login/Makefile (utmpd): Remove rule to build utmpd.
8345         * csu/Versions: Move libgcc frame handling functions from here...
8346         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
8347         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
8348         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
8349         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
8350         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
8351         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
8352         New file.
8353         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
8355         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
8357         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
8359 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
8361         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
8362         compatibility.
8363         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
8364         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
8365         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
8366         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
8368 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
8370         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
8371         defined, terminate quotes and read them after the comment char.
8372         * configure.in (HAVE_SECTION_QUOTES): Test whether
8373         __attribute__((section ("x"))) puts quotes around x or not.
8374         * config.h.in (HAVE_SECTION_QUOTES): Add.
8375         * configure: Rebuilt.
8377 2000-06-14  Andreas Jaeger  <aj@suse.de>
8379         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
8380         depending on the configure option --sysconfdir.
8381         Closes PR libc/1762.
8382         Patch by Andreas Schwab <schwab@suse.de>.
8384         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
8385         entry point.
8386         Reported by Jim Pick <jim@jimpick.com>.
8388 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
8390         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
8391         crashing the application.  Emit some simple error message.
8392         Reported by mju@panasas.com [PR libc/1769].
8394 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
8396         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
8398         * crypt/Makefile (distribute): Add md5.h.
8400         * Makefile (distribute): Add include/shlib-compat.h.
8402         * Make-dist: Search for tests also in sysdeps hierachy.
8404         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
8405         ufc.c, speeds.c, README.ufc-crypt, and Banner.
8407         * sysdeps/sparc/Subdirs: New file.
8409         * locale/Makefile (distribute): Add weightwc.h and
8410         programs/localedef.h.
8412         * time/Makefile (distribute): Add datemsk.
8414         * sysdeps/ia64/Dist: Add softpipe.h.
8416         * sysdeps/unix/sysv/aix/Dist: New file.
8418         * posix/setpgrp.c: Moved to...
8419         * sysdeps/generic/setpgrp.c: ...here.  New file.
8420         * io/mknod.c: Moved to...
8421         * sysdeps/generic/mknod.c: ...here.  New file.
8423         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
8425         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
8427         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
8429         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
8430         gprsave0.S, gprrest1.S, and gprrest0.S.
8432         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
8434         * posix/Makefile (routines): Add spawnattr_getsigmask,
8435         spawnattr_getschedpolicy, spawnattr_getschedparam,
8436         spawnattr_setsigmask, spawnattr_setschedpolicy, and
8437         spawnattr_setschedparam.
8438         * posix/Versions: Add posix_spawnattr_getschedpolicy,
8439         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
8440         posix_spawnattr_setschedparam.
8442         * posix/spawnattr_setschedparam.c: Fix typo.
8444         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
8445         Correct typo.
8447         * login/programs/utmpd.c: Removed.
8448         * login/programs/utmpd.h: Removed.
8449         * login/programs/utmpd-private.h: Removed.
8451         * Makefile (distribute): Add include/db_185.h and include/db.h.
8453         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
8454         iso-ir-165.h.
8456         * elf/Makefile (distribute): Add missing files.
8458         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
8459         * elf/eval.c: Moved to...
8460         * dlfcn/eval.c: ...here.  New file.
8462         * Makefile (distribute): Also distribute ChangeLog.1?.
8464         * Make-dist (+tsrcs): Remove .args handling here as well.
8466         * rt/Makefile (tests): Add tst-timer.
8467         * sysdeps/generic/tst-timer.c: New file.
8469         * Makerules (sources): Don't add BP sources here.
8471         * login/Makefile (distribute): Remove xtmp.h.
8473         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
8474         is true.  Reported by Bruno Haible <haible@ilog.fr>.
8476 2000-06-13  Andreas Jaeger  <aj@suse.de>
8478         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
8479         Patch by Ralf Baechle <ralf@gnu.org>.
8481 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
8483         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
8484         for mincore syscall.
8486         * misc/sys/cdefs.h: Define __bounded and __unbounded if
8487         __BOUNDED_POINTERS__ is not defined.
8489 2000-06-07  Greg McGary  <greg@mcgary.org>
8491         * sysdeps/generic/bp-sym.h: New file.
8492         * sysdeps/generic/bp-start.h: New file.
8493         * sysdeps/i386/elf/start.S: Designate BP symbols.
8494         * sysdeps/generic/libc-start.c: Wrap bounds around
8495         argv & envp and each of their string members.
8497 2000-06-07  Greg McGary  <greg@mcgary.org>
8499         * sysdeps/unix/make-syscalls.sh: Add comments to
8500         output that aid debugging & comprehension.
8501         Map simple syscall signatures to number of args.
8502         Generate BP syscall thunk definitions.
8503         * sysdeps/generic/bp-thunks.h: New file.
8504         * sysdeps/unix/syscalls.list: Replace arg-count with
8505         simple return+arg signature.
8506         * sysdeps/unix/common/syscalls.list: Likewise.
8507         * sysdeps/unix/inet/syscalls.list: Likewise.
8508         * sysdeps/unix/mman/syscalls.list: Likewise.
8509         * sysdeps/unix/sysv/syscalls.list: Likewise.
8510         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8511         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
8513 2000-06-07  Greg McGary  <greg@mcgary.org>
8515         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
8516         for all files *.[cS].
8517         (CFLAGS-.ob): Don't optimize sibling calls.
8518         (bppfx): New variable.
8519         * Makerules (elide-bp-thunks): New variable.
8520         (elide-routines.*): Elide BP-* files for all but *.ob.
8521         (sources): Include bp-thunks.
8523 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
8525         * iconv/gconv_simple.c: Remove unnecessary prototype.
8527         * iconv/gconv_trans.c: Pretty print.
8529         * elf/elf.h (R_SH_NUM): Got accidently dropped.
8531         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
8532         minimal kernel versions.  Add information about IA-64 kernel.
8534         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
8535         specific minimal supported kernel versions to be specified.
8537         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
8538         step data structure.
8539         * wcsmbs/btowc.c: Likewise.
8540         * wcsmbs/mbrtowc.c: Likewise.
8541         * wcsmbs/mbsnrtowcs.c: Likewise.
8542         * wcsmbs/mbsrtowcs.c: Likewise.
8543         * wcsmbs/wcrtomb.c: Likewise.
8544         * wcsmbs/wcsnrtombs.c: Likewise.
8545         * wcsmbs/wcsrtombs.c: Likewise.
8546         * wcsmbs/wctob.c: Likewise.
8548         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
8549         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
8551         * shlib-versions: Earliest backward compatible version for SH is 2.2.
8553         * misc/sys/cdefs.h: Remove one more __P.
8555         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
8556         Reported by HJ Lu.
8558         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
8559         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
8560         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
8562 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
8563             Yutaka Niibe  <gniibe@chroot.org>
8565         * configure.in: Add machine sh3, sh4.
8566         * elf/elf.h: Add SH specific declarations of relocations.
8567         * shlib-versions: Add sh*-*-linux* cases.
8569 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
8571         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
8572         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
8573         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
8574         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
8575         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
8576         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
8578         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
8579         instead of KERNEL_MATH_EMULATION.
8580         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
8581         KERNEL_MATH_EMULATION.
8583         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
8584         * sysdeps/sh/sh3/dl-machine.h: Moved to...
8585         * sysdeps/sh/dl-machine.h: ...here.  New file.
8586         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
8587         and include generic SH version.
8588         * sysdeps/sh/sh3/bits/endian.h: Move to...
8589         * sysdeps/sh/bits/endian.h: ...here.  New file.
8590         * sysdeps/sh/sh4/bits/endian.h: Removed.
8591         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
8592         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
8593         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
8595         * include/libc-symbols.h (link_warning): Work around a change in
8596         GAS which warns about changing section attributes.
8597         Proposed by Nick Clifton <nickc@redhat.com>.
8599 2000-06-12  H.J. Lu  <hjl@gnu.org>
8601         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
8603 2000-06-11  H.J. Lu  <hjl@gnu.org>
8605         * sysdeps/i386/fpu/Versions: New file.
8607 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
8609         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
8610         parameters.
8611         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
8612         exists.
8614 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
8616         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
8617         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
8618         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
8620         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
8621         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
8622         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
8624 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
8625             Yutaka Niibe  <gniibe@chroot.org>
8627         * sysdeps/sh/Dist: New file.
8628         * sysdeps/sh/Implies: New file.
8629         * sysdeps/sh/elf/initfini.c: New file.
8630         * sysdeps/sh/gmp-mparam.h: New file.
8631         * sysdeps/sh/init-first.c: New file.
8632         * sysdeps/sh/machine-gmon.h: New file.
8633         * sysdeps/sh/memcpy.S: New file.
8634         * sysdeps/sh/memprof.h: New file.
8635         * sysdeps/sh/memset.S: New file.
8636         * sysdeps/sh/sh3/__longjmp.S: New file.
8637         * sysdeps/sh/sh3/bits/endian.h: New file.
8638         * sysdeps/sh/sh3/bits/huge_val.h: New file.
8639         * sysdeps/sh/sh3/bits/setjmp.h: New file.
8640         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
8641         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
8642         * sysdeps/sh/sh3/dl-machine.h: New file.
8643         * sysdeps/sh/sh3/setjmp.S: New file.
8644         * sysdeps/sh/sh4/__longjmp.S: New file.
8645         * sysdeps/sh/sh4/bits/endian.h: New file.
8646         * sysdeps/sh/sh4/bits/huge_val.h: New file.
8647         * sysdeps/sh/sh4/bits/setjmp.h: New file.
8648         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
8649         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
8650         * sysdeps/sh/sh4/dl-machine.h: New file.
8651         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
8652         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
8653         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
8654         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
8655         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
8656         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
8657         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
8658         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
8659         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
8660         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
8661         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
8662         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
8663         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
8664         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
8665         * sysdeps/sh/sh4/setjmp.S: New file.
8666         * sysdeps/sh/elf/start.S: New file.
8667         * sysdeps/sh/sys/ucontext.h: New file.
8668         * sysdeps/sh/strlen.S: New file.
8669         * sysdeps/sh/sysdep.h: New file.
8670         * sysdeps/unix/sh/sysdep.S: New file.
8671         * sysdeps/unix/sh/sysdep.h: New file.
8672         * sysdeps/unix/sysv/linux/sh/Dist: New file.
8673         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
8674         * sysdeps/unix/sysv/linux/sh/Versions: New file.
8675         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
8676         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
8677         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
8678         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
8679         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
8680         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
8681         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
8682         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
8683         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
8684         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
8685         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
8686         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
8687         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
8688         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
8689         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
8690         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
8691         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
8692         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
8693         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
8694         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
8695         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
8696         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
8697         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
8698         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
8699         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
8700         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
8701         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
8702         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
8703         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
8704         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
8705         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
8706         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
8707         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
8708         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
8709         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
8710         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
8711         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
8712         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
8713         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
8714         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
8715         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8716         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
8717         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
8718         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
8719         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
8720         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
8721         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
8723 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
8725         * Rules (%.out): Define GCONV_PATH in the environment.
8726         * assert/Depend: New file.
8727         * iconvdata/Depend: New file.
8728         * intl/Depend: New file.
8729         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
8730         * intl/tst-gettext.sh: Likewise.
8731         * iconv/Makefile (routines): Add gconv_trans.
8732         * iconv/gconv_trans.c: New file.
8733         * iconv/gconv.h (struct __gconv_trans_data): New type.
8734         (__gconv_fct): New parameter with starting position in output buffer.
8735         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
8736         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
8737         (struct __gconv_step): Add new member __trans.
8738         * iconv/gconv_int.h: Pretty print prototypes.
8739         (gconv_transliterate): New prototype.
8740         (__BUILTIN_TRANS): Update for new conversion function interface.
8741         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
8742         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
8743         in names, find appropriate function, and install in the conversion
8744         steps it can be used.
8745         * iconv/skeleton.c: Add additional parameter for beginning of output
8746         buffer.  Change calls of downstream functions.
8747         * iconv/loop.c: Change loop function interface completely.  Pass in
8748         step and step_data structure.  Remove optimization for BODY with
8749         NEED_LENGTH_TEST == 0.
8750         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
8751         appropriate error handling code to use transliteration steps.  Remove
8752         optimization for BODY with NEED_LENGTH_TEST == 0.
8753         * iconvdata/8bit-gap.c: Likewise.
8754         * iconvdata/8bit-generic.c: Likewise.
8755         * iconvdata/ansi_x3.110.c: Likewise.
8756         * iconvdata/big5.c: Likewise.
8757         * iconvdata/big5hkscs.c: Likewise.
8758         * iconvdata/euc-cn.c: Likewise.
8759         * iconvdata/euc-jp.c: Likewise.
8760         * iconvdata/euc-kr.c: Likewise.
8761         * iconvdata/euc-tw.c: Likewise.
8762         * iconvdata/gbgbk.c: Likewise.
8763         * iconvdata/gbk.c: Likewise.
8764         * iconvdata/iso-2022-cn.c: Likewise.
8765         * iconvdata/iso-2022-jp.c: Likewise.
8766         * iconvdata/iso-2022-kr.c: Likewise.
8767         * iconvdata/iso646.c: Likewise.
8768         * iconvdata/iso8859-1.c: Likewise.
8769         * iconvdata/iso_6937-2.c: Likewise.
8770         * iconvdata/iso_6937.c: Likewise.
8771         * iconvdata/johab.c: Likewise.
8772         * iconvdata/sjis.c: Likewise.
8773         * iconvdata/t.61.c: Likewise.
8774         * iconvdata/uhc.c: Likewise.
8775         * iconvdata/unicode.c: Likewise.
8776         * iconvdata/utf-16.c: Likewise.
8777         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
8778         DL_CALL_FCT.
8779         * wcsmbs/btowc.c: Likewise.
8780         * wcsmbs/mbrtowc.c: Likewise.
8781         * wcsmbs/mbsnrtowcs.c: Likewise.
8782         * wcsmbs/mbsrtowcs.c: Likewise.
8783         * wcsmbs/wcrtomb.c: Likewise.
8784         * wcsmbs/wcsnrtombs.c: Likewise.
8785         * wcsmbs/wcsrtombs.c: Likewise.
8786         * wcsmbs/wctob.c: Likewise.
8788 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8790         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
8791         other header files.  Mention about 128-byte cache line sizes.
8792         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
8793         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
8794         for current calling sequence.
8795         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
8797         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
8798         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8800         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
8801         and setrlimit syscalls for backwards compatibility.
8803 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
8805         * iconv/skeleton.c:  Rename converted written to correcter name
8806         irreversible.
8807         * iconv/gconv.c: Rename converted variable to correcter name
8808         irreversible.
8809         * iconv/gconv_int.h: Likewise.
8810         * iconv/gconv_simple.c: Likewise.
8811         * iconv/iconv.c: Likewise.
8812         * iconv/loop.c: Likewise.
8813         * iconvdata/8bit-gap.c: Likewise.
8814         * iconvdata/8bit-generic.c: Likewise.
8815         * iconvdata/ansi_x3.110.c: Likewise.
8816         * iconvdata/big5.c: Likewise.
8817         * iconvdata/big5hkscs.c: Likewise.
8818         * iconvdata/euc-cn.c: Likewise.
8819         * iconvdata/euc-jp.c: Likewise.
8820         * iconvdata/euc-kr.c: Likewise.
8821         * iconvdata/gbgbk.c: Likewise.
8822         * iconvdata/gbk.c: Likewise.
8823         * iconvdata/iso-2022-cn.c: Likewise.
8824         * iconvdata/iso-2022-jp.c: Likewise.
8825         * iconvdata/iso-2022-kr.c: Likewise.
8826         * iconvdata/iso646.c: Likewise.
8827         * iconvdata/iso8859-1.c: Likewise.
8828         * iconvdata/iso_6937-2.c: Likewise.
8829         * iconvdata/iso_6937.c: Likewise.
8830         * iconvdata/johab.c: Likewise.
8831         * iconvdata/sjis.c: Likewise.
8832         * iconvdata/t.61.c: Likewise.
8833         * iconvdata/uhc.c: Likewise.
8834         * iconvdata/unicode.c: Likewise.
8835         * iconvdata/utf-16.c: Likewise.
8837         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
8838         __cmsg_data field with __extension__.
8840 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
8842         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
8844 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
8846         * iconv/gconv_simple.c: Fix various small bugs in several
8847         functions.
8849         * iconv/loop.c: Fix comment.
8851 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
8853         * elf/link.h: Remove libc internal declarations.
8854         * include/link.h: Move them here.
8856 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
8858         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
8859         Patch by Dan Pop <Dan.Pop@cern.ch>.
8861         Rewrite error message handling.
8862         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
8863         _dl_catch_error.
8864         * elf/dl-error (struct catch): Add objname member.
8865         (_dl_signal_error): Take new parameter with object name.  When
8866         passing message on simply store object name and duplicate error
8867         message.
8868         (_dl_catch_error): Take new parameter.  Store object name in the
8869         place pointed to.
8870         * include/dlfcn.h: Adjust _dl_catch_error prototype.
8871         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
8872         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
8873         (dlerror): Add objname to asprintf() parameters.
8874         (_dl_error_run): Pass new parameter to _dl_catch_error.
8875         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
8876         * elf/dl-open.c (_dl_open): Likewise.
8877         * elf/rtld.c (dl_main): Likewise.
8878         * elf/dl-close.c: Mark error messages with N_().
8879         * elf/dl-deps.c: Likewise.
8880         * elf/dl-error.c: Likewise.
8881         * elf/dl-load.c: Likewise.
8882         * elf/dl-open.c: Likewise.
8883         * elf/dl-reloc.c: Likewise.
8884         * elf/dl-support.c: Likewise.
8885         * elf/dl-sym.c: Likewise.
8886         * elf/dl-version.c: Likewise.
8887         * elf/dl-lookup.c: Add comments about problems with error message
8888         translations.
8889         * elf/dl-reloc.c: Likewise.
8890         * elf/dl-version.c: Likewise.
8892 2000-06-09  H.J. Lu  <hjl@gnu.org>
8894         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
8895         after freeing it.
8897         * dlfcn/Makefile (distribute): Add failtestmod.c.
8898         (tests): Add failtest.
8899         Add rules to build and run failtest.
8900         * dlfcn/failtest.c: New file.
8901         * dlfcn/failtestmod.c: New file.
8903 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
8905         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
8906         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
8907         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
8908         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
8909         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
8911 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
8913         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
8914         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
8916 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
8917             Ulrich Drepper  <drepper@redhat.com>
8919         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
8920         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
8921         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
8922         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
8923         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
8924         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
8926 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
8928         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
8929         to find correct mount point despite wrong information from the
8930         kernel.
8932 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
8934         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
8935         the address of a symbol so function pointers are handled properly.
8937 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
8939         * sysdeps/i386/Dist: Add bp-asm.h.
8941         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
8942         defaultdir variable instead of "/var/shm" everywhere.
8943         (defaultdir): Change to /dev/shm/.
8945 2000-06-08  Greg McGary  <greg@mcgary.org>
8947         * sysdeps/i386/bp-asm.h: New file.
8948         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
8949         offsets.  Add ENTER/LEAVE macros for optionally maintaining
8950         frame-pointer chain when debugging.
8951         * sysdeps/i386/add_n.S: Likewise.
8952         * sysdeps/i386/addmul_1.S: Likewise.
8953         * sysdeps/i386/lshift.S: Likewise.
8954         * sysdeps/i386/memchr.S: Likewise.
8955         * sysdeps/i386/memcmp.S: Likewise.
8956         * sysdeps/i386/mul_1.S: Likewise.
8957         * sysdeps/i386/rawmemchr.S: Likewise.
8958         * sysdeps/i386/rshift.S: Likewise.
8959         * sysdeps/i386/stpcpy.S: Likewise.
8960         * sysdeps/i386/stpncpy.S: Likewise.
8961         * sysdeps/i386/strchr.S: Likewise.
8962         * sysdeps/i386/strchrnul.S: Likewise.
8963         * sysdeps/i386/strcspn.S: Likewise.
8964         * sysdeps/i386/strpbrk.S: Likewise.
8965         * sysdeps/i386/strrchr.S: Likewise.
8966         * sysdeps/i386/strspn.S: Likewise.
8967         * sysdeps/i386/strtok.S: Likewise.
8968         * sysdeps/i386/sub_n.S: Likewise.
8969         * sysdeps/i386/submul_1.S: Likewise.
8970         * sysdeps/i386/elf/setjmp.S: Likewise.
8971         * sysdeps/i386/i486/strcat.S: Likewise.
8972         * sysdeps/i386/i486/strlen.S: Likewise.
8973         * sysdeps/i386/i586/add_n.S: Likewise.
8974         * sysdeps/i386/i586/lshift.S: Likewise.
8975         * sysdeps/i386/i586/memcpy.S: Likewise.
8976         * sysdeps/i386/i586/memset.S: Likewise.
8977         * sysdeps/i386/i586/rshift.S: Likewise.
8978         * sysdeps/i386/i586/strchr.S: Likewise.
8979         * sysdeps/i386/i586/strcpy.S: Likewise.
8980         * sysdeps/i386/i586/strlen.S: Likewise.
8981         * sysdeps/i386/i586/sub_n.S: Likewise.
8982         * sysdeps/i386/i686/add_n.S: Likewise.
8983         * sysdeps/i386/i686/memcpy.S: Likewise.
8984         * sysdeps/i386/i686/mempcpy.S: Likewise.
8985         * sysdeps/i386/i686/memset.S: Likewise.
8986         * sysdeps/i386/i686/strcmp.S: Likewise.
8988 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
8990         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
8992         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
8993         256 and don't use OPEN_MAX.
8995         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
8996         use it instead of LINK_MAX.
8997         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8999 2000-06-08  Andreas Jaeger  <aj@suse.de>
9001         * libio/genops.c (_IO_list_lock): Only compile body if we're
9002         thread safe.
9003         (_IO_list_unlock): Likewise.
9004         (_IO_list_resetlock): Likewise.
9006 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
9008         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
9009         unless user defined it.
9011         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
9012         if not defined by the user.
9014         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
9015         * libio/iofwrite.c (_IO_fwrite): Likewise.
9017         * time/time.h: Add missing __THROW for clock_getcpuclockid
9018         prototype.
9020         * elf/Makefile (distribute): Add dl-dtprocnum.h.
9021         * include/elf.h: Include also <dl-dtprocnum.h>.
9022         * elf/dl-deps.c: Likewise.
9023         * elf/dl-lookup.c: Likewise.
9024         * elf/dl-runtime.c: Likewise.
9025         * elf/dl-version.c: Likewise.
9026         * elf/do-rel.h: Likewise.
9027         * elf/dynamic-link.h: Likewise.
9028         * elf/link.h: Likewise.
9029         * elf/rtld.c: Likewise.
9030         * sysdeps/generic/dl-dtprocnum.h: New file.
9031         * sysdeps/ia64/dl-dtprocnum.h: New file.
9032         * sysdeps/mips/dl-dtprocnum.h: New file.
9033         * sysdeps/sparc/dl-dtprocnum.h: New file.
9035         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
9037         * elf/do-lookup.h: Add some __builtin_expect.
9039         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
9041         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
9042         (_dl_dynamic_weak): New variable.
9043         * elf/dl-support.c: Likewise.
9044         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
9045         * elf/do-lookup.h: If we find a weak definition treat it like a
9046         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
9047         case treat it like before.
9049         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
9050         is in main program.
9051         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
9053         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
9054         using l_map_start and l_map_end.
9056         * elf/dl-version.c: Add __builtin_expect in many places.
9058         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
9059         Update.
9061 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
9063         Lock for stdio stream list becomes global, for use in LinuxThreads.
9065         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
9066         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
9067         _IO_list_resetlock): New interface for iterating global list of
9068         streams without accessing the _IO_list_all global variable,
9069         and for manipulating the lock which protects this list.
9070         * libio/libioP.h: Likewise.
9071         * libio/Version: Add entries for the new functions.
9073         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
9074         pointer to _IO_FILE.
9076 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
9078         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
9079         BIT() must actually be BITw().
9081         * locale/programs/ld-ctype.c: Handle SP and space consistently.
9083         * locale/programs/charmap.c: Allow string arguments for
9084         code_set_name and repertoiremap.
9086 2000-06-07  Andreas Jaeger  <aj@suse.de>
9088         * elf/Makefile: Build ldconfig only when building shared libraries.
9090 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
9092         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
9093         __USE_ISOC99.
9094         (fdimf, __fdim, fdim): Likewise.
9096 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
9098         * locale/findlocale.c: Add __builtin_expect in many places.
9099         * locale/loadlocale.c: Likewise.
9101 2000-06-06  Greg McGary  <greg@mcgary.org>
9103         * sysdeps/mips/elf/start.S: Trim redundant code.
9105         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
9106         Use C comments throughout.  Line up operands column with tabs.
9107         * sysdeps/powerpc/strchr.S: Likewise.
9108         * sysdeps/powerpc/strcmp.S: Likewise.
9109         * sysdeps/powerpc/strcpy.S: Likewise.
9110         * sysdeps/powerpc/strlen.S: Likewise.
9112         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
9113         Get low part of &__curbrk with @l.
9115 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
9117         * iconvdata/utf-16.c: Add __builtin_expect in many places.
9118         * iconvdata/unicode.c: Likewise.
9119         * iconvdata/uhc.c: Likewise.
9120         * iconvdata/t.61.c: Likewise.
9121         * iconvdata/sjis.c: Likewise.
9122         * iconvdata/johab.c: Likewise.
9123         * iconvdata/iso_6937.c: Likewise.
9124         * iconvdata/iso_6937-2.c: Likewise.
9125         * iconvdata/iso8859-1.c: Likewise.
9126         * iconvdata/iso646.c: Likewise.
9127         * iconvdata/iso-2022-kr.c: Likewise.
9128         * iconvdata/iso-2022-jp.c: Likewise.
9129         * iconvdata/iso-2022-cn.c: Likewise.
9130         * iconvdata/gbgbk.c: Likewise.
9131         * iconvdata/gbk.c: Likewise.
9132         * iconvdata/euc-kr.c: Likewise.
9133         * iconvdata/euc-jp.c: Likewise.
9134         * iconvdata/euc-cn.c: Likewise.
9136 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
9138         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
9139         * iconvdata/big5.c: Likewise.
9140         * iconvdata/ansi_x3.110.c: Likewise.
9141         * iconvdata/8bit-generic.c: Likewise.
9142         * iconvdata/8bit-gap.c: Likewise.
9143         * iconv/loop.c: Likewise.
9144         * iconv/gconv_db.c: Likewise.
9145         * iconv/gconv_dl.c: Likewise.
9146         * iconv/gconv_simple.c: Likewise.
9147         * iconv/skeleton.c: Likewise.
9149         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
9150         (struct __gconv_step_data): Rename __is_last to __flags.
9151         * iconv/gconv_close.c: Change all uses of __is_last.
9152         * iconv/skeleton.c: Likewise.
9153         * iconvdata/iso-2022-cn.c: Likewise.
9154         * iconvdata/iso-2022-jp.c: Likewise.
9155         * iconvdata/iso-2022-kr.c: Likewise.
9156         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
9157         Recognize IGNORE error handling, set flag, and remove from name.
9158         * iconv/loop.c (ignore_errors_p): Define.
9159         Add flags parameter to both functions.
9160         * iconv/skeleton.c: Pass flags to all conversion functions.
9161         * iconv/gconv_simple.c: Add flags parameter to all functions.
9162         Don't return error for invald error if ignore flag is set.
9163         (ucs4_internal_loop_single): Add missing pointer increment.
9164         (internal_ucs4le_loop_single): Likewise.
9165         * iconv/iconv_prog.c: Implement handling of -c parameter.
9166         * iconvdata/8bit-gap.c: Don't return error for invald error if
9167         ignore flag is set.
9168         * iconvdata/8bit-generic.c: Likewise.
9169         * iconvdata/ansi_x3.110.c: Likewise.
9170         * iconvdata/big5.c: Likewise.
9171         * iconvdata/big5hkscs.c: Likewise.
9172         * iconvdata/euc-cn.c: Likewise.
9173         * iconvdata/euc-jp.c: Likewise.
9174         * iconvdata/euc-kr.c: Likewise.
9175         * iconvdata/gbgbk.c: Likewise.
9176         * iconvdata/gbk.c: Likewise.
9177         * iconvdata/iso-2022-cn.c: Likewise.
9178         * iconvdata/iso-2022-jp.c: Likewise.
9179         * iconvdata/iso-2022-kr.c: Likewise.
9180         * iconvdata/iso646.c: Likewise.
9181         * iconvdata/iso8859-1.c: Likewise.
9182         * iconvdata/iso_6937-2.c: Likewise.
9183         * iconvdata/iso_6937.c: Likewise.
9184         * iconvdata/johab.c: Likewise.
9185         * iconvdata/sjis.c: Likewise.
9186         * iconvdata/t.61.c: Likewise.
9187         * iconvdata/uhc.c: Likewise.
9188         * iconvdata/unicode.c: Likewise.
9189         * iconvdata/utf-16.c: Likewise.
9190         * libio/fileops.c: Likewise.
9191         * libio/iofwide.c: Likewise.
9192         * wcsmbs/btowc.c: Likewise.
9193         * wcsmbs/mbrtowc.c: Likewise.
9194         * wcsmbs/mbsnrtowcs.c: Likewise.
9195         * wcsmbs/mbsrtowcs.c: Likewise.
9196         * wcsmbs/wcrtomb.c: Likewise.
9197         * wcsmbs/wcsnrtombs.c: Likewise.
9198         * wcsmbs/wcsrtombs.c: Likewise.
9199         * wcsmbs/wctob.c: Likewise.
9201         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
9202         an error.
9204 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
9206         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
9207         counter for the object we are releasing, just decrement it.
9208         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
9210 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
9212         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
9213         if -ffast-math.
9215 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
9217         * iconvdata/big5hkscs.c: New file.
9218         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
9220         * iconvdata/gconv-modules: Add entry for new module.
9221         * iconvdata/Makefile (modules): Add BIG5HKSCS.
9222         (distribute): Add big5hkscs.c.
9224 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
9226         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
9227         inlines to match prototypes in mathcalls.h.
9228         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9229         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
9230         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9231         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9233 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
9235         * elf/elf.h (SHT_SUNW_move): Define.
9237         * elf/elf.h: Add more Solaris compatiblity definitions.
9239 2000-06-03  Andreas Jaeger  <aj@suse.de>
9241         * sysdeps/powerpc/dl-start.S: Close open comment.
9243 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
9245         * inet/Versions: Fix typo in rresvport_af export.
9247 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
9249         * math/tgmath.h: Pretty print.
9251 2000-06-02  Andreas Jaeger  <aj@suse.de>
9253         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
9254         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
9256 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
9258         * elf/rtld.c (process_envvars): Test for = after variable name.
9260 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
9262         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
9263         have extra call to __gmon_start__, use the pointer we already have.
9265         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
9266         shifting.
9268         * sysdeps/i386/elf/setjmp.S: Work around change is recent
9269         binutils.  gas now emits a jump through the PLT instead of a
9270         relative jump if the jump target is an exported symbol.
9272 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
9274         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
9276 2000-05-31  Andreas Jaeger  <aj@suse.de>
9278         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
9279         gregset_t.
9281         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
9282         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
9284         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
9285         syscall.
9286         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
9288 2000-05-30  Jakub Jelinek  <jakub@redhat.com>
9290         * resolv/res_query.c (res_nsearch): Remove unused variable
9291         root_on_list. If dots >= statp->ndots and as is querydomain
9292         fails, keep searching.
9294 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
9296         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
9298         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
9299         * locale/localeconv.c: Make function versioned (with same definition).
9301         * elf/Makefile (modules-names): Strip before using it.
9303 2000-05-30  Andreas Jaeger  <aj@suse.de>
9305         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
9306         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
9307         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
9308         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
9309         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
9310         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
9312 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
9314         * Makefile: Add GNU make magic.
9316         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
9317         Removed.
9318         * inet/rcmd.c: Remove __P.  Remove unused variables.
9319         (iruserfopen): Make first parameter const.
9320         (ruserok_sa): Return result of ruserok2_sa.
9321         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
9322         * inet/rexec.c: Remove unused variables.  Other small cleanups.
9323         * inet/ruserpass.c: Remove __P.  Remove unused variables.
9324         (ruserpass): Check results of memory allocation.
9325         * include/netdb.h: Add prototype for ruserpass.
9327 2000-05-29  Andreas Jaeger  <aj@suse.de>
9329         * elf/readlib.c (interpreters): Use LD_SO since this is supported
9330         for all platforms.
9332 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
9334         * inet/rcmd.c (rresvport_af): Use correct port number.
9336 2000-05-26  Andreas Schwab  <schwab@suse.de>
9338         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
9339         entries in all-sonames.
9340         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
9341         preserving the old name if different for compatibility.
9343 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
9345         * posix/Makefile (tests): Add tst-spawn.
9346         (tst-spawn-ARGS): New variable.
9347         * posix/tst-spawn.c: New file.
9349         * posix/spawn_faction_addclose.c: Correctly account for new entry.
9350         * posix/spawn_faction_adddup2.c: Likewise.
9351         * posix/spawn_faction_addopen.c: Likewise.
9352         * posix/spawni.c: Correctly test for success of dup2 calls.
9354         * posix/tst-preadwrite.c: Check success of malloc call.
9356 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
9358         * posix/Makefile (tests): Add tst-exec.
9359         (tst-exec-ARGS): New variable.
9360         * posix/tst-exec.c: New file.
9362         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
9364 2000-05-04  Andreas Jaeger  <aj@suse.de>
9366         * string/string.h: Remove __strdup prototype, it's not needed in
9367         this file anymore.
9369 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
9371         * posix/Makefile (tests): Add tst-fork.
9372         * posix/tst-fork.c: New file.
9374         * resolv/inet_pton.c: Loose __P.
9376 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
9378         * libio/libioP.h (_IO_CHECK_WIDE): Define.
9379         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
9380         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9381         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
9382         _IO_CHECK_WIDE fails.
9384 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
9386         * po/da.po: New file.
9388         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
9389         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
9391         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
9392         (Other iconv Implementations): Fix typo.
9393         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
9395 2000-05-27  Andreas Jaeger  <aj@suse.de>
9397         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
9398         normal version now.
9399         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
9400         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
9401         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
9402         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9403         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
9404         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
9406         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
9407         endianness to decide how to pass arguments.
9408         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
9410         * elf/vismain.c: Use test-skeleton interface.
9411         (TEST_FUNCTION): New macro.
9412         (do_test): Renamed from main.
9414 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
9416         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
9417         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
9419         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
9420         handling of AI_V4MAPPED flag.
9422         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
9423         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
9424         perform lookup for T_A type and tell getanswer_r to convert the
9425         result with new argument.
9426         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
9427         Don't convert addresses from IPv4 to IPv6 here.
9428         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
9429         IPv6 is wanted.  Allow qtype and type from reply to disagree if
9430         IPv4 mapping has to be done.  Perform mappings if required by the
9431         caller and not if RES_USE_INET6 bit in _res.options is set.
9432         Add several __builtin_expect.
9434 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
9436         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
9438         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
9439         NULL.
9441         * posix/tst-preadwrite.c: Allow parallel execution of
9442         tst-preadwrite and tst-preadwrite64.
9444         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
9445         * posix/tst-truncate.c: New file.
9446         * posix/tst-truncate64.c: New file.
9448         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
9449         was switched.
9451         * posix/Makefile (tests): Add tst-preadwrite64.
9452         * posix/tst-preadwrite.c: Alloc file being used also for testing
9453         pread64 and pwrite64.
9454         * posix/tst-preadwrite64.c: New file.
9456 2000-05-26  Andreas Jaeger  <aj@suse.de>
9458         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
9459         of arguments dependend on endianness.
9460         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
9462         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
9463         normal version now.
9464         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
9465         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
9466         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9467         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9469         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
9470         endianness to check how to pass argument.
9471         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
9473         * elf/ldconfig.h: Update parameter list for process_elf_file.
9475         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
9476         Add parameter file_length and pass it ot process_elf*file.
9478         * sysdeps/generic/readelflib.c (check_ptr): New.
9479         (process_elf_file): Use check_ptr to check all accesses to the
9480         mmapped file. Add parameter file_length.
9482         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
9483         library names.
9485         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
9486         Closes PR libc/1573, reported by Bradley White
9487         <bww@laurelnetworks.com>.
9489 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
9491         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
9492         __FAST_MATH__ is defined.
9494 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
9496         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
9497         with omitted middle operand.
9499 2000-05-22  Andreas Jaeger  <aj@suse.de>
9501         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
9502         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
9504         * manual/math.texi (FP Function Optimizations): Document gcc
9505         -ffast-math behaviour with mathinlines.
9507         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
9508         functions unless -ffast-math is given to gcc.
9510 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
9512         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
9513         __sincosl): Guard with __USE_GNU.
9515 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
9517         * csu/Makefile (routines): Add check_fds.
9518         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
9519         binaries.  Add various __builtin_expect.
9520         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
9521         * sysdeps/generic/check_fds.c: ...here.  New file.
9523         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
9524         binaries if file /etc/suid-debug is available.
9526         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
9527         and wcseqorder members.
9528         (struct locale_collate_t): Likewise.
9529         (collate_finish): Assign collation sequence value to each character.
9530         Create tables for output.
9531         (collate_output): Write out tables with collation sequence information.
9532         * locale/C-collate.c: Provide C locale data for collation sequence
9533         table.
9534         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
9535         _NL_COLLATE_COLLSEQWC.
9536         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
9537         _NL_COLLATE_COLLSEQWC.
9538         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
9539         include fnmatch_loop.c.
9540         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
9541         character is matched by range expression.  Use collation sequence
9542         table.  Outside glibc fall back on simple character value comparison.
9544 2000-05-24  Andreas Jaeger  <aj@suse.de>
9546         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
9547         words.
9549         * intl/Makefile: Run gettext-test only if msgfmt is available.
9551         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
9552         Define it for newer kernels.
9554 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
9556         * elf/dl-sym.c: Minor cleanups.
9558         * configure.in: Add test for .protected.
9559         * config.make.in: Add have-protected variable.
9560         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
9561         (tests-vis-yes): Add vismain.
9562         (modules-names): Add $(modules-vis-$(have-protected)).
9563         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
9564         Add rules to generate and run vismain.
9565         * elf/vismain.c: New file.
9566         * elf/vismod1.c: New file.
9567         * elf/vismod2.c: New file.
9568         * elf/vismod3.c: New file.
9570 2000-05-23  Andreas Jaeger  <aj@suse.de>
9572         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
9574         * manual/search.texi (Array Sort Function): Document that qsort is
9575         not necessarily in-place.
9577         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
9578         Closes PR libc/1731.
9580         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
9581         * dirent/scandir64.c: Likewise.
9582         * pwd/getpw.c: Likewise.
9583         * stdlib/bsearch.c (bsearch): Likewise.
9584         * stdlib/tst-strtoll.c: Likewise.
9585         * localedata/collate-test.c: Likewise.
9586         * localedata/xfrm-test.c: Likewise.
9587         * posix/bsd-getpgrp.c: Likewise.
9588         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
9589         * sysdeps/generic/bits/siginfo.h: Likewise.
9590         * sysdeps/generic/bits/sockaddr.h: Likewise.
9591         * sysdeps/generic/sys/swap.h: Likewise.
9592         * sysdeps/generic/sys/sysinfo.h: Likewise.
9593         * sysdeps/generic/vfork.c: Likewise.
9594         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
9595         * sysdeps/mach/hurd/fdopen.c: Likewise.
9596         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
9597         * sysdeps/unix/sysv/linux/poll.c: Likewise.
9598         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9599         * sysdeps/unix/sysv/linux/writev.c: Likewise.
9600         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
9601         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
9602         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
9604         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
9605         * shadow/lckpwdf.c: Likewise.
9606         * stdlib/tst-strtol.c: Likewise.
9607         * sysdeps/generic/tcsetattr.c: Likewise.
9608         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9609         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9611 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
9613         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
9614         free it and set to (void *) -1.
9616 2000-05-22  Jakub Jelinek <jakub@redhat.com>
9618         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
9619         not the second character in the range.
9620         * stdio-common/tstscanf.c (main): Add testcase for the above.
9621         Reported by jik@kamens.brookline.ma.us.
9623 2000-05-21  H.J. Lu  <hjl@gnu.org>
9625         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
9626         with noexec and noplt parameter.
9627         (do_lookup): Likewise.
9629         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
9630         do_lookup.  Support STV_PROTECTED.
9631         (_dl_lookup_symbol_skip): Likewise.
9632         (_dl_lookup_versioned_symbol): Likewise.
9633         (_dl_lookup_versioned_symbol_skip): Likewise.
9635         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
9637         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
9639 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
9641         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
9642         * sysdeps/i386/bits/huge_val.h: Likewise.
9643         * sysdeps/ieee754/bits/huge_val.h: Likewise.
9644         * sysdeps/m68k/bits/huge_val.h: Likewise.
9645         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
9646         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
9648 2000-05-22  Andreas Jaeger  <aj@suse.de>
9650         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
9651         change in iconv.h.
9653 2000-05-19  Andreas Jaeger  <aj@suse.de>
9655         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
9656         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
9657         breaks compilation without linuxthreads.
9659 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
9661         * sysdeps/ia64/memccpy.S: New file.
9662         * sysdeps/ia64/memchr.S: New file.
9663         * sysdeps/ia64/memcmp.S: New file.
9664         * sysdeps/ia64/memcpy.S: New file.
9665         * sysdeps/ia64/memmove.S: New file.
9666         * sysdeps/ia64/memset.S: New file.
9667         * sysdeps/ia64/strcat.S: New file.
9668         * sysdeps/ia64/strchr.S: New file.
9669         * sysdeps/ia64/strcmp.S: New file.
9670         * sysdeps/ia64/strcpy.S: New file.
9671         * sysdeps/ia64/strlen.S: New file.
9672         * sysdeps/ia64/strncmp.S: New file.
9673         * sysdeps/ia64/strncpy.S: New file.
9674         * sysdeps/ia64/softpipe.h: New file.
9675         Patches by Dan Pop <Dan.Pop@cern.ch>.
9677         * manual/memory.texi: Document memory handling functions (mlock,
9678         munlock, mlockall, munlockall, brk, and sbrk)
9679         * manual/time.texi: Document timespec and friends.
9680         * manual/conf.texi: Fix references.
9681         * manual/ctype.texi: Likewise.
9682         * manual/errno.texi: Likewise.
9683         * manual/intro.texi: Likewise.
9684         * manual/locale.texi: Likewise.
9685         * manual/sysinfo.texi: Likewise.
9686         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
9688 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
9690         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
9691         * sysdeps/ia64/dl-lookupcfg.h: ...here.
9693 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
9695         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
9696         dxfer_direction.
9698 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
9700         * locale/locale.h (struct lconv): Add new elements from ISO C99.
9701         * locale/localeconv.c: Initialize new elements from ISO C99.
9702         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
9703         new standard elements.
9704         * locale/categories.def: Adjust accordingly.
9706         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
9707         * iconv/iconv.c: Likewise.
9708         * conform/data/iconv.h-data: Likewise.
9709         * iconv/iconv_prog.c (process_block): Remove const from second
9710         parameter.
9711         (main): Remove const from addr definition.
9712         * manual/charset.texi (Generic Conversion Interface): Remove from
9713         inbuf parameter of iconv.
9715         * intl/dcigettext.c: Fix typo in comment.
9717 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
9719         * resolv/res_libc.c (_res): Initialize _sock to -1.
9721 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
9723         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
9724         (fopencookie@@GLIBC_2.2): New.
9725         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
9726         (fopencookie@GLIBC_2.0): New.
9727         * libio/Versions: Add fopencookie to GLIBC_2.2.
9729 2000-05-18  Andreas Jaeger  <aj@suse.de>
9731         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
9732         Closes PR libc/1731.
9734         * manual/arith.texi (Parsing of Integers): Fix typo.
9735         Closes PR libc/1744, reported by blp@gnu.org.
9737 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
9739         * inet/rcmd.c (rcmd_af): If *ahost cannot be resolved, include
9740         unresolved hostname in the message.
9742 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
9744         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
9745         __extension__ to hexadecimal floating constant notation.
9746         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
9747         Likewise.
9748         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
9749         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
9750         Likewise.
9751         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
9752         HUGE_VALL): Likewise.
9753         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
9754         HUGE_VALL): Likewise.
9755         (HUGE_VALL): Set to HUGE_VAL on sparc32.
9757 2000-05-17  Andreas Jaeger  <aj@suse.de>
9759         * string/envz.h: Add pure attributes if possible.
9761         * string/argz.h: argz_count is a pure function.
9763         * string/strings.h: Add pure and const attributes if possible.
9765         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
9766         possibly searching through the whole memory.
9767         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
9769 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
9771         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
9772         not yet defined.
9773         (_dl_cache_check_flags): Likewise.
9774         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
9775         dl-cache.h.
9777 2000-05-17  Andreas Jaeger  <aj@suse.de>
9779         * manual/creature.texi (Feature Test Macros): Remove paragraph
9780         since the description is wrong.
9781         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
9783         * scripts/config.sub: New version.
9784         * scripts/config.guess: Likewise.
9785         * manual/texinfo.tex: Likewise.
9787         * time/test_time.args: Removed.
9788         * time/Makefile (test_time-ARGS): Added contents here instead.
9790         * posix/tstgetopt.args: Removed.
9791         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
9793         * Rules: Allow arguments for test files to be specified in
9794         Makefile with testname-ARGS; remove rules with .args in it.
9796         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
9797         remove old bogus rule for opendir-tst1.args.
9799         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
9801         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
9802         into objdir.  This allows a readonly sourcetree.
9803         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
9805 2000-05-16  Andreas Jaeger  <aj@suse.de>,
9806             David Huggins-Daines <dhd@linuxcare.com>
9808         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
9809         cache_data in case of only new cache format correctly.
9811         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
9812         cache_file_new.
9814         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
9815         struct cache_file_new.
9817         * elf/cache.c (save_cache): Fix str_offset if only new cache is
9818         present.
9820         * elf/cache.c (save_cache): Align struct new_file_cache.
9821         (print_cache): Likewise.
9823 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
9825         * elf/soinit.c (__libc_global_ctors): Move
9826         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
9827         * resolv/resolv.h (__res_state): Added __attribute__((const)).
9828         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
9829         variable, don't define it to __res_state call.
9831 2000-05-13  Andreas Jaeger  <aj@suse.de>
9833         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
9834         Linux 2.3.99pre7.
9835         (AF_PPPOX): Likewise.
9836         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
9837         (AF_PPPOX): Likewise.
9839 2000-05-12  Andreas Jaeger  <aj@suse.de>
9841         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
9842         Reported by tmoestl@gmx.net, closes PR libc/1732.
9844 2000-05-11  Jan Hubicka  <jh@suse.cz>
9846         * misc/sys/cdefs.h: Add support for pure attribute.
9848         * include/string.h: Add __attribute_pure__ to various functions.
9849         * string/string.h: Likewise.
9851 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
9853         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
9854         argument.
9855         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9856         R_SPARC_UA64.
9857         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
9859 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
9861         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
9862         at proper place.  Compute the high nibble correctly.
9864 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
9866         * elf/ldconfig.c: Include elf.h.
9868         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
9869         (_dl_vsym): Likewise.
9870         Reported by Owen Taylor <otaylor@redhat.com>.
9872         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
9873         always.
9875 2000-05-08  Andreas Jaeger  <aj@suse.de>
9877         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
9879         * intl/bindtextdom.c (set_binding_values): Add prototype.
9881 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
9883         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
9884         call to elf_machine_fixup_plt.
9885         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
9886         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
9888 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
9890         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
9891         they are not dlclose'd from underneath us.
9893 2000-05-08  Andreas Schwab  <schwab@suse.de>
9895         * posix/execle.c: Fix size parameter of memcpy.
9897 2000-05-08  Andreas Schwab  <schwab@suse.de>
9899         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
9900         getpagesize syscall if available.
9902 2000-05-08  Andreas Jaeger  <aj@suse.de>
9904         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
9905         set errno.
9907 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
9909         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
9910         sizeof(struct link_map *) chunks, not in bytes.
9912 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
9914         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
9915         only needed for locale.
9916         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
9917         It's only needed for catgets.
9918         Patches by Greg McGary <gkm@eng.ascend.com>.
9920 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
9922         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
9923         Remove duplicate <errno.h> include.  Remove inclusion of
9924         <libintl.h> and "nsswitch.h".
9925         (set_cloexec_flag): New function, broken out of dbopen.
9926         (dbopen): Changed return type to `enum
9927         nss_status'.  Mostly rewritten to make sure that we do not report
9928         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
9929         (internal_setent): Change return type to nss_status.
9930         Document, and make sure that the function
9931         behaves accordingly.  Make dynamically loading the database
9932         library really thread-safe and return NSS_STATUS_UNAVAIL if it
9933         failed.
9934         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
9935         unecessary casts.
9936         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
9937         documentation.
9938         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
9939         c_get function member.
9940         * nss/nss_db/nss_db.h: Add and tweak some comments.
9941         (DBT): Move typedef before NSS_DBC typedef.
9942         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
9944 2000-05-07  H.J. Lu  <hjl@gnu.org>
9946         * csu/initfini.c: Moved to ....
9947         * sysdeps/generic/initfini.c: ...here.
9949         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
9951 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
9953         * manual/resource.texi: Document POSIX scheduling functions.
9954         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9956         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
9957         reading anything.  Reported by Andries.Brouwer@cwi.nl.
9959         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
9960         for x since promotion in comparison might leads to unexpected
9961         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
9963         * iconv/Makefile (tests): Add tst-iconv1.
9964         * iconv/tst-iconv1.c: New file.
9965         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
9966         empty input buffer over full output buffer.
9967         (ucs4_internal_loop): Likewise.
9968         (ucs4_internal_loop_unaligned): Likewise.
9969         (internal_ucs4le_loop): Likewise.
9970         (internal_ucs4le_loop_unaligned): Likewise.
9971         (ucs4le_internal_loop): Likewise.
9972         (ucs4le_internal_loop_unaligned): Likewise.
9973         Reported by yaoz@nih.gov.
9975 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
9977         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
9978         returned != __GCONV_OK, there is nothing to clean up.
9980 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
9982         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
9983         OUTPUT_CHARSET environment variables.
9985 2000-05-06  Andreas Jaeger  <aj@suse.de>
9987         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
9988         (struct cache_file_new): New.
9989         (struct file_entry): New (moved from cache.c).
9990         (struct cache_file): New (moved from cache.c).
9992         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
9993         from _dl_load_cache_lookup.
9994         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
9995         the different cache formats.
9996         New variable cache_new for new format.
9998         * elf/ldconfig.h: Change according to changes in cache.c and
9999         ldconfig.c; remove cache_libcmp; add opt_format.
10001         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
10002         stuff that's defined in those headers.
10003         Add hwcap to struct lib_entry.
10004         (opt_format): New variable to select cache format.
10005         (options): Add format parameter.
10006         (is_hwcap): New function.
10007         (path_hwcap): New function.
10008         (parse_opt): Handle new format parameter.
10009         (search_dir): Handle hwcap, search also subdirectories with hwcap.
10011         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
10012         ldconfig is part of glibc.
10013         Include dl-cache.h and remove stuff that's defined there.
10014         (struct cache_entry): Add new member hwcap.
10015         (print_entry): Print hwcap, cleanup a bit.
10016         (print_cache): Print new and old formats.
10017         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
10018         (save_cache): Save new and old formats.
10019         (add_to_cache): Handle hwcap.
10021         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
10022         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
10023         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
10024         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
10025         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
10026         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
10028 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
10030         * intl/dcigettext.c (alignof): New macro.
10031         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
10032         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
10033         freemem_size to 0.
10035 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
10037         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
10038         return value.
10040 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
10042         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
10043         (mempcpy): Correct typo is parameter list.
10045 2000-05-06  Andreas Jaeger  <aj@suse.de>
10047         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
10048         functions unless -ffast-math is given to gcc.
10050 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
10052         * po/ko.po: Update from translation team.
10054 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
10056         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
10057         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
10058         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
10059         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
10060         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
10061         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
10063         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
10064         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
10065         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
10067         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
10068         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
10069         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
10070         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
10072         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
10073         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
10075 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
10077         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
10078         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
10080         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
10081         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
10083         * sysdeps/ia64/Implies: New file.
10084         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
10085         * sysdeps/ia64/Makefile: New file.
10086         * sysdeps/ia64/gmp-mparam.h: New file,
10088         * sysdeps/ia64/elf/start.S: New file.
10090         * sysdeps/ia64/bits/fenv.h: New file.
10092 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
10094         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
10096 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
10098         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
10099         ia64 has 64 bit .hash entries just as the Alpha.
10101 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
10103         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
10105 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
10107         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
10108         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
10109         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
10110         * sysdeps/ia64/fpu/fegetenv.c: New file.
10111         * sysdeps/ia64/fpu/fegetexcept.c: New file.
10112         * sysdeps/ia64/fpu/fegetround.c: New file.
10113         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
10114         * sysdeps/ia64/fpu/fesetenv.c: New file.
10115         * sysdeps/ia64/fpu/fesetround.c: New file.
10116         * sysdeps/ia64/fpu/feupdateenv.c: New file.
10117         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
10118         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
10119         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
10120         * sysdeps/ia64/fpu/ftestexcept.c: New file.
10122 2000-05-05  Andreas Jaeger  <aj@suse.de>
10124         * misc/tst-tsearch.c (main): Correct type for initstate argument.
10126         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
10127         (_dl_string_hwcap): New, does nothing.
10129         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
10130         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
10131         (_dl_string_hwcap): New function, converts from string to hwcap
10132         encoding.
10133         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
10134         (_DL_HWCAP_COUNT): New.
10135         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
10136         (_dl_string_hwcap): New function, converts from string to hwcap
10137         encoding.
10138         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
10139         (_DL_HWCAP_COUNT): New.
10140         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
10141         (_dl_string_hwcap): New function, converts from string to hwcap
10142         encoding.
10144 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
10146         * elf/Makefile (distribute): Add dl-lookupcfg.h.
10147         * sysdeps/ia64/Dist: New file.
10149         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
10150         parameter to mprotect and for variable assignments.
10152 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
10154         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
10155         validity of map before dereferencing it.
10157         * elf/dl-reloc.c (RESOLVE_MAP): Define.
10159 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
10161         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
10162         lookup to the arguments to elf_machine_fixup_plt().
10164         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
10165         of the symbol being resolved to input argument list and make the
10166         function return the pointer to the reloc.
10168         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
10169         return valuie to lookup_t and return the value.
10170         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
10171         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
10172         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
10173         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
10174         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
10175         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
10177         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
10178         Make it an inline function returning value after calling
10179         __elf_machine_fixup_plt().
10181         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
10182         symbol address.
10184         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
10185         obtain the symbol address.
10187         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
10188         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
10190         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
10191         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
10192         inline on non ia64.
10194 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
10196         * elf/dl-runtime.c (fixup): Use the portable macros to get the
10197         symbol address of an object.
10199         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
10200         the symbol address of an object.
10202         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
10203         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
10204         (_dl_lookup_symbol_skip): Likewise.
10205         (_dl_lookup_versioned_symbol): Likewise.
10206         (_dl_lookup_versioned_symbol_skip): Likewise.
10208 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
10210         * elf/rtld.c (_dl_start): Get the function pointer return address
10211         via _dl_start_address for architectures that need a function
10212         pointer descriptor rather than just a pointer (ia64).
10214         * sysdeps/generic/dl-lookupcfg.h: New file.
10215         * sysdeps/ia64/dl-lookupcfg.h: New file.
10216         * sysdeps/ia64/dl-machine.h: New file.
10217         * sysdeps/ia64/dl-symaddr.c: New file.
10218         * sysdeps/ia64/dl-fptr.c: New file.
10220         * elf/elf.h: Add IA-64 specific definitions.
10222 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
10224         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
10225         end of enum.
10227 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
10229         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
10230         happy.
10232 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
10234         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
10235         symbol.  Call _dl_init rather than the old way.
10237 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
10239         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
10240         test for pointer in range of DSO address space.
10242 2000-05-04  Andreas Jaeger  <aj@suse.de>
10244         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
10246 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
10248         * locale/findlocale.c (_nl_find_locale): Add new parameter to
10249         calls of _nl_make_l10nflist.
10251         * libio/stdio.h: Make fseeko and ftello prototypes available is
10252         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
10254         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
10255         real unsetenv implementation from 1999-07-29 [PR libc/1714].
10257 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
10259         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
10260         before calling tfind.
10262 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
10264         * resolv/resolv.h (res_querydomain): Remove redefinition to
10265         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
10267 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
10269         * po/gl.po: Update from translation team.
10271         * manual/intro.texi (Program Basics): Change section title.
10272         * manual/process.texi: Fix reference.
10273         (Executing a File): Add reference exec in other section.
10274         * manual/signal.texi: Fix reference.
10275         * manual/startup.texi: Document syscall function.
10276         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
10278 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
10280         * intl/libintl.h (bind_textdomain_codeset): New declaration.
10281         * intl/bindtextdom.c (set_binding_values): New function.
10282         (bindtextdomain): Call it.
10283         (bind_textdomain_codeset): New function.
10284         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
10285         (free_mem): Free each binding's codeset.
10286         * intl/gettextP.h (struct binding): Add codeset field.
10287         (_nl_find_domain): Add domainbinding argument.
10288         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
10289         Pass it to _nl_make_l10nflist.
10290         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
10291         (_nl_make_l10nflist): Add domainbinding argument.
10292         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
10293         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
10294         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
10295         locale_charset().
10296         * manual/message.texi: New node "Charset conversion in gettext".
10298 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
10300         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
10301         appropriate.  Handle possible __read error.
10303 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
10305         * intl/gettextP.h (__builtin_expect): Define as empty if not a
10306         compiler builtin.
10307         * intl/loadinfo.h (__builtin_expect): Likewise.
10308         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
10309         __builtin_expect where appropriate.
10310         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
10311         * intl/localealias.c (extend_alias_table): Return an error indicator.
10312         (read_alias_file): Bail out if extend_alias_table fails.
10314 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
10316         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
10317         * intl/localealias.c: Likewise.
10319 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
10321         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
10322         Initialize domain->plural and domain->nplurals even if there is no
10323         nullentry.
10325 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
10327         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
10328         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
10329         In case of failure, goto converted.
10331 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
10333         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
10334         * iconv/gconv_int.h (norm_add_slashes): Move to here.
10335         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
10336         __gconv_open.
10338 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
10340         * intl/dcigettext.c (transcmp): Compare the domains as well.
10341         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
10342         not before.
10343         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
10344         <errno.h>.
10346 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
10348         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
10349         Reported by Bruno Haible.
10351 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
10353         * manual/arith.texi: Remove @w from @itemize.
10355 2000-05-02  Andreas Jaeger  <aj@suse.de>
10357         * conform/data/tar.h-data: Add some checks for specific values.
10359         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
10360         and RAND_MAX.
10362         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
10363         FOPEN_MAX.
10365         * conform/data/netinet/in.h-data: Add exact checks for the values
10366         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
10368         * conform/data/float.h-data: Add some minimal values.
10370         * conform/conformtest.pl: Test for macros with string constants,
10371         check for minimum and maximum values.
10372         Add limits.h to headers.
10374         * conform/data/cpio.h-data: Test for value of MAGIC.
10376         * conform/data/limits.h-data: New file.
10378 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
10380         * math/Makefile (headers): Add bits/fenvinline.h.
10382 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
10384         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
10385         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
10387         * posix/Versions: Change posix_spawnattr_getdefault and
10388         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
10389         and posix_spawnattr_setsigdefault respectively.
10390         * posix/spawn.h: Likewise.
10391         * posix/spawnattr_getdefault.h: Likewise.
10392         * posix/spawnattr_setdefault.h: Likewise.
10393         * conform/data/spawn.h-data: Likewise.
10395 2000-05-01  Andreas Jaeger  <aj@suse.de>
10397         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
10399 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
10401         * manual/sysinfo.texi: Document getdomainname, setdomainname
10402         and sysctl.
10403         * manual/string.texi: Fix typo.
10404         * manual/terminal.texi: Document gtty and stty.
10405         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10407 2000-04-30  Andreas Jaeger  <aj@suse.de>
10409         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
10410         accordance with Austin Draft.
10412 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
10414         * catgets/gencat.c (read_input_file): Use isblank and not isspace
10415         to recognize second character in comment line.
10417         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
10418         ENOBUFS if we are out of memory.
10420         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
10421         available if __USE_XOPEN2K.
10422         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
10423         * sysdeps/unix/common/bits/fcntl.h: Likewise.
10424         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10425         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10426         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
10427         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10428         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
10429         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
10431 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
10433         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
10434         Recognize option -s, -c, and -l.
10436 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
10438         * nscd/nscd.c: Start new session for nscd, drop privilegs
10439         to configured user if requested and no -S parameter are used.
10440         * nscd/nscd.conf: Add new option "server-user".
10441         * nscd/nscd_conf.c: Add support for new "server-user" option.
10442         * nscd/nscd.h: Add declaration for server_user variable.
10443         Based on patch by Chris Wing <wingc@engin.umich.edu>
10445 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
10447         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
10448         that changing the __restore and __restore_rt signal return code
10449         will break GDB.
10451 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
10453         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
10454         <sys/user.h>.
10456 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
10458         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
10460 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
10462         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
10463         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
10464         arpa/inet.h.
10465         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
10466         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
10467         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
10468         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
10469         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
10470         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
10471         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
10472         posix_fallocate, and posix_madvise.
10473         * conform/data/netdb.h-data: New file.
10474         * conform/data/pthread.h-data: Add pthread_barrier_t,
10475         pthread_barrierattr_t, pthread_barrier_destroy,
10476         pthread_barrier_init, pthread_barrier_wait,
10477         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
10478         pthread_barrierattr_init, pthread_barrierattr_setpshared,
10479         pthread_condattr_getclock, pthread_condattr_setclock,
10480         pthread_getcpuclockid, pthread_mutex_timedlock,
10481         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
10482         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
10483         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
10484         * conform/data/sched.h-data: Add sched_ss_low_priority,
10485         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
10486         SCHED_SPORADIC.
10487         * conform/data/semaphore.h-data: Add sem_timedwait.
10488         * conform/data/signal.h-data: Add SIGIO.
10489         * conform/data/spawn.h-data: New file.
10490         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
10491         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
10492         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
10493         Fix typo in gmtime_r definition.
10494         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
10495         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
10496         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
10497         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
10498         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
10499         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
10500         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
10501         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
10502         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
10503         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
10504         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
10505         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
10506         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
10507         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
10508         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
10509         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
10510         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
10511         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
10512         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
10513         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
10514         typo in off_t definition.
10515         * conform/data/net/if.h-data: New file.
10516         * conform/data/netinet/in.h-data: New file.
10517         * conform/data/netinet/tcp.h-data: New file.
10518         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
10519         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
10520         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
10521         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
10522         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
10523         and posix_typed_mem_open.
10524         * conform/data/sys/socket.h-data: New file.
10525         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
10526         * conform/data/sys/types.h-data: Add pthread_barrier_t,
10527         pthread_barrierattr_t, and pthread_spinlock_t.
10528         * conform/data/sys/un.h-data: New file.
10529         * conform/data/sys/utsname.h-data: New file.
10531         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
10532         parameter.
10533         * inet/gethstbyad.c (gethostbyname): Likewise.
10534         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
10535         * inet/getipnodebyad.c (getipnodebyad): Likewise.
10536         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
10537         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
10538         Likewise.
10539         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
10540         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
10541         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
10542         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
10543         * resolv/gethnamaddr.c (gethostbyname): Likewise.
10544         * resolv/netdb.h (struct hostent): Fix type of h_length member.
10545         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
10546         and second parameter.
10548         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
10549         == NULL.
10551 2000-04-29  Andreas Jaeger  <aj@suse.de>
10553         * conform/data/arpa/inet.h-data: New file.
10555 2000-04-28  Geoff Clare <gwc@unisoft.com>
10557         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
10558         path passed to ftw() or nftw() is an empty string.
10559         Closes PR libc/1710.
10561 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
10563         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
10564         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
10565         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
10566         * localedata/tst-mbswcs4.c: New file.
10567         * localedata/tst-mbswcs5.c: New file.
10569         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
10570         == NULL.  Little optimization.
10572         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
10573         DT_PREINIT_ARRAYSZ).
10574         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
10576         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
10577         overflows in conversion from ASCII.
10579 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
10581         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
10582         * Makerules (full_config_sysdirs): Likewise.
10583         * MakeTAGS (full_config_sysdirs): Likewise.
10585 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
10587         * .cvsignore: Remove linuxthreads.
10588         * po/.cvsignore: Remove *.pot.
10589         * posix/glob/.cvsignore: Removed.
10590         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
10592 2000-04-25  Andreas Jaeger  <aj@suse.de>
10594         * conform/Makefile (distribute): Also distribute contents of
10595         subdirectories.
10597         * Makerules (no_deps): Remove abi-versions.h.
10599         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
10601 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
10603         * sysdeps/sparc/sparc64/elf/Dist: Remove.
10604         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
10605         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
10606         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
10607         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
10608         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
10609         objects.
10611 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
10613         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
10615 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
10617         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
10618         * intl/l10nflist.c: Likewise.
10620 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
10622         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
10623         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
10624         * intl/textdomain.c [!_LIBC]: Likewise.
10625         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
10626         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
10627         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
10628         syntax error.
10630 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
10632         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
10633         character set conversion also in the case the translation was found
10634         after a hash collision or through binary search.  Store the maximum
10635         index together with the converted message.  Use iconv() when available.
10636         In case of out of memory during conversion, return the unconverted
10637         translated string, not NULL.
10639 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
10641         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
10642         to avoid name clashes with the ia32 linker.
10644 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
10646         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
10647         handling.
10649 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
10651         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
10652         strtoumax, strfry, and memfrob.
10653         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
10654         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10656         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
10657         if this function is available.
10659         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
10660         all values.
10662 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
10664         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
10666 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
10668         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
10669         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
10670         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
10671         * localedata/tst-mbswcs3.c: New file.
10673 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
10675         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
10676         characters.  Don't handle incomplete characters as errors.
10677         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
10678         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
10679         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
10680         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
10681         * localedata/tst-mbswcs2.c: New file.
10683         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
10684         stored character in state in UNPACK_BYTES macro.
10685         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
10686         test for available characters, handle result of BODY code correctly.
10687         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
10688         (distribute): Add tst-mbswcs.sh.
10689         Add rule to run tst-mbswcs.sh.
10690         * localedata/tst-mbswcs.sh: New file.
10691         * localedata/tst-mbswcs1.c: New file.
10693 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
10695         * nis/nis_callback.c (__nis_create_callback): Do failed memory
10696         allocation fixups centrally, fix __builtin_expect call, return NULL
10697         on failure, not NIS_NOMEMORY.
10699 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
10701         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
10703         * intl/loadinfo.h (internal_function): Define if not already defined.
10705 2000-04-27  Andreas Jaeger  <aj@suse.de>
10707         * intl/libintl.h: Fix typo, reported by Bruno Haible
10708         <haible@clisp.cons.org>.
10710 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
10712         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
10713         setting the state to GMON_PROF_BUSY.
10715 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
10717         * elf/dl-profile.c (_dl_start_profile): define all variables which
10718         do not have to be global as local variables.
10720         * nis/nis_callback.c (__nis_create_callback): Partially undo last
10721         patch.  Keep needed tests for failed memory allocation.
10723         * elf/dl-reloc.c (_dl_relocate_object): Add one more
10724         __builtin_expect saying that we don't normally expect to profile.
10726         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
10727         __builtin_expect where desirable.
10729 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
10731         * manual/Makefile (chapters): Add syslog.
10732         * manual/syslog.texi: New file.
10733         * manual/math.texi: Fix references.
10734         * manual/terminal.texi: Likewise.
10735         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10737 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
10739         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
10740         stdlib.h was not included or __USE_XOPEN not defined.
10742 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
10744         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
10745         Patch by Zack Weinberg <zack@wolery.cumb.org>.
10747 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
10749         * manual/examples/subopt.c (mount_opts): Add missing terminating
10750         entry.
10751         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
10753         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
10754         * libio/ftello.c: Likewise.
10755         * libio/ftello64.c: Likewise.
10756         * libio/ioftell.c: Likewise.
10757         * sysdeps/generic/memrchr.c: Likewise.
10758         * sysdeps/posix/libc_fatal.c: Likewise.
10759         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10760         * misc/fstab.c: Include <string.h> for strcmp prototype.
10761         * sysdeps/generic/ldsodefs.h: Likewise.
10762         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10763         Patch by Kurt Roeckx <Q@ping.be>.
10765         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
10766         Remove db-open.  Change all uses.
10767         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
10769 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
10771         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
10772         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
10773         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
10774         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
10775         with .set noat/at to shut up warnings.
10776         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
10777         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
10778         compilation if __NR_pciconfig_iobase is not defined.
10779         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
10780         Add alias.
10782 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
10784         * manual/sysinfo.texi: Fix typo.
10785         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
10786         Replace "high precision time" with "high accuracy clock".
10787         Fix language.
10788         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
10790         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
10791         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
10792         instead of malloc.
10793         * nis/nis_subr.c: Use __builtin_expect.
10794         * nis/ypclnt.c: Likewise.
10795         * nis/nis_getservlist.c: Likewise.
10796         * nis/nis_creategroup.c: Likewise.
10798         * nis/nis_callback.c (__nis_create_callback): Check result of
10799         memory allocation.  Fix memory leaks.  Use __builtin_expect.
10800         (__nis_destroy_callback): Fix memory leaks.
10802 2000-04-21  Andreas Jaeger  <aj@suse.de>
10804         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
10805         * sysdeps/mips/mips64/add_n.S: Likewise.
10806         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10807         * sysdeps/mips/mips64/lshift.S: Likewise.
10808         * sysdeps/mips/mips64/mul_1.S: Likewise.
10809         * sysdeps/mips/mips64/rshift.S: Likewise.
10810         * sysdeps/mips/mips64/setjmp.S: Likewise.
10811         * sysdeps/mips/mips64/sub_n.S: Likewise.
10812         * sysdeps/mips/mips64/submul_1.S: Likewise
10813         * sysdeps/unix/mips/sysdep.S: Likewise.
10815         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
10816         and update comment.  The strtab from _dl_relocate_object can be
10817         used.
10819 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
10821         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
10822         * iconv/iconv_close.c (iconv_close): Likewise.
10823         * iconv/iconv_open.c (iconv_open): Likewise.
10825         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
10826         __builtin_expect where useful.
10828         * grp/initgroups.c (initgroups): Test for result of memory
10829         allocation and punt if it fails.
10831         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
10832         * grp/fgetgrent.c (fgetfrent): Likewise.
10833         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
10835 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
10837         * libio/vasprintf.c: Include string.h to get memcpy prototype.
10839 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
10841         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
10842         don't search for NUL byte to decrement counter.
10843         Reported by Ulrich.Brink@sap.com.
10845         * iconv/gconv_simple.c: Define separate functions to convert from
10846         UCS4/UCS4-LE to the internal encoding.
10847         * iconv/gconv_builtin.h: Use separate functions to convert from
10848         UCS4/UCS4-LE to the internal encoding.
10849         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
10850         __gconv_transform_ucs4le_internal.
10852         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
10853         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
10855         * iconv/skeleton.c: Add some more __builtin_expect.
10856         * iconv/loop.c: Likewise.
10858 2000-03-08  H.J. Lu  <hjl@gnu.org>
10860         * posix/regex.c (regex_compile): Correctly handle "\{" when
10861         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
10863 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
10865         * manual/stdio.texi: Give advise about handling error when using
10866         stream functions.
10867         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
10869 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
10871         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
10872         field to nelems * sizeof (uint32_t).
10873         * locale/programs/ld-address.c (address_output): Align word fields
10874         properly.
10875         * locale/programs/ld-monetary.c (monetary_output): Likewise.
10876         Don't restart idx pointers to idx end at the duo_int_curr_symbol
10877         field.
10878         Avoid giving arbitrary garbage in the crncystr field.
10879         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
10880         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
10881         fields.
10882         * locale/programs/ld-numeric.c (numeric_output): Likewise.
10883         Don't restart idx pointers to idx end at the decimal_point_wc field.
10884         * locale/programs/ld-time.c (time_output): week_1stday should be
10885         word, not byte.  Align it properly.
10887 2000-04-19  H.J. Lu  <hjl@gnu.org>
10889         * csu/gmon-start.c (_start): Declared as "extern void".
10890         (etext): Likewise.
10892 2000-04-18  Andreas Jaeger  <aj@suse.de>
10894         * manual/install.texi (Running make install): Don't mention utmpd
10895         anymore.
10897 2000-04-18  Andreas Jaeger  <aj@suse.de>
10899         * linuxthreads/Versions: Use ld instead of ld.so.
10901         * elf/Makefile (ld-map): Use ld.map.
10903         * Versions.def: Use ld instead of ld.so.
10904         * elf/Versions: Likewise.
10905         * sysdeps/mach/hurd/Versions: Likewise.
10907 2000-04-20  Andreas Jaeger  <aj@suse.de>
10909         * elf/rtld.c (print_statistics): Move ifndef further up.
10910         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
10911         (dl_main): Likewise.
10913 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
10915         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
10916         * gmon/Versions: Move moncontrol to GLIBC_2.2.
10918         * po/cs.po: Update from translation team.
10920         * sysdeps/generic/updwtmp.c: Remove daemon support.
10922         * login/Makefile (routines): Remove utmp_daemon.
10924         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
10925         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
10926         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
10927         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
10929         * elf/rtld.c: Display statitics option also if hp timing is not
10930         available.
10932         * login/programs/connection.c: Removed.
10933         * login/programs/database.c Removed.
10934         * login/programs/error.c: Removed.
10935         * login/programs/request.c: Removed.
10936         * login/programs/xtmp.c: Removed.
10937         * login/programs/xtmp.h: Removed.
10938         * login/Makefile: Remove rules for utmpd.
10939         * login/README.utmpd: Removed.
10940         * login/utmp_daemon.c: Removed.
10941         * login/getutent_r.c: Remove references to daemon functions.
10942         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
10943         declaration.
10945 2000-04-18  Andreas Jaeger  <aj@suse.de>
10947         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
10948         2.2 for libnsl, libresolv, librt, libnss_*.
10950         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
10952         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
10954 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
10956         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
10957         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
10958         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
10959         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
10960         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
10961         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
10962         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
10963         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
10964         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
10965         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
10966         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
10967         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
10968         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
10969         it here.
10970         * sysdeps/unix/sysv/aix/msync.c: New file.
10971         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
10972         * sysdeps/unix/sysv/aix/net/if.h: New file.
10973         * sysdeps/unix/sysv/aix/pipe.c: New file.
10974         * sysdeps/unix/sysv/aix/poll.c: New file.
10975         * sysdeps/unix/sysv/aix/rename.c: New file.
10976         * sysdeps/unix/sysv/aix/rmdir.c: New file.
10977         * sysdeps/unix/sysv/aix/select.c: New file.
10978         * sysdeps/unix/sysv/aix/semctl.c: New file.
10979         * sysdeps/unix/sysv/aix/semget.c: New file.
10980         * sysdeps/unix/sysv/aix/semop.c: New file.
10981         * sysdeps/unix/sysv/aix/sendto.c: New file.
10982         * sysdeps/unix/sysv/aix/setgroups.c: New file.
10983         * sysdeps/unix/sysv/aix/setpgid.c: New file.
10984         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
10985         * sysdeps/unix/sysv/aix/setpriority.c: New file.
10986         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
10987         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
10988         * sysdeps/unix/sysv/aix/setsid.c: New file.
10989         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
10990         * sysdeps/unix/sysv/aix/shmat.c: New file.
10991         * sysdeps/unix/sysv/aix/shmctl.c: New file.
10992         * sysdeps/unix/sysv/aix/shmdt.c: New file.
10993         * sysdeps/unix/sysv/aix/shmget.c: New file.
10994         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
10995         * sysdeps/unix/sysv/aix/sigstack.c: New file.
10996         * sysdeps/unix/sysv/aix/socket.c: New file.
10997         * sysdeps/unix/sysv/aix/socketpair.c: New file.
10998         * sysdeps/unix/sysv/aix/speed.c: New file.
10999         * sysdeps/unix/sysv/aix/symlink.c: New file.
11000         * sysdeps/unix/sysv/aix/sync.c: New file.
11001         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
11002         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
11003         * sysdeps/unix/sysv/aix/times.c: New file.
11004         * sysdeps/unix/sysv/aix/ulimit.c: New file.
11005         * sysdeps/unix/sysv/aix/umask.c: New file.
11006         * sysdeps/unix/sysv/aix/unlink.c: New file.
11007         * sysdeps/unix/sysv/aix/ustat.c: New file.
11008         * sysdeps/unix/sysv/aix/utimes.c: New file.
11010 2000-04-18  Andreas Jaeger  <aj@suse.de>
11012         * manual/startup.texi (Environment Access): Fix putenv prototype
11013         according to recent changes.
11014         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
11015         PR libc/1692.
11017         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
11018         needed.
11020 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
11022         * posix/Makefile (tests): Add tst-getaddrinfo.
11023         * posix/tst-getaddrinfo.c: New file.
11025 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
11027         * manual/sysinfo.texi: Document that umount2 is not widely available.
11029         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
11030         signal timing is not really implemented.
11032 2000-04-17  Andreas Jaeger  <aj@suse.de>
11034         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
11036 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
11038         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
11039         and inst_libdir.
11041 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
11043         * manual/intro.texi: Change reference from System Information to
11044         System Management.
11045         * manual/users.texi: Likewise.
11046         * manual/conf.texi: Likewise.
11047         * manual/sysinfo.texi: Document mount, umount, and umount2.
11048         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
11050 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
11052         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
11053         Create wnumstr as well as numstr to support wide character output
11054         correctly.
11056 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
11058         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
11059         modification and move it...
11060         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
11061         Add -melf64_sparc switch to $(LD) on sparc64-linux.
11062         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
11063         switch to $(LD) on sparc-linux.
11065 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
11067         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
11068         and setresuid from sysdep_routines.
11070 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
11072         * manual/Makefile (chapters): Add resource.
11074         * manual/time.texi: Move section on resources to...
11075         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
11076         and vtimes.
11077         * manual/setjmp.texi: Adjust back reference.
11078         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
11080         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
11081         definition.
11082         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
11083         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
11084         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
11085         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
11086         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
11087         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
11088         * sysdeps/unix/sysv/aix/close.c: Add copyright.
11089         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
11090         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
11091         * sysdeps/unix/sysv/aix/access.c: Add copyright.
11092         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
11093         * sysdeps/unix/sysv/aix/Implies: New file.
11094         * sysdeps/unix/sysv/aix/Versions: New file.
11095         * sysdeps/unix/sysv/aix/bind.c: New file.
11096         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
11097         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
11098         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
11099         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
11100         * sysdeps/unix/sysv/aix/chdir.c: New file.
11101         * sysdeps/unix/sysv/aix/chmod.c: New file.
11102         * sysdeps/unix/sysv/aix/chroot.c: New file.
11103         * sysdeps/unix/sysv/aix/creat.c: New file.
11104         * sysdeps/unix/sysv/aix/dl-close.c: New file.
11105         * sysdeps/unix/sysv/aix/dl-open.c: New file.
11106         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
11107         * sysdeps/unix/sysv/aix/fchdir.c: New file.
11108         * sysdeps/unix/sysv/aix/fchmod.c: New file.
11109         * sysdeps/unix/sysv/aix/getgroups.c: New file.
11110         * sysdeps/unix/sysv/aix/gethostname.c: New file.
11111         * sysdeps/unix/sysv/aix/getpriority.c: New file.
11112         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
11113         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
11114         * sysdeps/unix/sysv/aix/getrusage.c: New file.
11115         * sysdeps/unix/sysv/aix/link.c: New file.
11116         * sysdeps/unix/sysv/aix/madvise.c: New file.
11117         * sysdeps/unix/sysv/aix/mkdir.c: New file.
11118         * sysdeps/unix/sysv/aix/mknod.c: New file.
11119         * sysdeps/unix/sysv/aix/mprotect.c: New file.
11120         * sysdeps/unix/sysv/aix/msgctl.c: New file.
11121         * sysdeps/unix/sysv/aix/msgget.c: New file.
11122         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
11124 2000-04-17  Andreas Jaeger  <aj@suse.de>
11126         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
11127         as suggested by Ulrich Drepper.
11128         (__dl_runtime_resolve): Remove unused variable, initialize sym
11129         directly.
11130         (RTLD_START): Document OFFSET_GP_GOT.
11131         (OFFSET_GP_GOT): New magic value.
11132         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
11133         (elf_machine_got_rel): Only declare strtab if needed.
11134         (elf_machine_relplt): Removed, it's not needed.
11135         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
11137         * sysdeps/mips/add_n.S: Add newline at EOF.
11138         * sysdeps/mips/rshift.S: Likewise.
11139         * sysdeps/mips/mul_1.S: Likewise.
11140         * sysdeps/mips/lshift.S: Likewise.
11141         * sysdeps/mips/addmul_1.S: Likewise.
11143 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
11145         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
11147         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
11148         * elf/dl-lookup.c: Likewise.
11149         * elf/dl-init.c (_dl_init): Likewise.
11150         * elf/dl-fini.c (_dl_fini): Likewise.
11151         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
11152         * elf/dl-close.c (_dl_close): Likewise.
11153         * elf/rtld.c (_dl_start_final): Likewise.
11155         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
11157 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
11159         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
11160         only fall back on using Linux.
11162         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
11163         Before testing versions check that we actually loaded the object
11164         and whether we are in trace mode.  If not loaded during tracing don't
11165         test versions in this object.
11166         (_dl_check_all_versions): Take new parameter and pass to
11167         _dl_check_map_versions.
11168         * sysdeps/generic/ldsodefs.h: Update prototypes for
11169         _dl_check_all_versions and _dl_check_map_versions.
11170         * elf/rtld.c (struct version_check_args): Add dotrace.
11171         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
11172         (dl_main): Pass info about trace mode to version_check_doit.
11173         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
11174         _dl_check_all_versions.
11176         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
11177         and getutmpx.
11178         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
11180         * manual/argp.texi: Document index parameter of argp_parse.
11181         Fix typo.
11182         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
11184 2000-04-14  Andreas Jaeger  <aj@suse.de>
11186         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
11187         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
11189         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
11191 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
11193         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
11194         compat_symbol call for old adjtime.
11196         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
11197         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
11199         * posix/Makefile (headers): Add spawn.h.
11200         (distribute): Add spawn_int.h.
11201         (routines): Add spawn_faction_init, spawn_faction_destroy,
11202         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
11203         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
11204         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
11205         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
11206         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
11207         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
11208         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
11209         posix_spawnattr_init, posix_spawnattr_destroy,
11210         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
11211         posix_spawnattr_getflags, posix_spawnattr_setflags,
11212         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
11213         and posix_spawnp.
11214         * posix/spawn.c: New file.
11215         * posix/spawn.h: New file.
11216         * posix/spawn_faction_addclose.c: New file.
11217         * posix/spawn_faction_adddup2.c: New file.
11218         * posix/spawn_faction_addopen.c: New file.
11219         * posix/spawn_faction_destroy.c: New file.
11220         * posix/spawn_faction_init.c: New file.
11221         * posix/spawn_int.h: New file.
11222         * posix/spawnattr_destroy.c: New file.
11223         * posix/spawnattr_getdefault.c: New file.
11224         * posix/spawnattr_getflags.c: New file.
11225         * posix/spawnattr_getpgroup.c: New file.
11226         * posix/spawnattr_getschedparam.c: New file.
11227         * posix/spawnattr_getschedpolicy.c: New file.
11228         * posix/spawnattr_getsigmask.c: New file.
11229         * posix/spawnattr_init.c: New file.
11230         * posix/spawnattr_setdefault.c: New file.
11231         * posix/spawnattr_setflags.c: New file.
11232         * posix/spawnattr_setpgroup.c: New file.
11233         * posix/spawnattr_setschedparam.c: New file.
11234         * posix/spawnattr_setschedpolicy.c: New file.
11235         * posix/spawnattr_setsigmask.c: New file.
11236         * posix/spawni.c: New file.
11237         * posix/spawnp.c: New file.
11239         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
11240         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
11242 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
11244         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
11245         * malloc/malloc.c: Implement posix_memalign for glibc.
11246         * include/stdlib.h: Add prototype for __posix_memalign.
11247         * stdlib/stdlib.h: Add prototype for posix_memalign.
11249 2000-04-14  Andreas Jaeger  <aj@suse.de>
11251         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
11252         symidx correctly.
11253         (elf_machine_got_rel): Cast sym correctly.
11255         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
11256         * sysdeps/mips/addmul_1.S: Likewise.
11257         * sysdeps/mips/lshift.S: Likewise.
11258         * sysdeps/mips/mul_1.S: Likewise.
11259         * sysdeps/mips/rshift.S: Likewise.
11260         * sysdeps/mips/sub_n.S: Likewise.
11261         * sysdeps/mips/submul_1.S: Likewise.
11263         * stdlib/stdlib.h: Fix typo in comment.
11265         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
11266         2.2 for libdl, ld and libm.
11268         * sysdeps/generic/madvise.c: Fix typos.
11270         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
11272         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
11274         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
11275         warnings.
11277 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
11279         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
11280         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
11281         Make old name weak alias.
11282         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
11283         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
11284         Make old name weak alias.
11285         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
11287         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
11288         posix_fallocate, and posix_fallocate64.
11289         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
11290         posix_fallocate, and posix_fallocate64.
11291         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
11292         posix_fallocate, and posix_fallocate64.
11293         * sysdeps/generic/fadvise.c: New file.
11294         * sysdeps/generic/fadvise64.c: New file.
11295         * sysdeps/generic/fallocate.c: New file.
11296         * sysdeps/generic/fallocate64.c: New file.
11297         * sysdeps/posix/fallocate.c: New file.
11298         * sysdeps/posix/fallocate64.c: New file.
11299         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
11300         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
11301         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
11302         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
11303         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11304         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
11305         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11306         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
11307         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11309         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
11310         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11312 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
11314         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
11315         * misc/sys/mman.h (posix_madvise): Add prototype.
11316         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
11317         old name and posix_madvise weak aliases.
11318         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11319         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
11320         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
11321         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
11322         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
11323         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11324         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11326 2000-04-13  Andreas Jaeger  <aj@suse.de>
11328         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
11329         versioning.
11330         (elf_machine_got_rel): Only add runtime display if needed.
11331         (elf_machine_got_rel): Handle symbol versioning.
11333 2000-04-13  Andreas Jaeger  <aj@suse.de>
11335         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
11337         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
11338         default.
11340         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
11341         with some applications.
11342         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
11344         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
11345         * sysdeps/mips/bsd-_setjmp.S: Likewise.
11346         * sysdeps/mips/setjmp.S: Likewise.
11348         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
11350 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
11352         * posix/globtest.sh: Work around inconsistency with expanding ~/
11353         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
11355 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
11357         * posix/getconf.c: Add support for many more POSIX options.
11358         * sysdeps/posix/sysconf.c: Likewise.
11359         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
11360         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
11361         _POSIX_SHELL.
11362         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
11363         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
11364         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
11365         CLOCK_THREAD_CPUTIME_ID.
11366         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
11367         CLOCK_PROCESS_CPUTIME_ID.
11368         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
11369         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
11370         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
11371         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
11373         * malloc/Makefile (tests): Add tst-calloc.
11374         * malloc/tst-calloc.c: New file.
11376         * sysdeps/arm/libm-test-ulps: New file.
11378         * malloc/malloc.c: Undo all of today's changes.
11380         * locale/programs/locale.c (show_info): Don't try to look into
11381         data for LC_ALL (there is none).
11383         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
11384         avoid writing over boundary.
11385         Patch by Greg McGary <gkm@eng.ascend.com>.
11387         * sysdeps/arm/memprof.h: New file.
11389 2000-04-12  Andreas Jaeger  <aj@suse.de>
11391         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
11393         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
11394         for memmem declaration.
11396 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
11398         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
11399         to -1.
11400         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
11402         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
11403         mode is invalid.
11404         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
11405         Patch by Bart Veer <bartv@redhat.com>.
11407         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
11408         function interface.
11410 2000-04-11  Andreas Jaeger  <aj@suse.de>
11412         * sysdeps/mips/dl-machine.h: Update some comments.
11413         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
11415 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
11417         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
11418         _POSIX_SHARED_MEMORY_OBJECTS.
11420         * rt/Makefile (tests): Add tst-shm.
11421         Add rules to generate tst-shm.
11422         * rt/tst-shm.c: New file.
11424         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
11425         for descriptor.
11427         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
11428         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
11429         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
11430         * sysdeps/generic/shm_open.c: New file.
11431         * sysdeps/generic/shm_unlink.c: New file.
11432         * sysdeps/unix/sysv/linux/shm_open.c: New file.
11433         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
11434         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
11435          __endmntent, __getmntent_r, __setmntent, and __statfs.
11437         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
11438         fragmentation by allocating new memory at the end instead of
11439         reallocating.
11441         * posix/globtest.sh: Fix last change.
11443 2000-04-10  Philip Blundell  <philb@gnu.org>
11445         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
11446         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
11447         IPV6_DROP_MEMBERSHIP.
11448         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
11449         Likewise.
11451 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
11453         * elf/readlib (process_file): Close streams in case of an error.
11455 2000-04-09  Andreas Jaeger  <aj@suse.de>
11457         * elf/readlib.c (process_file): Check if file is big enough to
11458         contain aout and ELF headers.
11459         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
11461 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
11463         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
11465 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
11467         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
11468         stream unbuffered.
11469         * rt/Makefile (tests): Add tst-clock.
11470         Add rules to build tst-clock.
11471         * rt/tst-clock.c: New file.
11472         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
11473         about initialization of nsec.
11474         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
11475         about initialization of freq.  Set retval to zero if successful.
11476         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
11478 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
11480         * Versions.def (librt): Add GLIBC_2.2.
11481         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
11482         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
11483         timer_getoverr, timer_gettime, and timer_settime.
11484         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
11485         clock_settime, timer_create, timer_delete, timer_getoverrun,
11486         timer_gettime, and timer_settime.
11487         * sysdeps/generic/clock_getcpuclockid.c: New file.
11488         * sysdeps/generic/get_clockfreq.c: New file.
11489         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
11490         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
11491         * sysdeps/mach/hurd/i386/bits/time.h: New file.
11492         * sysdeps/unix/i386/i586/clock_getres.c: New file.
11493         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
11494         * sysdeps/unix/i386/i686/Implies: New file.
11495         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
11496         * time/Makefile (routines): Move clock_getres, clock_gettime,
11497         clock_settime, timer_create, timer_delete, timer_getoverr,
11498         timer_gettime, and timer_settime to rt/Makefile.
11499         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
11500         clock_settime, timer_create, timer_delete, timer_getoverrun,
11501         timer_gettime, and timer_settime.
11502         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
11504         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
11505         and not const as attribute name.
11507 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
11509         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
11511 2000-04-10  Andreas Schwab  <schwab@suse.de>
11513         * posix/globtest.sh: Skip tests that depend on unreadable
11514         directories if run as root.
11516 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
11518         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
11519         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
11521 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
11523         * sysdeps/unix/clock_gettime.c: New file.
11524         * sysdeps/unix/clock_settime.c: New file.
11525         * sysdeps/posix/clock_getres.c: New file.
11527         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
11529         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
11530         lseek call be passing in a buffer which never allow a successful
11531         first getdents syscall if not at leas the initial entry can be
11532         stored in the user buffer.
11534         * localedata/Makefile: Add rules to clean up directories created by
11535         new strfmon tests.
11537 2000-04-09  Geoff Clare  <gwc@unisoft.com>
11539         * localedata/tst-fmon.data: Added new tests for strfmon()
11540         using test locales with all combinations of cs_precedes,
11541         sign_posn and sep_by_space.
11542         * localedata/tst-fmon.sh: Updated to support the new tests.
11543         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
11544         the localedef source for the new strfmon() test locale.
11545         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
11546         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
11547         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
11548         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
11549         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
11550         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
11551         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
11552         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
11553         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
11554         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
11555         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
11556         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
11557         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
11558         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
11560         * stdlib/strfmon.c: Correct problems with missing or extra
11561         spaces for unusual combinations of sign_posn and sep_by_space.
11562         Improved left-precision alignment code.
11564 2000-04-07  Andreas Jaeger  <aj@suse.de>
11566         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
11568 2000-04-10  Andreas Jaeger  <aj@suse.de>
11570         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
11572 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
11574         Implement handling of restartable conversion functions according to
11575         ISO C.
11576         * iconv/gconv.h (__gconv_fct): Add additional parameter.
11577         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
11578         * iconv/gconv.c: Pass additional parameter to conversion function.
11579         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
11580         (internal_ucs4le_loop_single): New function.
11581         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
11582         (__gconv_transform_internal_ascii): Likewise.
11583         (__gconv_transform_internal_utf8): Likewise.
11584         (__gconv_transform_utf8_internal): Likewise.
11585         (__gconv_transform_ucs2_internal): Likewise.
11586         (__gconv_transform_internal_ucs2): Likewise.
11587         (__gconv_transform_ucs2reverse_internal): Likewise.
11588         (__gconv_transform_internal_ucs2reverse): Likewise.
11589         (internal_ucs4le_loop_unaligned): Before return
11590         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
11591         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
11592         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
11593         * iconv/loop.c: Fit in definition of function to convert one character
11594         for processing of left-over bytes from the state object.
11595         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
11596         inend to match names in loop functions.
11597         (RESET_INPUT_BUFFER): Change apprpriately.
11598         (gconv): If needed, call function to process bytes from the state
11599         object.  Similar at the end: store left over bytes if input is
11600         incomplete.
11601         Take extra argument and add new argument to all calls of the
11602         conversion function.
11603         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
11604         information in the state object to not conflict with length count.
11605         * iconvdata/iso-2022-jp.c: Likewise.
11606         * iconvdata/iso-2022-kr.c: Likewise.
11607         * iconvdata/unicode.c: Adjust for change change in parameters of
11608         skeleton function.
11609         * iconvdata/utf-16.c: Likewise.
11610         * libio/iofwide.c: Add new parameter to all calls of conversion
11611         function.
11612         * wcsmbs/btowc.c: Likewise.
11613         * wcsmbs/mbrtowc.c: Likewise.
11614         * wcsmbs/mbsnrtowcs.c: Likewise.
11615         * wcsmbs/mbsrtowcs.c: Likewise.
11616         * wcsmbs/wcrtomb.c: Likewise.
11617         * wcsmbs/wcsnrtombs.c: Likewise.
11618         * wcsmbs/wcsrtombs.c: Likewise.
11619         * wcsmbs/wctob.c: Likewise.
11621         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
11622         MAX_NEEDED_INPUT.
11624 2000-04-07  Andreas Jaeger  <aj@suse.de>
11626         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
11627         newer kernels.
11629 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
11631         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
11632         element a union to allow byte access.
11633         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
11634         mbstate_t.
11635         * iconvdata/iso-2022-jp.c: Likewise.
11636         * iconvdata/iso-2022-kr.c: Likewise.
11637         * wcsmbs/mbsinit.c: Likewise.
11638         * stdlib/mblen.c: Likewise.
11639         * stdio-common/printf-parse.h: Likewise.
11641 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
11643         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
11644         kernel does not allow relative seeks on descriptors associated
11645         with directories.  Go back to get the position in the directory
11646         every time we enter the function.  Return -1 and set errno if one
11647         entry could be read from the kernel but does not fit into the
11648         buffer passed in by the user.
11650         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
11651         Support ..(2).. ellipsis.
11652         (parse_charmap): Recognize ..(2).. etc and pass step down.
11653         Correctly generate names for UCS4 characters.
11655         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
11656         (ctype_finish): We know the wide character value for <SP>,
11657         don't search.
11658         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
11659         (charclass_ucs4_ellipsis): Likewise.
11660         (read_translit_ignore_entry): Store ellipsis step.
11661         (ctype_read): Recognize ..(2).. etc and pass step down.
11663         * locale/programs/linereader.c (lr_token): When seeing comment
11664         character ignore only rest of line in sources but stop at escaped
11665         newline.
11666         Recognize ..(2).. and ....(2).....
11668         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
11669         and tok_ellipsis4_2.
11671 2000-04-06  Andreas Jaeger  <aj@suse.de>
11673         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
11674         removed, remove it here also.
11675         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
11676         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
11677         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
11678         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
11680 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
11682         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
11683         include bits/sigcontext.h.
11684         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11686 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
11688         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
11689         collation symbol definition.  Value in quivalence definition must
11690         be defined, don't check that it is not.
11692         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
11693         values as character names.
11695         * locale/programs/ld-ctype.c (get_character): Handle missing
11696         repertoire map correctly.
11698 2000-04-05  Cristian Gafton  <gafton@redhat.com>
11700         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
11701         because it is used in generic code.
11702         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
11703         * wcsmbs/wcwidth.h: Declare __ctype32_b.
11704         * intl/gettext.c: Include <locale.h>.
11705         * intl/ngettext.c: Likewise.
11707 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
11709         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
11710         socklen_t type for size.
11711         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
11712         init function interface.
11713         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11714         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
11715         sys/ucontext.h.
11716         (__jmp_buf): Declare the whole type structure here, don't use
11717         ucontext.
11719 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
11721         * iconv/skeleton.c (put16u): Fix typo.
11722         Reported by Bruno Haible <haible@ilog.fr>.
11724         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
11725         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
11726         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
11727         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
11728         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
11729         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
11731         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
11732         * Makefile (distribute): Add abi-versions.awk and
11733         firstversions.awk.
11734         Patches by Torsten Duwe <duwe@caldera.de>.
11736 2000-04-05  Andreas Schwab  <schwab@suse.de>
11738         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
11740 2000-04-05  Andreas Schwab  <schwab@suse.de>
11742         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
11743         entry point, used on Hurd.
11745 2000-04-04  Andreas Jaeger  <aj@suse.de>
11747         * intl/Makefile: Only run the gettext test with shared libraries.
11749 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11751         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11752         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11754 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
11756         * Makeconfig: Undo last change.
11757         * configure.in: If --disable-shared was given, don't set VERSIONING,
11758         don't define DO_VERSIONING, and don't give scare warning for no
11759         versioning.
11760         * configure: Regenerated.
11762 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
11764         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
11766 2000-04-04  Andreas Jaeger  <aj@suse.de>
11768         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
11770 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
11772         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
11773         STV_HIDDEN and STV_INTERNAL during lookup.
11774         (profile_fixup): Likewise.
11775         * elf/dl-reloc.c (RESOLVE): Likewise.
11777         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
11778         unaligned so that it compiles for system which need unaligned
11779         access handling.
11781 2000-04-04  Andreas Schwab  <schwab@suse.de>
11783         * elf/cache.c (print_entry): Only look at the type field when
11784         printing the type.
11786 2000-04-04  Andreas Schwab  <schwab@suse.de>
11788         * iconvdata/big5.c (BODY): Fix typo.
11790 2000-04-04  Andreas Schwab  <schwab@suse.de>
11792         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
11793         function interface.  Remove unused _dl_start_user entry point.
11795 2000-04-03  Andreas Jaeger  <aj@suse.de>
11797         * include/arpa/inet.h (__inet_aton): Add protoype.
11799 2000-04-01  Andreas Jaeger  <aj@suse.de>
11801         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
11803         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
11804         * sysdeps/mach/mips/thread_state.h: Likewise.
11806         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
11807         * sysdeps/generic/fegetenv.c: Likewise.
11808         * sysdeps/generic/fesetenv.c: Likewise.
11809         * sysdeps/generic/feupdateenv.c: Likewise.
11810         * sysdeps/generic/fraiseexcpt.c: Likewise.
11811         * sysdeps/generic/fsetexcptflg.c: Likewise.
11812         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
11813         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
11814         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11815         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
11817 2000-04-02  H.J. Lu  <hjl@gnu.org>
11819         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
11821 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
11823         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
11824         (add_name_to_object): Add cast in malloc call.
11825         (fillin_rpath): Optimize loop to initialize ->status a bit.
11827         * sysdeps/i386/dl-machine.h: Undo last change.
11828         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
11829         Restore %edx register after call here.
11831         * sysdeps/arm/atomicity.h: New file.
11832         Contributed by Jesper Skov <jskov@redhat.com>.
11834 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
11836         * Makeconfig (preprocess-versions): Undo last change.
11837         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
11839         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
11840         here, before we might move the stack.
11841         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
11842         (init1): And not here.
11844         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
11845         change, to restore argc value in call-clobbered register after
11846         RTLD_START_SPECIAL_INIT, which will contain a call.
11848         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
11849         allocating and initializing L->l_initfini.
11851         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
11853 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
11855         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
11856         RUNPATH, RPATH, and LD_LIBRARY_PATH.
11857         (open_path): Change type of fourth parameter.  Make pointer to array
11858         of pointers.  Create variable dirs with original type.
11859         Track whether any directory for the object exists and if not,
11860         change *DIRSP to (void*) -1 to signal there is no such search path.
11861         (_dl_map_object): Change all calls of open_path.
11862         Rewrite decompose_rpath calls.
11864 2000-03-31  Andreas Schwab  <schwab@suse.de>
11866         * string/strfry.c: Declare STATE as array of char instead of int
11867         and do not initialize it (done by initstate_r).  Pass correct
11868         size.
11870 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
11872         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
11874         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
11875         instruction out of the code.
11877 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
11879         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
11880         element at this position.
11882         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
11883         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
11884         l_reldeps elements.
11885         * elf/dl-lookup.c (add_dependency): New function.
11886         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
11887         dynamically loaded object.
11888         (_dl_lookup_symbol_skip): Likewise.
11889         (_dl_lookup_versioned_symbol): Likewise.
11890         (_dl_lookup_versioned_symbol_skip): Likewise.
11891         * elf/dl-open.c: Don't define _dl_load_lock here...
11892         * elf/rtld.c: ...but here...
11893         * elf/dl-support.c: ...and here.
11894         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
11895         through relocation.
11896         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
11897         relocations.
11898         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
11899         anymore.
11900         * dlfcn/glrefmain.c: Add one more debug message.
11902         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
11903         command line.
11904         * Makerules (sysd-versions): Use ( ) instead of { }.
11906         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
11907         optimize for the non-debugging case.
11908         * elf/dl-lookup.c: Likewise.
11909         * sysdeps/generic/libc-start.c: Likewise.
11911 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
11913         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
11914         (init1): Don't initialize __environ here, since init already does it.
11915         (first_init): New function, broken out of _init.
11916         (_hurd_stack_setup): Use it.
11917         [SHARED] (_dl_init_first): New function, renamed from old _init.
11918         (init1) [SHARED]: Don't call posixland_init here.
11919         (posixland_init): Take ENVP arg, so signature is usual for initializer.
11920         [SHARED] (_init): Define as alias for posixland_init.
11921         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
11922         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
11923         RTLD_START_SPECIAL_INIT before calling initializers.
11924         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
11925         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
11926         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
11927         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
11929         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
11930         since we define the function with the name `tmpfile'.
11932         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
11933         * hurd/Versions: Likewise.
11935 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
11937         * elf/dl-runtime.c (fixup): Fix typo in comment.
11939         * resolv/netdb.h (getnameinfo): All length parameters are of type
11940         socklen_t.
11941         * inet/getnameinfo.c: Likewise.
11943 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
11945         * posix/unistd.h (socklen_t): Define if it has not yet happened.
11946         (gethostname): Change type of second parameter to socklen_t.
11947         * include/unistd.h (__gethostname): Change type of second
11948         parameter to socklen_t.
11949         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
11950         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
11951         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
11952         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
11953         Likewise.
11954         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
11955         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
11956         Allow definition elsewhere.
11957         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11958         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11959         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11960         * sysdeps/generic/bits/types.h: Define __socklen_t.
11961         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
11962         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
11963         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
11964         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11965         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
11966         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
11967         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
11969         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
11970         (inet_lnaof): Likewise.
11971         (inet_netof): Likewise.
11972         (inet_network): Likewise.
11973         (inet_aton): Likewise.
11974         (inet_makeaddr): Change parameter types to in_addr_t.
11975         (inet_neta): Likewise.
11976         (inet_ntop): Change type of last parameter to socklen_t.
11977         (inet_aton): Only make available if __USE_MISC.
11978         (inet_neta): Likewise.
11979         (inet_net_ntop): Likewise.
11980         (inet_net_pton): Likewise.
11981         (inet_nsap_ntoa): Likewise.
11983         * inet/in.h: Define in_port_t type.
11984         Define in_addr_t type.
11985         (struct in_addr): Use in_addr_t in definition.
11986         (IN_CLASSA): Use cast to in_addr_t.
11987         (IN_CLASSB): Likewise.
11988         (IN_CLASSC): Likewise.
11989         (IN_CLASSD): Likewise.
11990         (IN_EXPERIMENTAL): Likewise.
11991         (IN_BADCLASS): Likewise.
11992         (INADDR_ANY): Likewise.
11993         (INADDR_BROADCAST): Likewise.
11994         (INADDR_NONE): Likewise.
11995         (INADDR_LOOPBACK): Likewise.
11996         (INADDR_UNSPEC_GROUP): Likewise.
11997         (INADDR_ALLHOSTS_GROUP): Likewise.
11998         (INADDR_ALLRTRS_GROUP): Likewise.
11999         (INADDR_MAX_LOCAL_GROUP): Likewise.
12000         (struct sockaddr_in): Use in_port_t for sin_port element.
12001         (struct sockaddr_in6): Use in_port_t for sin6_port element.
12002         Use uint8_t instead of u_int8_t.
12004         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
12005         Call __inet_aton instead of inet_aton.
12006         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
12008         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
12009         (innetgr): Likewise.
12010         (struct addrinfo): Use socklen_t for ai_addrlen element.
12012         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
12013         IPV6_RECVERR): New defines.
12015         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
12016         * inet/getnetbyad.c: Likewise.
12017         * inet/getnetbyad_r.c: Likewise.
12018         * nis/nss_nis/nis-network.c: Likewise.
12019         * nis/nssplus_nis/nisplus-network.c: Likewise.
12020         * nss/nss_files/files-network.c: Likewise.
12021         * resolv/netdb.h: Define uint32_t if not already happened.
12022         Include bits/netdb.h.  Remove definition of struct netent.
12023         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
12024         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
12025         * sysdeps/generic/bits/netdb.h: New file.
12026         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
12028         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
12029         (tests): Add glrefmain.
12030         Add rules to build modules and run tests.  Ignore result of glrefmain
12031         for now since it fails.
12032         * dlfcn/glrefmain.c: New file.
12033         * dlfcn/glreflib1.c: New file.
12034         * dlfcn/glreflib2.c: New file.
12036         * test-skeleton.c: Include <string.h> for strsignal prototype.
12038         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
12039         to be missing.
12041         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
12042         former init-first.h.  Initialize __libc_multiple_libcs.
12044 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
12046         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
12047         #if expression for use of unaligned function to the one used in
12048         the definition of these functions.
12049         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
12050         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
12051         (internal_ucs4le_loop_unaligned): New function.
12053         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
12054         (tests): Add order.
12055         (module-names): Add dep1, dep2, dep3, and dep4.
12056         Add dependencies for dep* modules and order.
12057         Define rule for order.out which checks the result.
12058         * elf/dep1.c: New file.
12059         * elf/dep2.c: New file.
12060         * elf/dep3.c: New file.
12061         * elf/dep4.c: New file.
12062         * elf/order.c: New file.
12064         * elf/dl-init.c: Fix typo in comment.
12066 2000-03-31  Andreas Jaeger  <aj@suse.de>
12068         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
12069         init function interface.
12070         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
12072 2000-03-31  Andreas Jaeger  <aj@suse.de>
12074         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
12075         * sysdeps/mips/fpu/fegetenv.c: Likewise.
12076         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
12077         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
12078         * sysdeps/mips/fpu/fesetenv.c: Likewise.
12080         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
12081         anymore, update comment.
12083         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12085         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
12086         SHLIB_COMPAT - the struct is always needed.
12088 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
12090         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
12091         * elf/dl-support.c: Define _dl_starting_up.
12093 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
12095         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
12096         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
12098         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
12100         * elf/Makefile (dl-routines): Remove preinit.
12101         * elf/Versions: Remove _dl_preinit.
12102         * elf/dl-preinit.c: Removed.  Move content into...
12103         * elf/dl-init.c: ...here.
12104         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
12106         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
12107         elements.
12109 2000-03-29  Geoff Clare  <gwc@unisoft.com>
12111         * stdlib/strfmon.c: Corrected problems with the code that
12112         sets default values for [np]_sep_by_space and
12113         [np]_sign_posn; also the new positive/negative alignment
12114         code from the previous patch was not quite right for
12115         [np]_sign_posn = 0.
12117         * localedata/tst-fmon.data: Changes corresponding to the
12118         two sets of fixes made to stdlib/strfmon.c.
12120 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
12122         * malloc/malloc.c: Declare bit flags UL so that they will not
12123         default to int size when being inverted.
12125 2000-03-29  Andreas Jaeger  <aj@suse.de>
12127         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
12128         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
12130 2000-03-29  Andreas Jaeger  <aj@suse.de>,
12131             Ralf Baechle <ralf@uni-koblenz.de>
12133         * Makeconfig: Introduce new variable SHARED to mark code used in
12134         the shared library.
12135         * elf/dl-close.c: Use it instead of PIC.
12136         * elf/dl-load.c: Likewise.
12137         * elf/dl-open.c: Likewise.
12138         * hurd/geteuids.c: Likewise.
12139         * include/libc-symbols.h: Likewise.
12140         * include/shlib-compat.h: Likewise.
12141         * libio/freopen.c: Likewise.
12142         * linuxthreads/cancel.c: Likewise.
12143         * linuxthreads/pthread.c: Likewise.
12144         * linuxthreads/wrapsyscall.c: Likewise.
12145         * nss/nsswitch.c: Likewise.
12146         * stdio-common/vfprintf.c: Likewise.
12147         * sysdeps/arm/init-first.c: Likewise.
12148         * sysdeps/i386/init-first.c: Likewise
12149         * sysdeps/generic/init-first.c: Likewise.
12150         * sysdeps/generic/libc-start.c: Likewise.
12151         * sysdeps/mips/init-first.c: Likewise.
12152         * sysdeps/powerpc/elf/libc-start.c: Likewise.
12153         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
12154         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
12155         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
12156         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
12158         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
12160 2000-03-29  Andreas Jaeger  <aj@suse.de>
12162         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
12163         Use D_PTR to access relocated entries in l_info.
12164         (elf_machine_rela): Likewise.
12166         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
12167         Likewise.
12168         (elf_machine_rela): Likewise.
12170         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
12171         Likewise.
12172         (__elf_machine_fixup_plt): Likewise.
12173         (__process_machine_rela): Likewise.
12175         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
12176         (elf_machine_rela): Likewise.
12178         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
12179         (elf_machine_rel): Likewise.
12181         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
12182         (elf_machine_fixup_plt): Likewise.
12183         (elf_machine_rela): Likewise.
12185 2000-03-29  Andreas Jaeger  <aj@suse.de>
12187         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
12188         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12189         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12190         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
12191         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
12192         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
12193         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
12194         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
12195         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
12196         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
12197         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
12198         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
12199         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
12200         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
12201         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
12203         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
12204         macros, remove K&R prototypes.
12206 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
12208         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
12209         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
12210         (PR libc/1677).
12212 2000-03-30  Andreas Jaeger  <aj@suse.de>
12214         * misc/sys/cdefs.h: Remove K&R support.
12216 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
12218         * iconv/skeleton.c: Avoid compiling unaligned versions in some
12219         more cases.
12220         * iconv/loop.c: Likewise.
12222 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
12224         * iconv/loop.c (put16): Remove __const. Fix access index.
12225         (put32): Remove __const. Use uint32_t instead of uint16_t.
12226         * iconv/skeleton.c: Likewise.
12228 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
12230         * mach/Versions (libc: GLIBC_2.0)
12231         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
12232         __vm_allocate on this.
12233         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
12234         mutex- and spinlock-related symbols on this.
12235         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
12236         New version set.  Lock-related symbols go here instead in this case.
12237         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
12238         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
12239         cthread_getspecific, cthread_setspecific, __libc_getspecific.
12240         * hurd/Versions
12241         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
12242         Put them here instead.
12243         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
12244         New version set.  Those cthreads symbols go here instead in this case.
12245         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
12247 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
12249         * elf/dl-init.c (_dl_init): We don't need to call constructors
12250         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
12252         Implement dynamic determination of constructor/destructor order in
12253         the dynamic linker.
12254         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
12255         (GLIBC_2.2): Add _dl_init.
12256         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
12257         r_duplist is not anymore allocated separately.  l_initfini is and
12258         therefore free it if necessary.
12259         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
12260         malloc block.  Otherwise allocate l_initfini list only.
12261         Put dependencies for the object in l_initfini list.
12262         Sort dependencies for the object to be loaded topologically.
12263         * elf/dl-fini.c: Before running the destructors sort the topologically.
12264         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
12265         call constructors instead of iterating over the pointers.  Get list of
12266         objects for which to run constructors from l_initfini element. Accept
12267         argc, argv, and env as parameters and pass them to the constructors.
12268         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
12269         with size of dynamic section.
12270         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
12271         _dl_init_next and calling constructors ourself.
12272         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
12273         Take argc, argv, and env as parameters and pass them to the
12274         constructors.  Rewrite to call all constructors and not iterate over
12275         the pointers.
12276         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
12277         precompute l_initcount and l_preinitcount.
12278         * elf/link.h (struct link_map): Add l_ldnum member.
12279         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
12280         l_initcount, and l_preinitcount.  Add l_initfini.
12281         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
12282         one for _dl_init.
12283         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
12284         function interface.
12285         * sysdeps/unix/sysv/linux/init-first.h: Removed.
12286         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
12287         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
12288         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
12289         conventions now match.
12291         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
12292         effect for shared objects.  Don't emit message and call only for
12293         static library.
12295 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
12297         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
12298         CSA_Z243.4-1985-1..UCS2.
12299         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
12300         ISO-8859-10..UCS2.
12302 2000-03-29  Andreas Jaeger  <aj@suse.de>
12304         * include/unistd.h: Remove duplicate entry for __rmdir.
12305         Remove declaration of __mkdir since __mkdir is declared in
12306         sys/stat.h.
12308         * manual/creature.texi (Feature Test Macros): Fix typo, reported
12309         by Michael Deutschmann <michael@talamasca.ocis.net>.
12311         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
12312         * sysdeps/mips/fpu/fegetenv.c: Likewise.
12313         * sysdeps/mips/fpu/fesetenv.c: Likewise.
12314         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
12315         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
12317 2000-03-28  Andreas Jaeger  <aj@suse.de>
12319         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
12320         declaration, the prototype is defined via bits/mathcalls.h.
12321         (__sincosf): Likewise.
12322         (__sincosl): Likewise.
12323         (ldexp): Likewise.
12324         (ldexpf): Likewise.
12325         (ldexpl): Likewise.
12326         (__finite): Likewise.
12327         (__inline_mathcodeNP): New macro without prototype
12328         declarations.
12329         (__inline_mathcodeNP2): Likewise.
12330         (__inline_mathcodeNP3): Likewise.
12331         (__inline_mathcodeNP_): Likewise.
12332         (__inline_mathcodeNP2_): Likewise.
12333         (__inline_mathcodeNP3_): Likewise.
12334         (__inline_mathopNP): Likewise.
12335         (__inline_mathop_declNP): Likewise.
12336         (__inline_mathop_declNP_): Likewise.
12337         (__inline_mathcode_): Use __inline_mathcodeNP_.
12338         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
12339         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
12340         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
12341         (__expm1l): Don't define prototype, the prototype is defined via
12342         bits/mathcalls.h.
12343         (exp): Likewise.
12344         (__expl): Likewise.
12345         (tan): Likewise.
12346         (atan2): Likewise.
12347         (__atan2l): Likewise.
12348         (fmod): Likewise.
12349         (pow): Likewise.
12350         (fabsf): Likewise.
12351         (fabsl): Likewise.
12352         (__fabsl): Likewise.
12353         (asin): Likewise.
12354         (acos): Likewise.
12355         (sinh): Likewise.
12356         (cosh): Likewise.
12357         (tanh): Likewise.
12358         (floor): Likewise.
12359         (ceil): Likewise.
12360         (expm1): Likewise.
12361         (log1p): Likewise.
12362         (asinh): Likewise.
12363         (acosh): Likewise.
12364         (atanh): Likewise.
12365         (hypot): Likewise.
12366         (logb): Likewise.
12367         (fma): Likewise.
12368         (drem): Likewise.
12369         (sqrt): Likewise.
12370         (__sqrtl): Likewise.
12371         (sin): Likewise.
12372         (cos): Likewise.
12373         (atan): Likewise.
12374         (log): Likewise.
12375         (log10): Likewise.
12376         (asinh): Likewise.
12377         (log2): Likewise.
12378         (rint): Likewise.
12380 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
12382         * Makerules: If make variable md5 is defined to yes after
12383         generating dependencies generate MD5 sum for the object.
12385         * iconv/gconv_builtin.h: Fix length in transformation definition
12386         for UNICODEBIG.
12388         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
12390         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
12391         allow as well reading from/writing to unaligned addresses on machines
12392         which don't support this in hardware.  Use FCTNAME macro to define
12393         function name.  Include the file a second time for platforms which
12394         need special unaligned handling.
12395         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
12396         to access potentially unaligned addresses.  These macros are intended
12397         to be used only outside the loops.
12398         (unaligned): New definition.  In case the machine can handle unaligned
12399         access define as zero.  Otherwise as a variable which is initialized
12400         as nonzero in case the buffer passed in at runtime is unaligned with
12401         respect to the character set encoding involved.
12402         Call aligned or unaligned looop functions according to unaligned
12403         variable.
12404         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
12405         of direct casting pointer to potentially handle unaligned memory
12406         accesses.
12407         * iconvdata/8bit-generic.c: Likewise.
12408         * iconvdata/ansi_x3.110.c: Likewise.
12409         * iconvdata/big5.c: Likewise.
12410         * iconvdata/euc-cn.c: Likewise.
12411         * iconvdata/euc-jp.c: Likewise.
12412         * iconvdata/euc-kr.c: Likewise.
12413         * iconvdata/euc-tw.c: Likewise.
12414         * iconvdata/gbk.c: Likewise.
12415         * iconvdata/iso-2022-cn.c: Likewise.
12416         * iconvdata/iso-2022-jp.c: Likewise.
12417         * iconvdata/iso-2022-kr.c: Likewise.
12418         * iconvdata/iso646.c: Likewise.
12419         * iconvdata/iso_6937-2.c: Likewise.
12420         * iconvdata/iso_6937.c: Likewise.
12421         * iconvdata/johab.c: Likewise.
12422         * iconvdata/sjis.c: Likewise.
12423         * iconvdata/t.61.c: Likewise.
12424         * iconvdata/uhc.c: Likewise.
12425         * iconvdata/unicode.c: Likewise.
12426         * iconvdata/utf-16.c: Likewise.
12428         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
12429         prototypes.
12431         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
12432         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
12433         public.
12434         * malloc/mcheck.h (mcheck_check_all): Declare.
12436         * stdio-common/Makefile (tests): Add tst-obprintf.
12438 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
12440         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
12441         Declare pthread_sigmask.
12443         * csu/version.c: Add 2000 to copyright years.
12444         Remove Emacs local variables section.
12446 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
12448         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
12449         __gconv_transform_internal_ucs2little): Remove declarations.
12450         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
12451         __gconv_transform_internal_ucs2): Never need to bswap_16.
12452         (__gconv_transform_ucs2reverse_internal,
12453         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
12455 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
12457         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
12458         obsoleting version not being defined at all, in which case the
12459         result is always true.
12461         * Makeconfig (preprocess-versions): New canned sequence for running
12462         cpp on shlib-versions and the like.
12463         (soversions.i): Use it.
12464         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
12465         Versions.def and Versions files.
12467 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
12469         * stdio-common/tst-obprintf.c (main): Add another check to see
12470         obstack_printf handling all possible beginnings of the block
12471         inside an obstack chunk.
12473         * locale/programs/localedef.c: Use __malloc_initialize_hook to
12474         install mcheck handler.
12476         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
12477         handling problem.
12479 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
12481         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
12483         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
12484         on [HAVE_ELF && DO_VERSIONING].
12486 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
12488         * stdio-common/tst-obprintf.c: New file.
12490 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
12492         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
12493         _IO_OVERFLOW directly instead through __overflow.
12495         * locale/programs/localedef.c (construct_output_path): If path
12496         contains a / compute the end of the directory name correctly.
12498         * include/features.h: Undef and document __USE_XOPEN2K.
12500         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
12501         whenever a function is called.  Initiated by calling mcheck_pedantic
12502         instead of mcheck.
12503         * malloc/mcheck.h: Declare mcheck_pedantic.
12504         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
12505         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
12506         for now.
12508 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
12510         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
12511         * dlfcn/dlopenold.c: Likewise.
12512         * nss/getXXbyYY_r.c: Likewise.
12513         * nss/getXXent_r.c: Likewise.
12514         * hurd/hurdinit.c: Likewise.
12515         * hurd/compat-20.c: Likewise.
12516         * libio/oldiofopen.c: Likewise.
12517         * libio/oldiofclose.c: Likewise.
12518         * libio/oldiofdopen.c: Likewise.
12519         * libio/oldfileops.c: Likewise.
12520         * libio/oldstdfiles.c: Likewise.
12521         * libio/oldiofsetpos.c: Likewise.
12522         * libio/oldiofgetpos.c: Likewise.
12523         * libio/oldiofgetpos64.c: Likewise.
12524         * libio/oldiofsetpos64.c: Likewise.
12525         * libio/oldiopopen.c: Likewise.
12526         * libio/oldpclose.c: Likewise.
12527         * libio/oldtmpfile.c: Likewise.
12528         * libio/freopen.c (freopen): Likewise.
12529         * libio/iofclose.c (_IO_new_fclose): Likewise.
12531         * sysdeps/mach/sys/reboot.h: Include <features.h>.
12532         (reboot): Declare it.
12534         * libio/Makefile (headers): Add bits/stdio-lock.h here.
12536         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
12538         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
12540         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
12541         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
12542         We need this for the sbrk decl, which can be included without Unix98.
12544 2000-03-20  Richard Henderson  <rth@cygnus.com>
12546         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
12547         argument to yperr2nss is an int, not size_t.
12548         * posix/regex.c (print_partial_compiled_pattern): Cast all
12549         ptrdiff_t to long for printing.
12550         (print_compiled_pattern): Use Z for printing size_t.
12551         * posix/testfnm.c (tests): Avoid trigraphs.
12552         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
12553         Use a C comment, not an assembly comment.
12555         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
12556         of __ASSUME_32BITUIDS.
12558 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
12560         * libio/iofopncook.c: Remove K&R prototypes.
12562 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
12564         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
12565         an initial value of 1024 instead of RLIM_INFINITY.
12567         * Versions.def (libmachuser, libhurduser): Remove these sections,
12568         since these libraries do not presently use symbol versions.
12570         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
12571         is RLIM_INFINITY, return -1 instead.
12573 2000-03-24  Andreas Jaeger  <aj@suse.de>
12575         * Makefile (postclean): Added soversions.i.
12577 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
12579         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
12580         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
12581         and _FPU_IEEE.  Change _FPU_RESERVED.
12583 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
12585         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
12587 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
12589         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
12590         (gaih_inet): Remove unused duplicate variable.
12592         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
12593         Don't use __libc_sa_len, which only exists for Linux.  Just handle
12594         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
12595         only flavors supported by this function anyway.
12597 2000-03-24  Geoff Clare  <gwc@unisoft.com>
12599         * stdlib/strfmon.c: Corrected problems with missing signs and
12600         missing or extra spaces; allow for sign strings longer than
12601         one character; add padding to ensure positive and negative
12602         formats are aligned when a left precision is used.
12604 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
12606         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
12607         Patch by John Mizel <John.Mizel@msdw.com>.
12609 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
12611         * manual/install.texi: Remove references to crypt add-on.
12613 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
12615         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
12616         section while taking the _hurd_rlimit_lock.
12617         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
12619 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
12621         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
12622         using $(LN_S).
12624         * sysdeps/mach/hurd/if_index.c: New file.
12626         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
12627         * sysdeps/gnu/net/if.h: here.
12628         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
12629         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
12630         * sysdeps/generic/net/if.h: New file.  Declares just the standard
12631         functions and `struct if_nameindex' type.
12632         * socket/Makefile (headers): Add net/if.h here.
12633         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
12634         * sysdeps/mach/hurd/Dist: Remove it here.
12635         * sysdeps/unix/sysv/linux/Dist: And here.
12636         * sysdeps/generic/if_index.c: Include <net/if.h>.
12638 2000-03-24  Andreas Jaeger  <aj@suse.de>
12640         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
12641         access relocated entries in l_info.
12642         (elf_machine_got_rel): Likewise.
12643         (elf_machine_runtime_setup): Likewise.
12644         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
12645         (elf_machine_runtime_setup): Likewise.
12646         (__dl_runtime_resolve): Likewise.
12648 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
12650         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
12651         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
12652         according to RFC 2553.
12653         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
12654         * inet/getnameinfo.c: Likewise.
12655         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
12657 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
12659         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
12660         Remove no-op pointer increment.
12662 2000-03-23  Andreas Jaeger  <aj@suse.de>
12664         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
12665         follow change for libio.h from 2000-03-10.
12667 2000-03-23  Andreas Jaeger  <aj@suse.de>
12669         * elf/dl-addr.c: Adjust include paths for ldsodefs location
12670         change.
12671         * elf/dl-debug.c: Likewise.
12672         * elf/dl-deps.c: Likewise.
12673         * elf/dl-error.c: Likewise.
12674         * elf/dl-fini.c: Likewise.
12675         * elf/dl-init.c: Likewise.
12676         * elf/dl-load.c: Likewise.
12677         * elf/dl-lookup.c: Likewise.
12678         * elf/dl-minimal.c: Likewise.
12679         * elf/dl-object.c: Likewise.
12680         * elf/dl-open.c: Likewise.
12681         * elf/dl-preinit.c: Likewise.
12682         * elf/dl-profile.c: Likewise.
12683         * elf/dl-profstub.c: Likewise.
12684         * elf/dl-reloc.c: Likewise.
12685         * elf/dl-runtime.c: Likewise.
12686         * elf/dl-support.c: Likewise.
12687         * elf/dl-symbol.c: Likewise.
12688         * elf/dl-version.c: Likewise.
12689         * elf/rtld.c: Likewise.
12690         * elf/sprof.c: Likewise.
12691         * sysdeps/generic/dl-cache.c: Likewise.
12692         * sysdeps/generic/dl-origin.c: Likewise.
12693         * sysdeps/generic/dl-sysdep.c: Likewise.
12694         * sysdeps/generic/elf/backtracesyms.c: Likewise.
12695         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
12696         * sysdeps/generic/libc-start.c: Likewise.
12697         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12698         * sysdeps/powerpc/dl-machine.c: Likewise.
12699         * sysdeps/powerpc/elf/libc-start.c: Likewise.
12700         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12701         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12702         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
12704         * elf/ldsodefs.h: Move file to ...
12705         * sysdeps/generic/ldsodefs.h: ... here.
12707         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
12709         * sysdeps/mips/elf/ldsodefs.h: New file.
12711         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
12712         entries in l_info.
12713         (_dl_check_map_versions): Likewise.
12714         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
12715         * elf/dl-load.c (_dl_init_paths): Likewise.
12716         (_dl_map_object): Likewise.
12717         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
12718         (elf_get_dynamic_info): Likewise.
12719         * elf/do-lookup.h (FCT): Likewise.
12720         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
12721         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
12722         * elf/dl-addr.c (_dl_addr): Likewise.
12723         * elf/dl-runtime.c (profile_fixup): Likewise.
12724         (fixup): Likewise.
12725         * elf/dl-init.c (_dl_init_next): Likewise.
12726         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
12727         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
12728         (DISTINGUISH_LIB_VERSIONS): Likewise.
12729         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
12730         (elf_machine_rel): Likewise.
12732         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
12733         for writable dynamic section.
12735 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
12737         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
12738         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
12740 2000-03-22  Andreas Jaeger  <aj@suse.de>
12742         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
12743         from latest Linux kernel.
12745 2000-03-21  Andreas Jaeger  <aj@suse.de>
12747         * Versions.def: Add version 2.1.4.
12749 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
12751         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
12752         * libio/oldiofopen.c: Likewise.
12753         * libio/oldiofclose.c: Likewise.
12754         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
12756 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
12758         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
12759         indicating the first version set to obsolete the conditionalized code.
12760         (compat_symbol): New macro.
12761         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
12762         rhs be the ABI_* macro for the subsuming version.  Assign increasing
12763         integer values to the ABI_* macros for supported versions.
12764         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
12765         compat_symbol macro.
12767 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
12769         * nscd/connections.c (nscd_run): Pretty print.
12770         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
12772         * manual/charset.texi: Fix typos.  Rephrase.
12773         * manual/process.texi: Likewise.
12774         * manual/signal.texi: Likewise.
12775         Patches by Mike Coleman <mkc@kc.net>.
12777         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
12778         versions.
12779         * libio/iofdopen.c: Likewise.
12780         * libio/iofgetpos.c: Likewise.
12781         * libio/iofgetpos64.c: Likewise.
12782         * libio/iofopen.c: Likewise.
12783         * libio/iofsetpos.c: Likewise.
12784         * libio/iofsetpos64.c: Likewise.
12785         * libio/iopopen.c: Likewise.
12786         * libio/oldiofopen.c: Likewise.
12787         * libio/pclose.c: Likewise.
12788         * sysdeps/gnu/siglist.c: Likewise.
12789         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
12791         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
12792         chance to expand VERSION_##lib##_##version.
12794         * libio/fileops.c: Use new macros from shlib-compat.h to define
12795         versions.
12796         * libio/iofclose.c: Likewise.
12797         * libio/oldiofclose.c: Likewise.
12798         Patch by Roland McGrath <roland@frob.com>.
12800 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
12802         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
12803         Lay out struct sigcontext according to what really gets passed on
12804         the stack.
12805         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
12806         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
12807         (prgregset_t, prfpregset_t): Define to elf_* types.
12808         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
12809         Define to correct value.
12810         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
12811         sigcontext.
12812         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
12814 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
12816         * scripts/firstversions.awk: Allow multiple version sets in the
12817         "earliest version" specification, meaning that version sets in the
12818         gaps between listed versions should be folded into the earliest later
12819         version that is explicitly listed.
12820         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
12821         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
12823 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
12825         * iconv/gconv_builtin.c: Include <endian.h>.
12826         * iconv/gconv_builtin.h: Add UCS-BE aliases.
12827         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
12828         according to current platform.
12829         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
12830         __gconv_transform_internal_ucs2reverse, and
12831         __gconv_transform_internal_ucs4le.
12832         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
12833         __gconv_transform_ucs2reverse_internal and
12834         __gconv_transform_internal_ucs2reverse.
12835         * iconvdata/Makefile (modules): Add UNICODE.
12836         (distribute): Add unicode.c.
12837         * iconvdata/gconv-modules: Add definitions for UNICODE module.
12838         * iconvdata/unicode.c: New file.
12840         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
12841         determine byte order of input and convert accordingly.
12843         * iconvdata/utf-16.c (gconv_init): Fix typo.
12845 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
12847         * iconvdata/gconv-modules: Fix typo.
12849         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
12850         more messages.
12852         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
12854 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
12856         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
12858 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
12860         * misc/Makefile (routines): Add mincore.
12862 2000-03-20  Andreas Jaeger  <aj@suse.de>
12864         * sysdeps/generic/mincore.c: New stub file.
12866         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
12867         from latest Linux kernel.
12869 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
12871         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
12872         _SC_GETPW_R_SIZE_MAX.
12874 2000-03-20  Richard Henderson  <rth@cygnus.com>
12876         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
12877         in GLIBC_2.1.4.
12879 2000-03-20  Richard Henderson  <rth@cygnus.com>
12881         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
12882         of arithmetic instructions.
12884         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
12885         with the fpcr.  Protect from INV exception.
12886         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12887         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
12888         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12890         * sysdeps/alpha/fpu/s_copysign.c: New.
12891         * sysdeps/alpha/fpu/s_copysignf.c: New.
12892         * sysdeps/alpha/fpu/s_fabs.c: New.
12893         * sysdeps/alpha/fpu/s_fabsf.c: New.
12894         * sysdeps/alpha/fpu/s_rint.c: New.
12895         * sysdeps/alpha/fpu/s_rintf.c: New.
12897         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
12899         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
12900         Kill sethae.
12901         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
12902         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
12903         Use physical addresses not KSEG addresses.
12904         (io_system): Add PYXIS.
12905         (io): Remove hae.reg, sys, hae_shift.
12906         (stb_mb, stw_mb, stl_mb, __sethae): New.
12907         (inline_outb, inline_outw, inline_outl): Don't set hae.
12908         (inline_inb, inline_inw, inline_inl): Likewise.
12909         (dense_sethae): New null function.
12910         (struct cpuinfo_data): New.
12911         (process_cpuinfo): Use local and stack variables, not static.
12912         Move readlink check here from init_iosys.
12913         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
12914         (_iopl): Simplify.
12915         (_hae_shift): Calculate it here.
12916         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
12917         add pciconfig_iobase.
12919 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
12921         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
12922         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
12924         * scripts/versions.awk: Fixed version renaming code to distinguish
12925         libraries properly.
12927 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
12929         * include/stdlib.h: Add prototype for __cxa_atexit.
12931         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
12932         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
12934 2000-03-17  Cristian Gafton  <gafton@redhat.com>
12936         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
12937         existing rtld-installed-name.
12938         ($(rtld-installed-name)): Request libc-$(version) be installed too.
12939         replace existing rtld-installed-name using $(symbolic-link-prog).
12941 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
12943         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
12944         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
12945         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
12946         but not the former.
12948 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
12950         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
12951         glob64.  Since there is no glob64 in the LFS proposal applications
12952         can assume that glob handles LFS situations.  glob64 is only needed
12953         if alternative filesystem functions are used.
12955 2000-03-19  Geoff Clare  <gwc@unisoft.com>
12957         * sysdeps/generic/glob.c: Correct gl_pathc value returned
12958         when GLOB_DOOFFS is set; correct handling of patterns
12959         containing escaped wildcards (and no unescaped ones);
12960         GLOB_ERR flag was being ignored in some situations.
12962         * posix/globtest.c, posix/globtest.sh: Updated to include
12963         tests for the problems fixed by the above changes to glob.c.
12965         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
12967 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
12969         * Makeconfig (soversion.i): Use only first match for each lib.
12971         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
12973         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
12974         rather than $(sysd-dirs-done) to protect these rules.
12976         * Makerules (version-renames.def): Target removed.
12977         (Versions.all): Depend on soversions.i directly and parse it.
12979         * Makeconfig (soversions.i): New target, input-reading parts of
12980         soversions.mk generation moved here; result is a canonicalized
12981         list "LIB VERSION [SET]" for this configuration.
12982         (soversions.mk): Use that as input.  Don't emit map-firstversions.
12983         * Makerules (version-renames.def): New target, generated from
12984         soversions.i with contents that was in $(map-firstversions).
12985         (Versions.all): Don't depend on soversions.mk, depend on
12986         version-renames.def instead; just cat it into the input.
12988         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
12989         for $(map-firstversions), which better handles it being empty.
12991         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
12992         supported version for libc 0.2.90.libio to GLIBC_2.2.
12994         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
12995         and use it to emit new variable `map-firstversions'.
12996         * scripts/firstversions.awk: New file.
12997         * Makerules (Versions.all): Use scripts/firstversions.awk and
12998         the $(map-firstversions) value to generate a modified versions list
12999         that includes renames in "A = B" syntax for each version set earlier
13000         than the "earliest symbol version" named in shlib-versions.
13001         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
13002         rename version set A to B in the output to the intermediate file.
13003         * scripts/abi-versions.awk: New file.
13004         * Makerules (abi-versions.h): New target, generated by that script.
13005         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
13006         * include/shlib-compat.h: New file, uses that generated header.
13008 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
13010         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
13011         after stripping # comments, and then run it through cpp.
13012         This allows things like "%ifdef FOO" based on config.h settings.
13013         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
13015         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
13016         and other errors that indicate a pseudo-receive happened, grok through
13017         the message buffer for port rights that need references fixed up.
13019 2000-03-16  Andreas Jaeger  <aj@suse.de>
13021         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
13023         * sysdeps/unix/sysv/linux/madvise.c: Remove.
13025         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
13026         from latest Linux kernel.
13027         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
13029         * misc/sys/mman.h: Add prototype for mincore.
13031 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
13033         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
13034         entry for GLIBC_2.0 version of setrlimit.
13035         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
13037 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
13039         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
13040         * nis/nss_compat/compat-initgroups.c: Likewise.
13041         * nis/nss_nis/nis-initgroups.c: Likewise.
13042         * nis/nss_nis/nis-netgrp.c: Likewise.
13043         * nis/nss_nis/nis-proto.c: Likewise.
13044         * nis/nss_nis/nis-rpc.c: Likewise.
13045         * nis/nss_nis/nis-service.c: Likewise.
13046         * nis/ypclnt.c: Likewise.
13048 2000-03-16  Andreas Jaeger  <aj@suse.de>
13050         * manual/Makefile: MAKEINFO is set to `:' from configure if it
13051         doesn't exist, correct checks.  Fixes PR libc/1649.
13053 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
13055         * nscd/hstcache.c: Restore correct UID.
13056         * nscd/pwdcache.c: Likewise.
13057         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
13059 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
13061         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
13062         macros for register names, in line with 2000-03-14 linux change.
13064         * sysdeps/mach/sched_yield.c: New file.
13066 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
13068         * sysdeps/generic/lockfile.c: Include <stdio.h>
13069         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
13070         case <libio.h> defined them.
13071         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
13072         from __internal_*.
13073         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
13074         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
13076         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
13077         for more pleasing parse error.
13079 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
13081         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
13082         memory for eras.
13083         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
13085         * elf/Makefile: Add rules to compile and run constload1 test.
13086         * elf/constload1.c: New file.
13087         * elf/constload2.c: New file.
13088         * elf/constload3.c: New file.
13090 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
13092         * sysdeps/posix/open64.c: Make __open64 weak alias.
13093         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
13094         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
13095         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
13096         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
13097         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
13098         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
13099         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
13100         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
13101         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
13102         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
13104 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
13106         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
13107         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
13109 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
13111         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
13112         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
13114 2000-03-08  Andreas Jaeger  <aj@suse.de>
13116         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
13118 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
13120         * timezone/africa: Update from tzdata2000d.
13121         * timezone/asia: Likewise.
13122         * timezone/australasia: Likewise.
13123         * timezone/europe: Likewise.
13124         * timezone/northamerica: Likewise.
13125         * timezone/southamerica: Likewise.
13127         * po/fr.po: Update from translation team.
13128         * po/de.po: Likewise.
13130         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
13131         last parameter.  Move code to add map to global scope from here...
13132         * elf/dl-open.c (dl_open_worker): ...here.
13133         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
13134         * elf/rtld.c: Adjust call to _dl_map_object_deps.
13136         * locale/programs/ld-collate.c (collate_read): Fix warning.
13138         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
13139         values and macros for register names.
13141         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
13142         returned by seek cookie function is -1.
13144 2000-03-14  Andreas Jaeger  <aj@suse.de>
13146         * locale/localeconv.c (localeconv): Fix typo.
13147         Reported by Andre Charbonneau <andrec@corel.com>.
13149 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
13151         * iconv/skeleton.c: Increment __invocation_counter in inner loop
13152         since modules depend on it counting the number of times the conversion
13153         function got called.
13155         * iconv/gconv_open.c: Optimize loop to setup step data structure.
13157         * iconv/gconv.h: Pretty print.
13159 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
13161         * posix/wordexp-test.c: Correct one of the tests added in the last
13162         change.  Really get the root passwd entry to check again ~root.
13164 2000-03-10  Andreas Jaeger  <aj@suse.de>
13166         * manual/filesys.texi (Working Directory): Fix last patch.
13167         Patch by Martin Buchholz  <martin@xemacs.org>.
13169 2000-03-10  Andreas Jaeger  <aj@suse.de>
13171         * manual/creature.texi (Feature Test Macros): Fix language.
13173 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
13175         * mach/devstream.c (devstream_write, devstream_read): New functions.
13176         (input, output): Functions removed.
13177         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
13178         using only the vanilla fopencookie interface.
13180         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
13181         as macro for __io_functions.
13182         (funcsio): Use cookie_io_functions_t type name.
13183         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
13185         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
13186         fopencookie.
13187         (fopencookie): Use it.
13188         * libio/libio.h: Declare _IO_cookie_init.
13189         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
13190         _IO_cookie_init.
13192         * libio/libio.h (__io_seek_fn): Fix second argument type
13193         to be a pointer, in line with the manual and the old stdio.
13194         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
13196         * sysdeps/generic/bits/stdio-lock.h: New file.
13197         This is a stub with #error, but that's better than no file at all.
13199 2000-03-09  Martin Buchholz  <martin@xemacs.org>
13201         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
13202         * manual/message.texi (Using gettextized software): Doc Fixes.
13203         * manual/message.texi (Message Translation): Doc Fixes.
13204         * manual/filesys.texi (File Size): Doc Fixes.
13205         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
13206         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
13207         * iconv/gconv_db.c (find_derivation): Doc Fixes.
13208         * manual/install.texi: Doc Fixes.
13209         * manual/search.texi (Hash Search Function): Doc Fixes.
13210         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
13211         * FAQ.in: Doc Fixes.
13212         * config.h.in: Doc Fixes.
13213         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
13214         Doc Fixes.  `allows to' is not correct English.
13216         * elf/rtld.c: Doc fixes.
13217         * manual/creature.texi (Feature Test Macros): Doc fixes.
13218         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
13220         * manual/filesys.texi (Working Directory): Check for ERANGE to
13221         avoid infloop.
13223 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
13225         * string/argz-stringify.c (__argz_stringify): Fix loop termination
13226         conditions so as not to clobber the final '\0' when there is only one
13227         element in the vector.
13229 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
13231         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
13232         broken by 2000-02-27 change.
13234         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
13236 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
13238         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
13239         argument type, for 2000-02-22 change in signal/signal.h declaration.
13241 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
13243         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
13244         to getdirentries64 (no __), since the Linux implementation
13245         has no __ name, and there is no declaration for the __ name.
13247         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
13249         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
13250         sed regexp so as not to break directory names including /../ within.
13252         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
13253         The sysdeps/generic file is right for BSD.  This file was in fact the
13254         Hurd file, but the only difference was the WNOREAP flag that was never
13255         actually implemented or used anywhere.
13257         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
13258         since AC_PATH_PROG already does it for us.
13259         (PERL): Rewrite check added in 2000-02-29 change for syntactic
13260         correctness and sh portability.  I replaced the broken check
13261         with a more sensible implementation of the apparently intended
13262         semantics, which might still be questionable.  Using expr causes
13263         a non-numeric value for `perl -V:apiversion` to be accepted,
13264         refusing to use only a perl that reports a number less than 5;
13265         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
13266         * configure: Regenerated.
13268 2000-03-08  Andreas Jaeger  <aj@suse.de>
13270         * manual/crypt.texi: Fix paths.
13272 2000-03-07  Andreas Jaeger  <aj@suse.de>
13274         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
13275         were swapped.
13276         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
13277         libc/1636.
13279 2000-03-06  Andreas Jaeger  <aj@suse.de>
13281         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
13282         in __sgn1l, otherwise g++ fails to parse this.
13283         Reported by Sean Chen <sean.chen@turbolinux.com>.
13285 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
13287         * configure.in: Compute sizeof-long-double.
13288         * configure: Regenerated.
13289         * config.make.in: Make sizeof-long-double available to sub-makes.
13291 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
13293         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
13294         call.
13296 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
13298         * Makeconfig (rpath-dirs): Add crypt.
13299         (all-subdirs): Remove md5crypt.
13300         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
13301         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
13302         * sysdeps/generic/crypt-entry.c: Delete.
13303         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
13304         * sysdeps/generic/crypt.h: Delete.
13305         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
13306         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
13307         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
13308         * sysdeps/generic/des_impl.c: Delete.
13309         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
13310         * crypt/sysdeps: Delete.
13311         * crypt/crypt_util.c: Don't use `patchlevel.h'.
13312         * md5-crypt/Versions: Move to crypt/.
13313         * md5-crypt/md5-crypt.c: Move to crypt/.
13314         * md5-crypt/md5.c: Move to crypt/.
13315         * md5-crypt/md5c-test.c: Move to crypt/.
13316         * md5-crypt/md5test.c: Move to crypt/.
13317         * md5-crypt: Delete.
13318         * crypt/Makefile: Adjust for new structure.
13320 2000-03-03  Paul Eggert  <eggert@twinsun.com>
13322         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
13323         define to 1 if not defined.
13325 2000-03-03  Andreas Jaeger  <aj@suse.de>
13327         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
13329 2000-03-03  Andreas Jaeger  <aj@suse.de>
13331         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
13332         cases.
13333         (xdr_int64_t): Correctly handle lower half.
13334         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
13336 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
13338         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
13339         call.
13341 2000-03-02  Andreas Jaeger  <aj@suse.de>
13343         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
13344         2.3.43.
13346 2000-03-02  Andreas Jaeger  <aj@suse.de>
13348         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
13350 2000-03-01  Andreas Jaeger  <aj@suse.de>
13352         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
13353         (tests): Added tst-getdate.
13355         * time/tst-getdate.c: New file.
13357         * time/datemsk: New file, needed for tst-getdate.
13359 2000-02-29  Cristian Gafton  <gafton@redhat.com>
13361         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
13363 2000-02-17  H.J. Lu  <hjl@gnu.org>
13365         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
13367         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
13368         available.
13369         (svcudp_recv): Set up message with the new "xp_pad" field for
13370         IP_PKTINFO.
13371         (svcudp_reply): Support IP_PKTINFO if available.
13373 2000-03-01  Andreas Jaeger  <aj@suse.de>
13375         * time/getdate.c (check_mday): Fix check for february.
13376         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
13377         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
13379 2000-03-02  Andreas Jaeger  <aj@suse.de>
13381         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
13382         g++ fails to parse this.
13383         Reported by Sean Chen <sean.chen@turbolinux.com>.
13385 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
13387         * io/creat.c: Moved to...
13388         * sysdeps/generic/creat.c: ...here.
13389         * io/creat64.c: Moved to...
13390         * sysdeps/generic/creat64.c: ...here.
13391         * io/lockf.c: Moved to...
13392         * sysdeps/generic/lockf.c: ...here.
13394         * crypt/crypt.texi: Moved to...
13395         * manual/crypt.texi: ...here.
13396         * crypt/examples/genpass.c: Moved to...
13397         * manual/examples/genpass.c: ...here.
13398         * crypt/examples/mygenpass.c: Moved to...
13399         * manual/examples/mygenpass.c: ...here.
13400         * crypt/examples/testpass.c: Moved to...
13401         * manual/examples/testpass.c: ...here.
13403         * manual/Makefile (chapters): Add crypt.
13404         * manual/conf.texi: Add usual header for not-last chapter.
13405         * manual/crypt.texi: Add special header for last chapter.
13407 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
13409         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
13410         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
13411         complain if there is no crypt add-on.
13412         * crypt/configure: Removed.
13414         * crypt/crypt.texi: Update documentation of US export restrictions
13415         to match the 14 Jan 2000 regulations.
13417 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
13419         * crypt: New subdirectory, merged in from the crypt add-on.
13421 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
13423         * include/unistd.h: Add __rmdir and __mkdir prototypes.
13426 See ChangeLog.10 for earlier changes.