Update.
[glibc.git] / ChangeLog
blobe3c06c38b33084deff57ad3dc200417d9ef47a2a
1 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
3         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
4         stream is in wide mode.
6         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
8 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
10         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
11         by 3, not 2.
12         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
14 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
16         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
17         reallocation logic for MALLOC (%as, %aS formats).
19 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
21         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
22         Add missing case in va_arg handling for numbers.
23         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
24         handling.
25         * stdio/tst-printf.sh: Adjust expected results.
26         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
28 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
30         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
31         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
32         characters.
33         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
34         as equivalent to uppercase hexadecimal digits.
36 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
38         * iconvdata/testdata/EUC-KR..UTF8: New file.
39         * iconvdata/testdata/EUC-TW: New file.
40         * iconvdata/testdata/EUC-TW..UTF8: New file.
41         * iconvdata/testdata/EUC-JP: New file.
42         * iconvdata/testdata/EUC-JP..UTF8: New file.
43         * iconvdata/testdata/ISO-2022-JP: New file.
44         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
45         * iconvdata/testdata/ISO-2022-JP-2: New file.
46         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
47         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
48         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
49         * iconvdata/testdata/ISO-2022-CN: New file.
50         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
51         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
52         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
53         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
54         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
56 2000-09-24  Andreas Jaeger  <aj@suse.de>
58         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
59         function add_single_dir.
60         (add_single_dir): New function.
61         (search_dir): Use add_single_dir instead of recursing.
63         * sysdeps/generic/dl-cache.h: Include stdint.h.
64         (struct file_entry_new): Use fixed sizes for interoperability
65         between 32bit and 64bit systems, add __unused to make alignment
66         explicit.
67         (CACHE_VERSION): Increment.
68         (struct cache_file_new): Use fixed sizes, add one more unused
69         entry to make alignment explicit.
71 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
73         * elf/ldconfig.c (search_dir): Make more use of d_type information.
75 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
77         * stdio-common/printf-parse.h (parse_one_spec): Clear
78         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
80 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
82         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
83         #undef since we don't have msync.
85         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
86         constant since that is what clock_t is.
87         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
89 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
91         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
92         multiply by LOAD_SCALE.
94 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
96         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
97         (crypt_r, setkey_r, encrypt_r): Likewise.
99 2000-09-22  Andreas Jaeger  <aj@suse.de>
101         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
102         array size.
104         * sysdeps/alpha/fpu/libm-test-ulps: New file.
105         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
107 2000-09-21  Andreas Jaeger  <aj@suse.de>
109         * math/libm-test.inc (atan_test): Test for existence of function.
110         (expm1_test): Likewise.
111         (acos_test): Likewise.
112         (asin_test): Likewise.
113         (exp_test): Likewise.
114         (log10_test): Likewise.
115         (log_test): Likewise.
116         (pow_test): Likewise.
117         (sqrt_test): Likewise.
118         (cos_test): Likewise.
119         (sin_test): Likewise.
120         (tan_test): Likewise.
121         (log1p_test): Likewise.
122         (log2_test): Likewise.
124         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
126         * libio/oldiofsetpos64.c: Fix alias names.
128 2000-09-21  Martin Buchholz  <martin@xemacs.org>
130         * manual/terminal.texi (Allocation): Sample code correction.
132 2000-09-20  Andreas Jaeger  <aj@suse.de>
134         * iconvdata/Makefile (generated): Add tst-tables.out.
136         * intl/Makefile (generated): Add test output.
138 2000-09-19  Andreas Jaeger  <aj@suse.de>
140         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
141         Reported by Jens-Uwe Mager <jum@helios.de>.
143 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
145         * version.h (VERSION): Bump to 2.1.94.
147         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
148         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
149         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
150         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
152         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
154 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
156         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
157         range 0xD800..0xDFFF.
158         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
159         (BODY for FROM_LOOP): Likewise.
160         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
161         (internal_ucs2_loop): Likewise.
162         (ucs2reverse_internal_loop): Likewise.
163         (internal_ucs2reverse_loop): Likewise.
165 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
167         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
168         names.
170 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
172         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
173         * iconvdata/tst-table-to.c (main): Likewise.
175 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
177         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
178         __isoir165_tab.
179         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
180         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
181         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
182         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
183         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
184         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
185         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
186         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
187         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
188         encodings when needed.  When outputting an announcement, don't clear
189         most other announcements.
191 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
193         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
194         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
196 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
198         * intl/Versions: Add bind_textdomain_codeset.
200 2000-09-16  Ralf Baechle  <ralf@gnu.org>
202         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
203         as function.
204         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
205         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
206         it will even work when not loaded to the standard address.
207         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
208         before the dynamic linker itself is relocated.
210 2000-09-18  Andreas Jaeger  <aj@suse.de>
212         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
213         __ASSUME_32BITUIDS for MIPS.
214         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
215         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
217 2000-09-17  H.J. Lu  <hjl@gnu.org>
219         * catgets/Makefile ($(objpfx)de/libc.cat): Use
220         $(make-target-directory) instead of mkdir.
222 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
224         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
225         __ASSUME_32BITUIDS for __powerpc__.
226         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
227         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
229 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
231         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
232         patch.
233         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
235 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
237         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
238         first.
239         * sysdeps/m68k/Implies: Likewise.
240         * sysdeps/sparc/sparc64/Implies: Likewise.
242 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
244         * elf/readlib.c (process_file): Don't error for stale .so links either.
246 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
248         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
249         __builtin_expect.
251         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
252         Patch by Thorsten Kukuk <kukuk@suse.de>.
254         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
255         (test): Add default.
256         (modules-names): Add defaultmod1 and defaultmod2.
257         Add rules to build test objects.
259 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
261         * wctype/wctype.h: Always include <bits/types.h>.
262         Reported by Jim Meyering <meyering@ascend.com>.
264         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
265         * elf/dl-support.c: Likewise.
267         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
268         st_blocks member in stat and stat64 structs.
269         Patch by Bill Nottingham <notting@redhat.com>.
271         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
272         take longer.
274         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
275         __extension__ to _Complex_I definition since gcc warns if -pedantic.
276         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
277         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
279         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
280         necessary.  Move includes of POSIX and Unix limits files to the end.
281         * stdlib/Makefile (tests): Add tst-limits.
282         * stdlib/tst-limits.h: New file.
284 2000-09-15  Andreas Jaeger  <aj@suse.de>
286         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
288         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
290 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
292         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
293         clobber.
294         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
295         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
297 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
299         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
300         (tests): Add next.
301         (modules-names): Add nextmod1 and nextmod2.
302         Add rules to build and run next.
303         * elf/next.c: New file.
304         * elf/nextmod1.c: New file.
305         * elf/nextmod2.c: New file.
307 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
309         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
311 2000-09-15  Andreas Jaeger  <aj@suse.de>
313         * sysdeps/mips/fpu/fenv_libc.h: New file.
314         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
315         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
316         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
318         * sysdeps/mips/fpu/feenablxcpt.c: New file.
319         * sysdeps/mips/fpu/fegetexcept.c: New file.
320         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
322 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
324         * intl/Makefile: Avoid unnecessary test reruns.
326         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
328         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
329         to not use sysctl().  Too many architectures have problems with it.
331 2000-09-14  Andreas Jaeger  <aj@suse.de>
333         * scripts/config.sub: New version from subversions.gnu.org.
335         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
336         long.
338 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
340         * posix/regex.c (compile_range): Cast collseq index to unsigned char
341         to avoid accessing data before collseq.
343         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
344         pasting strings together.
346 2000-09-14  Greg McGary  <greg@mcgary.org>
348         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
349         copyright notice.
350         * sysdeps/generic/bp-semctl.h: Likewise.
351         * sysdeps/generic/bp-start.h: Likewise.
352         * sysdeps/generic/bp-sym.h: Likewise.
353         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
354         rename prototype.
356 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
358         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
359         don't fail.
361         * elf/elf.h: Add missing official relocations.
363         * libio/stdio.h: Define __FILE if __need___FILE is defined.
364         * stdio/stdio.h: Likewise.
365         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
366         * include/stdio.h: Handle __need___FILE like __need_FILE.
367         * include/wchar.h: Use __FILE instead of FILE.
368         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
369         * libio/fwscanf.c: Likewise.
370         * libio/getwc.c: Likewise.
372         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
373         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
374         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
376         * assert/assert.h: Update comment header about ISO C section.
377         * math/complex.h: Likewise.
378         * ctype/ctype.h: Likewise.
379         * include/errno.h: Likewise.
380         * include/limits.h: Likewise.
381         * locale/locale.h: Likewise.
382         * math/math.h: Likewise.
383         * setjmp/setjmp.h: Likewise.
384         * signal/signal.h: Likewise.
385         * stdio/stdio.h: Likewise.
386         * libio/stdio.h: Likewise.
387         * stdlib/stdlib.h: Likewise.
388         * string/string.h: Likewise.
389         * time/time.h: Likewise.
390         * wcsmbs/wchar.h: Likewise.
391         * wctype/wctype.h: Likewise.
392         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
394 2000-09-13  Andreas Jaeger  <aj@suse.de>
396         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
397         for no more entries.
398         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
399         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
400         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
402 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
404         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
405         constant since this is what clock_t is.
406         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
407         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
408         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
409         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
411         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
412         definitions are requested.
414 2000-09-13  Andreas Jaeger  <aj@suse.de>
416         * shlib-versions: libBrokenLocale needs minimal version for ia64,
417         sparc64 and sh to synch with libc.
419 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
421         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
422         (distribute): Add iso-2022-cn-ext.c.
423         Add definitions to compile the new module.
424         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
425         * iconvdata/iso-2022-cn-ext.c: New file.
426         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
427         ucs4_from_isoir165.  Increment input pointer if successful.
429         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
431         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
433 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
435         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
436         __syscall_getdents64 wrapper.
438         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
440 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
442         * iconvdata/gb18030.c: Many many changes.  Make consistent with
443         charmap and with itself.
444         * iconvdata/tst-tables.sh: Test GB18030.
446 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
448         * iconv/skeleton.c: Fix last patch, add missing parameter to
449         unaligned function call.
451 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
453         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
454         of decimal ellipsis.
456 2000-09-11  Bruno Haible <haible@clisp.cons.org>
458         * locale/programs/ld-collate.c (collate_read): Always initialize
459         error_section.next.
461 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
463         * locale/programs/ld-collate.c (collate_finish): Upper bound for
464         ruleidx is 128, not 256.
466 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
468         * locale/programs/ld-collate.c (collate_read): Correct check for
469         already inserted entries.
471 2000-09-10  Bruno Haible <haible@clisp.cons.org>
473         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
474         second try as well.
476 2000-09-10  Bruno Haible <haible@clisp.cons.org>
478         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
479         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
481 2000-09-10  Bruno Haible <haible@clisp.cons.org>
483         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
484         SAVE_RESET_STATE.
486 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
488         * iconvdata/utf-7.c: New file.
489         * iconvdata/gconv-modules (UTF-7): New module entries.
490         * iconvdata/Makefile (modules): Add UTF-7.
491         (distribute): Add utf-7.c.
492         * iconvdata/testdata/UTF-7: New file.
493         * iconvdata/testdata/UTF-7..UTF8: New file.
494         * iconvdata/TESTS (UTF-7): New entry.
495         * iconvdata/run-iconv-test.sh: Fix confusing output.
497 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
499         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
501 2000-09-10  David S. Miller  <davem@redhat.com>
503         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
504         frame pointer offset for non-fast path.
506 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
508         * locale/programs/3level.h (*_init): Initialize level1, level2,
509         and level3 as well.
510         (*_add): Remove a few unnecessary conditionals.
512 2000-09-05  Wolfram Gloger  <wg@malloc.de>
514         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
515         ensure usability of mutex as an `in use' flag.
517 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
519         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
521         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
522         ugly GMON_WEAK_START hack.
523         Patch by Philip Blundell <philb@gnu.org>.
525         * sysdeps/i386/i486/bits/string.h: Pretty printing.
527 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
529         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
530         and PPC_ICBI asm for broken compilers.
531         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
533 2000-09-09  Andreas Jaeger  <aj@suse.de>
535         * manual/message.texi (Advanced gettext functions): Fix typo.
537         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
538         strncpy prototype.
540 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
542         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
543         warnings.
544         * sysdeps/ia64/memccpy.S: Likewise.
545         Patches by Jim Wilson <wilson@redhat.com>.
547         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
548         before trying to read /proc.
549         Patch by Matt Wilson <msw@redhat.com>.
550         * include/sys/utsname.h: Declare __uname.
551         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
552         * sysdeps/mach/hurd/uname.c: Likewise.
553         * sysdeps/unix/syscalls.list: Likewise.
555         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
556         unloading a bit.
558 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
560         * posix/getopt.c (_getopt_internal): When long_only is set always
561         recognize conflicts just like before.
563 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
565         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
567 2000-09-08  Greg McGary  <greg@mcgary.org>
569         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
570         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
571         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
573 2000-09-08  Andreas Jaeger  <aj@suse.de>
575         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
577         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
579         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
580         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
581         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
583 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
585         * iconvdata/tst-tables.sh: Enable EUC-KR test.
587         * elf/dl-load.c (lose): Decrement _nl_loaded.
588         (_dl_map_object_from_fd): Don't try to dlopen executables.
590         * iconvdata/tst-tables.sh: Actually return with an error if
591         something goes wrong.
592         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
593         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
595         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
597         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
598         * iconvdata/tst-table-from.c: Include <string.h>.
599         (try): Correct cast in iconv call.
601         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
602         too.
603         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
604         (sysdep_routines): Remove dl-start.
605         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
607         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
609         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
610         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
612 2000-09-06  Andreas Schwab  <schwab@suse.de>
614         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
616 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
618         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
620         * scripts/config.sub: Strip out -unknown for Linux targets.
621         Patch by Scott Bambrough <scottb@netwinder.org>.
623         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
624         add one more test.
626 2000-09-07  Andreas Jaeger  <aj@suse.de>
628         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
630         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
631         syscalls.
633         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
635         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
636         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
638         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
640         * stdlib/tst-bsearch.c (main): Add more test cases.
642         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
643         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
644         Reported by GOTO Masanori <gotom@debian.or.jp>.
646 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
648         * posix/Makefile (tests): Add tst-dir.
649         (tst-dir-ARGS): New variable.
650         * posix/tst-dir.c: New file.
652 2000-09-07  Andreas Jaeger  <aj@suse.de>
654         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
655         (SYS_fcntl64): New.
657         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
659 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
661         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
662         use the hack with tryopen_o_directory to determine at runtime
663         whether it works.
664         * sysdeps/unix/sysv/linux/opendir.c: New file.
665         * sysdeps/unix/sysv/linux/kernel-features.h: Define
666         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
668         * catgets/Depend: New file.  Add intl.
669         * catgets/Makefile (tests): Add tst-catgets.
670         (generated): Remove de.msg.
671         (generated-dirs): Add de.
672         Add dependency if tst-catgets output on de/libc.cat.
673         * catgets/tst-catgets.c: New file.
675         * po/ja.po: New file.
676         * po/el.po: Update from translation team.
678         * wcsmbs/Depend: New file.
679         * wcsmbs/Makefile (tests): Add tst-btowc.
680         (tst-btowc-ENV): Define.
681         * wcsmbs/tst-btowc.c: New file.
683         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
684         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
686         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
688         * stdlib/Makefile (tests): Add tst-bsearch.
689         * stdlib/tst-bsearch.c: New file.
691         * posix/getopt.c (_getopt_internal): Don't recognize an option
692         name as ambiguous if it's a prefix for more than one name but the
693         other struct option values are identical.
695         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
696         Don't depend on visual inspection of the output file to recognize
697         errors.
698         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
700 2000-09-06  Andreas Jaeger  <aj@suse.de>
702         * sysdeps/alpha/soft-fp/Dist: New file.
703         * sysdeps/i386/soft-fp/Dist: New file.
704         * sysdeps/mips/mips64/soft-fp/Dist: New file.
705         * sysdeps/mips/soft-fp/Dist: New file.
706         * sysdeps/powerpc/soft-fp/Dist: New file.
707         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
708         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
710         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
711         Use sysdep_routines instead of routines to fix make dist failure.
712         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
713         out code).
714         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
716         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
717         sysdep_headers instead of headers for make dist.
719         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
720         Likewise.
722 2000-09-06  Andreas Schwab  <schwab@suse.de>
724         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
726 2000-09-06  Andreas Jaeger  <aj@suse.de>
728         * soft-fp/Makefile (distribute): Remove ChangeLog.
730         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
731         sysdep_routines instead of routines for make dist.
733 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
735         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
736         compatibility check for old stream and call _IO_wide in doubt.
737         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
738         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
739         needed tst for such an old structure and don't do anything.
740         * libio/freopen.c: Remove declaration of _IO_stdin_used.
742 2000-09-06  Andreas Jaeger  <aj@suse.de>
744         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
745         sysdep-dl-routines and sysdep_routines instead of rtld-routines
746         and dl-routines.
748         * soft-fp/ChangeLog: Merged with this file.
750 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
752         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
754         * soft-fp/Makefile (distribute): Add the math functions, too.
756         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
758 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
760         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
761         as a statement.
763         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
764         * soft-fp/sysdeps/powerpc/q_*: New files.
766 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
768         * stdio-common/vfprintf.c (process_string_arg): Handle precision
769         in wide char case correctly.  Don't allocate too long temporary
770         strings with alloca.
772         * stdio-common/Makefile (tests): Add tst-swprintf.
773         (tst-swprintf-ENV): New variable.
774         * stdio-common/tst-swprintf.c: New file.
776 2000-09-05  Andreas Jaeger  <aj@suse.de>
778         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
779         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
780         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
782 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
784         * configure.in: Strip out "unknown" from configuration names.
786 2000-09-05  Andreas Jaeger  <aj@suse.de>
788         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
790         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
791         * sysdeps/sparc/sparc32/Implies: Likewise.
792         * sysdeps/powerpc/Implies: Likewise.
794         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
795         * libio/oldiofgetpos64.c: Likewise.
797         * soft-fp/Makefile (distribute): Remove configure.
799         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
801         * soft-fp/configure: Remove.
803         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
804         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
806         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
807         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
809         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
810         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
812         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
813         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
815         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
816         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
818         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
819         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
821         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
822         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
824         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
825         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
827         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
828         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
830         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
831         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
833         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
834         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
836         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
837         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
839         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
840         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
842         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
843         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
845         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
846         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
848         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
849         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
851         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
852         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
854         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
855         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
857         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
858         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
860         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
861         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
863         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
864         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
866         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
867         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
869         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
870         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
872         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
873         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
875         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
876         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
878         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
879         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
881         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
882         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
884         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
885         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
887         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
888         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
890         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
891         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
893         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
894         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
896         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
897         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
899         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
900         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
902         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
903         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
905         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
906         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
908         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
909         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
911         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
912         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
914         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
915         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
917         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
918         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
920         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
921         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
923         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
924         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
926         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
927         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
929         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
930         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
932         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
933         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
935         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
936         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
938         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
939         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
941         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
942         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
944         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
945         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
947         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
948         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
950         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
951         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
953         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
954         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
956         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
957         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
959         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
960         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
962         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
963         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
965         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
966         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
968         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
969         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
971         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
972         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
974         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
975         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
977         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
978         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
980         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
981         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
983         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
984         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
986         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
987         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
989         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
990         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
992         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
993         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
995         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
996         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
998         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
999         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
1001         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
1002         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
1004         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
1005         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
1007         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
1008         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
1010         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
1011         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
1013         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
1014         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
1016         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
1017         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
1019         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1020         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1022         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1023         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1025         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1026         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1028         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1029         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1031         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1032         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1034         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1035         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1037         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1038         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1040         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1041         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1043         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1044         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1046         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1047         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1049         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1050         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1052         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1053         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1055         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1056         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1058         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1059         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1061         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1062         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1064         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1065         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1067         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1068         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1070         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1071         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1073         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1074         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1076         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1077         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1079         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1080         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1082         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1083         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1085         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1086         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1088         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1089         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1091         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1092         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1094         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1095         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1097         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1098         change symbol version.
1099         * libio/oldiofgetpos64.c: Likewise.
1100         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1102         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1103         typo.
1104         Reported by dyky@kondara.org, closes PR libc/1886.
1106         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1107         libc/1880.
1109 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1111         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1112         script when ^C is hit.
1114         * locale/programs/localedef.c (construct_output_path): Correct
1115         computation of endp after asprintf.
1116         * locale/programs/locfile.c (write_locale_data): Don't add extra
1117         slash in filename.
1119 2000-09-05  Andreas Jaeger  <aj@suse.de>
1121         * scripts/config.guess: New upstream version.
1122         * scripts/config.sub: Likewise.
1123         * manual/texinfo.tex: Likewise.
1125 2000-09-04  Andreas Schwab  <schwab@suse.de>
1127         * elf/Makefile (all-dl-routines): New variable.
1128         (elide-routines.os): Use it instead of $(dl-routines).
1129         (all-rtld-routines): New variable.
1130         (extra-objs): Use it instead of $(rtld-routines).
1131         ($(objpfx)dl-allobjs.os): Likewise.
1132         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1133         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1134         and dl-routines.
1136 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1138         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1139         Set fname to NULL if the module wasn't found.
1141 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1143         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1144         true if trans->name already ends in ".so".
1146 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1148         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1149         void.
1150         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1151         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1152         (__gconv_release_shlib): Change return type to void.
1153         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1154         step->__counter here.
1155         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1156         if the reference is zero.
1157         (release_step): New function.
1158         (gen_steps): Always initialize the __counter to 1. Use release_step.
1159         Don't call the destructor on the step whose initializer failed.
1160         (increment_counter): Use release_step. Don't normally run destructors
1161         here.
1162         (__gconv_close_transform): Use release_step.
1164 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1166         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1167         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1169 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1171         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1172         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1173         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1174         to check for incomplete input.
1175         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1176         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1177         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1178         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1179         0x9f9d..0x9fa5.
1180         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1181         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1182         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1183         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1184         upto index 0x0052.
1186 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1188         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1189         solution.
1191 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1193         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1194         are invalid.
1196 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1198         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1199         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1200         U+007E.
1202 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1204         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1206 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1208         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1210 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1212         * iconvdata/tst-tables.sh: New file.
1213         * iconvdata/tst-table.sh: New file.
1214         * iconvdata/tst-table-from.c: New file.
1215         * iconvdata/tst-table-to.c: New file.
1216         * iconvdata/tst-table-charmap.sh: New file.
1217         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1218         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1219         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1220         ISIRI-3342.irreversible, SJIS.irreversible.
1221         (tests): Add dependency on tst-tables.out.
1222         (tst-tables.out, tst-tables-clean): New rules.
1223         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1224         * iconvdata/ISIRI-3342.irreversible: New file.
1225         * iconvdata/EUC-JP.irreversible: New file.
1226         * iconvdata/SJIS.irreversible: New file.
1228 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1230         * manual/locale.texi (General Numeric): Update description of
1231         representation of the grouping information in the locale data.
1232         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1234 2000-09-04  Andreas Jaeger  <aj@suse.de>
1236         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1237         * iconv/iconv_prog.c (options): Fix typo.
1238         Reported by dyky@kondara.org, closes PR libc/1885.
1240 2000-09-04  Andreas Jaeger  <aj@suse.de>
1242         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1243         Reported by Rob Levin <lilo@transvirtual.com>.
1245 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1247         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1248         to the typedefs of __timezone_ptr_t.
1249         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1251 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1253         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1254         the loop.
1256 2000-09-01  H.J. Lu  <hjl@gnu.org>
1258         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1259         to run a binary if it is in $(tests-static).
1261         * Rules (binaries-static): Add $(tests-static).
1263 2000-09-02  Andreas Jaeger  <aj@suse.de>
1265         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1267         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1268         patch.
1270 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1272         * iconvdata/big5hkscs.c: Regenerated from charmap.
1273         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1274         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1276         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1277         statement.  General cleanup.
1279 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1281         * wctype/wcfuncs.c (iswblank): New function.
1282         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1283         * wctype/wcextra.c: Remove file.
1284         * wctype/wcextra_l.c: Remove file.
1285         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1287 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1289         * locale/programs/ld-collate.c (collate_output): Remove redundant
1290         assert call.
1291         * string/strcoll.c: Likewise.
1292         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1293         string/strcoll.c.
1295 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1297         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1298         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1299         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1300         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1301         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1302         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1303         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1304         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1305         _NL_CTYPE_GAP5/6 respectively.
1307         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1308         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1309         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1310         Don't initialize __ctype_names and __ctype_width.
1311         * wctype/cname-lookup.h: Remove file.
1312         * wctype/Makefile (distribute): Remove cname-lookup.h.
1313         * wctype/wchar-lookup.h: Include stdint.h.
1314         * wctype/wctype.c (__wctype): Assume new locale format.
1315         * wctype/wctype_l.c (__wctype_l): Likewise.
1316         * wctype/iswctype.c: Don't include cname-lookup.h.
1317         (__iswctype): Assume new locale format.
1318         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1319         (__iswctype_l): Assume new locale format.
1320         * wctype/wctrans.c: Don't include ctype.h.
1321         (wctrans): Assume new locale format.
1322         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1323         * wctype/towctrans.c: Don't include cname-lookup.h.
1324         (__towctrans): Assume new locale format.
1325         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1326         (__towctrans_l): Assume new locale format.
1327         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1328         localeinfo.h instead.
1329         (__NO_WCTYPE): Remove unused macro.
1330         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1331         declarations.
1332         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1333         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1334         (towlower, towupper): Likewise.
1335         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1336         localeinfo.h instead.
1337         (__NO_WCTYPE): Remove unused macro.
1338         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1339         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1340         __iswxdigit_l): Assume new locale format.
1341         (__towlower_l, __towupper_l): Likewise.
1342         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1343         (__ctype32_b): Remove declaration.
1344         (internal_wcwidth): Assume new locale format.
1345         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1346         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1347         to map32_b, rename width_3level to width.
1348         (ctype_output): Always create new locale format. Don't emit
1349         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1350         (allocate_arrays): Always create new locale format.
1352         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1353         * locale/weightwc.h (findidx): Assume new locale format.
1354         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1355         names.
1356         * string/strxfrm.c (wcsxfrm): Likewise.
1357         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1358         local variable collseq to 'const char *'.
1359         (SUFFIX): Don't use, don't undefine.
1360         * posix/fnmatch.c: Remove SUFFIX definition.
1361         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1362         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1363         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1364         (collate_finish): Always create new locale format. Remove local
1365         variables min_total, act_size.
1366         (collate_output): Always create new locale format. Remove local
1367         variables table_size, names, tablewc. Rename tablewc_3level to
1368         tablewc.
1370 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1372         * locale/programs/ld-collate.c (obstack_int32_grow,
1373         obstack_int32_grow_fast): New inline functions.
1374         (output_weightwc, collate_output): Use them where possible.
1376 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1378         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1379         patch (_mode -> _flags).
1381         * libio/Makefile (headers): Add stdio_ext.h.
1382         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1383         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1384         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1385         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1386         __fsetlocking, and _flushlbf.
1387         * libio/__fbufsize.c: New file.
1388         * libio/__flbf.c: New file.
1389         * libio/__fpending.c: New file.
1390         * libio/__fpurge.c: New file.
1391         * libio/__freadable.c: New file.
1392         * libio/__freading.c: New file.
1393         * libio/__fsetlocking.c: New file.
1394         * libio/__fwritable.c: New file.
1395         * libio/__fwriting.c: New file.
1396         * libio/stdio_ext.h: New file.
1397         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1398         * libio/libio.h (_IO_USER_LOCK): Define.
1399         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1400         test _IO_USER_LOCK flag first.
1402         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1403         malloc fails.
1405 2000-09-01  Andreas Jaeger  <aj@suse.de>
1407         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1409         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1411 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1413         * math/Makefile (tests): Add tst-defintions.
1414         * math/tst-definitions.c: New file.
1416         * stdlib/Makefile (headers): Add bits/wchar.h.
1417         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1418         * sysdeps/generic/bits/wchar.h: New file.
1419         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1420         file to define WCHAR_MIN and WCHAR_MAX.
1421         Change UINT*8_MAX and UIN*16_MAX value to type int.
1422         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1423         file to define WCHAR_MIN and WCHAR_MAX.
1424         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1425         int values.
1426         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1427         * sysdeps/generic/bits/mathdef.h: Likewise.
1428         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1429         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1430         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1431         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1432         * locale/locale.h (struct lconv): Add __ prefix to the new members
1433         if not C99.
1434         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1435         imaxdiv optimizations.
1436         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1437         * sysdeps/wordsize-64/ldiv.c: Likewise.
1438         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1439         const fenv_t*.
1440         * sysdeps/generic/bits/fenv.h: Likewise.
1441         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1442         * sysdeps/ia64/bits/fenv.h: Likewise.
1443         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1444         * sysdeps/mips/bits/fenv.h: Likewise.
1445         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1446         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1447         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1449         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1450         * inet/ruserpass.c: Likewise.
1451         * catgets/open_catalog.c: Likewise.
1452         * intl/loadmsgcat.c: Likewise.
1453         * io/getdirname.c: Likewise.
1454         * locale/loadlocale.c: Likewise.
1455         * misc/getusershell.c: Likewise.
1456         * stdlib/canonicalize.c: Likewise.
1457         * sysdeps/posix/euidaccess.c: Likewise.
1458         * sysdeps/posix/isfdtype.c: Likewise.
1459         * sysdeps/posix/posix_fallocate.c: Likewise.
1460         * sysdeps/posix/tempname.c: Likewise.
1461         * sysdeps/unix/grantpt.c: Likewise.
1462         * sysdeps/unix/opendir.c: Likewise.
1463         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1464         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1465         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1466         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1467         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1468         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1469         * sysvipc/ftok.c: Likewise.
1470         * time/getdate.c: Likewise.
1472         * time/getdate.c: Add extra access test.
1474 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1476         * version.h (VERSION): Bump to 2.1.93.
1478         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1479         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1481         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1482         Make this a new rule depending on tst-gettext.out and run mtrace.
1483         * intl/tst-gettext.c: Call mtrace.
1484         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1486         * elf/dl-reloc.c: Add a few more __builtin_expect.
1488         * configure.in: Remove --with-gettext option.
1490         * intl/dcigettext.c (free_mem): Correct freeing of
1491         _nl_domain_bindings list.
1493         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1494         allocated memory.
1496         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1498         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1500         * stdio-common/itoa-digits.c: Move upper digits to...
1501         * stdio-common/itoa-udigits.c: ...here.  New file.
1502         * stdio-common/Makefile (routines): Add itoa-udigits.
1504         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1505         relocate ld.so don't add supprt for relocations which should not
1506         appear in ld.so.
1508         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1509         __secure_getenv.  Instead test __libc_enable_secure once.
1511         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1513 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1515         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1516         whether the new record should be freed if it's a duplicate.
1517         (add_module): Adjust insert_module call.
1518         (__gconv_read_conf): Likewise.
1519         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1520         mtrace-tst-loading.
1521         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1523         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1524         _dl_all_init_dirs.
1525         * include/link.h (struct r_search_path_struct): New.
1526         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1527         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1528         _dl_all_init_dirs.
1529         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1530         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1531         added at startup time.
1532         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1533         contains element to remember fact that we can free memory.
1534         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1535         (_dl_init_all_dirs): New variable.
1536         (fillin_rpath): Save one malloc call.
1537         (decompose_rpath): Change interface.  New first parameter points to
1538         r_search_path_struct.
1539         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1540         deletable.  Set _dl_init_all_paths value.
1541         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1542         parameter replaced with r_search_path_struct *.  Information about
1543         freeing now contained in r_search_path_struct.
1544         (_dl_map_object): Adjust for above changes.
1546         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1548         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1549         when adding new entries.
1551         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1552         since the object being loaded can be unloaded.
1554         * iconvdata/Makefile (tests): Add tst-loading.
1555         * iconvdata/tst-loading.c: New file.
1557 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1559         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1560         When comparing a char with an int, always cast the char to
1561         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1562         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1564 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1566         * time/strftime.c (my_strftime): Add compatibility code for use
1567         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1569         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1570         return 0 for success but always < 0 on failure.
1572         * nss/getXXbyYY_r.c: Define result to *result before including
1573         digits_dots.c.
1575 2000-08-30  Andreas Jaeger  <aj@suse.de>
1577         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1579 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1581         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1582         official file.
1583         * iconvdata/TESTS: Add BIG5HKSCS entry.
1584         * iconvdata/testdata/BIG5HKSCS: New file.
1585         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1587         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1588         always true.
1590         * libio/iogetline.c: Set mode before the loop in case n==0.
1591         * libio/iogetwline.c: Likewise.
1593 2000-08-29  H.J. Lu  <hjl@gnu.org>
1595         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1596         of fp->_mode < 0.
1597         (_IO_new_file_overflow): Likewise.
1598         * libio/genops.c (_IO_flush_all): Likewise.
1599         * libio/ioftell.c (_IO_ftell): Likewise.
1601 2000-08-29  Akira Higuchi  <a@kondara.org>
1603         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1604         and __end_fct fields of struct __gconv_step.
1605         * iconv/Makefile (tests): Add iconv-bug2.
1606         * iconv/iconv-bug2.c: New file.
1608         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1609         instead of 'inptr - inend' to ksc5601_to_ucs4.
1611         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1613         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1614         character or shift sequence is found at the end of the input
1615         string, return__GCONV_INCOMPLETE_INPUT instead of
1616         __GCONV_EMPTY_INPUT.
1617         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1618         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1620         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1621         __GCONV_ILLEGAL_INPUT for 8bit characters.
1623 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1625         * signal/signal.h (sigpause): Move __THROW before __asm__.
1627         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1628         names don't match don't return.
1629         Patch by Olaf Kirch <okir@flash.lst.de>.
1631 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1633         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1635 2000-08-27  H.J. Lu  <hjl@gnu.org>
1637         * posix/Makefile (otherlibs): Add for building with static-nss
1638         for "make check".
1640 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1642         * libio/stdio.h: Add fmemopen prototype.
1644 2000-08-25  Andreas Jaeger  <aj@suse.de>
1646         * libio/Makefile (routines): Add fmemopen.
1647         (tests): Add test-fmemopen.
1648         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1649         * libio/test-fmemopen.c: New file.
1650         * libio/fmemopen.c: New file.
1651         Patches by Hanno Mueller <kontakt@hanno.de>.
1653 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1655         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1656         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1658         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1659         to avoid crashing statically linked applications.
1661 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1663         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1664         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1666         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1667         If the result is fits in the buffer, copy only as many bytes as needed.
1669         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1670         buffer after copying numbuf into it.
1671         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1673 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1675         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1676         the result.  When string_len < len, don't clear the rest of the buffer.
1678 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1680         Support for new LC_COLLATE format.
1681         * locale/coll-lookup.h: New file.
1682         * locale/weightwc.h (findidx): When size == 0, call
1683         collidx_table_lookup.
1684         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1685         * wcsmbs/wcsxfrm.c: Likewise.
1686         * posix/fnmatch.c: Likewise.
1687         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1688         collseq_table_lookup.
1689         * locale/programs/3level.h: New file.
1690         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1691         by including "3level.h".
1692         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1693         collseq_table): New types, defined by including "3level.h".
1694         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1695         (encoding_mask, encoding_byte): Remove.
1696         (utf8_encode): Use simple shifts instead.
1697         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1698         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1699         (collate_output): New local variable tablewc_3level. When
1700         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1701         tablewc_3level instead of tablewc. Change format of TABLEWC and
1702         COLLSEQWC entries written to the file.
1703         * locale/C-collate.c (collseqwc): Change format.
1704         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1705         of COLLSEQWC.
1706         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1708 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1710         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1711         (locale_ctype_t): New charnames_idx field.
1712         (ctype_startup): Initialize charnames_idx field.
1713         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1715 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1717         * locale/C-ctype.c: Switch to new locale format.
1718         (_nl_C_LC_CTYPE_names): Remove array.
1719         (STRUCT_CTYPE_CLASS): New macro.
1720         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1721         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1722         New three-level tables.
1723         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1724         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1725         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1726         12 class tables and 2 map tables at the end.
1727         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1728         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1729         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1730         New declarations.
1731         (b): Remove trailing semicolon.
1732         (__ctype_names, __ctype_width): Don't initialize.
1733         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1735 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1737         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1738         is guaranteed to be allocated with the same malloc() and may be
1739         passed to free().
1740         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1741         been set to empty by an earlier open_path call, don't pass it again.
1743 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1745         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1746         we are not optimizing.
1748         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1749         inclusion.
1751         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1752         really match EOF.
1753         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1755 2000-08-28  Andreas Jaeger  <aj@suse.de>
1757         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1759 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1761         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1762         getpeername.  Use ISO C style function definition.
1763         (getpeername): Provide weak alias.
1764         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1765         setrlimit.  Use ISO C style function definition.
1766         (setrlimit): Provide weak alias.
1768 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1770         * shlib-versions: Add a rule for S/390 to the libm version list.
1771         * sysdeps/s390/Versions: New file.
1772         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1773         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1774         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1775         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1776         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1777         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1778         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1779         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1780         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1781         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1782         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1783         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1784         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1785         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1786         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1787         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1788         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1789         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1791 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1793         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1794         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1796         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1797         * elf/dl-close.c (_dl_close): Print debug message if object is not
1798         unloaded.
1799         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1800         returning to caller.
1802         * po/zh.po: Renamed to...
1803         * po/zh_TW.po: ...this.
1805 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1807         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1809         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1810         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1811         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1812         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1814 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1816         * locale/programs/ld-collate.c (insert_weights): Also update
1817         backpointer of next element.
1818         (collate_read): Allow definition of new collation symbols in stage 2.
1819         Symbol after reorder-after can be UCS4 value.
1820         Allow reordering of collation symbols and elements.
1821         Do not only move reorder entry in new position.  Instead call
1822         insert_weight to do this and read the weights.
1824         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1826         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1827         to determine invalid locale name.
1828         * locale/findlocale.c (_nl_find_locale): Likewise.
1830         * posix/annexc.c: Correct test for unavailable feature.
1832         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1833         __inline.
1835 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1837         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1838         syscall.
1840         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1841         (sysdep_routines): Add oldgetrlimit64.
1843         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1844         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1845         (tests): Add unload, reldep, reldep2, and reldep3.
1846         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1847         and reldepmod4.
1848         Add rules to build and run unload, reldep, reldep2, and reldep3.
1849         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1850         Don't create relocation dependency if it is nonzero.
1851         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1852         can never happen here.
1853         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1854         Don't create relocation dependency if it is nonzero.
1855         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1856         stuff.  This can never happen here.
1857         * sysdeps/generic/ldsodefs.h: Change prototypes.
1858         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1859         _dl_lookup_up and _dl_lookup_versioned_symbol.
1860         (RESOLV): Likewise.
1861         * elf/dl-runtime.c (fixup): Likewise.
1862         (profile_fixup): Likewise.
1863         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1864         _dl_lookup_symbol.
1865         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1866         * elf/rtld.c (dl_main): Likewise.
1867         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1868         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1869         and pass down the caller map.
1870         (_dl_vsym): Likewise.
1871         * elf/reldep.c: New file.
1872         * elf/reldep2.c: New file.
1873         * elf/reldep3.c: New file.
1874         * elf/reldepmod1.c: New file.
1875         * elf/reldepmod2.c: New file.
1876         * elf/reldepmod3.c: New file.
1877         * elf/reldepmod4.c: New file.
1878         * elf/unload.c: New file.
1879         * elf/unloadmod.c: New file.
1881         * elf/do-lookup.h: Remove unused undef_name parameter.
1882         * elf/dl-lookup.c: Adjust callers.
1884 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1886         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1887         irreversible in recursive call of conversion function to signal that
1888         no error handling is wanted.
1889         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1890         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1891         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1892         recursive error handling call, otherwise to &lirreversible.  Use it
1893         for calls to conversion functions.
1894         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1895         transliterating.
1896         (ucs4_internal_loop_unaligned): Likewise.
1897         (ucs4le_internal_loop): Likewise.
1898         (ucs4le_internal_loop_unaligned): Likewise.
1900 2000-08-25  Greg McGary  <greg@mcgary.org>
1902         * sysdeps/i386/memchr.S: Check high bound against chars
1903         actually scanned.
1904         * sysdeps/i386/memcmp.S: Likewise.
1905         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1906         account for pointers that lie one beyond end-of-buffer.
1908 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1910         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1911         * elf/nodelete.c (fini_ran): New global variable.
1912         (do_test): Before every dlclose call clear fini_ran and test
1913         afterwards that it is not set by the destructors.
1914         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1915         * elf/nodelmod2.c: Likewise.
1916         * elf/nodelmod4.c: Likewise.
1918 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1920         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1921         getrlimit to the list.
1923 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1925         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1926         long double format so use ldbl-96 instead of ldbl-128.
1928 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1930         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1931         even if bits 10 a 11 are non-zero.
1932         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1934         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1935         included before building gnu/lib-names.h
1936         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1938         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1939         marked DF_1_NODELETE.
1941         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1942         since we call sigaction in the child.
1944 2000-08-25  Andreas Jaeger  <aj@suse.de>
1946         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1947         gconv-modules.
1949 2000-08-25  Andreas Jaeger  <aj@suse.de>
1951         * manual/arith.texi (Control Functions): Clarify possible
1952         arguments.  Closes PR libc/1856.
1954 2000-08-24  H.J. Lu  <hjl@gnu.org>
1956         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1957         * malloc/Makefile (tests): Likewise.
1959 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1961         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1963 2000-08-24  Andreas Jaeger  <aj@suse.de>
1965         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1966         only if LIBGD is available.
1968 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1970         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1971         problems with now restrict parameter types.
1972         (convaddr4to6): Likewise.
1974 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1976         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1977         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1978         * sysdeps/s390/fpu/fegetexcept.c: New file.
1979         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1980         FPC_VALID_MASK.
1982 2000-08-24  Andreas Jaeger  <aj@suse.de>
1984         * malloc/Makefile (extra-objs): Add memusagestat.o.
1985         (generated): Added memusage and memusagestat for make clean.
1987         * libio/tst_putwc.c (do_test): Delete temporary file.
1988         Move inclusion of test-skeleton to front to have prototype for
1989         add_temp_file.
1991         * posix/Makefile (generated): Add wordexp-tst.out.
1993 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1995         * resolv/res_hconf.c (free_mem): Remove not needed if.
1997         * time/tzset.c (free_mem): New function.
1998         * string/strsignal.c (free_mem): New function.
1999         * inet/inet_ntoa.c (free_mem): New function.
2000         * sunrpc/clnt_perr.c (free_mem): New function.
2002 2000-08-24  Andreas Jaeger  <aj@suse.de>
2004         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
2005         * sysdeps/unix/sysv/syscalls.list: Likewise.
2007         * posix/unistd.h: Move internal prototypes from here ...
2008         * include/unistd.h: ... to here.
2010         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
2012 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2014         * grp/initgroups.c (initgroups): Deallocate groups array.
2015         Reported by jani.raiha@sonera.com [PR libc/1868].
2017         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
2018         * sysdeps/alpha/Dist: Likewise.
2020 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2022         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2023         destructor).  Reported by Solar Designer <solar@false.com>.
2025         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2026         avoid adding double slashes.
2028 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2030         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2031         out of the __REDIRECT macro.
2033 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2035         * stdio-common/vfscanf.c: Add %F format support.
2037         * locale/programs/ld-ctype.c (ctype_output): Make sure
2038         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2039         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2040         (ctype_read): Enable returning of wide character strings for reading
2041         transliteration information.
2043 2000-08-23  Andreas Jaeger  <aj@suse.de>
2045         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2046         Use static __inline instead of _EXTERN_INLINE.
2048         * misc/sys/select.h: Move prototypes of __select from here ...
2049         * include/sys/select.h: ... to here.
2051         * socket/sys/socket.h: Move prototypes of __send and __connect
2052         from here....
2053         * include/sys/socket.h: ... to here.
2055         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2056         lr_error.
2058 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2060         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2061         __setrlimit as strong name. Takes only 2 arguments.
2063         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2064         takes only 2 arguments.
2066 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2068         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2070         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2072 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2074         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2075         default_missing character being specified, pick the first
2076         representable.
2078 2000-08-23  Andreas Jaeger  <aj@suse.de>
2080         * include/wchar.h: Add some pure attributes.
2082         * time/time.h: Add const attribute for dysize.
2084         * include/stdlib.h: Add malloc attribute to __posix memalign.
2086         * stdlib/stdlib.h: Add some pure and malloc attributes.
2087         * wcsmbs/wchar.h: Likewise.
2089         * dirent/dirent.h: Add some pure attributes.
2090         * include/dirent.h: Likewise.
2092 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2094         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2095         on 64bit arches.
2097 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2099         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2100         missing buffer size checks.
2102 2000-08-23  Andreas Jaeger  <aj@suse.de>
2104         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2105         strong name.
2106         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2108         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2109         otherwise __LINUX_KERNEL_VERSION might not be defined.
2110         (MIN): Define if not already defined.
2112 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2114         * stdio-common/vfprintf.c: Handle %F format.
2115         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2116         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2118         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2120         * po/zh.po: New file.
2122         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2123         enough room in target buffer.
2124         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2125         * iconvdata/bug-iconv1.c: New file.
2126         * iconvdata/Makefile (tests): Add bug-iconv1.
2128         * locale/iso-4217.def: Update entry for Nicaragua.
2130 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2132         * hurd/hurdsig.c: Rearrange headers a bit.
2133         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2134         when cthreads is being used.
2136 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2138         * elf/Makefile (distribute): Add dl-osinfo.h.
2139         * sysdeps/generic/dl-osinfo.h: New file.
2140         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2141         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2142         if defined.
2143         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2144         only for !SHARED case.  Get the code from dl-osinfo.h.
2146         * stdlib/random_r.c: Cleanups.
2147         * stdlib/tst-random.c: New file.
2148         * stdlib/Makefile (tests): Add tst-random.
2149         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2151 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2153         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2154         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2155         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2156         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2158 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2160         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2161         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2162         (__syscall__sysctl): Add.
2164 2000-08-21  Andreas Jaeger  <aj@suse.de>
2166         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2167         libc/1864).
2168         * stdlib/tst-strtoll.c: Likewise.
2170 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2172         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2173         correctly.
2174         (__initstate_r): Set errno on error.
2175         (__random_r): Likewise.
2176         (__setstate_r): Correct offset when computing
2177         new rptr and fptr.  Test for arg_state being NULL.
2178         Reported by Michael Fischer <fischer@cs.yale.edu>.
2180         * posix/regex.h: Add macro definitions to allow compiling outside
2181         glibc.
2183         * sysdeps/i370/Implies: Removed.
2184         * sysdeps/mvs/Implies: Removed.
2186         * catgets/catgets.c (catopen): Filter out env_var values with / if
2187         necessary.
2189         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2190         locale name after all getenvs.
2192         * configure.in: Allow sed versions like 3.02.8.
2193         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2195 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2197         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2199 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2201         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2202         of gethostbyname2_r call.
2204         * intl/locale.alias: Add aliases for Korean.
2206 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2208         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2209         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2210         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2211         * sysdeps/s390/fpu/fegetenv.c: New file.
2212         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2213         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2214         * sysdeps/s390/fpu/fenv_libc.h: New file.
2215         * sysdeps/s390/fpu/fesetenv.c: New file.
2216         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2217         * sysdeps/s390/fpu/feupdateenv.c: New file.
2218         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2219         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2220         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2221         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2222         * sysdeps/s390/fpu/ftestexcept.c: New file.
2223         * sysdeps/s390/fpu/libm-test-ulps: New file.
2224         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2225         * sysdeps/s390/initfini.c: New file.
2226         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2227         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2228         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2229         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2230         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2231         sys/procfs.h as proposed by Mark Kettenis.
2232         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2234 2000-08-21  Andreas Jaeger  <aj@suse.de>
2236         * include/poll.h: Include include/sys/poll.h to get __poll
2237         declaration.
2239         * io/sys/poll.h: Move __poll declaration from here...
2240         * include/sys/poll.h: ...to here.
2242         * include/sys/socket.h (__getpeername): Add declaration.
2244         * include/wchar.h (__vswprintf): Add declaration.
2246         * include/stdio.h (__flockfile): Add declaration.
2247         (__funlockfile): Likewise.
2249 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2251         * misc/sys/cdefs.h: Define __restrict_arr.
2252         * include/sys/time.h: Add restrict where required by AGd4.
2253         * inet/arpa/inet.h: Likewise.
2254         * io/sys/stat.h: Likewise.
2255         * io/sys/statvfs.h: Likewise.
2256         * misc/search.h: Likewise.
2257         * misc/sys/select.h: Likewise.
2258         * posix/glob.h: Likewise.
2259         * posix/regex.h: Likewise.
2260         * posix/spawn.h: Likewise.
2261         * posix/unistd.h: Likewise.
2262         * rt/aio.h: Likewise.
2263         * signal/signal.h: Likewise.
2264         * socket/sys/socket.h: Likewise.
2265         * stdlib/ucontext.h: Likewise.
2266         * streams/stropts.h: Likewise.
2267         * string/string.h: Likewise.
2268         * time/time.h: Likewise.
2269         * time/sys/time.h: Likewise.
2271         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2272         and posix_spawnattr_setscheparam.
2274         * libio/stdio.h: Make cuserid prototype again available for all
2275         XPG versions.
2277         * argp/argp-help.c: Unify use of function aliases to make more compact
2278         PLT.
2279         * include/libintl.h: Likewise.
2280         * inet/rcmd.c: Likewise.
2281         * intl/dcigettext.c: Likewise.
2282         * libio/iofputws.c: Likewise.
2283         * libio/iofputws_u.c: Likewise.
2284         * libio/iogetwline.c: Likewise.
2285         * libio/swprintf.c: Likewise.
2286         * malloc/malloc.c: Likewise.
2287         * nss/digits_dots.c: Likewise.
2288         * posix/fnmatch.c: Likewise.
2289         * posix/spawn_faction_addclose.c: Likewise.
2290         * posix/spawn_faction_adddup2.c: Likewise.
2291         * posix/spawn_faction_addopen.c: Likewise.
2292         * posix/spawni.c: Likewise.
2293         * posix/wordexp.c: Likewise.
2294         * posix/spawni.c: Likewise.
2295         * resolv/res_hconf.c: Likewise.
2296         * resolv/res_init.c: Likewise.
2297         * shadow/lckpwdf.c: Likewise.
2298         * signal/sighold.c: Likewise.
2299         * signal/sigrelse.c: Likewise.
2300         * stdio-common/printf-parse.h: Likewise.
2301         * stdio-common/printf-prs.c: Likewise.
2302         * stdio-common/printf_fp.c: Likewise.
2303         * stdio-common/vfprintf.c: Likewise.
2304         * stdio-common/vfscanf.c: Likewise.
2305         * stdlib/rpmatch.c: Likewise.
2306         * sunrpc/create_xid.c: Likewise.
2307         * sunrpc/key_call.c: Likewise.
2308         * sysdeps/generic/setrlimit64.c: Likewise.
2309         * sysdeps/generic/utmp_file.c: Likewise.
2310         * sysdeps/generic/vlimit.c: Likewise.
2311         * sysdeps/posix/posix_fallocate.c: Likewise.
2312         * sysdeps/posix/posix_fallocate64.c: Likewise.
2313         * sysdeps/posix/sigpause.c: Likewise.
2314         * sysdeps/posix/sigset.c: Likewise.
2315         * sysdeps/unix/grantpt.c: Likewise.
2316         * sysdeps/unix/bsd/ualarm.c: Likewise.
2317         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2318         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2319         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2320         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2321         * time/strftime.c: Likewise.
2322         * wcsmbs/wcscoll.c: Likewise.
2323         * wcsmbs/wcsxfrm.c: Likewise.
2325         * time/tst-getdate.c (main): Make error messages more human readable.
2327         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2328         postinc/predec instruction.
2329         (_FPU_SETCW): Likewise.
2330         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2332 2000-08-20  Andreas Jaeger  <aj@suse.de>
2334         * time/tst-getdate.c (main): Increase error in case of wrong
2335         conversion.
2336         Fix typo in test case.
2338 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2340         * ctype/ctype.h (isblank): Make available if ISO C99.
2341         * wctype/wctype.h (iswblank): Make available if ISO C99.
2342         * math/math.h (signgam): Don't make available if ISO C99.
2343         * math/tgmath.h (tgamma): Renamed from gamma.
2344         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2346         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2347         Pretty printing.
2348         * intl/plural.y (new_exp): Take number of optional parameters in
2349         second parameter.  Test for correct number of parameters and free
2350         correctly in case of failure.  Adjust all callers.
2351         (yylex): Allow ';' as terminator character.
2353 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2355         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2356         walt_digits.
2358         * locale/findlocale.c (free_mem): Also free here->filename.
2360         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2362         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2363         first test.
2364         (feexcp_nomask_test): Correct printf args.
2365         (feexcp_mask_test): Likewise.
2367 2000-08-19  Andreas Jaeger  <aj@suse.de>
2369         * inet/tst-gethnm.c: Include string.h to provide prototype for
2370         strcmp.
2372         * malloc/mtrace.pl (usage): Inform about --help.
2374 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2376         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2377         size HEAP_MAX_SIZE.
2379 2000-08-19  Andreas Jaeger  <aj@suse.de>
2381         * shlib-versions: Remove libnss_db, libdb and libdb1.
2383 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2385         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2386         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2387         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2388         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2389         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2390         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2391         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2392         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2393         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2394         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2395         getdents.
2396         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2397         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2399 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2401         * include/glob.h (__glob64): Add prototype.
2402         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2403         define glob and glob_in_dir.
2404         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2405         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2406         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2407         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2408         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2409         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2410         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2411         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2413 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2415         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2417 2000-08-17  Andreas Jaeger  <aj@suse.de>
2419         * math/test-fenv.c (fe_single_test): New function.
2420         (fe_env_tests): Use fe_single_test.
2421         (feenable_test): New tests for feenable/fedisable and
2422         fegetexcpetions.
2423         (feexcp_mask_test): New function.
2424         (feexcp_nomask_test): New function.
2426 2000-08-19  Richard Henderson  <rth@cygnus.com>
2428         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2429         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2430         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2431         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2432         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2433         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2434         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2435         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2436         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2437         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2438         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2439         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2440         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2441         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2442         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2443         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2444         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2446 2000-08-19  Andreas Jaeger  <aj@suse.de>
2448         * elf/constload1.c: Include <stdio.h> for puts prototype.
2450 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2452         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2453         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2454         a dynamically loaded object remove old l_initfini list.
2455         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2456         remove some dynamically allocated memory blocks in the dynamic
2457         loading data structures.
2458         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2459         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2460         Instead call _dl_check_map_versions only for the dependencies.
2461         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2462         information of initial objects as not free-able.
2463         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2464         element.
2466         * elf/filter.c: Call mtrace.
2467         * elf/restest1.c: Likewise.  Close the objects.
2468         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2469         debug information.
2471         * elf/constload1.c: Add comment explaining not freed memory.
2473 2000-08-18  Andreas Jaeger  <aj@suse.de>
2475         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2476         alignment for structs stat and stat64.
2477         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2479 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2481         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2482         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2484         * nss/Versions: Remove libnss_db information.
2486 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2488         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2489         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2490         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2491         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2493         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2494         to match Solaris.
2496 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2498         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2499         (_FPU_SETCW): Likewise.
2500         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2502         * stdio-common/printf_fp.c: Fix chars_needed computation.
2503         Patch by Greg McGary <greg@mcgary.org>.
2505 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2507         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2508         _dl_loaded are NULL.
2510 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2512         * manual/arith.texi (feholdexcept): Returns 0 on success.
2514 2000-08-17  Andreas Jaeger  <aj@suse.de>
2516         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2517         (ifr_newname): New.
2518         Reported by Andi Kleen <ak@suse.de>.
2520 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2522         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2523         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2524         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2526 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2528         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2529         of buf->st_ino and kbuf->st_ino, not __st_ino.
2530         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2531         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2532         directive so that only linux/getdents.c is used, not some
2533         architecture specific one.
2535 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2537         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2538         enabled, not disabled exceptions.
2539         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2540         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2542 2000-08-17  Greg McGary  <greg@mcgary.org>
2544         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2545         from test program name when constructing suffix for $(LDLIBS-*).
2546         (bounded-thread-library): New variable.
2547         * crypt/Makefile
2548         [build-shared, build-static] (libcrypt-dep): Remove variable.
2549         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2550         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2551         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2552         (librt-tests): Add variable.  (tests): Use it.
2553         [build-shared, build-static]
2554         ($(addprefix $(objpfx),$(tests)),
2555         $(addprefix $(objpfx),$(librt-tests))):
2556         Consolidate individual dependencies.
2557         [build-bounded]
2558         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2559         Add dependencies.
2560         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2561         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2562         * misc/Makefile
2563         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2564         * rt/Makefile
2565         [build-shared, build-static]
2566         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2567         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2569 2000-08-17  Greg McGary  <greg@mcgary.org>
2571         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2572         * sysdeps/unix/make-syscalls.sh: Likewise.
2573         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2574         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2575         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2576         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2577         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2579 2000-08-17  Greg McGary  <greg@mcgary.org>
2581         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2582         Wrap extern symbols in BP_SYM ().
2583         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2584         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2585         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2586         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2587         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2588         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2589         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2590         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2591         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2592         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2594 2000-08-16  Andreas Schwab  <schwab@suse.de>
2596         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2597         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2598         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2600 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2602         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2603         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2604         * elf/dl-support.c: Define _nl_nloaded.
2605         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2606         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2607         object to global list.
2608         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2609         from _dl_loaded list.
2610         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2611         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2612         number here.
2614         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2615         unmask, exceptions.
2616         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2617         exceptions.
2618         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2620 2000-08-16  Andreas Jaeger  <aj@suse.de>
2622         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2624 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2626         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2628 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2630         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2631         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2632         (sysdep_routines): Add oldgetrlimit64.
2633         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2634         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2636         * include/link.h: Undo last patches.  Hurd now has stat64.
2637         * elf/Makefile: Likewise.
2638         * elf/dl-load.c: Likewise.
2639         * elf/dl-misc.c: Likewise.
2640         * elf/dl-profile.c: Likewise.
2641         * sysdeps/generic/sysd-link.h: Removed.
2642         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2644         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2645         thread event callback function.
2646         (__aio_notify_only): Use function above.
2647         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2649 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2651         * sysdeps/mach/hurd/lseek64.c: New file.
2653 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2655         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2656         Remove typedefs.
2657         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2658         typedefs.
2659         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2660         typedefs.
2661         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2663 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2665         * sysdeps/mach/hurd/xstatconv.c: New file.
2666         * sysdeps/mach/hurd/fxstat64.c: New file.
2667         * sysdeps/mach/hurd/lxstat64.c: New file.
2668         * sysdeps/mach/hurd/xstat64.c: New file.
2669         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2671 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2673         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2674         Initialize, needed for change in common symbol handling in newer
2675         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2677 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2679         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2680         * elf/constload2.c: Add destructor to unload constload3.
2682         * include/link.h: Include sysd-link.h.
2683         * sysdeps/generic/sysd-link.h: New file.
2684         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2685         * elf/Makefile (distribute): Add sysd-link.h.
2686         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2687         types and functions directly.
2688         * elf/dl-misc.c: Likewise.
2689         * elf/dl-profile.c: Likewise.
2691         * elf/loadfail.c (main): Close all successfully loaded objects.
2693         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2694         free wd.
2695         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2696         there is already one.
2698         * elf/dl-close.c: Pretty print.
2700 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2702         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2703         global (with file scope).  Add __libc_subfreeres function to free the
2704         string.
2705         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2706         in ttyname function.
2708         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2710         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2712         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2713         mapping them to /x5c and /x7e respectively.
2715         * locale/programs/ld-ctype.c: Add support for more definitions after
2716         copy statement.
2718 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2720         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2721         * sysdeps/unix/sysv/linux/kernel-features.h
2722         (__ASSUME_GETDENTS64_SYSCALL): Define.
2723         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2724         syscall if available to get d_type fields.
2725         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2726         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2727         __lxstat64): Export at GLIBC_2.2.
2728         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2729         Likewise.
2730         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2731         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2732         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2733         getdirentries64, versionsort64): Remove.
2734         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2735         getdirentries64, versionsort64): Remove.
2737 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2739         * posix/Makefile: Remove rules to generate glob package.
2741         * posix/Makefile (tests): Add tst-regexloc.
2742         (tst-regexloc-ENV): Add LOCPATH.
2743         * posix/tst-regexloc.c: New file.
2745 2000-08-12  Andreas Jaeger  <aj@suse.de>
2747         * include/features.h (__STDC_ISO_10646__): Define.
2748         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2750 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2752         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2754         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2755         for revision 6 and up).
2757         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2758         including <time.h>.
2759         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2760         to get definitions of just these types.
2762         * signal/signal.h: Define thread signal handling functions also for
2763         POSIX95.
2765         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2766         POSIX95.
2767         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2768         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2769         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2770         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2772         * sysvipc/sys/shm.h: Define pid_t for XPG.
2774         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2775         they are not anymore required here.
2777         * wcsmbs/wchar.h: Make the various wide char string and stream
2778         functions available for the respective XPG versions.
2780         * nss/Makefile: Remove rules to build and distribute nss_db.
2782         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2783         * sysdeps/generic/scandir64.c: Likewise.
2784         * sysdeps/generic/versionsort64.c: Likewise.
2786 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2787             Benjamin Koznik  <bkoz@redhat.com>
2789         * libio/fileops.c: Merge with libstdc++-v3.
2790         * libio/genops.c: Likewise.
2791         * libio/iofclose.c: Likewise.
2792         * libio/iofopen.c: Likewise.
2793         * libio/iofwide.c: Likewise.
2794         * libio/libio.h: Likewise.
2795         * libio/libioP.h: Likewise.
2796         * libio/stdfiles.c: Likewise.
2797         * libio/stdio.c: Likewise.
2798         * libio/wfileops.c: Likewise.
2799         * libio/wgenops.c: Likewise.
2801         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2803 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2805         * locale/programs/localedef.c: Implement --prefix option to allow
2806         writing in standard places of alternative install directories.
2808         * posix/regex.c (compile_range): Implement collation sequence
2809         handling for glibc.  Use simple character ordering otherwise and
2810         not strcoll.
2812 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2814         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2816 2000-08-12  Andreas Jaeger  <aj@suse.de>
2818         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2819         __USE_FILE_OFFSET64 correctly for locking.
2820         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2822 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2824         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2825         Define for 2.4.1 on sparc as well.
2826         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2827         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2828         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2829         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2831 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2833         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2834         defined.
2836 2000-08-12  Andreas Jaeger  <aj@suse.de>
2838         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2839         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2841         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2842         mips2 for assembler.
2844         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2845         if fnctl64 is not available for F_*LK*64.
2847         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2849 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2851         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2852         Define for 2.4.1 on x86.
2853         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2854         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2855         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2857         * dirent/dirent.h: Define DT_WHT.
2859         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2860         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2861         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2862         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2863         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2864         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2866 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2868         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2869         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2870         * inet/Makefile (tests): Add tst-gethnm.
2871         * inet/tst-gethnm.c: New file.
2873         * rt/aio_cancel.c: If canceling a specific request which is running
2874         *really* do nothing.
2875         * rt/aio_misc.h: Add `done' to states of a request.
2876         * rt/aio_misc.c: Add several tests for the correct state.
2877         Simplify request table memory handling.
2879 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2881         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2882         * dirent/scandir64.c: Move...
2883         * sysdeps/generic/scandir64.c: ...here.
2884         * dirent/alphasort64.c: Move...
2885         * sysdeps/generic/alphasort64.c: ...here.
2886         * dirent/versionsort64.c: Move...
2887         * sysdeps/generic/versionsort64.c: ...here.
2888         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2889         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2890         Export symbols at GLIBC_2.2.
2891         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2892         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2893         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2894         __versionsort64): Add prototypes.
2895         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2896         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2897         unused prototype.
2898         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2899         and GLIBC_2.2.
2900         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2901         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2902         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2903         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2904         __u_quad_t.
2905         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2906         Adjust for kernel-2.4.0-test6 layout.
2907         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2908         GLIBC_2.1 and GLIBC_2.2.
2909         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2910         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2911         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2912         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2913         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2914         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2915         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2916         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2917         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2918         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2919         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2920         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2921         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2922         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2923         __u_quad_t.
2924         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2925         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2926         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2927         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2928         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2929         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2930         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2931         __u_quad_t.
2932         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2933         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2934         Define.
2935         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2936         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2937         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2938         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2939         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2940         Define.
2941         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2942         alpha/readdir.c.
2943         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2944         alpha/readdir_r.c
2945         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2946         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2947         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2948         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2949         st_ino from __st_ino.
2950         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2951         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2952         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2953         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2954         set __st_ino in addition to st_ino.
2955         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2956         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2957         __old_getdents64 as well.
2958         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2959         getdirentries64 and old_getdirentries64 as well.
2960         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2961         __GETDENTS): Define.
2962         (GETDENTS64): Remove.
2963         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2964         Define.
2965         (GETDENTS64): Remove.
2966         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2967         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2968         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2969         as well.
2970         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2971         __old_readdir64_r as well.
2972         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2973         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2975 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2977         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2978         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2979         define of the kernel.
2980         Add missing __SEG_PSTKOVF definition.
2981         Adjust the padding of struct siginfo and struct sigevent to
2982         match the fact that sigval_t is 64 bit.
2984 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2986         * timezone/zic.c: Update from tzcode2000f.
2987         * timezone/australasia: Update from tzdata2000f.
2988         * timezone/europe: Likewise.
2989         * timezone/southamerica: Likewise.
2990         * timezone/yearistype: Likewise.
2992 2000-08-10  Andreas Jaeger  <aj@suse.de>
2994         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2995         stat with current MIPS kernel.
2997 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2999         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
3000         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
3001         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
3002         Remove the junk that's only relevant in the Linux kernel itself.
3003         Add a warning saying that this file is now obsolete, and include
3004         <sys/procfs.h>.
3005         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
3006         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
3007         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
3008         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
3009         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
3010         and add the notice that the file is primarily there for GDB.
3011         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
3013 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3015         * time/tzfile.c (__tzfile_compute): __tzstring zones
3016         from zone_names.
3018 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3020         * resolv/resolv.h (__res_state): Surround prototype with
3021         __BEGIN_DECLS/__END_DECLS.
3022         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3024 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3026         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3027         Make independant of asm/resource.h from the Linux kernel.
3029 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3031         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3033 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3035         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3036         * locale/Makefile (locale-CPPFLAGS): Likewise.
3038 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3040         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3041         for AMD processors.
3043 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3045         * misc/Versions (mincore): Export at GLIBC_2.2.
3047 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3049         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3051 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3053         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3054         socketpair.  Made socketpair a weak alias.
3055         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3056         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3057         conforming, but fall back on the old protocol if the socket server
3058         doesn't support it.
3059         * include/sys/socket.h: Add prototype for __socketpair.
3061 2000-08-09  Andreas Schwab  <schwab@suse.de>
3063         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3064         long long modifier is seen.
3066         * elf/nodelete.c (do_test): Remove reference to undefined member
3067         sa_restorer.
3068         * rt/tst-aio4.c (do_test): Likewise.
3070         * configure.in: Add `-lm' when checking for libgd.
3071         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3072         linking.
3074 2000-08-09  Andreas Jaeger  <aj@suse.de>
3076         * configure.in: Change required make versions.
3078         * manual/install.texi (Tools for Compilation): Document required
3079         make version.
3080         (Supported Configurations): Update list of supported
3081         configurations.
3083 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3085         * locale/linereader.c (get_string): Don't print an error is a string
3086         contains an unknown character.
3088 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3090         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3091         (new_symbol): Take new parameters with name of the symbol.
3092         Adjust callers.
3093         (handle_ellipsis): Don't only allow character symbols.
3094         (collate_read): Allow string of collating elements contain invalid
3095         characters; ignore entry in this case.
3096         Handle ellipsis of collating symbols before first order_start.
3097         Allow ellipsis in state 0.
3099 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3101         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3102         error message.
3103         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3105 2000-08-04  Greg McGary  <greg@mcgary.org>
3107         * posix/regex.c (SET_HIGH_BOUND): New macro.
3108         (MOVE_BUFFER_POINTER): Use it.
3109         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3110         (EXTEND_BUFFER): Use it.
3112 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3114         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3115         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3116         _wide_data but from _IO_FILE directly.
3117         * libio/iofclose.c: Likewise.
3118         * libio/wfileops.c: Likewise.
3120         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3121         * libio/libioP.h: Change prototypes.
3123 2000-08-03  Greg McGary  <greg@mcgary.org>
3125         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3126         frame pointer early so that we save caller's frame pointer.
3127         * sysdeps/i386/elf/setjmp.S: Likewise.
3129         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3130         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3132         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3133         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3134         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3136 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3138         * iconvdata/big5.c: Updated.
3139         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3141 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3143         * Makeconfig (all-subdirs): Add conform.
3144         * conform/Makefile: Include ../Rules.
3146         * Makefile (README): Add rules to generate here as well.
3148 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3150         * version.h (VERSION): Bump to 2.1.92.
3152         * sysdeps/ia64/Dist: Add _mcount.S.
3154         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3156         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3158         * elf/Makefile (distribute): Add missing modules.
3160         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3162         * posix/regex.c (compile_range): Translate range start and end
3163         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3165         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3166         asm/resource.h.
3168         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3170 2000-08-02  Andreas Jaeger  <aj@suse.de>
3172         * elf/elf.h (EM_S390): Added.
3173         (R_390_*): New relocs for S390.
3175         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3176         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3177         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3178         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3179         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3180         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3181         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3182         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3183         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3184         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3185         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3186         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3187         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3188         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3189         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3190         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3191         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3192         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3193         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3194         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3195         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3196         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3197         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3198         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3199         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3200         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3201         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3202         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3203         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3204         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3205         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3206         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3207         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3208         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3209         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3210         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3211         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3212         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3213         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3214         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3215         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3216         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3217         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3218         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3219         * sysdeps/s390/sysdep.h: New file.
3220         * sysdeps/s390/sys/ucontext.h: New file.
3221         * sysdeps/s390/sub_n.S: New file.
3222         * sysdeps/s390/strncpy.S: New file.
3223         * sysdeps/s390/strcpy.S: New file.
3224         * sysdeps/s390/stackinfo.h: New file.
3225         * sysdeps/s390/setjmp.S: New file.
3226         * sysdeps/s390/s390-mcount.S: New file.
3227         * sysdeps/s390/mul_1.S: New file.
3228         * sysdeps/s390/memusage.h: New file.
3229         * sysdeps/s390/memset.S: New file.
3230         * sysdeps/s390/memcpy.S: New file.
3231         * sysdeps/s390/memchr.S: New file.
3232         * sysdeps/s390/machine-gmon.h: New file.
3233         * sysdeps/s390/ldbl2mpn.c: New file.
3234         * sysdeps/s390/gmp-mparam.h: New file.
3235         * sysdeps/s390/fpu/fpu_control.h: New file.
3236         * sysdeps/s390/fpu/fesetround.c: New file.
3237         * sysdeps/s390/fpu/fegetround.c: New file.
3238         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3239         * sysdeps/s390/fpu/bits/fenv.h: New file.
3240         * sysdeps/s390/ffs.c: New file.
3241         * sysdeps/s390/elf/start.S: New file.
3242         * sysdeps/s390/elf/setjmp.S: New file.
3243         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3244         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3245         * sysdeps/s390/dl-machine.h: New file.
3246         * sysdeps/s390/bzero.S: New file.
3247         * sysdeps/s390/bsd-setjmp.S: New file.
3248         * sysdeps/s390/bsd-_setjmp.S: New file.
3249         * sysdeps/s390/bits/string.h: New file.
3250         * sysdeps/s390/bits/setjmp.h: New file.
3251         * sysdeps/s390/bits/huge_val.h: New file.
3252         * sysdeps/s390/bits/endian.h: New file.
3253         * sysdeps/s390/bits/byteswap.h: New file.
3254         * sysdeps/s390/bcopy.S: New file.
3255         * sysdeps/s390/backtrace.c: New file.
3256         * sysdeps/s390/atomicity.h: New file.
3257         * sysdeps/s390/asm-syntax.h: New file.
3258         * sysdeps/s390/addmul_1.S: New file.
3259         * sysdeps/s390/add_n.S: New file.
3260         * sysdeps/s390/abort-instr.h: New file.
3261         * sysdeps/s390/__longjmp.c: New file.
3262         * sysdeps/s390/Makefile: New file.
3263         * sysdeps/s390/Implies: New file.
3264         * sysdeps/s390/Dist: New file.
3265         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3267 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3269         Remove incompatible IPv6 extension of RPC.
3270         * sunrpc/Makefile: Undo changes.
3271         * sunrpc/rpc_main.c: Likewise.
3272         * sunrpc/rpc/clnt.h: Likewise.
3273         * sunrpc/rpc/svc.h: Likewise.
3274         * sunrpc/bindrsvprt6.c: Removed.
3275         * sunrpc/clnt_tcp6.c: Removed.
3276         * sunrpc/clnt_udp6.c: Removed.
3277         * sunrpc/svc_tcp6.c: Removed.
3278         * sunrpc/svc_udp6.c: Removed.
3280         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3281         dgettext, and dcgettetxt.
3283         * intl/locale.alias: Update japanese aliases.
3285         * sysdeps/ia64/bits/byteswap.h: New file.
3286         Patch by Dan Pop <Dan.Pop@cern.ch>.
3288         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3289         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3291 2000-07-13  H.J. Lu  <hjl@gnu.org>
3293         * posix/regex.c (re_max_failures): Set to 4000.
3295 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3297         * gnulib/Makefile (tests): Add tst-gcc.
3298         * gnulib/tst-gcc.c: New file.
3300         * assert/Makefile (routines): Add __assert.
3301         * assert/Versions: Export __assert for glibc 2.2.
3302         * assert/__assert.c: New file.
3303         * assert/assert.h: Declare __assert.
3305 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3307         * locale/localeinfo.h (_ISCTYPE): New macro.
3308         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3309         LC_CTYPE locale format.
3310         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3311         (ctype_output): Output class_b[nr] right before class_3level[nr].
3312         (allocate_arrays): Fill class_b, similarly to class_3level.
3314 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3315             Joseph S. Myers  <jsm28@cam.ac.uk>
3317         * math/tgmath.h: Make standard compliant.  Don't ask how.
3319 2000-07-04  H.J. Lu  <hjl@gnu.org>
3321         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3322         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3323         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3325 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3327         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3328         (__USE_LARGEFILE): Add an explanation.
3329         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3330         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3332 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3334         * libio/Makefile: Enable exception handling for genops, wgenops,
3335         fileops, and wfileops.
3337 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3339         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3340         acount that elf/rtld's main program might remove some varibales
3341         from the environment if we're trying to be secure.  Move the Hurd
3342         startup data if necessary, or, if we there is no startup data,
3343         make sure the magical convention that ARGV[0] is stored just after
3344         the environment list.
3346 2000-08-01  Philip Blundell  <philb@gnu.org>
3348         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3349         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3350         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3351         oldsetrlimit for GLIBC_2.0.
3353 2000-08-01  Andreas Jaeger  <aj@suse.de>
3355         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3356         (LINE_PARSER): Allow any number of spaces between ip address and
3357         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3359         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3361         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3362         constants in.
3364         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3365         _nss_nisplus_getipnodebyname_r.
3367         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3368         now, getipnodebyname is deprecated.
3369         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3370         Likewise.
3372         * inet/Makefile (routines): Don't build getipnodebyaddr and
3373         friends.
3375         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3377         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3379         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3381         * wctype/Makefile (distribute): Add wchar-lookup.h.
3383         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3385         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3387 2000-08-01  Andreas Schwab  <schwab@suse.de>
3389         * Make-dist (dist): Resolve `..' in file names.
3391 2000-08-01  Andreas Jaeger  <aj@suse.de>
3393         * stdio-common/Makefile (distribute): Remove removed files, add
3394         new files.
3396         * Makefile (distribute): Remove include/db_185.h and db.h.
3398         * include/db_185.h: Remove, it's not needed anymore.
3399         * include/db.h: Likewise.
3401 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3403         * inet/Makefile (tests): Remove tst-ipnode.
3404         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3405         now.
3407 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3409         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3410         endp statements have already been added.
3412 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3414         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3415         <sysdeps/ia64/sysdep.h>.
3417         * sysdeps/ia64/_mcount.S: New file.
3419         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3420         __gmon_start__.  Fix up extraneous whitespace.
3422 2000-01-12  H.J. Lu  <hjl@gnu.org>
3424         * sysdeps/ia64/elf/initfini.c: New file.
3426 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3428         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3429         dependency between branch and ar.pfs write.
3431 2000-07-31  H.J. Lu  <hjl@gnu.org>
3433         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3434         handle the wchar_t array.
3436 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3438         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3439         10646 which are not yet assigned.
3440         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3442 2000-07-31  Andreas Jaeger  <aj@suse.de>
3444         * inet/Versions: Remove getipnodebyaddr and friends from
3445         GLIBC_2.2.
3447         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3449 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3451         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3452         ch >= 0x81 && ch2 < 0x40 as invalid.
3454 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3456         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3457         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3459 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3461         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3462         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3464 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3466         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3467         0xb8.
3468         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3470 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3472         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3474 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3476         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3477         (from_ucs4): Change values of U+00A4 and U+00ED.
3478         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3480 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3482         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3483         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3485 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3487         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3488         * iconvdata/isiri-3342.h: New file.
3489         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3490         treat 0x80 as a gap.
3492 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3494         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3495         (utf8_encode): Use simple shifts instead.  Fix return value.
3497 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3499         * timezone/private.h: Update from tzcode2000e.
3500         * timezone/asia: Update from tzdata2000e.
3501         * timezone/australasia: Likewise.
3502         * timezone/europe: Likewise.
3503         * timezone/northamerica: Likewise.
3504         * timezone/zone-tab: Likewise.
3506 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3508         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3509         the order of struct sigaltstack members is different.
3511 2000-07-26  Philip Blundell  <philb@gnu.org>
3513         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3515 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3517         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3518         * locale/programs/ld-ctype.c: Adjust for this.
3520         * locale/programs/ld-collate.c: Add more alignment checks.
3521         * locale/string/strcoll.c: Likewise.
3523 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3525         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3526         outside USE_IN_LIBIO block.
3528 2000-07-26  Philip Blundell  <philb@gnu.org>
3530         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3531         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3533 2000-07-28  Philip Blundell  <philb@gnu.org>
3535         * math/test-fpucw.c: Ignore reserved bits in control word.
3537 2000-07-28  Philip Blundell  <philb@gnu.org>
3539         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3540         (ret): Redefine to PSEUDO_RET.
3541         (PSEUDO): Remove jump to syscall_error.
3543 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3545         * resolv/README: Add some information about using the resolver in
3546         multi-threaded code and with C++.  Spelling fixes.
3548 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3550         * resolv/resolv.h (struct __sockaddr_in): Remove.
3551         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3553 2000-07-29  Greg McGary  <greg@mcgary.org>
3555         * Rules (test-bp-inputs, make-test-out): New variables.
3556         ($(objpfx)%-bp.out): New rule.
3557         ($(objpfx)%.out): Rewrite in terms of new variables.
3559         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3560         internal function that uses vtable.
3561         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3562         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3564         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3565         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3566         (chunk_align): Likewise.
3568         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3569         in a way that conforms to decl, and avoids spurious bounds violation.
3571         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3572         * sysdeps/generic/frame.h: Likewise.
3573         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3574         around return value.
3575         (__backtrace): Qualify frame-pointer chain and return address
3576         pointers as __unbounded.  Wrap bounds around variable `current'.
3577         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3578         around return value.
3579         (catch_segfault): Qualify frame-pointer chain and return address
3580         pointers as __unbounded.  Wrap bounds around variable `current'.
3581         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3582         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3583         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3584         __unbounded.
3585         (__backtrace): Qualify frame-pointer chain and return address
3586         pointers as __unbounded.  Wrap bounds around variable `current'.
3588         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3589         * sysdeps/i386/mul_1.S: Likewise.
3590         * sysdeps/i386/submul_1.S: Likewise.
3591         * sysdeps/i386/i586/addmul_1.S: Likewise.
3592         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3593         * sysdeps/i386/i586/submul_1.S: Likewise.
3595 2000-07-27  Andreas Jaeger  <aj@suse.de>
3597         * libio/Depend: New file, libio needs localedata for tests.
3598         * posix/Depend: Likewise.
3600 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3602         * stdio-common/_i18n_itoa.c: Removed.
3603         * stdio-common/_i18n_itoa.h: Removed.
3604         * stdio-common/_i18n_itowa.c: Removed.
3605         * stdio-common/_i18n_itowa.h: Removed.
3606         * stdio-common/_i18n_number.h: New file.
3607         * stdio-common/Depend: New file.
3608         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3609         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3610         printing.  Change printing of numbers with locale specific digits to
3611         use new code in _i18n_number.h.
3612         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3613         _i18n_itowa.
3615         * stdio-common/bug13.c: Improve messages.
3617         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3618         (set_class_defaults): Always search also for Uxxxx names.
3619         Detect insufficient number of outdigits.
3621         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3623 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3625         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3626         _NL_CTYPE_MAP_NAMES.
3627         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3628         * wctype/wcfuncs.c (towlower, towupper): Use them.
3629         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3630         * wctype/wctrans.c (wctrans): Likewise.
3631         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3633 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3635         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3636         Use the optimized version of this function outside glibc as well.
3638 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3640         * locale/indigits.h (indigit_value): Correct.
3641         * locale/indigitswc.h (indigitwc_value): Correct.
3642         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3643         conversion, add GROUP checking for it, fix GROUP number
3644         conversion with strlen(thousands) > 1.
3645         Honour width correctly in the presence of floating
3646         decimal points and thousands separators.
3647         * stdio-common/tst-sscanf.c: New test.
3648         * stdio-common/Makefile: Add it to tests.
3649         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3650         thousands separators and group argument is non-zero.
3652 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3654         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3655         starts at GLIBC_2.2.
3657 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3659         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3660         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3661         _test_and_set.
3662         (headers): Add sys/tas.h.
3663         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3664         GLIBC_2.2 from libc.
3665         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3666         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3667         _test_and_set.
3669 2000-07-28  Andreas Jaeger  <aj@suse.de>
3671         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3673         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3674         ($(objpfx)tst-dladdr.out): new.
3675         (tests): Add tst-dladdr.
3676         ($(objpfx)glrefmain): Use libdl.
3678         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3679         <vs@caldera.de>.
3681 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3683         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3684         ftruncate(64) calls.
3686 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3688         * intl/tst-translit.c: Include string.h to get prototype for
3689         strcmp().
3691 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3693         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3694         name and add weak alias for __fork.
3696         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3697         & pwrite to use __libc_<name> as strong names instead of
3698         __syscall_<name>.
3700         * include/sched.h: Add clone2 prototype.
3702 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3704         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3705         procedure name twice.
3707 2000-07-27  Philip Blundell  <philb@gnu.org>
3709         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3711 2000-07-27  Andreas Jaeger  <aj@suse.de>
3713         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3714         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3715         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3716         Reported by Andi Kleen <ak@suse.de>.
3718         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3719         (do_wait): Test requests with aio_return64.
3720         (do_test): Change callers of do_wait.
3722 2000-07-26  Andreas Jaeger  <aj@suse.de>
3724         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3725         (do_wait): Test requests with aio_return.
3726         (do_test): Change callers of do_wait.
3728 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3730         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3731         from request list.  Don't do the list handling here, call
3732         __aio_remove_request.
3733         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3734         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3735         request might already be processed.  Don't do the list handling
3736         here, call __aio_remove_request.
3738         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3739         LIO_DSYNC.
3741         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3742         are missing.
3744 2000-07-27  Greg McGary  <greg@mcgary.org>
3746         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3747         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3748         in union init.  Pass zero for ignored semnum arg to semctl.
3749         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3751 2000-07-26  Greg McGary  <greg@mcgary.org>
3753         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3754         data structure pointers as __unbounded.
3755         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3756         * sysdeps/generic/bp-semctl.h: New file.
3757         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3758         pointers as __unbounded.  Check bounds of syscall args.
3759         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3760         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3761         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3762         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3763         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3764         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3765         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3766         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3767         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3768         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3769         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3770         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3771         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3772         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3773         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3774         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3776 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3778         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3779         by default.
3780         * locale/C-ctype.c: Likewise.
3781         * wcsmbs/wcsmbsload.c: Likewise.
3783 2000-07-26  Greg McGary  <greg@mcgary.org>
3785         * Makeconfig (+link-bounded, link-libc-bounded,
3786         link-extra-libs-bounded): New variables.
3787         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3788         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3789         * Rules (tests-bp.out): New variable.
3790         (tests): Conditionally add BP tests.
3791         (binaries-bounded): Add variable and associated rule.
3792         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3793         Move conditional stuff after place where condition is defined.
3795         * malloc/malloc.c (bp-checks.h): Add #include.
3796         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3797         (_bin_at): Add unbounded version of bin_at.
3798         (IAV, chunk_alloc): Use unbounded _bin_at.
3799         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3800         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3801         Wrap BOUNDED_N around return value.
3802         (chunk_realloc): Adjust oldsize once.
3804         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3805         (__ubp_memchr): Add correct decl.
3806         (_CHECK_STRING): Use __ubp_memchr.
3807         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3808         New alias for unbounded-pointer __memchr.
3809         * sysdeps/i386/memchr.S: Likewise.
3810         * sysdeps/ia64/memchr.S: Likewise.
3811         * sysdeps/m68k/memchr.S: Likewise.
3812         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3813         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3814         * sysdeps/vax/memchr.s: Likewise.
3816         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3817         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3818         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3819         * sysdeps/i386/i686/strtok.S: Likewise.
3820         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3821         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3823         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3824         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3826         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3827         bounds of copy_result to mount_proc.
3829 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3831         * wctype/wctype.h (__wctrans_l): New declaration.
3832         * wctype/wctrans_l.c: New file.
3833         * wctype/Makefile (routines): Add wctrans_l.
3835 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3837         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3838         Patch by MacGyver <macgyver@tos.net>.
3840 2000-07-26  Andreas Jaeger  <aj@suse.de>
3842         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3843         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3844         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3846         * rt/tst-aio.c (test_file): Fix typo.
3847         * rt/tst-aio64.c (test_file): Likewise.
3849         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3850         * rt/Makefile: Add rules to build and run tst-aio3.
3852         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3853         it's not needed and confuses only.
3855 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3857         * resolv/res_init.c: Add support for nameserver communication with
3858         IPv6.
3859         * resolv/res_send.c: Likewise.
3860         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3861         in nsaddrs field.
3862         Patch by <venaas@nvg.ntnu.no>.
3864 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3866         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3867         (wcwidth_table_get): New function.
3868         (wcwidth_table_add): Call it.
3869         (wctrans_table_get): New function.
3870         (wctrans_table_add): Call it.
3872 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3874         * rt/lio_listio.c (lio_listio): Always disable individual
3875         notification.
3876         * rt/Makefile: Add rules to build and run tst-aio2.
3877         * rt/tst-aio2.c: New file.
3879         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3880         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3882 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3884         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3885         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3886         leading and trailing spaces from host, user and domain name.
3888 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3890         * csu/defs.awk: Add support for need_endp.
3892 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3894         * resolv/resolv.h: Remove __P from res_send_qhook and
3895         res_send_rhook typedefs.
3897 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3899         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3901 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3903         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3905 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3907         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3908         calling thread, set the cancellation flag and return success
3909         instead of EINTR.
3911 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3913         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3914         * libio/tst-widetext.c: New file.
3915         * libio/tst-widetext.input: New file.
3917         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3919         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3920         empty external buffer correctly.
3922 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3924         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3925         __STRING(entry) and not #entry.
3926         (_RTLD_EPILOGUE): Likewise.
3927         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3929 2000-07-25  Andreas Jaeger  <aj@suse.de>
3931         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3932         according to changes in test program, run also with static only
3933         builds.
3934         ($(objpfx)tst-printf.out): Likewise.
3936         * stdio-common/tst-unbputc.sh: Likewise.
3937         * stdio-common/tst-printf.sh: Likewise.
3939 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3941         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3943         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3944         loop.
3946         * libio/fileops.c: Pretty print.
3948 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3950         * wctype/wchar-lookup.h: New file.
3951         * wctype/iswctype.c: Include "wchar-lookup.h".
3952         (__iswctype): Support alternate locale format with 3-level tables.
3953         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3954         * wctype/towctrans.c (__towctrans): Likewise.
3955         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3956         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3957         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3958         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3959         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3960         __iswxdigit, towlower, towupper): Support alternate locale format
3961         with 3-level tables.
3962         * wctype/wcextra.c (iswblank): Likewise.
3963         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3964         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3965         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3966         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3967         format with 3-level tables.
3968         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3969         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3970         format, return a 3-level table pointer.
3971         * wctype/wctype_l.c (__wctype_l): Likewise.
3972         * wctype/wctrans.c (wctrans): Likewise.
3973         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3974         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3975         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3976         (iswctype): Remove macro definition.
3977         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3978         (internal_wcwidth): Support alternate locale format with 3-level
3979         tables.
3980         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3981         New nl_items.
3982         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3983         Define them as being type "word".
3984         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3985         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3986         __ctype32_width): New exported variables.
3987         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3988         alternate locale format. Don't initialize __ctype_names and
3989         __ctype_width in the alternate locale format.
3990         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3991         * locale/programs/localedef.c (oldstyle_tables): New variable.
3992         (OPT_OLDSTYLE): New macro.
3993         (options): Add --old-style option.
3994         (parse_opt): Handle --old-style option.
3995         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3996         map_offset, class_3level, map_3level, width_3level members.
3997         (ctype_output): Support for alternate locale format: Computation of
3998         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3999         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
4000         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
4001         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
4002         now contain both class and map tables.
4003         (struct wctype_table): New type.
4004         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
4005         functions.
4006         (struct wcwidth_table): New type.
4007         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
4008         functions.
4009         (struct wctrans_table): New type.
4010         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
4011         functions.
4012         (allocate_arrays): Support for alternate locale format: Set
4013         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
4014         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
4015         to the first 256 characters. Compute ctype->map_3level. Set
4016         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
4017         instead of ctype->width.
4019 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4021         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4022         string functions.
4024 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4026         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4027         in wide characters, not bytes.
4028         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4029         into file.
4031 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4033         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4034         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4035         LC_MEASUREMENT, LC_IDENTIFICATION.
4037         * locale/xlocale.h (struct __locale_struct): Increase size of
4038         __locales array.
4039         * locale/duplocale.c (__duplocale): Copy newly added categories as
4040         well.
4041         * locale/freelocale.c (__freelocale): Free newly added categories.
4042         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4043         If a base is given, use it, don't simply return it.
4045 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4047         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4048         variables, copied_key and copied_salt, instead of boolean variables.
4050 2000-07-24  Andreas Jaeger  <aj@suse.de>
4052         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4053         check for offset.
4055         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4056         initgroups_function, adopted prototype for change from 2000-07-23.
4057         (initgroups): Follow type change.
4059         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4060         & PAGE_MASK case, reformat.
4062         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4063         from stdin and setup environment.
4065 2000-07-24  Andreas Schwab  <schwab@suse.de>
4067         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4069 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4071         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4072         more.  Patch by scarlet@mit.edu [PR libc/1799].
4074         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4075         [PR libc/1792].
4077         * argp/argp-parse.c (parser_finalize): Reverse order in which
4078         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4080         * grp/initgroups.c (initgroups): Don't limit the possible number
4081         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4082         the setgroups call while the call fails and descrease the number
4083         of groups each round.
4084         The name of the initgroups function in the NSS modules changed.
4085         (compat_call): Adapt for dynamic resizing.
4086         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4087         Implement dynamic resizing.
4088         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4089         Likewise.
4090         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4091         * hesiod/Versions: Change exported interface name.
4092         * nis/Versions: Change exported interface name.
4094 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4096         * locale/iso-639.def: Some errors corrected.
4097         Patch by Keld Simonsen.
4099         * include/limits.h: Update non-gcc portion.
4100         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4102 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4104         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4105         program's data space, reallocate only the space that was just
4106         deallocated to release its backing space.
4108 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4110         * stdio-common/vfprintf.c (process_string_arg): For wide character
4111         version, handle precision also correctly.
4113         * nss/nss_files/files-hosts.c: Correct problem with three or more
4114         entries with the same name.
4116         * nss/nss_files/files-hosts.c: Implement multi handling.
4117         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4119 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4121         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4122         strcasecmp.
4124         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4125         * malloc/Makefile: Likewise.
4126         * malloc/tst-mtrace.sh: Likewise.
4127         * posix/Makefile: Likewise.
4128         * posix/globtest.sh: Likewise.
4129         * posix/wordexp-tst.sh: Likewise.
4130         * string/Makefile: Likewise.
4132 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4134         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4135         size instead of LC_ALL to take into account the new locale
4136         categories.
4138 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4140         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4141         remainders of hash table.
4142         * locale/categories.def: Remove remainders of transliteration
4143         hash table.
4144         * locale/langinfo.h: Likewise.
4145         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4146         transliteration tables.
4148         * locale/gen-translit.pl: New file.
4149         * locale/C-translit.h.in: New file.
4150         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4151         data pointers with data from this file.
4152         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4153         and gen-translit.pl.
4154         Add rule to generate C-translit.h.
4155         * intl/tst-translit.c (main): Update for now performed
4156         transliteration.
4158         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4159         (it's no input error).
4160         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4161         * stdio-common/scanf12.c: Correct expected result for first scanf.
4163         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4164         of multibyte character strings in %s format with precision.
4166 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4168         * locale/programs/ld-collate.c (collate_read): Allow collating
4169         symbols and elements be named in reorder-after instructions.
4170         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4172         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4173         duplication with generated name, not the name of the first
4174         character.
4175         Patch by Yong Li <yong.li@asu.edu>.
4177         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4178         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4180 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4182         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4183         allocations only if a non-main arena cannot be extended.
4185 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4187         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4188         in DF_1_NODEFLIB handling.
4190 2000-07-21  Andreas Jaeger  <aj@suse.de>
4192         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4193         own rule.
4195         * libio/fwide.c: Include <wchar.h> for prototype.
4197 2000-07-21  Greg McGary  <greg@mcgary.org>
4199         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4200         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4201         Define in terms of chunk_at_offset.
4202         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4203         (next_bin, prev_bin): offset by size of real array elements.
4204         (chunk_align): Make `m' a scalar, since that's how it's used.
4206 2000-07-21  Greg McGary  <greg@mcgary.org>
4208         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4209         UNCHECK_BOUNDS.
4210         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4211         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4212         Wrap bounds around argv & envp and each of their string members.
4213         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4214         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4215         symbol in BP_SYM ().  Discard bounds of address arg.
4216         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4217         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4218         Discard bounds on address arg, add bounds to return value.
4220 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4222         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4223         * elf/filter.c: New file.
4224         * elf/filtmod1.c: New file.
4225         * elf/filtmod2.c: New file.
4227         * elf/rtld.c: Define _dl_bind_not variable.
4228         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4229         * elf/dl-support.c: Likewise.
4230         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4231         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4232         _dl_bind_not.
4233         (profile_fixup): Likewise.
4235         * libio/Makefile (routines): Add fwide.
4236         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4237         fwide now.  Internal calls to _IO_fwide must do locking themselves
4238         or don't need locking.
4239         * libio/fwide.c: New file.
4241         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4243         * elf/Makefile: Add no modules for nodelete test.
4244         * elf/nodelmod3.c: New file.
4245         * elf/nodelmod4.c: New file.
4246         * elf/nodelete.c: Also test case where dependency of dlopen() object
4247         is marked nodelete.
4249         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4250         * elf/nodlopen.c: New file.
4251         * elf/nodlopenmod.c: New file.
4252         * include/dlfcn.h: Define __RTLD_DLOPEN.
4253         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4254         and this is a dlopen() call, do not load the binary.
4255         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4256         * dlfcn/dlopenold.c: Likewise.
4257         * configure.in: Add test for -z nodelete option.
4258         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4260 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4262         Make Hesiod NSS module thread-safe.
4264         * hesiod/README.hesiod: Update.
4266         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4267         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4268         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4269         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4270         hesiod-proto.
4271         * hesiod/nss_hesiod/hesiod-init.c: New file.
4272         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4273         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4274         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4275         * hesiod/nss_hesiod/hesiod-service.c
4276         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4277         looking up services by port number.
4278         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4280         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4281         * hesiod/hesiod.h: Likewise.
4282         * hesiod/hesiod_p.h: Likewise.
4284 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4286         Fix problems with `struct __res_state' getting too big.
4287         * resolv/resolv.h (struct __sockaddr_in): New definition.
4288         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4289         the private parts of the structure to save some space.
4290         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4291         (struct sockaddr_in *) in call to sock_eq.
4292         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4294 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4296         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4297         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4298         with nodelete.
4299         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4300         to _dl_map_object.  Return immediately if no object loaded.
4301         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4302         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4303         if it exists into l_flags_1 word.
4304         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4305         it to determine whether loading is wanted or not.
4306         (_dl_map_object): Likewise.
4307         Call _dl_map_object_from_fd with new parameter.
4308         * sysdeps/generic/ldsodefs.h: Update prototype.
4309         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4310         * elf/rtld.c: Likewise.
4311         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4312         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4313         * elf/noload.c: New file.
4314         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4315         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4316         * sysdeps/mips/bits/dlfcn.h: Likewise.
4317         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4318         (tests-nodelete-yes): Define.
4319         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4320         Add rules to build nodelete and modules.
4321         * elf/nodelete.c: New file.
4322         * elf/nodelmod1.c: New file.
4323         * elf/nodelmod2.c: New file.
4324         * configure.in: Add test for -z nodelete option.
4325         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4327         * libio/Makefile (tests): Add tst_wprintf2.
4328         (tst_wprintf2-ARGS): Define.
4329         * libio/tst_wprintf2.c: New file.
4330         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4332         * libio/wfiledoalloc.c: Only allocate external buffer if this
4333         hasn't happened yet.
4335         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4336         something in the buffer.  gconv call can write up to end of the
4337         buffer, not only _IO_write_end.
4338         (_IO_wfile_overflow): Allocate also external buffer.
4340 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4342         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4343         strings with precision in vfwprintf correctly.
4344         * stdio-common/vfprintf.c: Fix completely broken handling of
4345         unbuffered wide character streams.
4346         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4348         * resolv/Makefile (distribute): Add README.
4350         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4352 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4354         Update resolver code to BIND 8.2.3-T5B.
4356         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4357         __res_nclose.
4358         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4359         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4360         __res_search.
4361         * resolv/Banner: BIND-8.2.3-T5B.
4363         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4364         * resolv/herror.c: Likewise.
4365         * resolv/inet_addr.c: Likewise.
4366         * resolv/inet_net_ntop.c: Likewise.
4367         * resolv/inet_net_pton.c: Likewise.
4368         * resolv/inet_neta.c: Likewise.
4369         * resolv/inet_ntop.c: Likewise.
4370         * resolv/nsap_addr.c: Likewise.
4371         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4372         IPv6 addresses (ISC bug #520).
4374         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4375         * resolv/ns_parse.c: Likewise.
4376         * resolv/ns_netint.c: Likewise.
4377         * resolv/ns_samedomain.c: Likewise.
4378         * resolv/ns_ttl.c: Likewise.
4379         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4380         RCS ID in object file.
4382         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4383         * resolv/res_mkquery.c: Likewise.
4384         * resolv/res_query.c: Likewise.
4385         * resolv/res_init.c: Likewise.
4386         (res_setoptions): Mark internal.
4387         * resolv/res_send.c: Likewise.
4388         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4389         by using poll instead.
4390         * resolv/res_comp.c: Likewise.
4391         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4392         weak alias for __dn_expand.
4393         * resolv/res_data.c: Likewise.
4394         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4395         in _res.options.  Avoids a potential security risk by avoiding a
4396         close (0).
4397         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4398         res_mkquery, res_query, res_querydomain adn res_search weak
4399         aliases for __res_mkquery, __res_query, __res_querydomain and
4400         __res_search.
4401         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4402         instead to avoid close(0).
4403         (res_init): Always use the static resolver context.
4404         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4405         alias for __res_init.
4407         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4408         RES_SET_H_ERRNO and accompanying comment to...
4409         * include/resolv.h: ... here.
4411         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4412         * resolv/arpa/nameser_compat.h: Likewise.
4414 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4416         * nss/makedb.c (main): Compare result of load_db with
4417         NSS_STATUS_SUCCESS and not 0.
4418         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4420         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4422 2000-07-18  Greg McGary  <greg@mcgary.org>
4424         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4425         (EXTEND_BUFFER): Use it.
4427 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4429         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4430         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4431         __builtin_return_address.
4432         * dlfcn/dlopenold.c: Likewise.
4433         * dlfcn/dlsym.c: Likewise.
4434         * dlfcn/dlvsym.c: Likewise.
4435         * elf/dl-profstub.c: Likewise.
4436         * malloc/malloc.c: Likewise.
4437         * sysdeps/generic/machine-gmon.h: Likewise.
4438         Based on a patch by schwidefsky@de.ibm.com.
4440 2000-07-18  Andreas Jaeger  <aj@suse.de>
4442         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4443         NULL to elf_machine_fixup_plt t argument to silence GCC.
4445         * include/string.h: Add prototype for __memchr.
4447         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4449         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4450         instead of memrchr.
4452 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4454         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4456         * locale/C-ctype.c: Add initializers for gap elements.
4457         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4458         for gap elements.
4460 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4462         * nscd/nscd.c (print_version): Update copyright year.
4464 2000-07-17  Greg McGary  <greg@mcgary.org>
4466         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4467         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4468         signature argnames with angle-brackets for use as word delimiters,
4469         and to induce syntax errors for any args not handled.  Split
4470         multi-echo echoes and comment each stage.
4471         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4472         * sysdeps/unix/inet/syscalls.list: Likewise.
4473         * sysdeps/unix/mman/syscalls.list: Likewise.
4474         * sysdeps/unix/syscalls.list: Likewise.
4475         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4476         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4477         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4478         * sysdeps/unix/sysv/syscalls.list: Likewise.
4479         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4481         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4482         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4483         qualifiers.  Don't check NULL-terminator of argv & envp.
4484         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4485         unbounded pointer type in word-size assertion.
4486         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4487         cases to stifle warnings.
4489         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4490         _IO_file_attach.
4491         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4493         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4494         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4495         ptr as __unbouned.
4497         * Makerules (o-objects): Supplement with $(o-objects$o).
4498         * string/Makefile (o-objects.ob): Add variable to pull
4499         unbounded versions of memcpy, memset and memchr into libc_b.
4501         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4502         rather than non-existent __ubp_memchr.
4503         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4504         (_CHECK_STRING, _CHECK_N): New macros.
4505         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4506         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4507         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4508         Add weak alias "memchr".
4509         * sysdeps/generic/memchr.c: Likewise.
4510         * sysdeps/i386/memchr.S: Likewise.
4511         * sysdeps/ia64/memchr.S: Likewise.
4512         * sysdeps/m68k/memchr.S: Likewise.
4513         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4514         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4515         * sysdeps/vax/memchr.s: Likewise.
4517         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4519         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4520         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4521         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4522         __BOUNDED_POINTERS__.
4523         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4524         for __BOUNDED_POINTERS__.
4526 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4528         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4529         field of struct __gconv_trans_data differently.  Don't pass NULL to
4530         trans_init_fct.  Simplify list append operation.
4532 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4534         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4535         not only those having tsearch.
4537 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4539         * locale/langinfo.h: Add placeholder values in enum for removed
4540         LC_CTYPE entries.
4542 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4544         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4545         chain if the PHDR check fails.
4547 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4549         * nss/getent.c (print_hosts): Make sure we always print a space
4550         between numeric addresses and hostnames.
4552 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4554         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4555         i.e. if n_mmaps_max>0.
4557 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4559         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4560         values to remove possible clash with other AI_* constants.
4561         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4562         hexadecimal constants to stress the fact they're in fact
4563         bit flags.
4565 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4567         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4568         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4569         instead of res_init.
4571 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4573         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4574         parameters of memset calls to avoid warnings.
4576 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4578         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4579         necessary.
4581         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4582         Patch by Greg McGary <greg@mcgary.org>.
4584         * io/Makefile (tests): Add tst-getcwd.
4585         * io/tst-getcwd.c: New file.
4587         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4589 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4591         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4592         structure.
4594 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4596         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4597         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4599 2000-07-12  H.J. Lu  <hjl@gnu.org>
4601         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4602         GLIBC_2.2.
4603         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4604         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4605         (sysdep-routines): Add clone2.
4606         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4608 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4610         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4611         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4613 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4615         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4616         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4617         Change type of si_band from "int" to "long".
4618         (si_imm) [USE_GNU]: Define
4619         (si_isr) [USE_GNU]: Ditto.
4620         (ILL_BREAK) [USE_GNU]: Ditto.
4621         (FPE_DECOVF) [USE_GNU]: Ditto.
4622         (FPE_DECDIV) [USE_GNU]: Ditto.
4623         (FPE_DECERR) [USE_GNU]: Ditto.
4624         (FPE_INVASC) [USE_GNU]: Ditto.
4625         (FPE_INVDEC) [USE_GNU]: Ditto.
4626         (TRAP_BRANCH) [USE_GNU]: Ditto.
4627         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4629 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4631         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4632         bits/sigcontext as struct mcontext does not depend on it.
4634         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4636 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4638         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4640 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4642         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4644 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4646         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4648 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4650         * intl/Makefile (test-srcs): Add tst-translit.
4651         (tests): Likewise.
4652         Add rules to build and run tst-translit.
4653         * intl/tst-translit.c: New file.
4654         * intl/tst-translit.sh: New file.
4655         * intl/translit.po: New file.
4657 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4659         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4660         transliteration function did its job, continue, don't stop.
4662         * iconvdata/iso646.c: Little optimizations in body for conversion
4663         from UCS4.
4665 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4667         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4669 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4671         * configure.in: Check for pwd binary.
4672         * config.make.in: Add PWD_P to be subsituted.
4673         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4675 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4677         * iconvdata/Makefile (modules): Add GB18030.
4678         (distribute): Add gb18030.c.
4679         * iconvdata/gconv-modules: Add entries for GB18030 module.
4680         * iconvdata/gb18030.c: New file.
4681         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4682         and Wu Jian.
4684 2000-07-13  Andreas Jaeger  <aj@suse.de>
4686         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4687         patch.
4689         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4690         * inet/getnetgrent.c (free_mem): Likewise.
4691         * misc/mntent.c (free_mem): Likewise.
4692         * nss/getXXbyYY.c (free_mem): Likewise.
4693         * nss/getXXent.c (free_mem): Likewise.
4694         * pwd/fgetpwent.c (free_mem): Likewise.
4695         * shadow/fgetspent.c (free_mem): Likewise.
4697 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4699         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4700         64-bit architecture correctly [PR libc/1794].
4702 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4704         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4705         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4706         report that we are out of memory.
4707         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4708         * elf/dl-libc.c (dlerror_run): Likewise.
4709         * elf/dl-open.c (_dl_open): Likewise.
4710         * elf/rtld.c (dl_main): Likewise.
4711         * elf/dl-error.c: Define _dl_out_of_memory.
4712         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4713         the error string.
4714         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4715         [PR libc/1813].
4717         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4719         * iconv/loop.c: Fix comment.
4721         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4723 2000-07-13  Andreas Jaeger  <aj@suse.de>
4725         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4726         getcwd (NULL, size) with size > 0.
4727         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4729 2000-07-13  Andreas Jaeger  <aj@suse.de>
4731         * posix/Makefile: Remove build rules for libposix.
4733 2000-07-13  Andreas Schwab  <schwab@suse.de>
4735         * sysdeps/generic/glob.c (glob): Fix memory leak.
4736         [SHELL]: Remove reference to undefined variable `files'.
4737         Fixes PR libc/1782.
4739 2000-07-13  Andreas Jaeger  <aj@suse.de>
4741         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4742         functions.
4744         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4745         memory if it was allocated.
4747 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4749         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4750         step.
4752         * iconv/gconv_open.c (__gconv_open): Reapply
4753         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4755                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4757         * iconv/gconv_open.c: Undo last two changes for now.  They break
4758         everything.
4760 2000-07-12  Andreas Jaeger  <aj@suse.de>
4762         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4763         compiler.
4764         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4765         (CFLAGS-dl-cache.c): Likewise.
4766         (CFLAGS-ldconfig.c): Added, passes directory locations.
4768         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4769         locate cache.
4770         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4771         (main): Use configured LIBDIR and SLIBDIR.
4773 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4775         * math/bits/cmathcalls.h (cimag): Add __THROW.
4776         (creal, conj): Likewise.
4777         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4778         by negative value.
4780 2000-07-12  H.J. Lu  <hjl@gnu.org>
4782         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4783         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4785 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4787         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4788         it is wrong.
4790 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4792         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4794 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4796         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4797         __modname.
4799 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4801         * iconv/gconv_open.c (__gconv_open): Initialize
4802         result->__steps[cnt].__data.
4804 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4806         * nss/getent.c (services_keys): Pass port number in network byte
4807         order in call to getservbyport.
4809 2000-07-11  Andreas Jaeger  <aj@suse.de>
4811         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4812         source dir.
4813         * intl/Makefile (do-gettext-test): Likewise.
4814         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4816 2000-07-11  Andreas Schwab  <schwab@suse.de>
4818         * Makeconfig (run-program-prefix): New rule.
4819         (built-program-cmd): Use run-program-prefix.
4821 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4823         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4824         and NOEXPR unconditionally available.
4826 2000-07-12  Greg McGary  <greg@mcgary.org>
4828         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4829         * sysdeps/posix/open64.c: Likewise.
4830         * sysdeps/generic/fegetenv.c: Likewise.
4831         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4832         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4833         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4834         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4835         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4836         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4838 2000-07-11  Greg McGary  <greg@mcgary.org>
4840         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4841         Add extra level of macro expansion.
4842         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4843         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4844         is available at the time `select' prototype is declared.
4845         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4846         Collect non-versioned weak aliases.  Consider only non-versioned
4847         aliases for the user-visible systemcall name.  Do checks inline with
4848         call to primitive system call.
4849         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4850         stand-alone bounds checks to suppress unused value warnings.
4851         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4853 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4855         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4856         file descriptor checking in SUID programs for the Hurd.
4858         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4859         res_hostalias instead of __hostalias for thread-safety.
4861 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4863         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4864         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4866 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4868         * include/features.h: Include ISO C99 features if the compiler used
4869         is an ISO C99 compiler.
4870         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4872 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4874         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4876 2000-07-10  Andreas Jaeger  <aj@suse.de>
4878         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4879         it's overridden by libpthreads.
4880         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4881         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4882         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4883         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4884         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4886         * malloc/Makefile: Run tst-mtrace only with shared libs.
4888         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4889         with shared libs.
4891 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4893         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4894         that gpreg really points to the GOT section of the calling object.
4895         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4896         checking a start address of first one.
4897         Fix typos.
4898         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4899         Likewise.
4901         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4903 2000-07-10  Andreas Jaeger  <aj@suse.de>
4905         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4906         (string_alias->strong_alias).
4908 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4910         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4912 2000-07-07  Greg McGary  <greg@mcgary.org>
4914         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4915         have no names without leading underscores.
4917 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4919         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4920         U007E.
4922         * stdio-common/Makefile (tests): Remove tst-printf here...
4923         (tests-srcs): ...and add it here.
4924         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4925         Add rules to run tst-printf.sh.
4926         * stdio-common/tst-printf.c: Move code around so that there is really
4927         no further output where it's stated.
4928         * stdio-common/tst-printf.sh: New file.
4930 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4932         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4933         (do_write): Renamed from pwrite.
4934         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4935         `struct _IO_cookie_file'.
4937 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4939         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4940         detected.
4941         * malloc/tst-mtrace.sh: Run mtrace script.
4943 2000-07-07  Greg McGary  <greg@mcgary.org>
4945         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4946         Move all three components of a bounded pointer.
4948 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4950         * locale/programs/locale.c (write_locales): Don't simply add all
4951         directories found in the subdir, test whether at least the
4952         LC_CTYPE file is in there.
4954 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4956         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4957         * iconvdata/euc-kr.c: Likewise.
4959         * stdio-common/vfprintf.c (process_string_arg): Check result of
4960         wcrtomb call and bail out if it failed.
4962         * malloc/Makefile (test-srcs): Add tst-mtrace.
4963         (distribute): Add tst-mtrace.sh.
4964         Add rule to run tst-mtrace.sh.
4965         * malloc/tst-mtrace.c: New file.
4966         * malloc/tst-mtrace.sh: New file.
4968         * include/signal.h: Declare __libc_sigaction.
4969         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4970         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4971         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4972         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4973         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4974         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4975         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4977         * configure.in: Fix CFLAGS-memprofstat.c definition after
4978         2000-06-19 change.
4979         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4981 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4983         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4984         instead of NULL to elf_machine_fixup_plt t argument.
4985         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4986         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4987         cast.
4989 2000-07-06  Andreas Jaeger  <aj@suse.de>
4991         * crypt/Makefile (LDLIBS-cert): Removed.
4992         (LDLIBS-md5c-test): Removed.
4993         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4994         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4996 2000-07-06  Andreas Jaeger  <aj@suse.de>
4998         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4999         of the proc system is "proc".
5001         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
5002         thread library for static programs.
5004 2000-07-06  Greg McGary  <greg@mcgary.org>
5006         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
5007         New macros.
5008         * sysdeps/generic/strcpy.c: Add bounds checks.
5009         * sysdeps/unix/fxstat.c: Likewise.
5010         * sysdeps/unix/xstat.c: Likewise.
5011         * sysdeps/unix/common/lxstat.c: Likewise.
5012         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5013         * sysdeps/unix/sysv/linux/execve.c: Likewise.
5014         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5015         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5016         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5017         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5018         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5019         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5020         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5021         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5022         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5023         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5024         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5025         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5026         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5027         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5028         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5029         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5030         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5031         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5032         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5033         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5034         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5035         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5036         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5037         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5038         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5039         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5040         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5041         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5042         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5043         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5044         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5045         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5046         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5047         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5048         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5049         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5050         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5051         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5052         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5053         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5054         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5055         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5056         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5057         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5058         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5059         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5060         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5061         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5062         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5063         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5064         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5065         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5066         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5067         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5068         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5069         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5070         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5071         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5072         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5073         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5074         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5075         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5077         * string/endian.h (__LONG_LONG_PAIR): New macro.
5078         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5079         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5080         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5081         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5082         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5083         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5084         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5085         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5086         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5087         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5088         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5089         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5091         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5093 2000-07-06  Andreas Jaeger  <aj@suse.de>
5095         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5096         Initialize result.
5098         * math/test-fpucw.c: Include <stdio.h> for printf.
5100 2000-07-05  Greg McGary  <greg@mcgary.org>
5102         * sysdeps/generic/bp-checks.h: New file.
5103         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5104         with list of #include files.
5105         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5106         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5107         Don't generate BP thunk if `V' appears in signature.
5108         Generate thunks with complete bounds checks.
5109         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5110         * sysdeps/unix/inet/syscalls.list: Likewise.
5111         * sysdeps/unix/mman/syscalls.list: Likewise.
5112         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5113         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5114         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5115         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5117 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5119         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5120         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5121         If mount not in the file fall back on /proc.
5123         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5124         string got copied in.
5125         Patch by Solar Designer <solar@false.com>.
5127 2000-07-05  Andreas Jaeger  <aj@suse.de>
5129         * manual/install.texi (Installation): Update information about
5130         add-ons.
5131         (Configuring and compiling): Update for glibc 2.2.
5133 2000-07-04  Andreas Jaeger  <aj@suse.de>
5135         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5136         (_FPU_IEEE): Likewise.
5138         * math/Makefile (tests): Add test-fpucw.
5140         * math/test-fpucw.c (main): New file.
5142 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5144         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5146         * locale/programs/ld-collate.c (collate_output): Also write out the
5147         collation sequence values and the wide character string for the
5148         collation symbol table.
5150         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5151         * posix/fnmatch_loop.c: Implement collating symbol handling.
5152         * posix/tst-fnmatch.input: Add more tests, especially for collating
5153         symbol handling.
5155         * posix/regex.c: Fix comment.
5157 2000-07-05  Andreas Jaeger  <aj@suse.de>
5159         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5160         (_FPU_GETCW): Remove extra colon.
5161         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5163         * posix/fnmatch_loop.c (FCT): Only declare len if
5164         !WIDE_CHAR_VERSION to silence GCC.
5166         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5167         prototype.
5168         * sysdeps/generic/strchrnul.c: Likewise.
5169         * sysdeps/generic/strlen.c: Likewise.
5170         * sysdeps/generic/strchr.c: Likewise.
5171         * sysdeps/generic/memchr.c: Likewise.
5173 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5175         * posix/fnmatch_loop.c: Implement equivalence class handling.
5176         * posix/tst-fnmatch.input: Add tests for equivalence class
5177         handling.
5179         * posix/fnmatch_loop.c: Improve performance for single-byte
5180         character sets by not using btowc.
5182         * posix/tst-fnmatch.input: Add tests for locale dependent
5183         behaviour.
5184         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5186         * posix/tst-fnmatch.input: Add more test cases.
5188         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5189         are not aligned to alignof(md5_uint32) do it before calling
5190         __md5_process_bytes.
5191         * crypt/md5.c: Make sure buffers are aligned.
5192         * crypt/md5.h: Likewise.
5193         Reported by Solar Designer <solar@false.com>.
5195         * crypt/Makefile: Add dependencies for test programs.
5197         * Rules: Define LC_ALL=C in environments of all programs we run.
5199         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5201 2000-07-03  H.J. Lu  <hjl@gnu.org>
5203         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5204         is 2 + elem + offset, not 2 + elem + offset + 2.
5206 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5208         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5209         suite.
5210         * posix/Makefile (tests): Add tst-fnmatch.
5211         (tst-fnmatch-ENV): Define.
5212         * posix/tst-fnmatch.c: New file.
5213         * posix/tst-fnmatch.sh: New file.
5215 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5217         * locale/programs/charmap.c (charmap_read): Prepend
5218         the condition filename == NULL.
5220 2000-07-03  Greg McGary  <greg@mcgary.org>
5222         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5224         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5225         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5227         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5228         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5229         (FILEBUF_LITERAL): Add cast for CHAIN init.
5230         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5231         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5232         Revert type of `fp' to _IO_FILE*.
5233         (_IO_iter_file): Remove cast.
5234         (_IO_iter_next): Elide intermediate member reference.
5236         * sysdeps/powerpc/strchr.S:  Check bounds.
5237         Wrap extern symbols in BP_SYM ().
5239 2000-07-03  Andreas Jaeger  <aj@suse.de>
5241         * dlfcn/Makefile (generated): New.
5243 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5245         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5246         (__uflow): Likewise.
5247         (__underflow): Likewise.
5248         * libio/wgenops.c (__wunderflow): Likewise.
5249         * stdio-common/tst-unbputc.c: New file.
5250         * stdio-common/tst-unbputc.sh: New file.
5251         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5253         * po/en_GB.po: New file.
5254         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5256 2000-07-01  Andreas Jaeger  <aj@suse.de>
5258         * intl/Makefile (generated-dirs): New.
5260         * elf/Makefile (generated): trusted-dirs.h is always generated,
5261         move out of build-shared condition.
5262         (generated): Merge the two entries for build-shared.
5264 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5266         * debug/Makefile (distribute): Add xtrace.sh.
5268 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5270         * version.h (VERSION): Bump to 2.1.91.
5272         * configure.in: Update warning comment.  glibc should not be
5273         broken anymore.
5275         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5276         ioperm.c, sys/procfs.h, and sys/io.h.
5278         * sysdeps/powerpc/Dist: Add bp-asm.h.
5280         * assert/Depend: Add localedata.
5281         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5282         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5284         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5285         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5286         relocation address to prevent unaligned trap.
5287         Suggested by Richard Henderson <rth@cygnus.com>.
5289 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5291         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5292         if redirecting and either redirection is done using defines or
5293         not optimizing.
5295 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5297         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5298         generated expressions.
5299         Patch by Darren McClelland <dmcclell@zetec.com>.
5301         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5302         since zic uses setlocale and gettext but we cannot make it use the
5303         new locale data since zic calls a shell which might not use the
5304         new libc.
5306         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5307         handling the internation currency symbol.  POSIX says that the
5308         fourth character is used to separate the currency symbol from the
5309         value.  Therefore it does not have to be printed.  But we cannot
5310         remove the space if the currency symbol is printed before the
5311         number since this is what many locales expect.
5313         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5314         whether this information is available.
5316         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5317         buffers in case the translation is too large.  Remember allocated
5318         memory blocks in a list.
5319         (free_mem): Free memory for translations.
5321         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5323         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5324         information is available set the string length to zero.
5326         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5328 2000-06-30  Greg McGary  <greg@mcgary.org>
5330         * sysdeps/powerpc/bp-asm.h: New file.
5331         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5332         Wrap extern symbols in BP_SYM ().
5333         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5334         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5335         * sysdeps/powerpc/setjmp.S: Likewise.
5336         * sysdeps/powerpc/add_n.S: Likewise.
5337         * sysdeps/powerpc/addmul_1.S: Likewise.
5338         * sysdeps/powerpc/lshift.S: Likewise.
5339         * sysdeps/powerpc/rshift.S: Likewise.
5340         * sysdeps/powerpc/mul_1.S: Likewise.
5341         * sysdeps/powerpc/sub_n.S: Likewise.
5342         * sysdeps/powerpc/submul_1.S: Likewise.
5343         * sysdeps/powerpc/strlen.S: Likewise.
5344         * sysdeps/powerpc/memset.S: Likewise.
5345         * sysdeps/powerpc/stpcpy.S: Likewise.
5346         * sysdeps/powerpc/strcmp.S: Likewise.
5347         * sysdeps/powerpc/strcpy.S: Likewise.
5348         * sysdeps/powerpc/elf/bzero.S: Likewise.
5350         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5351         Line up operands column with tabs.
5353 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5355         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5357         * sysdeps/ia64/htonl.S: New file.
5358         * sysdeps/ia64/htons.S: New file.
5359         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5360         floating point registers.
5361         Patches by Dan Pop <Dan.Pop@cern.ch>.
5363 2000-06-30  Andreas Jaeger  <aj@suse.de>
5365         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5366         shared libraries.
5368         * io/Makefile (CFLAGS-test-lfs.c): New.
5369         (tests): Add test-lfs.
5371         * io/test-lfs.c: New file.
5373 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5375         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5376         instruction.
5378 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5380         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5382 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5384         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5385         alias to the fstatfs call.
5387         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5388         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5390         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5391         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5393         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5394         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5395         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5396         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5398         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5399         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5401         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5402         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5404         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5405         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5407         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5409 2000-06-29  Andreas Jaeger  <aj@suse.de>
5411         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5412         with syslog.
5413         (print_err_message): Likewise.
5414         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5416 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5418         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5419         used as words is properly aligned.
5421         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5422         data files.
5424 2000-06-29  Greg McGary  <greg@mcgary.org>
5426         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5427         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5428         length 7..9, just in case...
5429         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5431         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5432         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5433         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5434         (PUSH_SIGNAL_MASK): New macro.
5435         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5436         LEAVE is unnecessary.  Check bounds of jmp_buf.
5437         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5438         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5439         immediately before tail-call.
5440         * sysdeps/i386/setjmp.S: Likewise.
5441         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5442         * sysdeps/i386/bsd-setjmp.S: Likewise.
5444 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5446         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5447         versioned_symbol.
5448         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5449         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5450         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5451         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5452         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5453         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5454         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5455         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5457 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5459         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5460         we later need to calling free().
5461         Patch by Matt Wilson <msw@redhat.com>.
5463         * stdio-common/tst-printf.c: Add test for above problem.
5465 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5467         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5468         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5470 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5472         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5473         prototype for abs().
5474         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5476 2000-06-23  Andreas Jaeger  <aj@suse.de>
5478         * config.h.in: Don't use regparm with bounded pointers.
5480 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5482         * stdlib/grouping.h: Correctly handle multibyte thousands
5483         separator and decimal point.
5484         * stdlib/stdtod.c: Likewise.
5485         * sysdeps/generic/strtol.c: Likewise.
5487         * locale/categories.def: Add entries for wide character decimal point
5488         and thousands separator in numeric and monetary category.
5490 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5492         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5493         second definition and initialization of decimal.
5495 2000-06-28  Greg McGary  <greg@mcgary.org>
5497         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5498         out.
5499         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5500         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5501         in.
5502         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5503         (struct _IO_FILE_plus *).
5504         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5505         THIS, since _IO_JUMPS no longer does it implicitly.
5506         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5507         arg type as (struct _IO_FILE_plus *).
5508         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5509         arg as (_IO_strfile *).
5510         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5511         Declare 1st arg as (_IO_strfile *).
5512         * libio/fileops.c (_IO_new_file_init): Declare
5513         arg type as (struct _IO_FILE_plus *).
5514         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5515         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5516         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5517         Declare iteration pointer as (struct _IO_FILE_plus *).
5518         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5519                 (struct _IO_FILE_plus *).
5520         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5521         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5522         (_IO_check_libio): Set user-visible handles to
5523         (struct _IO_FILE_plus *).
5524         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5525         to (struct _IO_FILE_plus *).
5527         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5528         whose high bound includes vtable to all functions that will use
5529         vtable.  For streambufs, pass pointer whose bounds include struct
5530         _IO_strfile.
5531         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5532         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5533         * libio/iofopen.c (_IO_new_fopen): Likewise.
5534         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5535         * libio/iofopen64.c (_IO_fopen64): Likewise.
5536         * libio/iopopen.c (_IO_new_popen): Likewise.
5537         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5538         * libio/memstream.c (open_memstream): Likewise.
5539         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5540         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5541         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5542         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5543         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5544         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5545         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5546         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5547         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5548         * stdlib/strfmon.c (__strfmon_l): Likewise.
5549         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5550         (vfprintf): Qualify computed-goto targets as unbounded.
5552 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5554         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5555         thousands separator correctly.
5557         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5558         * stdio-common/vfwscanf.c: Likewise.
5560 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5562         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5563         count into signatures for most calls.
5565 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5567         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5568         the generic parser now.
5570 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5572         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5573         table entries are 32 bit on the ia64 (as specified by the ABI),
5574         not 64 bit as on the Alpha.
5576         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5577         change of objects to use 32 bit hash table indices (see above).
5579 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5581         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5582         prototype for abs().
5584 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5586         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5587         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5588         may have been reached.
5590 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5592         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5593         symbols in multi-character weights correctly.
5595         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5596         depending on whether the input string is empty or not.
5598         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5599         given state and not avoiding this by modifying a local object.
5600         * wcsmbs/wcrtomb.c: Likewise.
5602         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5603         object since some incomplete characters might be in there.
5605         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5606         sequences with first byte 0x8e correctly.
5608         * iconvdata/jis0208.h: Remove redundant test.
5610 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5612         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5613         Add it where it is needed now.
5615         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5616         the input charset into account when generating the hash table.
5617         (allocate_arrays): Correct setting default width.  Not all empty slots
5618         in the table are filled, only those not covert explicitly by the
5619         locale description and in the charset.
5621         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5622         return values from the wctrans function.
5624         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5625         wide character version.
5626         For %C handling, test correct pointer variable for NULL.
5628         * wcsmbs/wctob.c: Handle WEOF special.
5630         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5632         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5633         always-true test to avoid warning.
5635 2000-06-27  Greg McGary  <greg@mcgary.org>
5637         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5638         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5639         (symbol_version, default_symbol_version): Factor redundant
5640         definitions out of conditional.
5642 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5644         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5645         not obstack_blank.
5647 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5649         * include/libc-symbols.h (symbol_version): Add extra level of
5650         macro expansion.
5651         (default_symbol_version): Likewise.
5653 2000-06-26  Greg McGary  <greg@mcgary.org>
5655         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5656         for BP return value & push implicit struct-return pointer to
5657         __errno_location.
5658         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5659         (SYSCALL_ERROR_HANDLER): Likewise.
5660         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5661         (SYSCALL_ERROR_HANDLER): Likewise.
5663         * Makeconfig: Add missing comment.
5664         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5665         BP-flavored startup object.
5666         ($(objpfx)b$(start-installed-name)): New rule.
5667         * include/libc-symbols.h (symbol_set_declare): Change type
5668         of `__start_##set' and `__stop_##set' to pointer-to-function.
5669         (symbol_set_declare): Change type of `set' to array of
5670         pointer-to-function.
5671         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5672         pointer-to-function.
5674         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5676         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5677         Remove clock_* and timer_* entries.
5678         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5679         arg-count with signatures.
5681         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5682         Check bounds of arguments.
5683         * sysdeps/i386/addmul_1.S: Likewise.
5684         * sysdeps/i386/lshift.S: Likewise.
5685         * sysdeps/i386/mul_1.S: Likewise.
5686         * sysdeps/i386/rshift.S: Likewise.
5687         * sysdeps/i386/sub_n.S: Likewise.
5688         * sysdeps/i386/submul_1.S: Likewise.
5689         * sysdeps/i386/i586/add_n.S: Likewise.
5690         * sysdeps/i386/i586/addmul_1.S: Likewise.
5691         * sysdeps/i386/i586/lshift.S: Likewise.
5692         * sysdeps/i386/i586/rshift.S: Likewise.
5693         * sysdeps/i386/i586/sub_n.S: Likewise.
5694         * sysdeps/i386/i686/add_n.S: Likewise.
5696         * sysdeps/i386/memchr.S: Likewise.
5697         * sysdeps/i386/memcmp.S: Likewise.
5698         * sysdeps/i386/rawmemchr.S: Likewise.
5699         * sysdeps/i386/i586/bzero.S: Likewise.
5700         * sysdeps/i386/i586/memcpy.S: Likewise.
5701         * sysdeps/i386/i586/mempcpy.S: Likewise.
5702         * sysdeps/i386/i586/memset.S: Likewise.
5703         * sysdeps/i386/i686/bzero.S: Likewise.
5704         * sysdeps/i386/i686/memcpy.S: Likewise.
5705         * sysdeps/i386/i686/mempcpy.S: Likewise.
5706         * sysdeps/i386/i686/memset.S: Likewise.
5708         * sysdeps/i386/stpcpy.S: Likewise.
5709         * sysdeps/i386/stpncpy.S: Likewise.
5710         * sysdeps/i386/strchr.S: Likewise.
5711         * sysdeps/i386/strchrnul.S: Likewise.
5712         * sysdeps/i386/strcspn.S: Likewise.
5713         * sysdeps/i386/strpbrk.S: Likewise.
5714         * sysdeps/i386/strrchr.S: Likewise.
5715         * sysdeps/i386/strspn.S: Likewise.
5716         * sysdeps/i386/strtok.S: Likewise.
5717         * sysdeps/i386/strtok_r.S: Likewise.
5718         * sysdeps/i386/i486/strcat.S: Likewise.
5719         * sysdeps/i386/i486/strlen.S: Likewise.
5720         * sysdeps/i386/i586/strchr.S: Likewise.
5721         * sysdeps/i386/i586/strcpy.S: Likewise.
5722         * sysdeps/i386/i586/strlen.S: Likewise.
5723         * sysdeps/i386/i686/strcmp.S: Likewise.
5724         * sysdeps/i386/i686/strtok.S: Likewise.
5725         * sysdeps/i386/i686/strtok_r.S: Likewise.
5727         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5728         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5729         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5730         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5731         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5733         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5734         * sysdeps/i386/mul_1.S: Likewise.
5735         * sysdeps/i386/submul_1.S: Likewise.
5736         * sysdeps/i386/i586/add_n.S: Likewise.
5737         * sysdeps/i386/i586/addmul_1.S: Likewise.
5738         * sysdeps/i386/i586/lshift.S: Likewise.
5739         * sysdeps/i386/i586/mul_1.S: Likewise.
5740         * sysdeps/i386/i586/rshift.S: Likewise.
5741         * sysdeps/i386/i586/sub_n.S: Likewise.
5742         * sysdeps/i386/i586/submul_1.S: Likewise.
5744 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5746         * rt/Makefile (librt-routines): Add clock_nanosleep.
5747         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5748         * sysdeps/generic/clock_nanosleep.c: New file.
5749         * sysdeps/unix/clock_nanosleep.c: New file.
5750         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5751         * time/time.h: Declare clock_nanosleep.
5753 2000-06-26  Greg McGary  <greg@mcgary.org>
5755         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5756         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5757         (ALIGN): Cleanup surrounding conditionals.
5759         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5760         Call ENTER/LEAVE macros.
5761         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5762         * sysdeps/i386/submul_1.S: Likewise.
5764         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5765         syntax.  Define & use symbolic argument stack offsets.  Call
5766         ENTER/LEAVE macros.
5767         * sysdeps/i386/i586/mul_1.S: Likewise.
5768         * sysdeps/i386/i586/submul_1.S: Likewise.
5770 2000-06-25  Greg McGary  <greg@mcgary.org>
5772         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5773         not as bcopy.
5775 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5777         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5778         * iconvdata/gen-8bit-gap.sh: Likewise.
5779         * iconvdata/gen-8bit.sh: Likewise.
5781         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5783         * locale/programs/ld-collate.c (collate_read): Don't actually read
5784         the copy locale if we are ignoring the content.
5786         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5787         unknown character.
5789         * locale/programs/ld-collate.c: Correct handling of different
5790         collation sections.
5791         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5792         as extra parameter from which to copy category information.
5793         Change all callers.
5794         (load_locale): Likewise.
5795         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5796         and load_locale.
5797         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5798         * locale/programs/locfile.h: Likewise.
5799         * locale/programs/locfile-kw.gperf: Add entry for script.
5800         * locale/programs/locfile-token.h: Add tok_script.
5802         * locale/programs/locale.c: Update copyright year.
5803         * locale/programs/localedef.c: Likewise.
5805 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5807         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5808         Jens Moeller <jens.moeller@waii.com>.
5810 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5812         * locale/programs/ld-name.c (name_finish): Add missing format
5813         specifier to test for name_fmt.
5815         * locale/programs/ld-address.c (iso639): Correct length of string
5816         elements.
5817         (iso3166): Likewise.
5819         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5821         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5822         Define.
5824         * elf/elf.h (NT_PRFPXREG): Define.
5826 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5828         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5829         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5831 2000-06-23  Andreas Schwab  <schwab@suse.de>
5833         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5834         with signatures.
5836 2000-06-23  Andreas Jaeger  <aj@suse.de>
5838         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5840         * io/test-stat.c: Add copyright header, mention Maciej.
5842         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5843         SYS_mincore, SYS_madvise): Added.
5845         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5846         execve.
5848 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5850         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5851         (CFLAGS-tst_putwc.c): New definition.
5852         * libio/tst_getwc.c: New file.
5853         * libio/tst_getwc.input: New file.
5854         * libio/tst_putwc.c: New file.
5856         * include/string.h: Add prototype for __strdup.
5858 2000-06-22  Greg McGary  <greg@mcgary.org>
5860         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5861         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5862         Fix signatures.
5864 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5866         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5868 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5870         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5872 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5874         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5875         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5877 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5879         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5880         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5881         and __S_TYPEISSHM.
5882         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5883         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5884         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5885         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5886         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5887         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5888         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5889         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5890         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5891         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5892         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5893         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5894         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5895         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5896         S_TYPEISSHM.
5898 2000-06-22  Andreas Jaeger  <aj@suse.de>
5900         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5901         with signatures.
5903         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5905         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5907 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5909         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5910         ahead.
5912 2000-06-21  Greg McGary  <greg@mcgary.org>
5914         * Makerules (elide-routines.*, elide-bp-thunks):
5915         Define unconditionally.
5917 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5919         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5921 2000-06-21  Andreas Jaeger  <aj@suse.de>
5923         * io/Makefile (tests): Add test-stat.
5924         (CFLAGS-test-stat.c): New.
5926         * io/test-stat.c: New file from Maciej W. Rozycki
5927         <macro@ds2.pg.gda.pl>.
5929 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5931         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5932         in __rlimit_resource to make them match the kernel order.
5933         rlim_t is always 64 bit, use __rlim64_t to declare it
5934         unconditionally.
5936 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5938         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5939         RLIM_INFINITY before defining it to avoid clash with kernel header
5941 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5943         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5945 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5947         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5949 2000-06-21  Andreas Jaeger  <aj@suse.de>
5951         * stdio-common/temptest.c: Include <stdlib.h>.
5952         * stdio-common/tst-fileno.c: Likewise.
5953         * stdio-common/scanf4.c: Likewise.
5954         * stdio-common/scanf5.c: Likewise.
5955         * time/clocktest.c: Likewise.
5956         * posix/test-vfork.c: Likewise.
5957         * posix/globtest.c: Likewise.
5958         * io/test-utime.c: Likewise.
5959         * wctype/test_wcfuncs.c: Likewise.
5960         * crypt/cert.c: Likewise.
5962         * stdio-common/tst-printfsz.c: Include <string.h>.
5963         * libio/tst_swscanf.c: Likewise.
5964         * libio/tst_wscanf.c: Likewise.
5965         * posix/runtests.c: Likewise.
5966         * posix/tst-getaddrinfo.c: Likewise.
5967         * posix/wordexp-test.c: Likewise.
5968         * misc/tst-efgcvt.c: Likewise.
5970         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5971         * nss/test-netdb.c: Likewise.
5973         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5974         supported kernel for MIPS.
5976         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5977         * rt/aio_suspend.c: Likewise.
5979 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5981         * math/libm-test.inc: Include <string.h>.
5983 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5985         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5987 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5989         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5990         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5992 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5994         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5996 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5998         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
6000 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6002         * locale/programs/ld-collate.c (insert_value): Now take string and
6003         length instead of struct token* parameter.  Adjust use of token.
6004         (handle_ellipsis): Likewise.
6005         (collate_read): Allow <Uxxxx> names and transform them into names
6006         to be passed to insert_value and handle_ellipsis.
6008         * locale/programs/ld-ctype.c (uninames): New array with names of
6009         digits in <Uxxxxxxxx> format.
6010         (ctype_finish): Correct search for space character value.  Likewise
6011         for default outdigits values.
6013 2000-06-20  Greg McGary  <greg@mcgary.org>
6015         * Makerules (objects): Add BP thunks.
6017 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6019         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6020         in width definitions.
6022 2000-06-20  Andreas Jaeger  <aj@suse.de>
6024         * sysdeps/mips/fpu/libm-test-ulps: New file.
6026         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6027         first.
6029         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6031         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6033 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6035         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6036         change in gconv_builtin.h.
6038         * malloc/Makefile: Change all references to memprof into memusage.
6039         * malloc/memprof.c: Rename to...
6040         * malloc/memusage.c: ...this.  New file.
6041         * malloc/memprof.sh: Rename to...
6042         * malloc/memusage.sh: ...this.  New file.
6043         * malloc/memprofstat.c: Rename to...
6044         * malloc/memusagestat.c: ...this.  New file.
6045         * sysdeps/alpha/memprof.h: Rename to..
6046         * sysdeps/alpha/memusage.h: ...this.  New file.
6047         * sysdeps/arm/memprof.h: Rename to..
6048         * sysdeps/arm/memusage.h: ...this.  New file.
6049         * sysdeps/generic/memprof.h: Rename to..
6050         * sysdeps/generic/memusage.h: ...this.  New file.
6051         * sysdeps/i386/memprof.h: Rename to..
6052         * sysdeps/i386/memusage.h: ...this.  New file.
6053         * sysdeps/ia64/memprof.h: Rename to..
6054         * sysdeps/ia64/memusage.h: ...this.  New file.
6055         * sysdeps/m68k/memprof.h: Rename to..
6056         * sysdeps/m68k/memusage.h: ...this.  New file.
6057         * sysdeps/mips/memprof.h: Rename to..
6058         * sysdeps/mips/memusage.h: ...this.  New file.
6059         * sysdeps/powerpc/memprof.h: Rename to..
6060         * sysdeps/powerpc/memusage.h: ...this.  New file.
6061         * sysdeps/sparc/memprof.h: Rename to..
6062         * sysdeps/sparc/memusage.h: ...this.  New file.
6063         * sysdeps/sh/memprof.h: Rename to..
6064         * sysdeps/sh/memusage.h: ...this.  New file.
6066         * elf/sprof.c (print_version): Update year.
6068         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6069         table entry values.  Use D_PTR.
6070         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6071         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6073 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6075         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6076         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6077         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6078         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6080 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6082         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6084 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6086         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6087         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6088         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6090         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6092         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6093         kernel change.
6095         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6096         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6097         structure.
6098         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6099         implementation.
6101 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6103         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6105 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6107         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6109 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6111         * iconv/gconv_int.h (strict gconv_module): Remove all members
6112         associated with regular expressions.  Use a simple string as the
6113         from name.
6114         * iconv/gconv_db.c: Remove code handling regular expressions.
6115         * iconv/gconv_conf.c: Likewise.
6116         * iconv/iconv_prog.c: Likewise.
6117         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6119         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6120         General namespace cleanup.
6121         (struct __gconv_trans_data): Add next field.
6122         (struct __gconv_step_data): Make __trans a pointer.
6123         * iconv/gconv_conf.c: Split out code to find gconv directories from
6124         __gconv_read_conf in new functions.
6125         * iconv/gconv_int.h: Define new data structure and declare new
6126         functions for handling of gconv directory list.
6127         * iconv/gconv_open.c: Allow more than one error handling step being
6128         used.  Call function to load error handling module if it is none
6129         of the builtin transformations.
6130         * iconv/gconv_close.c: Add code to free transliteration data.
6131         * iconv/gconv_trans.c: Add functions to load and unload modules
6132         implementing transliteration etc.
6133         * iconv/skeleton.c: Call all context functions now that more than
6134         one module is allowed.
6135         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6136         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6137         where the full error handling using transliteration is needed.
6138         * iconvdata/8bit-gap.c: Likewise.
6139         * iconvdata/8bit-generic.c: Likewise.
6140         * iconvdata/ansi_x3.110.c: Likewise.
6141         * iconvdata/big5.c: Likewise.
6142         * iconvdata/big5hkscs.c: Likewise.
6143         * iconvdata/euc-cn.c: Likewise.
6144         * iconvdata/euc-jp.c: Likewise.
6145         * iconvdata/euc-kr.c: Likewise.
6146         * iconvdata/euc-tw.c: Likewise.
6147         * iconvdata/gbgbk.c: Likewise.
6148         * iconvdata/gbk.c: Likewise.
6149         * iconvdata/iso-2022-cn.c: Likewise.
6150         * iconvdata/iso-2022-jp.c: Likewise.
6151         * iconvdata/iso-2022-kr.c: Likewise.
6152         * iconvdata/iso646.c: Likewise.
6153         * iconvdata/iso8859-1.c: Likewise.
6154         * iconvdata/iso_6937-2.c: Likewise.
6155         * iconvdata/iso_6937.c: Likewise.
6156         * iconvdata/johab.c: Likewise.
6157         * iconvdata/sjis.c: Likewise.
6158         * iconvdata/t.61.c: Likewise.
6159         * iconvdata/uhc.c: Likewise.
6160         * iconvdata/unicode.c: Likewise.
6161         * iconvdata/utf-16.c: Likewise.
6162         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6163         structure correctly after last change.
6164         * wcsmbs/btowc.c: Likewise.
6165         * wcsmbs/mbrtowc.c: Likewise.
6166         * wcsmbs/mbsnrtowcs.c: Likewise.
6167         * wcsmbs/mbsrtowcs.c: Likewise.
6168         * wcsmbs/wcrtomb.c: Likewise.
6169         * wcsmbs/wcsnrtombs.c: Likewise.
6170         * wcsmbs/wcsrtombs.c: Likewise.
6171         * wcsmbs/wctob.c: Likewise.
6173         * localedata/Makefile: Set -Wno-format for some files since gcc does
6174         not know all the format specifiers.
6176 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6178         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6179         unneeded code.
6180         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6182 2000-06-18  Andreas Jaeger  <aj@suse.de>
6184         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6185         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6187 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6189         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6190         LINUX_LINK_MAX.
6191         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6193         * locale/programs/ld-ctype.c (ctype_output): Really write out
6194         mboutdigits information.
6195         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6196         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6197         * localedata/tests/trans.def: Add outdigit information.
6199         * localedata/tst-mbswcs3.c: Remove comment.
6201         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6202         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6203         * libio/tst_wprintf.c (main): Add test for I flag.
6205         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6206         * locale/langinfo.h: Add entries for translit_ignore information.
6207         * locale/categories.def: Add entries for new LC_CTYPE elements.
6208         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6209         pointer instead of "" where possible.
6210         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6211         * intl/Depend: Add localedata.
6212         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6213         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6215 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6217         * locale/langinfo.h: Add entries for default_missing information.
6218         * locale/C-ctype.c: Add initializers for new fields.
6219         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6220         information.
6221         * locale/categories.h: Add entries for all LC_CTYPE values.
6222         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6223         information.
6225         * localedata/tst-trans.c: Write out an error message if class is
6226         not found.
6228         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6229         * iconv/gconv_open.c: Remove error handling specification from `from'
6230         character set name.
6231         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6232         new parameter to always enable transliteration.
6233         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6234         change.
6235         (struct locale_data): Add new members use_translit and options.
6236         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6237         character set name contained modifier TRANSLIT.
6238         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6239         and options fields.
6240         (_nl_unload_locale): Free options string if necessary.
6241         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6242         the locale names suggested this.
6243         * locale/C-address.c: Add two new initialilzers to adjust data
6244         structure for new format.
6245         * locale/C-collate.c: Likewise.
6246         * locale/C-ctype.c: Likewise.
6247         * locale/C-identification.c: Likewise.
6248         * locale/C-measurement.c: Likewise.
6249         * locale/C-messages.c: Likewise.
6250         * locale/C-monetary.c: Likewise.
6251         * locale/C-name.c: Likewise.
6252         * locale/C-numeric.c: Likewise.
6253         * locale/C-paper.c: Likewise.
6254         * locale/C-telephone.c: Likewise.
6255         * locale/C-time.c: Likewise.
6257         * locale/setlocale.c: Add some more __builtin_expect.
6259 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6261         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6262         unsigned char **.
6263         (__gconv_init_fct): Remove two parameters.
6264         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6265         gconv_transliterate.  Remove two parameters.
6266         Change prototypes of builtin functions according to __gconv_fct change.
6267         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6268         != NULL only during error handling.  Stop in this case after the
6269         conversion.
6270         * iconv/gconv_trans.c: Replace with real implementation for
6271         __gconv_transliterate.
6272         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6273         * iconv/gconv.c: Change calls to downstream functions once again.
6274         Use NULL for the fifth parameter instead of pointer to output buffer.
6275         * libio/iofwide.c: Likewise.
6276         * wcsmbs/btowc.c: Likewise.
6277         * wcsmbs/mbrtowc.c: Likewise.
6278         * wcsmbs/mbsnrtowcs.c: Likewise.
6279         * wcsmbs/mbsrtowcs.c: Likewise.
6280         * wcsmbs/wcrtomb.c: Likewise.
6281         * wcsmbs/wcsnrtombs.c: Likewise.
6282         * wcsmbs/wcsrtombs.c: Likewise.
6283         * wcsmbs/wctob.c: Likewise.
6284         * iconv/gconv_simple.c: Remove two parameters from error handling
6285         function call.
6286         * iconvdata/8bit-gap.c: Likewise.
6287         * iconvdata/8bit-generic.c: Likewise.
6288         * iconvdata/ansi_x3.110.c: Likewise.
6289         * iconvdata/big5.c: Likewise.
6290         * iconvdata/big5hkscs.c: Likewise.
6291         * iconvdata/euc-cn.c: Likewise.
6292         * iconvdata/euc-jp.c: Likewise.
6293         * iconvdata/euc-kr.c: Likewise.
6294         * iconvdata/euc-tw.c: Likewise.
6295         * iconvdata/gbgbk.c: Likewise.
6296         * iconvdata/gbk.c: Likewise.
6297         * iconvdata/iso-2022-cn.c: Likewise.
6298         * iconvdata/iso-2022-jp.c: Likewise.
6299         * iconvdata/iso-2022-kr.c: Likewise.
6300         * iconvdata/iso646.c: Likewise.
6301         * iconvdata/iso8859-1.c: Likewise.
6302         * iconvdata/iso_6937-2.c: Likewise.
6303         * iconvdata/iso_6937.c: Likewise.
6304         * iconvdata/johab.c: Likewise.
6305         * iconvdata/sjis.c: Likewise.
6306         * iconvdata/t.61.c: Likewise.
6307         * iconvdata/uhc.c: Likewise.
6308         * iconvdata/unicode.c: Likewise.
6309         * iconvdata/utf-16.c: Likewise.
6311 2000-06-15  Greg McGary  <greg@mcgary.org>
6313         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6314         of callnum assignment.  Tolerate callnum expressions containing
6315         parens.
6317 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6319         * login/Makefile (utmpd): Remove rule to build utmpd.
6321         * csu/Versions: Move libgcc frame handling functions from here...
6322         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6323         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6324         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6325         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6326         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6327         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6328         New file.
6329         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6331         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6333         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6335 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6337         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6338         compatibility.
6339         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6340         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6341         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6342         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6344 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6346         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6347         defined, terminate quotes and read them after the comment char.
6348         * configure.in (HAVE_SECTION_QUOTES): Test whether
6349         __attribute__((section ("x"))) puts quotes around x or not.
6350         * config.h.in (HAVE_SECTION_QUOTES): Add.
6351         * configure: Rebuilt.
6353 2000-06-14  Andreas Jaeger  <aj@suse.de>
6355         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6356         depending on the configure option --sysconfdir.
6357         Closes PR libc/1762.
6358         Patch by Andreas Schwab <schwab@suse.de>.
6360         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6361         entry point.
6362         Reported by Jim Pick <jim@jimpick.com>.
6364 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6366         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6367         crashing the application.  Emit some simple error message.
6368         Reported by mju@panasas.com [PR libc/1769].
6370 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6372         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6374         * crypt/Makefile (distribute): Add md5.h.
6376         * Makefile (distribute): Add include/shlib-compat.h.
6378         * Make-dist: Search for tests also in sysdeps hierachy.
6380         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6381         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6383         * sysdeps/sparc/Subdirs: New file.
6385         * locale/Makefile (distribute): Add weightwc.h and
6386         programs/localedef.h.
6388         * time/Makefile (distribute): Add datemsk.
6390         * sysdeps/ia64/Dist: Add softpipe.h.
6392         * sysdeps/unix/sysv/aix/Dist: New file.
6394         * posix/setpgrp.c: Moved to...
6395         * sysdeps/generic/setpgrp.c: ...here.  New file.
6396         * io/mknod.c: Moved to...
6397         * sysdeps/generic/mknod.c: ...here.  New file.
6399         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6401         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6403         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6405         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6406         gprsave0.S, gprrest1.S, and gprrest0.S.
6408         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6410         * posix/Makefile (routines): Add spawnattr_getsigmask,
6411         spawnattr_getschedpolicy, spawnattr_getschedparam,
6412         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6413         spawnattr_setschedparam.
6414         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6415         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6416         posix_spawnattr_setschedparam.
6418         * posix/spawnattr_setschedparam.c: Fix typo.
6420         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6421         Correct typo.
6423         * login/programs/utmpd.c: Removed.
6424         * login/programs/utmpd.h: Removed.
6425         * login/programs/utmpd-private.h: Removed.
6427         * Makefile (distribute): Add include/db_185.h and include/db.h.
6429         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6430         iso-ir-165.h.
6432         * elf/Makefile (distribute): Add missing files.
6434         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6435         * elf/eval.c: Moved to...
6436         * dlfcn/eval.c: ...here.  New file.
6438         * Makefile (distribute): Also distribute ChangeLog.1?.
6440         * Make-dist (+tsrcs): Remove .args handling here as well.
6442         * rt/Makefile (tests): Add tst-timer.
6443         * sysdeps/generic/tst-timer.c: New file.
6445         * Makerules (sources): Don't add BP sources here.
6447         * login/Makefile (distribute): Remove xtmp.h.
6449         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6450         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6452 2000-06-13  Andreas Jaeger  <aj@suse.de>
6454         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6455         Patch by Ralf Baechle <ralf@gnu.org>.
6457 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6459         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6460         for mincore syscall.
6462         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6463         __BOUNDED_POINTERS__ is not defined.
6465 2000-06-07  Greg McGary  <greg@mcgary.org>
6467         * sysdeps/generic/bp-sym.h: New file.
6468         * sysdeps/generic/bp-start.h: New file.
6469         * sysdeps/i386/elf/start.S: Designate BP symbols.
6470         * sysdeps/generic/libc-start.c: Wrap bounds around
6471         argv & envp and each of their string members.
6473 2000-06-07  Greg McGary  <greg@mcgary.org>
6475         * sysdeps/unix/make-syscalls.sh: Add comments to
6476         output that aid debugging & comprehension.
6477         Map simple syscall signatures to number of args.
6478         Generate BP syscall thunk definitions.
6479         * sysdeps/generic/bp-thunks.h: New file.
6480         * sysdeps/unix/syscalls.list: Replace arg-count with
6481         simple return+arg signature.
6482         * sysdeps/unix/common/syscalls.list: Likewise.
6483         * sysdeps/unix/inet/syscalls.list: Likewise.
6484         * sysdeps/unix/mman/syscalls.list: Likewise.
6485         * sysdeps/unix/sysv/syscalls.list: Likewise.
6486         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6487         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6489 2000-06-07  Greg McGary  <greg@mcgary.org>
6491         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6492         for all files *.[cS].
6493         (CFLAGS-.ob): Don't optimize sibling calls.
6494         (bppfx): New variable.
6495         * Makerules (elide-bp-thunks): New variable.
6496         (elide-routines.*): Elide BP-* files for all but *.ob.
6497         (sources): Include bp-thunks.
6499 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6501         * iconv/gconv_simple.c: Remove unnecessary prototype.
6503         * iconv/gconv_trans.c: Pretty print.
6505         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6507         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6508         minimal kernel versions.  Add information about IA-64 kernel.
6510         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6511         specific minimal supported kernel versions to be specified.
6513         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6514         step data structure.
6515         * wcsmbs/btowc.c: Likewise.
6516         * wcsmbs/mbrtowc.c: Likewise.
6517         * wcsmbs/mbsnrtowcs.c: Likewise.
6518         * wcsmbs/mbsrtowcs.c: Likewise.
6519         * wcsmbs/wcrtomb.c: Likewise.
6520         * wcsmbs/wcsnrtombs.c: Likewise.
6521         * wcsmbs/wcsrtombs.c: Likewise.
6522         * wcsmbs/wctob.c: Likewise.
6524         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6525         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6527         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6529         * misc/sys/cdefs.h: Remove one more __P.
6531         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6532         Reported by HJ Lu.
6534         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6535         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6536         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6538 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6539             Yutaka Niibe  <gniibe@chroot.org>
6541         * configure.in: Add machine sh3, sh4.
6542         * elf/elf.h: Add SH specific declarations of relocations.
6543         * shlib-versions: Add sh*-*-linux* cases.
6545 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6547         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6548         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6549         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6550         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6551         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6552         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6554         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6555         instead of KERNEL_MATH_EMULATION.
6556         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6557         KERNEL_MATH_EMULATION.
6559         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6560         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6561         * sysdeps/sh/dl-machine.h: ...here.  New file.
6562         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6563         and include generic SH version.
6564         * sysdeps/sh/sh3/bits/endian.h: Move to...
6565         * sysdeps/sh/bits/endian.h: ...here.  New file.
6566         * sysdeps/sh/sh4/bits/endian.h: Removed.
6567         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6568         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6569         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6571         * include/libc-symbols.h (link_warning): Work around a change in
6572         GAS which warns about changing section attributes.
6573         Proposed by Nick Clifton <nickc@redhat.com>.
6575 2000-06-12  H.J. Lu  <hjl@gnu.org>
6577         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6579 2000-06-11  H.J. Lu  <hjl@gnu.org>
6581         * sysdeps/i386/fpu/Versions: New file.
6583 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6585         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6586         parameters.
6587         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6588         exists.
6590 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6592         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6593         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6594         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6596         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6597         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6598         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6600 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6601             Yutaka Niibe  <gniibe@chroot.org>
6603         * sysdeps/sh/Dist: New file.
6604         * sysdeps/sh/Implies: New file.
6605         * sysdeps/sh/elf/initfini.c: New file.
6606         * sysdeps/sh/gmp-mparam.h: New file.
6607         * sysdeps/sh/init-first.c: New file.
6608         * sysdeps/sh/machine-gmon.h: New file.
6609         * sysdeps/sh/memcpy.S: New file.
6610         * sysdeps/sh/memprof.h: New file.
6611         * sysdeps/sh/memset.S: New file.
6612         * sysdeps/sh/sh3/__longjmp.S: New file.
6613         * sysdeps/sh/sh3/bits/endian.h: New file.
6614         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6615         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6616         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6617         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6618         * sysdeps/sh/sh3/dl-machine.h: New file.
6619         * sysdeps/sh/sh3/setjmp.S: New file.
6620         * sysdeps/sh/sh4/__longjmp.S: New file.
6621         * sysdeps/sh/sh4/bits/endian.h: New file.
6622         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6623         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6624         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6625         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6626         * sysdeps/sh/sh4/dl-machine.h: New file.
6627         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6628         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6629         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6630         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6631         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6632         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6633         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6634         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6635         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6636         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6637         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6638         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6639         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6640         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6641         * sysdeps/sh/sh4/setjmp.S: New file.
6642         * sysdeps/sh/elf/start.S: New file.
6643         * sysdeps/sh/sys/ucontext.h: New file.
6644         * sysdeps/sh/strlen.S: New file.
6645         * sysdeps/sh/sysdep.h: New file.
6646         * sysdeps/unix/sh/sysdep.S: New file.
6647         * sysdeps/unix/sh/sysdep.h: New file.
6648         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6649         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6650         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6651         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6652         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6653         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6654         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6655         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6656         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6657         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6658         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6659         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6660         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6661         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6662         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6663         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6664         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6665         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6666         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6667         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6668         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6669         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6670         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6671         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6672         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6673         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6674         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6675         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6676         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6677         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6678         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6679         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6680         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6681         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6682         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6683         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6684         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6685         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6686         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6687         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6688         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6689         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6690         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6691         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6692         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6693         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6694         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6695         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6696         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6697         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6699 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6701         * Rules (%.out): Define GCONV_PATH in the environment.
6702         * assert/Depend: New file.
6703         * iconvdata/Depend: New file.
6704         * intl/Depend: New file.
6705         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6706         * intl/tst-gettext.sh: Likewise.
6707         * iconv/Makefile (routines): Add gconv_trans.
6708         * iconv/gconv_trans.c: New file.
6709         * iconv/gconv.h (struct __gconv_trans_data): New type.
6710         (__gconv_fct): New parameter with starting position in output buffer.
6711         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6712         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6713         (struct __gconv_step): Add new member __trans.
6714         * iconv/gconv_int.h: Pretty print prototypes.
6715         (gconv_transliterate): New prototype.
6716         (__BUILTIN_TRANS): Update for new conversion function interface.
6717         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6718         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6719         in names, find appropriate function, and install in the conversion
6720         steps it can be used.
6721         * iconv/skeleton.c: Add additional parameter for beginning of output
6722         buffer.  Change calls of downstream functions.
6723         * iconv/loop.c: Change loop function interface completely.  Pass in
6724         step and step_data structure.  Remove optimization for BODY with
6725         NEED_LENGTH_TEST == 0.
6726         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6727         appropriate error handling code to use transliteration steps.  Remove
6728         optimization for BODY with NEED_LENGTH_TEST == 0.
6729         * iconvdata/8bit-gap.c: Likewise.
6730         * iconvdata/8bit-generic.c: Likewise.
6731         * iconvdata/ansi_x3.110.c: Likewise.
6732         * iconvdata/big5.c: Likewise.
6733         * iconvdata/big5hkscs.c: Likewise.
6734         * iconvdata/euc-cn.c: Likewise.
6735         * iconvdata/euc-jp.c: Likewise.
6736         * iconvdata/euc-kr.c: Likewise.
6737         * iconvdata/euc-tw.c: Likewise.
6738         * iconvdata/gbgbk.c: Likewise.
6739         * iconvdata/gbk.c: Likewise.
6740         * iconvdata/iso-2022-cn.c: Likewise.
6741         * iconvdata/iso-2022-jp.c: Likewise.
6742         * iconvdata/iso-2022-kr.c: Likewise.
6743         * iconvdata/iso646.c: Likewise.
6744         * iconvdata/iso8859-1.c: Likewise.
6745         * iconvdata/iso_6937-2.c: Likewise.
6746         * iconvdata/iso_6937.c: Likewise.
6747         * iconvdata/johab.c: Likewise.
6748         * iconvdata/sjis.c: Likewise.
6749         * iconvdata/t.61.c: Likewise.
6750         * iconvdata/uhc.c: Likewise.
6751         * iconvdata/unicode.c: Likewise.
6752         * iconvdata/utf-16.c: Likewise.
6753         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6754         DL_CALL_FCT.
6755         * wcsmbs/btowc.c: Likewise.
6756         * wcsmbs/mbrtowc.c: Likewise.
6757         * wcsmbs/mbsnrtowcs.c: Likewise.
6758         * wcsmbs/mbsrtowcs.c: Likewise.
6759         * wcsmbs/wcrtomb.c: Likewise.
6760         * wcsmbs/wcsnrtombs.c: Likewise.
6761         * wcsmbs/wcsrtombs.c: Likewise.
6762         * wcsmbs/wctob.c: Likewise.
6764 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6766         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6767         other header files.  Mention about 128-byte cache line sizes.
6768         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6769         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6770         for current calling sequence.
6771         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6773         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6774         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6776         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6777         and setrlimit syscalls for backwards compatibility.
6779 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6781         * iconv/skeleton.c:  Rename converted written to correcter name
6782         irreversible.
6783         * iconv/gconv.c: Rename converted variable to correcter name
6784         irreversible.
6785         * iconv/gconv_int.h: Likewise.
6786         * iconv/gconv_simple.c: Likewise.
6787         * iconv/iconv.c: Likewise.
6788         * iconv/loop.c: Likewise.
6789         * iconvdata/8bit-gap.c: Likewise.
6790         * iconvdata/8bit-generic.c: Likewise.
6791         * iconvdata/ansi_x3.110.c: Likewise.
6792         * iconvdata/big5.c: Likewise.
6793         * iconvdata/big5hkscs.c: Likewise.
6794         * iconvdata/euc-cn.c: Likewise.
6795         * iconvdata/euc-jp.c: Likewise.
6796         * iconvdata/euc-kr.c: Likewise.
6797         * iconvdata/gbgbk.c: Likewise.
6798         * iconvdata/gbk.c: Likewise.
6799         * iconvdata/iso-2022-cn.c: Likewise.
6800         * iconvdata/iso-2022-jp.c: Likewise.
6801         * iconvdata/iso-2022-kr.c: Likewise.
6802         * iconvdata/iso646.c: Likewise.
6803         * iconvdata/iso8859-1.c: Likewise.
6804         * iconvdata/iso_6937-2.c: Likewise.
6805         * iconvdata/iso_6937.c: Likewise.
6806         * iconvdata/johab.c: Likewise.
6807         * iconvdata/sjis.c: Likewise.
6808         * iconvdata/t.61.c: Likewise.
6809         * iconvdata/uhc.c: Likewise.
6810         * iconvdata/unicode.c: Likewise.
6811         * iconvdata/utf-16.c: Likewise.
6813         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6814         __cmsg_data field with __extension__.
6816 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6818         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6820 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6822         * iconv/gconv_simple.c: Fix various small bugs in several
6823         functions.
6825         * iconv/loop.c: Fix comment.
6827 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6829         * elf/link.h: Remove libc internal declarations.
6830         * include/link.h: Move them here.
6832 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6834         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6835         Patch by Dan Pop <Dan.Pop@cern.ch>.
6837         Rewrite error message handling.
6838         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6839         _dl_catch_error.
6840         * elf/dl-error (struct catch): Add objname member.
6841         (_dl_signal_error): Take new parameter with object name.  When
6842         passing message on simply store object name and duplicate error
6843         message.
6844         (_dl_catch_error): Take new parameter.  Store object name in the
6845         place pointed to.
6846         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6847         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6848         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6849         (dlerror): Add objname to asprintf() parameters.
6850         (_dl_error_run): Pass new parameter to _dl_catch_error.
6851         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6852         * elf/dl-open.c (_dl_open): Likewise.
6853         * elf/rtld.c (dl_main): Likewise.
6854         * elf/dl-close.c: Mark error messages with N_().
6855         * elf/dl-deps.c: Likewise.
6856         * elf/dl-error.c: Likewise.
6857         * elf/dl-load.c: Likewise.
6858         * elf/dl-open.c: Likewise.
6859         * elf/dl-reloc.c: Likewise.
6860         * elf/dl-support.c: Likewise.
6861         * elf/dl-sym.c: Likewise.
6862         * elf/dl-version.c: Likewise.
6863         * elf/dl-lookup.c: Add comments about problems with error message
6864         translations.
6865         * elf/dl-reloc.c: Likewise.
6866         * elf/dl-version.c: Likewise.
6868 2000-06-09  H.J. Lu  <hjl@gnu.org>
6870         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6871         after freeing it.
6873         * dlfcn/Makefile (distribute): Add failtestmod.c.
6874         (tests): Add failtest.
6875         Add rules to build and run failtest.
6876         * dlfcn/failtest.c: New file.
6877         * dlfcn/failtestmod.c: New file.
6879 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6881         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6882         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6883         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6884         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6885         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6887 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6889         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6890         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6892 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6893             Ulrich Drepper  <drepper@redhat.com>
6895         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6896         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6897         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6898         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6899         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6900         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6902 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6904         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6905         to find correct mount point despite wrong information from the
6906         kernel.
6908 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6910         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6911         the address of a symbol so function pointers are handled properly.
6913 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6915         * sysdeps/i386/Dist: Add bp-asm.h.
6917         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6918         defaultdir variable instead of "/var/shm" everywhere.
6919         (defaultdir): Change to /dev/shm/.
6921 2000-06-08  Greg McGary  <greg@mcgary.org>
6923         * sysdeps/i386/bp-asm.h: New file.
6924         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6925         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6926         frame-pointer chain when debugging.
6927         * sysdeps/i386/add_n.S: Likewise.
6928         * sysdeps/i386/addmul_1.S: Likewise.
6929         * sysdeps/i386/lshift.S: Likewise.
6930         * sysdeps/i386/memchr.S: Likewise.
6931         * sysdeps/i386/memcmp.S: Likewise.
6932         * sysdeps/i386/mul_1.S: Likewise.
6933         * sysdeps/i386/rawmemchr.S: Likewise.
6934         * sysdeps/i386/rshift.S: Likewise.
6935         * sysdeps/i386/stpcpy.S: Likewise.
6936         * sysdeps/i386/stpncpy.S: Likewise.
6937         * sysdeps/i386/strchr.S: Likewise.
6938         * sysdeps/i386/strchrnul.S: Likewise.
6939         * sysdeps/i386/strcspn.S: Likewise.
6940         * sysdeps/i386/strpbrk.S: Likewise.
6941         * sysdeps/i386/strrchr.S: Likewise.
6942         * sysdeps/i386/strspn.S: Likewise.
6943         * sysdeps/i386/strtok.S: Likewise.
6944         * sysdeps/i386/sub_n.S: Likewise.
6945         * sysdeps/i386/submul_1.S: Likewise.
6946         * sysdeps/i386/elf/setjmp.S: Likewise.
6947         * sysdeps/i386/i486/strcat.S: Likewise.
6948         * sysdeps/i386/i486/strlen.S: Likewise.
6949         * sysdeps/i386/i586/add_n.S: Likewise.
6950         * sysdeps/i386/i586/lshift.S: Likewise.
6951         * sysdeps/i386/i586/memcpy.S: Likewise.
6952         * sysdeps/i386/i586/memset.S: Likewise.
6953         * sysdeps/i386/i586/rshift.S: Likewise.
6954         * sysdeps/i386/i586/strchr.S: Likewise.
6955         * sysdeps/i386/i586/strcpy.S: Likewise.
6956         * sysdeps/i386/i586/strlen.S: Likewise.
6957         * sysdeps/i386/i586/sub_n.S: Likewise.
6958         * sysdeps/i386/i686/add_n.S: Likewise.
6959         * sysdeps/i386/i686/memcpy.S: Likewise.
6960         * sysdeps/i386/i686/mempcpy.S: Likewise.
6961         * sysdeps/i386/i686/memset.S: Likewise.
6962         * sysdeps/i386/i686/strcmp.S: Likewise.
6964 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6966         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6968         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6969         256 and don't use OPEN_MAX.
6971         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6972         use it instead of LINK_MAX.
6973         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6975 2000-06-08  Andreas Jaeger  <aj@suse.de>
6977         * libio/genops.c (_IO_list_lock): Only compile body if we're
6978         thread safe.
6979         (_IO_list_unlock): Likewise.
6980         (_IO_list_resetlock): Likewise.
6982 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6984         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6985         unless user defined it.
6987         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6988         if not defined by the user.
6990         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6991         * libio/iofwrite.c (_IO_fwrite): Likewise.
6993         * time/time.h: Add missing __THROW for clock_getcpuclockid
6994         prototype.
6996         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6997         * include/elf.h: Include also <dl-dtprocnum.h>.
6998         * elf/dl-deps.c: Likewise.
6999         * elf/dl-lookup.c: Likewise.
7000         * elf/dl-runtime.c: Likewise.
7001         * elf/dl-version.c: Likewise.
7002         * elf/do-rel.h: Likewise.
7003         * elf/dynamic-link.h: Likewise.
7004         * elf/link.h: Likewise.
7005         * elf/rtld.c: Likewise.
7006         * sysdeps/generic/dl-dtprocnum.h: New file.
7007         * sysdeps/ia64/dl-dtprocnum.h: New file.
7008         * sysdeps/mips/dl-dtprocnum.h: New file.
7009         * sysdeps/sparc/dl-dtprocnum.h: New file.
7011         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
7013         * elf/do-lookup.h: Add some __builtin_expect.
7015         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
7017         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
7018         (_dl_dynamic_weak): New variable.
7019         * elf/dl-support.c: Likewise.
7020         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7021         * elf/do-lookup.h: If we find a weak definition treat it like a
7022         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7023         case treat it like before.
7025         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7026         is in main program.
7027         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7029         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7030         using l_map_start and l_map_end.
7032         * elf/dl-version.c: Add __builtin_expect in many places.
7034         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7035         Update.
7037 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7039         Lock for stdio stream list becomes global, for use in LinuxThreads.
7041         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7042         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7043         _IO_list_resetlock): New interface for iterating global list of
7044         streams without accessing the _IO_list_all global variable,
7045         and for manipulating the lock which protects this list.
7046         * libio/libioP.h: Likewise.
7047         * libio/Version: Add entries for the new functions.
7049         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7050         pointer to _IO_FILE.
7052 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7054         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7055         BIT() must actually be BITw().
7057         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7059         * locale/programs/charmap.c: Allow string arguments for
7060         code_set_name and repertoiremap.
7062 2000-06-07  Andreas Jaeger  <aj@suse.de>
7064         * elf/Makefile: Build ldconfig only when building shared libraries.
7066 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7068         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7069         __USE_ISOC99.
7070         (fdimf, __fdim, fdim): Likewise.
7072 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7074         * locale/findlocale.c: Add __builtin_expect in many places.
7075         * locale/loadlocale.c: Likewise.
7077 2000-06-06  Greg McGary  <greg@mcgary.org>
7079         * sysdeps/mips/elf/start.S: Trim redundant code.
7081         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7082         Use C comments throughout.  Line up operands column with tabs.
7083         * sysdeps/powerpc/strchr.S: Likewise.
7084         * sysdeps/powerpc/strcmp.S: Likewise.
7085         * sysdeps/powerpc/strcpy.S: Likewise.
7086         * sysdeps/powerpc/strlen.S: Likewise.
7088         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7089         Get low part of &__curbrk with @l.
7091 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7093         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7094         * iconvdata/unicode.c: Likewise.
7095         * iconvdata/uhc.c: Likewise.
7096         * iconvdata/t.61.c: Likewise.
7097         * iconvdata/sjis.c: Likewise.
7098         * iconvdata/johab.c: Likewise.
7099         * iconvdata/iso_6937.c: Likewise.
7100         * iconvdata/iso_6937-2.c: Likewise.
7101         * iconvdata/iso8859-1.c: Likewise.
7102         * iconvdata/iso646.c: Likewise.
7103         * iconvdata/iso-2022-kr.c: Likewise.
7104         * iconvdata/iso-2022-jp.c: Likewise.
7105         * iconvdata/iso-2022-cn.c: Likewise.
7106         * iconvdata/gbgbk.c: Likewise.
7107         * iconvdata/gbk.c: Likewise.
7108         * iconvdata/euc-kr.c: Likewise.
7109         * iconvdata/euc-jp.c: Likewise.
7110         * iconvdata/euc-cn.c: Likewise.
7112 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7114         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7115         * iconvdata/big5.c: Likewise.
7116         * iconvdata/ansi_x3.110.c: Likewise.
7117         * iconvdata/8bit-generic.c: Likewise.
7118         * iconvdata/8bit-gap.c: Likewise.
7119         * iconv/loop.c: Likewise.
7120         * iconv/gconv_db.c: Likewise.
7121         * iconv/gconv_dl.c: Likewise.
7122         * iconv/gconv_simple.c: Likewise.
7123         * iconv/skeleton.c: Likewise.
7125         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7126         (struct __gconv_step_data): Rename __is_last to __flags.
7127         * iconv/gconv_close.c: Change all uses of __is_last.
7128         * iconv/skeleton.c: Likewise.
7129         * iconvdata/iso-2022-cn.c: Likewise.
7130         * iconvdata/iso-2022-jp.c: Likewise.
7131         * iconvdata/iso-2022-kr.c: Likewise.
7132         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7133         Recognize IGNORE error handling, set flag, and remove from name.
7134         * iconv/loop.c (ignore_errors_p): Define.
7135         Add flags parameter to both functions.
7136         * iconv/skeleton.c: Pass flags to all conversion functions.
7137         * iconv/gconv_simple.c: Add flags parameter to all functions.
7138         Don't return error for invald error if ignore flag is set.
7139         (ucs4_internal_loop_single): Add missing pointer increment.
7140         (internal_ucs4le_loop_single): Likewise.
7141         * iconv/iconv_prog.c: Implement handling of -c parameter.
7142         * iconvdata/8bit-gap.c: Don't return error for invald error if
7143         ignore flag is set.
7144         * iconvdata/8bit-generic.c: Likewise.
7145         * iconvdata/ansi_x3.110.c: Likewise.
7146         * iconvdata/big5.c: Likewise.
7147         * iconvdata/big5hkscs.c: Likewise.
7148         * iconvdata/euc-cn.c: Likewise.
7149         * iconvdata/euc-jp.c: Likewise.
7150         * iconvdata/euc-kr.c: Likewise.
7151         * iconvdata/gbgbk.c: Likewise.
7152         * iconvdata/gbk.c: Likewise.
7153         * iconvdata/iso-2022-cn.c: Likewise.
7154         * iconvdata/iso-2022-jp.c: Likewise.
7155         * iconvdata/iso-2022-kr.c: Likewise.
7156         * iconvdata/iso646.c: Likewise.
7157         * iconvdata/iso8859-1.c: Likewise.
7158         * iconvdata/iso_6937-2.c: Likewise.
7159         * iconvdata/iso_6937.c: Likewise.
7160         * iconvdata/johab.c: Likewise.
7161         * iconvdata/sjis.c: Likewise.
7162         * iconvdata/t.61.c: Likewise.
7163         * iconvdata/uhc.c: Likewise.
7164         * iconvdata/unicode.c: Likewise.
7165         * iconvdata/utf-16.c: Likewise.
7166         * libio/fileops.c: Likewise.
7167         * libio/iofwide.c: Likewise.
7168         * wcsmbs/btowc.c: Likewise.
7169         * wcsmbs/mbrtowc.c: Likewise.
7170         * wcsmbs/mbsnrtowcs.c: Likewise.
7171         * wcsmbs/mbsrtowcs.c: Likewise.
7172         * wcsmbs/wcrtomb.c: Likewise.
7173         * wcsmbs/wcsnrtombs.c: Likewise.
7174         * wcsmbs/wcsrtombs.c: Likewise.
7175         * wcsmbs/wctob.c: Likewise.
7177         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7178         an error.
7180 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7182         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7183         counter for the object we are releasing, just decrement it.
7184         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7186 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7188         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7189         if -ffast-math.
7191 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7193         * iconvdata/big5hkscs.c: New file.
7194         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7196         * iconvdata/gconv-modules: Add entry for new module.
7197         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7198         (distribute): Add big5hkscs.c.
7200 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7202         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7203         inlines to match prototypes in mathcalls.h.
7204         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7205         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7206         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7207         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7209 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7211         * elf/elf.h (SHT_SUNW_move): Define.
7213         * elf/elf.h: Add more Solaris compatiblity definitions.
7215 2000-06-03  Andreas Jaeger  <aj@suse.de>
7217         * sysdeps/powerpc/dl-start.S: Close open comment.
7219 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7221         * inet/Versions: Fix typo in rresvport_af export.
7223 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7225         * math/tgmath.h: Pretty print.
7227 2000-06-02  Andreas Jaeger  <aj@suse.de>
7229         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7230         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7232 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7234         * elf/rtld.c (process_envvars): Test for = after variable name.
7236 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7238         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7239         have extra call to __gmon_start__, use the pointer we already have.
7241         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7242         shifting.
7244         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7245         binutils.  gas now emits a jump through the PLT instead of a
7246         relative jump if the jump target is an exported symbol.
7248 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7250         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7252 2000-05-31  Andreas Jaeger  <aj@suse.de>
7254         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7255         gregset_t.
7257         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7258         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7260         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7261         syscall.
7262         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7264 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7266         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7268         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7269         * locale/localeconv.c: Make function versioned (with same definition).
7271         * elf/Makefile (modules-names): Strip before using it.
7273 2000-05-30  Andreas Jaeger  <aj@suse.de>
7275         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7276         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7277         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7278         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7279         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7280         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7282 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7284         * Makefile: Add GNU make magic.
7286         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7287         Removed.
7288         * inet/rcmd.c: Remove __P.  Remove unused variables.
7289         (iruserfopen): Make first parameter const.
7290         (ruserok_sa): Return result of ruserok2_sa.
7291         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7292         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7293         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7294         (ruserpass): Check results of memory allocation.
7295         * include/netdb.h: Add prototype for ruserpass.
7297 2000-05-29  Andreas Jaeger  <aj@suse.de>
7299         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7300         for all platforms.
7302 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7304         * inet/rcmd.c (rresvport_af): Use correct port number.
7306 2000-05-26  Andreas Schwab  <schwab@suse.de>
7308         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7309         entries in all-sonames.
7310         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7311         preserving the old name if different for compatibility.
7313 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7315         * posix/Makefile (tests): Add tst-spawn.
7316         (tst-spawn-ARGS): New variable.
7317         * posix/tst-spawn.c: New file.
7319         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7320         * posix/spawn_faction_adddup2.c: Likewise.
7321         * posix/spawn_faction_addopen.c: Likewise.
7322         * posix/spawni.c: Correctly test for success of dup2 calls.
7324         * posix/tst-preadwrite.c: Check success of malloc call.
7326 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7328         * posix/Makefile (tests): Add tst-exec.
7329         (tst-exec-ARGS): New variable.
7330         * posix/tst-exec.c: New file.
7332         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7334 2000-05-04  Andreas Jaeger  <aj@suse.de>
7336         * string/string.h: Remove __strdup prototype, it's not needed in
7337         this file anymore.
7339 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7341         * posix/Makefile (tests): Add tst-fork.
7342         * posix/tst-fork.c: New file.
7344         * resolv/inet_pton.c: Loose __P.
7346 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7348         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7349         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7350         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7351         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7352         _IO_CHECK_WIDE fails.
7354 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7356         * po/da.po: New file.
7358         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7359         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7361         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7362         (Other iconv Implementations): Fix typo.
7363         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7365 2000-05-27  Andreas Jaeger  <aj@suse.de>
7367         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7368         normal version now.
7369         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7370         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7371         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7372         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7373         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7374         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7376         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7377         endianness to decide how to pass arguments.
7378         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7380         * elf/vismain.c: Use test-skeleton interface.
7381         (TEST_FUNCTION): New macro.
7382         (do_test): Renamed from main.
7384 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7386         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7387         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7389         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7390         handling of AI_V4MAPPED flag.
7392         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7393         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7394         perform lookup for T_A type and tell getanswer_r to convert the
7395         result with new argument.
7396         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7397         Don't convert addresses from IPv4 to IPv6 here.
7398         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7399         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7400         IPv4 mapping has to be done.  Perform mappings if required by the
7401         caller and not if RES_USE_INET6 bit in _res.options is set.
7402         Add several __builtin_expect.
7404 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7406         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7408         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7409         NULL.
7411         * posix/tst-preadwrite.c: Allow parallel execution of
7412         tst-preadwrite and tst-preadwrite64.
7414         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7415         * posix/tst-truncate.c: New file.
7416         * posix/tst-truncate64.c: New file.
7418         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7419         was switched.
7421         * posix/Makefile (tests): Add tst-preadwrite64.
7422         * posix/tst-preadwrite.c: Alloc file being used also for testing
7423         pread64 and pwrite64.
7424         * posix/tst-preadwrite64.c: New file.
7426 2000-05-26  Andreas Jaeger  <aj@suse.de>
7428         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7429         of arguments dependend on endianness.
7430         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7432         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7433         normal version now.
7434         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7435         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7436         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7437         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7439         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7440         endianness to check how to pass argument.
7441         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7443         * elf/ldconfig.h: Update parameter list for process_elf_file.
7445         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7446         Add parameter file_length and pass it ot process_elf*file.
7448         * sysdeps/generic/readelflib.c (check_ptr): New.
7449         (process_elf_file): Use check_ptr to check all accesses to the
7450         mmapped file. Add parameter file_length.
7452         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7453         library names.
7455         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7456         Closes PR libc/1573, reported by Bradley White
7457         <bww@laurelnetworks.com>.
7459 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7461         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7462         __FAST_MATH__ is defined.
7464 2000-05-22  Andreas Jaeger  <aj@suse.de>
7466         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7467         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7469         * manual/math.texi (FP Function Optimizations): Document gcc
7470         -ffast-math behaviour with mathinlines.
7472         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7473         functions unless -ffast-math is given to gcc.
7475 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7477         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7478         __sincosl): Guard with __USE_GNU.
7480 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7482         * csu/Makefile (routines): Add check_fds.
7483         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7484         binaries.  Add various __builtin_expect.
7485         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7486         * sysdeps/generic/check_fds.c: ...here.  New file.
7488         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7489         binaries if file /etc/suid-debug is available.
7491         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7492         and wcseqorder members.
7493         (struct locale_collate_t): Likewise.
7494         (collate_finish): Assign collation sequence value to each character.
7495         Create tables for output.
7496         (collate_output): Write out tables with collation sequence information.
7497         * locale/C-collate.c: Provide C locale data for collation sequence
7498         table.
7499         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7500         _NL_COLLATE_COLLSEQWC.
7501         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7502         _NL_COLLATE_COLLSEQWC.
7503         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7504         include fnmatch_loop.c.
7505         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7506         character is matched by range expression.  Use collation sequence
7507         table.  Outside glibc fall back on simple character value comparison.
7509 2000-05-24  Andreas Jaeger  <aj@suse.de>
7511         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7512         words.
7514         * intl/Makefile: Run gettext-test only if msgfmt is available.
7516         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7517         Define it for newer kernels.
7519 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7521         * elf/dl-sym.c: Minor cleanups.
7523         * configure.in: Add test for .protected.
7524         * config.make.in: Add have-protected variable.
7525         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7526         (tests-vis-yes): Add vismain.
7527         (modules-names): Add $(modules-vis-$(have-protected)).
7528         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7529         Add rules to generate and run vismain.
7530         * elf/vismain.c: New file.
7531         * elf/vismod1.c: New file.
7532         * elf/vismod2.c: New file.
7533         * elf/vismod3.c: New file.
7535 2000-05-23  Andreas Jaeger  <aj@suse.de>
7537         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7539         * manual/search.texi (Array Sort Function): Document that qsort is
7540         not necessarily in-place.
7542         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7543         Closes PR libc/1731.
7545         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7546         * dirent/scandir64.c: Likewise.
7547         * pwd/getpw.c: Likewise.
7548         * stdlib/bsearch.c (bsearch): Likewise.
7549         * stdlib/tst-strtoll.c: Likewise.
7550         * localedata/collate-test.c: Likewise.
7551         * localedata/xfrm-test.c: Likewise.
7552         * posix/bsd-getpgrp.c: Likewise.
7553         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7554         * sysdeps/generic/bits/siginfo.h: Likewise.
7555         * sysdeps/generic/bits/sockaddr.h: Likewise.
7556         * sysdeps/generic/sys/swap.h: Likewise.
7557         * sysdeps/generic/sys/sysinfo.h: Likewise.
7558         * sysdeps/generic/vfork.c: Likewise.
7559         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7560         * sysdeps/mach/hurd/fdopen.c: Likewise.
7561         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7562         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7563         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7564         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7565         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7566         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7567         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7569         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7570         * shadow/lckpwdf.c: Likewise.
7571         * stdlib/tst-strtol.c: Likewise.
7572         * sysdeps/generic/tcsetattr.c: Likewise.
7573         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7574         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7576 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7578         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7579         free it and set to (void *) -1.
7581 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7583         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7584         not the second character in the range.
7585         * stdio-common/tstscanf.c (main): Add testcase for the above.
7586         Reported by jik@kamens.brookline.ma.us.
7588 2000-05-21  H.J. Lu  <hjl@gnu.org>
7590         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7591         with noexec and noplt parameter.
7592         (do_lookup): Likewise.
7594         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7595         do_lookup.  Support STV_PROTECTED.
7596         (_dl_lookup_symbol_skip): Likewise.
7597         (_dl_lookup_versioned_symbol): Likewise.
7598         (_dl_lookup_versioned_symbol_skip): Likewise.
7600         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7602         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7604 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7606         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7607         * sysdeps/i386/bits/huge_val.h: Likewise.
7608         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7609         * sysdeps/m68k/bits/huge_val.h: Likewise.
7610         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7611         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7613 2000-05-22  Andreas Jaeger  <aj@suse.de>
7615         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7616         change in iconv.h.
7618 2000-05-19  Andreas Jaeger  <aj@suse.de>
7620         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7621         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7622         breaks compilation without linuxthreads.
7624 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7626         * sysdeps/ia64/memccpy.S: New file.
7627         * sysdeps/ia64/memchr.S: New file.
7628         * sysdeps/ia64/memcmp.S: New file.
7629         * sysdeps/ia64/memcpy.S: New file.
7630         * sysdeps/ia64/memmove.S: New file.
7631         * sysdeps/ia64/memset.S: New file.
7632         * sysdeps/ia64/strcat.S: New file.
7633         * sysdeps/ia64/strchr.S: New file.
7634         * sysdeps/ia64/strcmp.S: New file.
7635         * sysdeps/ia64/strcpy.S: New file.
7636         * sysdeps/ia64/strlen.S: New file.
7637         * sysdeps/ia64/strncmp.S: New file.
7638         * sysdeps/ia64/strncpy.S: New file.
7639         * sysdeps/ia64/softpipe.h: New file.
7640         Patches by Dan Pop <Dan.Pop@cern.ch>.
7642         * manual/memory.texi: Document memory handling functions (mlock,
7643         munlock, mlockall, munlockall, brk, and sbrk)
7644         * manual/time.texi: Document timespec and friends.
7645         * manual/conf.texi: Fix references.
7646         * manual/ctype.texi: Likewise.
7647         * manual/errno.texi: Likewise.
7648         * manual/intro.texi: Likewise.
7649         * manual/locale.texi: Likewise.
7650         * manual/sysinfo.texi: Likewise.
7651         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7653 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7655         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7656         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7658 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7660         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7661         dxfer_direction.
7663 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7665         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7666         * locale/localeconv.c: Initialize new elements from ISO C99.
7667         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7668         new standard elements.
7669         * locale/categories.def: Adjust accordingly.
7671         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7672         * iconv/iconv.c: Likewise.
7673         * conform/data/iconv.h-data: Likewise.
7674         * iconv/iconv_prog.c (process_block): Remove const from second
7675         parameter.
7676         (main): Remove const from addr definition.
7677         * manual/charset.texi (Generic Conversion Interface): Remove from
7678         inbuf parameter of iconv.
7680         * intl/dcigettext.c: Fix typo in comment.
7682 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7684         * resolv/res_libc.c (_res): Initialize _sock to -1.
7686 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7688         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7689         (fopencookie@@GLIBC_2.2): New.
7690         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7691         (fopencookie@GLIBC_2.0): New.
7692         * libio/Versions: Add fopencookie to GLIBC_2.2.
7694 2000-05-18  Andreas Jaeger  <aj@suse.de>
7696         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7697         Closes PR libc/1731.
7699         * manual/arith.texi (Parsing of Integers): Fix typo.
7700         Closes PR libc/1744, reported by blp@gnu.org.
7702 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7704         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7705         __extension__ to hexadecimal floating constant notation.
7706         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7707         Likewise.
7708         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7709         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7710         Likewise.
7711         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7712         HUGE_VALL): Likewise.
7713         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7714         HUGE_VALL): Likewise.
7715         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7717 2000-05-17  Andreas Jaeger  <aj@suse.de>
7719         * string/envz.h: Add pure attributes if possible.
7721         * string/argz.h: argz_count is a pure function.
7723         * string/strings.h: Add pure and const attributes if possible.
7725         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7726         possibly searching through the whole memory.
7727         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7729 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7731         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7732         not yet defined.
7733         (_dl_cache_check_flags): Likewise.
7734         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7735         dl-cache.h.
7737 2000-05-17  Andreas Jaeger  <aj@suse.de>
7739         * manual/creature.texi (Feature Test Macros): Remove paragraph
7740         since the description is wrong.
7741         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7743         * scripts/config.sub: New version.
7744         * scripts/config.guess: Likewise.
7745         * manual/texinfo.tex: Likewise.
7747         * time/test_time.args: Removed.
7748         * time/Makefile (test_time-ARGS): Added contents here instead.
7750         * posix/tstgetopt.args: Removed.
7751         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7753         * Rules: Allow arguments for test files to be specified in
7754         Makefile with testname-ARGS; remove rules with .args in it.
7756         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7757         remove old bogus rule for opendir-tst1.args.
7759         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7761         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7762         into objdir.  This allows a readonly sourcetree.
7763         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7765 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7766             David Huggins-Daines <dhd@linuxcare.com>
7768         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7769         cache_data in case of only new cache format correctly.
7771         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7772         cache_file_new.
7774         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7775         struct cache_file_new.
7777         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7778         present.
7780         * elf/cache.c (save_cache): Align struct new_file_cache.
7781         (print_cache): Likewise.
7783 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7785         * elf/soinit.c (__libc_global_ctors): Move
7786         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7787         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7788         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7789         variable, don't define it to __res_state call.
7791 2000-05-13  Andreas Jaeger  <aj@suse.de>
7793         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7794         Linux 2.3.99pre7.
7795         (AF_PPPOX): Likewise.
7796         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7797         (AF_PPPOX): Likewise.
7799 2000-05-12  Andreas Jaeger  <aj@suse.de>
7801         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7802         Reported by tmoestl@gmx.net, closes PR libc/1732.
7804 2000-05-11  Jan Hubicka  <jh@suse.cz>
7806         * misc/sys/cdefs.h: Add support for pure attribute.
7808         * include/string.h: Add __attribute_pure__ to various functions.
7809         * string/string.h: Likewise.
7811 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7813         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7814         argument.
7815         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7816         R_SPARC_UA64.
7817         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7819 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7821         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7822         at proper place.  Compute the high nibble correctly.
7824 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7826         * elf/ldconfig.c: Include elf.h.
7828         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7829         (_dl_vsym): Likewise.
7830         Reported by Owen Taylor <otaylor@redhat.com>.
7832         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7833         always.
7835 2000-05-08  Andreas Jaeger  <aj@suse.de>
7837         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7839         * intl/bindtextdom.c (set_binding_values): Add prototype.
7841 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7843         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7844         call to elf_machine_fixup_plt.
7845         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7846         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7848 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7850         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7851         they are not dlclose'd from underneath us.
7853 2000-05-08  Andreas Schwab  <schwab@suse.de>
7855         * posix/execle.c: Fix size parameter of memcpy.
7857 2000-05-08  Andreas Schwab  <schwab@suse.de>
7859         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7860         getpagesize syscall if available.
7862 2000-05-08  Andreas Jaeger  <aj@suse.de>
7864         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7865         set errno.
7867 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7869         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7870         sizeof(struct link_map *) chunks, not in bytes.
7872 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7874         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7875         only needed for locale.
7876         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7877         It's only needed for catgets.
7878         Patches by Greg McGary <gkm@eng.ascend.com>.
7880 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7882         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7883         Remove duplicate <errno.h> include.  Remove inclusion of
7884         <libintl.h> and "nsswitch.h".
7885         (set_cloexec_flag): New function, broken out of dbopen.
7886         (dbopen): Changed return type to `enum
7887         nss_status'.  Mostly rewritten to make sure that we do not report
7888         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7889         (internal_setent): Change return type to nss_status.
7890         Document, and make sure that the function
7891         behaves accordingly.  Make dynamically loading the database
7892         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7893         failed.
7894         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7895         unecessary casts.
7896         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7897         documentation.
7898         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7899         c_get function member.
7900         * nss/nss_db/nss_db.h: Add and tweak some comments.
7901         (DBT): Move typedef before NSS_DBC typedef.
7902         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7904 2000-05-07  H.J. Lu  <hjl@gnu.org>
7906         * csu/initfini.c: Moved to ....
7907         * sysdeps/generic/initfini.c: ...here.
7909         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7911 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7913         * manual/resource.texi: Document POSIX scheduling functions.
7914         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7916         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7917         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7919         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7920         for x since promotion in comparison might leads to unexpected
7921         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7923         * iconv/Makefile (tests): Add tst-iconv1.
7924         * iconv/tst-iconv1.c: New file.
7925         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7926         empty input buffer over full output buffer.
7927         (ucs4_internal_loop): Likewise.
7928         (ucs4_internal_loop_unaligned): Likewise.
7929         (internal_ucs4le_loop): Likewise.
7930         (internal_ucs4le_loop_unaligned): Likewise.
7931         (ucs4le_internal_loop): Likewise.
7932         (ucs4le_internal_loop_unaligned): Likewise.
7933         Reported by yaoz@nih.gov.
7935 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7937         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7938         returned != __GCONV_OK, there is nothing to clean up.
7940 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7942         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7943         OUTPUT_CHARSET environment variables.
7945 2000-05-06  Andreas Jaeger  <aj@suse.de>
7947         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7948         (struct cache_file_new): New.
7949         (struct file_entry): New (moved from cache.c).
7950         (struct cache_file): New (moved from cache.c).
7952         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7953         from _dl_load_cache_lookup.
7954         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7955         the different cache formats.
7956         New variable cache_new for new format.
7958         * elf/ldconfig.h: Change according to changes in cache.c and
7959         ldconfig.c; remove cache_libcmp; add opt_format.
7961         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7962         stuff that's defined in those headers.
7963         Add hwcap to struct lib_entry.
7964         (opt_format): New variable to select cache format.
7965         (options): Add format parameter.
7966         (is_hwcap): New function.
7967         (path_hwcap): New function.
7968         (parse_opt): Handle new format parameter.
7969         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7971         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7972         ldconfig is part of glibc.
7973         Include dl-cache.h and remove stuff that's defined there.
7974         (struct cache_entry): Add new member hwcap.
7975         (print_entry): Print hwcap, cleanup a bit.
7976         (print_cache): Print new and old formats.
7977         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7978         (save_cache): Save new and old formats.
7979         (add_to_cache): Handle hwcap.
7981         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7982         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7983         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7984         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7985         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7986         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7988 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7990         * intl/dcigettext.c (alignof): New macro.
7991         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7992         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7993         freemem_size to 0.
7995 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7997         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7998         return value.
8000 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8002         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
8003         (mempcpy): Correct typo is parameter list.
8005 2000-05-06  Andreas Jaeger  <aj@suse.de>
8007         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
8008         functions unless -ffast-math is given to gcc.
8010 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8012         * po/ko.po: Update from translation team.
8014 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8016         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
8017         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
8018         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
8019         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8020         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8021         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8023         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8024         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8025         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8027         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8028         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8029         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8030         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8032         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8033         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8035 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8037         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8038         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8040         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8041         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8043         * sysdeps/ia64/Implies: New file.
8044         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8045         * sysdeps/ia64/Makefile: New file.
8046         * sysdeps/ia64/gmp-mparam.h: New file,
8048         * sysdeps/ia64/elf/start.S: New file.
8050         * sysdeps/ia64/bits/fenv.h: New file.
8052 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8054         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8056 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8058         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8059         ia64 has 64 bit .hash entries just as the Alpha.
8061 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8063         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8065 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8067         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8068         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8069         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8070         * sysdeps/ia64/fpu/fegetenv.c: New file.
8071         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8072         * sysdeps/ia64/fpu/fegetround.c: New file.
8073         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8074         * sysdeps/ia64/fpu/fesetenv.c: New file.
8075         * sysdeps/ia64/fpu/fesetround.c: New file.
8076         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8077         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8078         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8079         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8080         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8082 2000-05-05  Andreas Jaeger  <aj@suse.de>
8084         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8086         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8087         (_dl_string_hwcap): New, does nothing.
8089         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8090         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8091         (_dl_string_hwcap): New function, converts from string to hwcap
8092         encoding.
8093         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
8094         (_DL_HWCAP_COUNT): New.
8095         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8096         (_dl_string_hwcap): New function, converts from string to hwcap
8097         encoding.
8098         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8099         (_DL_HWCAP_COUNT): New.
8100         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8101         (_dl_string_hwcap): New function, converts from string to hwcap
8102         encoding.
8104 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8106         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8107         * sysdeps/ia64/Dist: New file.
8109         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8110         parameter to mprotect and for variable assignments.
8112 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8114         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8115         validity of map before dereferencing it.
8117         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8119 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8121         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8122         lookup to the arguments to elf_machine_fixup_plt().
8124         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8125         of the symbol being resolved to input argument list and make the
8126         function return the pointer to the reloc.
8128         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8129         return valuie to lookup_t and return the value.
8130         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8131         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8132         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8133         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8134         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8135         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8137         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8138         Make it an inline function returning value after calling
8139         __elf_machine_fixup_plt().
8141         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8142         symbol address.
8144         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8145         obtain the symbol address.
8147         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8148         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8150         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8151         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8152         inline on non ia64.
8154 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8156         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8157         symbol address of an object.
8159         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8160         the symbol address of an object.
8162         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8163         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8164         (_dl_lookup_symbol_skip): Likewise.
8165         (_dl_lookup_versioned_symbol): Likewise.
8166         (_dl_lookup_versioned_symbol_skip): Likewise.
8168 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8170         * elf/rtld.c (_dl_start): Get the function pointer return address
8171         via _dl_start_address for architectures that need a function
8172         pointer descriptor rather than just a pointer (ia64).
8174         * sysdeps/generic/dl-lookupcfg.h: New file.
8175         * sysdeps/ia64/dl-lookupcfg.h: New file.
8176         * sysdeps/ia64/dl-machine.h: New file.
8177         * sysdeps/ia64/dl-symaddr.c: New file.
8178         * sysdeps/ia64/dl-fptr.c: New file.
8180         * elf/elf.h: Add IA-64 specific definitions.
8182 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8184         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8185         end of enum.
8187 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8189         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8190         happy.
8192 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8194         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8195         symbol.  Call _dl_init rather than the old way.
8197 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8199         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8200         test for pointer in range of DSO address space.
8202 2000-05-04  Andreas Jaeger  <aj@suse.de>
8204         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8206 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8208         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8209         calls of _nl_make_l10nflist.
8211         * libio/stdio.h: Make fseeko and ftello prototypes available is
8212         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8214         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8215         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8217 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8219         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8220         before calling tfind.
8222 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8224         * resolv/resolv.h (res_querydomain): Remove redefinition to
8225         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8227 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8229         * po/gl.po: Update from translation team.
8231         * manual/intro.texi (Program Basics): Change section title.
8232         * manual/process.texi: Fix reference.
8233         (Executing a File): Add reference exec in other section.
8234         * manual/signal.texi: Fix reference.
8235         * manual/startup.texi: Document syscall function.
8236         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8238 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8240         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8241         * intl/bindtextdom.c (set_binding_values): New function.
8242         (bindtextdomain): Call it.
8243         (bind_textdomain_codeset): New function.
8244         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8245         (free_mem): Free each binding's codeset.
8246         * intl/gettextP.h (struct binding): Add codeset field.
8247         (_nl_find_domain): Add domainbinding argument.
8248         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8249         Pass it to _nl_make_l10nflist.
8250         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8251         (_nl_make_l10nflist): Add domainbinding argument.
8252         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8253         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8254         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8255         locale_charset().
8256         * manual/message.texi: New node "Charset conversion in gettext".
8258 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8260         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8261         appropriate.  Handle possible __read error.
8263 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8265         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8266         compiler builtin.
8267         * intl/loadinfo.h (__builtin_expect): Likewise.
8268         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8269         __builtin_expect where appropriate.
8270         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8271         * intl/localealias.c (extend_alias_table): Return an error indicator.
8272         (read_alias_file): Bail out if extend_alias_table fails.
8274 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8276         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8277         * intl/localealias.c: Likewise.
8279 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8281         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8282         Initialize domain->plural and domain->nplurals even if there is no
8283         nullentry.
8285 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8287         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8288         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8289         In case of failure, goto converted.
8291 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8293         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8294         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8295         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8296         __gconv_open.
8298 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8300         * intl/dcigettext.c (transcmp): Compare the domains as well.
8301         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8302         not before.
8303         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8304         <errno.h>.
8306 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8308         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8309         Reported by Bruno Haible.
8311 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8313         * manual/arith.texi: Remove @w from @itemize.
8315 2000-05-02  Andreas Jaeger  <aj@suse.de>
8317         * conform/data/tar.h-data: Add some checks for specific values.
8319         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8320         and RAND_MAX.
8322         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8323         FOPEN_MAX.
8325         * conform/data/netinet/in.h-data: Add exact checks for the values
8326         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8328         * conform/data/float.h-data: Add some minimal values.
8330         * conform/conformtest.pl: Test for macros with string constants,
8331         check for minimum and maximum values.
8332         Add limits.h to headers.
8334         * conform/data/cpio.h-data: Test for value of MAGIC.
8336         * conform/data/limits.h-data: New file.
8338 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8340         * math/Makefile (headers): Add bits/fenvinline.h.
8342 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8344         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8345         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8347         * posix/Versions: Change posix_spawnattr_getdefault and
8348         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8349         and posix_spawnattr_setsigdefault respectively.
8350         * posix/spawn.h: Likewise.
8351         * posix/spawnattr_getdefault.h: Likewise.
8352         * posix/spawnattr_setdefault.h: Likewise.
8353         * conform/data/spawn.h-data: Likewise.
8355 2000-05-01  Andreas Jaeger  <aj@suse.de>
8357         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8359 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8361         * manual/sysinfo.texi: Document getdomainname, setdomainname
8362         and sysctl.
8363         * manual/string.texi: Fix typo.
8364         * manual/terminal.texi: Document gtty and stty.
8365         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8367 2000-04-30  Andreas Jaeger  <aj@suse.de>
8369         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8370         accordance with Austin Draft.
8372 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8374         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8375         to recognize second character in comment line.
8377         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8378         ENOBUFS if we are out of memory.
8380         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8381         available if __USE_XOPEN2K.
8382         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8383         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8384         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8385         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8386         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8387         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8388         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8389         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8391 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8393         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8394         Recognize option -s, -c, and -l.
8396 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8398         * nscd/nscd.c: Start new session for nscd, drop privilegs
8399         to configured user if requested and no -S parameter are used.
8400         * nscd/nscd.conf: Add new option "server-user".
8401         * nscd/nscd_conf.c: Add support for new "server-user" option.
8402         * nscd/nscd.h: Add declaration for server_user variable.
8403         Based on patch by Chris Wing <wingc@engin.umich.edu>
8405 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8407         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8408         that changing the __restore and __restore_rt signal return code
8409         will break GDB.
8411 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8413         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8414         <sys/user.h>.
8416 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8418         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8420 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8422         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8423         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8424         arpa/inet.h.
8425         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8426         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8427         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8428         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8429         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8430         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8431         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8432         posix_fallocate, and posix_madvise.
8433         * conform/data/netdb.h-data: New file.
8434         * conform/data/pthread.h-data: Add pthread_barrier_t,
8435         pthread_barrierattr_t, pthread_barrier_destroy,
8436         pthread_barrier_init, pthread_barrier_wait,
8437         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8438         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8439         pthread_condattr_getclock, pthread_condattr_setclock,
8440         pthread_getcpuclockid, pthread_mutex_timedlock,
8441         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8442         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8443         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8444         * conform/data/sched.h-data: Add sched_ss_low_priority,
8445         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8446         SCHED_SPORADIC.
8447         * conform/data/semaphore.h-data: Add sem_timedwait.
8448         * conform/data/signal.h-data: Add SIGIO.
8449         * conform/data/spawn.h-data: New file.
8450         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8451         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8452         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8453         Fix typo in gmtime_r definition.
8454         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8455         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8456         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8457         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8458         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8459         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8460         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8461         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8462         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8463         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8464         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8465         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8466         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8467         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8468         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8469         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8470         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8471         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8472         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8473         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8474         typo in off_t definition.
8475         * conform/data/net/if.h-data: New file.
8476         * conform/data/netinet/in.h-data: New file.
8477         * conform/data/netinet/tcp.h-data: New file.
8478         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8479         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8480         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8481         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8482         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8483         and posix_typed_mem_open.
8484         * conform/data/sys/socket.h-data: New file.
8485         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8486         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8487         pthread_barrierattr_t, and pthread_spinlock_t.
8488         * conform/data/sys/un.h-data: New file.
8489         * conform/data/sys/utsname.h-data: New file.
8491         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8492         parameter.
8493         * inet/gethstbyad.c (gethostbyname): Likewise.
8494         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8495         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8496         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8497         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8498         Likewise.
8499         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8500         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8501         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8502         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8503         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8504         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8505         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8506         and second parameter.
8508         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8509         == NULL.
8511 2000-04-29  Andreas Jaeger  <aj@suse.de>
8513         * conform/data/arpa/inet.h-data: New file.
8515 2000-04-28  Geoff Clare <gwc@unisoft.com>
8517         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8518         path passed to ftw() or nftw() is an empty string.
8519         Closes PR libc/1710.
8521 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8523         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8524         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8525         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8526         * localedata/tst-mbswcs4.c: New file.
8527         * localedata/tst-mbswcs5.c: New file.
8529         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8530         == NULL.  Little optimization.
8532         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8533         DT_PREINIT_ARRAYSZ).
8534         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8536         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8537         overflows in conversion from ASCII.
8539 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8541         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8542         * Makerules (full_config_sysdirs): Likewise.
8543         * MakeTAGS (full_config_sysdirs): Likewise.
8545 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8547         * .cvsignore: Remove linuxthreads.
8548         * po/.cvsignore: Remove *.pot.
8549         * posix/glob/.cvsignore: Removed.
8550         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8552 2000-04-25  Andreas Jaeger  <aj@suse.de>
8554         * conform/Makefile (distribute): Also distribute contents of
8555         subdirectories.
8557         * Makerules (no_deps): Remove abi-versions.h.
8559         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8561 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8563         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8564         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8565         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8566         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8567         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8568         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8569         objects.
8571 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8573         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8575 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8577         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8578         * intl/l10nflist.c: Likewise.
8580 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8582         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8583         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8584         * intl/textdomain.c [!_LIBC]: Likewise.
8585         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8586         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8587         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8588         syntax error.
8590 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8592         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8593         character set conversion also in the case the translation was found
8594         after a hash collision or through binary search.  Store the maximum
8595         index together with the converted message.  Use iconv() when available.
8596         In case of out of memory during conversion, return the unconverted
8597         translated string, not NULL.
8599 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8601         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8602         to avoid name clashes with the ia32 linker.
8604 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8606         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8607         handling.
8609 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8611         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8612         strtoumax, strfry, and memfrob.
8613         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8614         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8616         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8617         if this function is available.
8619         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8620         all values.
8622 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8624         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8626 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8628         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8629         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8630         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8631         * localedata/tst-mbswcs3.c: New file.
8633 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8635         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8636         characters.  Don't handle incomplete characters as errors.
8637         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8638         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8639         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8640         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8641         * localedata/tst-mbswcs2.c: New file.
8643         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8644         stored character in state in UNPACK_BYTES macro.
8645         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8646         test for available characters, handle result of BODY code correctly.
8647         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8648         (distribute): Add tst-mbswcs.sh.
8649         Add rule to run tst-mbswcs.sh.
8650         * localedata/tst-mbswcs.sh: New file.
8651         * localedata/tst-mbswcs1.c: New file.
8653 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8655         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8656         allocation fixups centrally, fix __builtin_expect call, return NULL
8657         on failure, not NIS_NOMEMORY.
8659 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8661         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8663         * intl/loadinfo.h (internal_function): Define if not already defined.
8665 2000-04-27  Andreas Jaeger  <aj@suse.de>
8667         * intl/libintl.h: Fix typo, reported by Bruno Haible
8668         <haible@clisp.cons.org>.
8670 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8672         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8673         setting the state to GMON_PROF_BUSY.
8675 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8677         * elf/dl-profile.c (_dl_start_profile): define all variables which
8678         do not have to be global as local variables.
8680         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8681         patch.  Keep needed tests for failed memory allocation.
8683         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8684         __builtin_expect saying that we don't normally expect to profile.
8686         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8687         __builtin_expect where desirable.
8689 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8691         * manual/Makefile (chapters): Add syslog.
8692         * manual/syslog.texi: New file.
8693         * manual/math.texi: Fix references.
8694         * manual/terminal.texi: Likewise.
8695         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8697 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8699         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8700         stdlib.h was not included or __USE_XOPEN not defined.
8702 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8704         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8705         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8707 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8709         * manual/examples/subopt.c (mount_opts): Add missing terminating
8710         entry.
8711         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8713         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8714         * libio/ftello.c: Likewise.
8715         * libio/ftello64.c: Likewise.
8716         * libio/ioftell.c: Likewise.
8717         * sysdeps/generic/memrchr.c: Likewise.
8718         * sysdeps/posix/libc_fatal.c: Likewise.
8719         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8720         * misc/fstab.c: Include <string.h> for strcmp prototype.
8721         * sysdeps/generic/ldsodefs.h: Likewise.
8722         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8723         Patch by Kurt Roeckx <Q@ping.be>.
8725         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8726         Remove db-open.  Change all uses.
8727         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8729 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8731         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8732         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8733         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8734         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8735         with .set noat/at to shut up warnings.
8736         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8737         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8738         compilation if __NR_pciconfig_iobase is not defined.
8739         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8740         Add alias.
8742 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8744         * manual/sysinfo.texi: Fix typo.
8745         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8746         Replace "high precision time" with "high accuracy clock".
8747         Fix language.
8748         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8750         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8751         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8752         instead of malloc.
8753         * nis/nis_subr.c: Use __builtin_expect.
8754         * nis/ypclnt.c: Likewise.
8755         * nis/nis_getservlist.c: Likewise.
8756         * nis/nis_creategroup.c: Likewise.
8758         * nis/nis_callback.c (__nis_create_callback): Check result of
8759         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8760         (__nis_destroy_callback): Fix memory leaks.
8762 2000-04-21  Andreas Jaeger  <aj@suse.de>
8764         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8765         * sysdeps/mips/mips64/add_n.S: Likewise.
8766         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8767         * sysdeps/mips/mips64/lshift.S: Likewise.
8768         * sysdeps/mips/mips64/mul_1.S: Likewise.
8769         * sysdeps/mips/mips64/rshift.S: Likewise.
8770         * sysdeps/mips/mips64/setjmp.S: Likewise.
8771         * sysdeps/mips/mips64/sub_n.S: Likewise.
8772         * sysdeps/mips/mips64/submul_1.S: Likewise
8773         * sysdeps/unix/mips/sysdep.S: Likewise.
8775         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8776         and update comment.  The strtab from _dl_relocate_object can be
8777         used.
8779 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8781         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8782         * iconv/iconv_close.c (iconv_close): Likewise.
8783         * iconv/iconv_open.c (iconv_open): Likewise.
8785         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8786         __builtin_expect where useful.
8788         * grp/initgroups.c (initgroups): Test for result of memory
8789         allocation and punt if it fails.
8791         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8792         * grp/fgetgrent.c (fgetfrent): Likewise.
8793         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8795 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8797         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8799 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8801         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8802         don't search for NUL byte to decrement counter.
8803         Reported by Ulrich.Brink@sap.com.
8805         * iconv/gconv_simple.c: Define separate functions to convert from
8806         UCS4/UCS4-LE to the internal encoding.
8807         * iconv/gconv_builtin.h: Use separate functions to convert from
8808         UCS4/UCS4-LE to the internal encoding.
8809         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8810         __gconv_transform_ucs4le_internal.
8812         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8813         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8815         * iconv/skeleton.c: Add some more __builtin_expect.
8816         * iconv/loop.c: Likewise.
8818 2000-03-08  H.J. Lu  <hjl@gnu.org>
8820         * posix/regex.c (regex_compile): Correctly handle "\{" when
8821         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8823 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8825         * manual/stdio.texi: Give advise about handling error when using
8826         stream functions.
8827         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8829 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8831         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8832         field to nelems * sizeof (uint32_t).
8833         * locale/programs/ld-address.c (address_output): Align word fields
8834         properly.
8835         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8836         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8837         field.
8838         Avoid giving arbitrary garbage in the crncystr field.
8839         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8840         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8841         fields.
8842         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8843         Don't restart idx pointers to idx end at the decimal_point_wc field.
8844         * locale/programs/ld-time.c (time_output): week_1stday should be
8845         word, not byte.  Align it properly.
8847 2000-04-19  H.J. Lu  <hjl@gnu.org>
8849         * csu/gmon-start.c (_start): Declared as "extern void".
8850         (etext): Likewise.
8852 2000-04-18  Andreas Jaeger  <aj@suse.de>
8854         * manual/install.texi (Running make install): Don't mention utmpd
8855         anymore.
8857 2000-04-18  Andreas Jaeger  <aj@suse.de>
8859         * linuxthreads/Versions: Use ld instead of ld.so.
8861         * elf/Makefile (ld-map): Use ld.map.
8863         * Versions.def: Use ld instead of ld.so.
8864         * elf/Versions: Likewise.
8865         * sysdeps/mach/hurd/Versions: Likewise.
8867 2000-04-20  Andreas Jaeger  <aj@suse.de>
8869         * elf/rtld.c (print_statistics): Move ifndef further up.
8870         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8871         (dl_main): Likewise.
8873 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8875         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8876         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8878         * po/cs.po: Update from translation team.
8880         * sysdeps/generic/updwtmp.c: Remove daemon support.
8882         * login/Makefile (routines): Remove utmp_daemon.
8884         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8885         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8886         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8887         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8889         * elf/rtld.c: Display statitics option also if hp timing is not
8890         available.
8892         * login/programs/connection.c: Removed.
8893         * login/programs/database.c Removed.
8894         * login/programs/error.c: Removed.
8895         * login/programs/request.c: Removed.
8896         * login/programs/xtmp.c: Removed.
8897         * login/programs/xtmp.h: Removed.
8898         * login/Makefile: Remove rules for utmpd.
8899         * login/README.utmpd: Removed.
8900         * login/utmp_daemon.c: Removed.
8901         * login/getutent_r.c: Remove references to daemon functions.
8902         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8903         declaration.
8905 2000-04-18  Andreas Jaeger  <aj@suse.de>
8907         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8908         2.2 for libnsl, libresolv, librt, libnss_*.
8910         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8912         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8914 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8916         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8917         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8918         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8919         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8920         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8921         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8922         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8923         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8924         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8925         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8926         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8927         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8928         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8929         it here.
8930         * sysdeps/unix/sysv/aix/msync.c: New file.
8931         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8932         * sysdeps/unix/sysv/aix/net/if.h: New file.
8933         * sysdeps/unix/sysv/aix/pipe.c: New file.
8934         * sysdeps/unix/sysv/aix/poll.c: New file.
8935         * sysdeps/unix/sysv/aix/rename.c: New file.
8936         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8937         * sysdeps/unix/sysv/aix/select.c: New file.
8938         * sysdeps/unix/sysv/aix/semctl.c: New file.
8939         * sysdeps/unix/sysv/aix/semget.c: New file.
8940         * sysdeps/unix/sysv/aix/semop.c: New file.
8941         * sysdeps/unix/sysv/aix/sendto.c: New file.
8942         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8943         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8944         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8945         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8946         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8947         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8948         * sysdeps/unix/sysv/aix/setsid.c: New file.
8949         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8950         * sysdeps/unix/sysv/aix/shmat.c: New file.
8951         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8952         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8953         * sysdeps/unix/sysv/aix/shmget.c: New file.
8954         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8955         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8956         * sysdeps/unix/sysv/aix/socket.c: New file.
8957         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8958         * sysdeps/unix/sysv/aix/speed.c: New file.
8959         * sysdeps/unix/sysv/aix/symlink.c: New file.
8960         * sysdeps/unix/sysv/aix/sync.c: New file.
8961         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8962         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8963         * sysdeps/unix/sysv/aix/times.c: New file.
8964         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8965         * sysdeps/unix/sysv/aix/umask.c: New file.
8966         * sysdeps/unix/sysv/aix/unlink.c: New file.
8967         * sysdeps/unix/sysv/aix/ustat.c: New file.
8968         * sysdeps/unix/sysv/aix/utimes.c: New file.
8970 2000-04-18  Andreas Jaeger  <aj@suse.de>
8972         * manual/startup.texi (Environment Access): Fix putenv prototype
8973         according to recent changes.
8974         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8975         PR libc/1692.
8977         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8978         needed.
8980 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8982         * posix/Makefile (tests): Add tst-getaddrinfo.
8983         * posix/tst-getaddrinfo.c: New file.
8985 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8987         * manual/sysinfo.texi: Document that umount2 is not widely available.
8989         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8990         signal timing is not really implemented.
8992 2000-04-17  Andreas Jaeger  <aj@suse.de>
8994         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8996 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8998         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8999         and inst_libdir.
9001 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9003         * manual/intro.texi: Change reference from System Information to
9004         System Management.
9005         * manual/users.texi: Likewise.
9006         * manual/conf.texi: Likewise.
9007         * manual/sysinfo.texi: Document mount, umount, and umount2.
9008         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9010 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9012         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
9013         Create wnumstr as well as numstr to support wide character output
9014         correctly.
9016 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
9018         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
9019         modification and move it...
9020         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9021         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9022         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9023         switch to $(LD) on sparc-linux.
9025 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9027         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9028         and setresuid from sysdep_routines.
9030 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9032         * manual/Makefile (chapters): Add resource.
9034         * manual/time.texi: Move section on resources to...
9035         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9036         and vtimes.
9037         * manual/setjmp.texi: Adjust back reference.
9038         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9040         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9041         definition.
9042         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9043         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9044         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9045         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9046         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9047         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9048         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9049         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9050         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9051         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9052         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9053         * sysdeps/unix/sysv/aix/Implies: New file.
9054         * sysdeps/unix/sysv/aix/Versions: New file.
9055         * sysdeps/unix/sysv/aix/bind.c: New file.
9056         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9057         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9058         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9059         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9060         * sysdeps/unix/sysv/aix/chdir.c: New file.
9061         * sysdeps/unix/sysv/aix/chmod.c: New file.
9062         * sysdeps/unix/sysv/aix/chroot.c: New file.
9063         * sysdeps/unix/sysv/aix/creat.c: New file.
9064         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9065         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9066         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9067         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9068         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9069         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9070         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9071         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9072         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9073         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9074         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9075         * sysdeps/unix/sysv/aix/link.c: New file.
9076         * sysdeps/unix/sysv/aix/madvise.c: New file.
9077         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9078         * sysdeps/unix/sysv/aix/mknod.c: New file.
9079         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9080         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9081         * sysdeps/unix/sysv/aix/msgget.c: New file.
9082         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9084 2000-04-17  Andreas Jaeger  <aj@suse.de>
9086         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9087         as suggested by Ulrich Drepper.
9088         (__dl_runtime_resolve): Remove unused variable, initialize sym
9089         directly.
9090         (RTLD_START): Document OFFSET_GP_GOT.
9091         (OFFSET_GP_GOT): New magic value.
9092         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9093         (elf_machine_got_rel): Only declare strtab if needed.
9094         (elf_machine_relplt): Removed, it's not needed.
9095         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9097         * sysdeps/mips/add_n.S: Add newline at EOF.
9098         * sysdeps/mips/rshift.S: Likewise.
9099         * sysdeps/mips/mul_1.S: Likewise.
9100         * sysdeps/mips/lshift.S: Likewise.
9101         * sysdeps/mips/addmul_1.S: Likewise.
9103 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9105         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9107         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9108         * elf/dl-lookup.c: Likewise.
9109         * elf/dl-init.c (_dl_init): Likewise.
9110         * elf/dl-fini.c (_dl_fini): Likewise.
9111         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9112         * elf/dl-close.c (_dl_close): Likewise.
9113         * elf/rtld.c (_dl_start_final): Likewise.
9115         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9117 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9119         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9120         only fall back on using Linux.
9122         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9123         Before testing versions check that we actually loaded the object
9124         and whether we are in trace mode.  If not loaded during tracing don't
9125         test versions in this object.
9126         (_dl_check_all_versions): Take new parameter and pass to
9127         _dl_check_map_versions.
9128         * sysdeps/generic/ldsodefs.h: Update prototypes for
9129         _dl_check_all_versions and _dl_check_map_versions.
9130         * elf/rtld.c (struct version_check_args): Add dotrace.
9131         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9132         (dl_main): Pass info about trace mode to version_check_doit.
9133         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9134         _dl_check_all_versions.
9136         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9137         and getutmpx.
9138         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9140         * manual/argp.texi: Document index parameter of argp_parse.
9141         Fix typo.
9142         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9144 2000-04-14  Andreas Jaeger  <aj@suse.de>
9146         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9147         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9149         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9151 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9153         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9154         compat_symbol call for old adjtime.
9156         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9157         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9159         * posix/Makefile (headers): Add spawn.h.
9160         (distribute): Add spawn_int.h.
9161         (routines): Add spawn_faction_init, spawn_faction_destroy,
9162         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9163         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9164         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9165         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9166         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9167         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9168         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9169         posix_spawnattr_init, posix_spawnattr_destroy,
9170         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9171         posix_spawnattr_getflags, posix_spawnattr_setflags,
9172         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9173         and posix_spawnp.
9174         * posix/spawn.c: New file.
9175         * posix/spawn.h: New file.
9176         * posix/spawn_faction_addclose.c: New file.
9177         * posix/spawn_faction_adddup2.c: New file.
9178         * posix/spawn_faction_addopen.c: New file.
9179         * posix/spawn_faction_destroy.c: New file.
9180         * posix/spawn_faction_init.c: New file.
9181         * posix/spawn_int.h: New file.
9182         * posix/spawnattr_destroy.c: New file.
9183         * posix/spawnattr_getdefault.c: New file.
9184         * posix/spawnattr_getflags.c: New file.
9185         * posix/spawnattr_getpgroup.c: New file.
9186         * posix/spawnattr_getschedparam.c: New file.
9187         * posix/spawnattr_getschedpolicy.c: New file.
9188         * posix/spawnattr_getsigmask.c: New file.
9189         * posix/spawnattr_init.c: New file.
9190         * posix/spawnattr_setdefault.c: New file.
9191         * posix/spawnattr_setflags.c: New file.
9192         * posix/spawnattr_setpgroup.c: New file.
9193         * posix/spawnattr_setschedparam.c: New file.
9194         * posix/spawnattr_setschedpolicy.c: New file.
9195         * posix/spawnattr_setsigmask.c: New file.
9196         * posix/spawni.c: New file.
9197         * posix/spawnp.c: New file.
9199         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9200         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9202 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9204         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9205         * malloc/malloc.c: Implement posix_memalign for glibc.
9206         * include/stdlib.h: Add prototype for __posix_memalign.
9207         * stdlib/stdlib.h: Add prototype for posix_memalign.
9209 2000-04-14  Andreas Jaeger  <aj@suse.de>
9211         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9212         symidx correctly.
9213         (elf_machine_got_rel): Cast sym correctly.
9215         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9216         * sysdeps/mips/addmul_1.S: Likewise.
9217         * sysdeps/mips/lshift.S: Likewise.
9218         * sysdeps/mips/mul_1.S: Likewise.
9219         * sysdeps/mips/rshift.S: Likewise.
9220         * sysdeps/mips/sub_n.S: Likewise.
9221         * sysdeps/mips/submul_1.S: Likewise.
9223         * stdlib/stdlib.h: Fix typo in comment.
9225         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9226         2.2 for libdl, ld and libm.
9228         * sysdeps/generic/madvise.c: Fix typos.
9230         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9232         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9234         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9235         warnings.
9237 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9239         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9240         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9241         Make old name weak alias.
9242         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9243         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9244         Make old name weak alias.
9245         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9247         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9248         posix_fallocate, and posix_fallocate64.
9249         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9250         posix_fallocate, and posix_fallocate64.
9251         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9252         posix_fallocate, and posix_fallocate64.
9253         * sysdeps/generic/fadvise.c: New file.
9254         * sysdeps/generic/fadvise64.c: New file.
9255         * sysdeps/generic/fallocate.c: New file.
9256         * sysdeps/generic/fallocate64.c: New file.
9257         * sysdeps/posix/fallocate.c: New file.
9258         * sysdeps/posix/fallocate64.c: New file.
9259         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9260         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9261         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9262         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9263         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9264         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9265         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9266         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9267         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9269         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9270         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9272 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9274         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9275         * misc/sys/mman.h (posix_madvise): Add prototype.
9276         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9277         old name and posix_madvise weak aliases.
9278         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9279         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9280         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9281         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9282         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9283         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9284         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9286 2000-04-13  Andreas Jaeger  <aj@suse.de>
9288         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9289         versioning.
9290         (elf_machine_got_rel): Only add runtime display if needed.
9291         (elf_machine_got_rel): Handle symbol versioning.
9293 2000-04-13  Andreas Jaeger  <aj@suse.de>
9295         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9297         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9298         default.
9300         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9301         with some applications.
9302         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9304         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9305         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9306         * sysdeps/mips/setjmp.S: Likewise.
9308         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9310 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9312         * posix/globtest.sh: Work around inconsistency with expanding ~/
9313         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9315 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9317         * posix/getconf.c: Add support for many more POSIX options.
9318         * sysdeps/posix/sysconf.c: Likewise.
9319         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9320         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9321         _POSIX_SHELL.
9322         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9323         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9324         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9325         CLOCK_THREAD_CPUTIME_ID.
9326         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9327         CLOCK_PROCESS_CPUTIME_ID.
9328         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9329         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9330         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9331         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9333         * malloc/Makefile (tests): Add tst-calloc.
9334         * malloc/tst-calloc.c: New file.
9336         * sysdeps/arm/libm-test-ulps: New file.
9338         * malloc/malloc.c: Undo all of today's changes.
9340         * locale/programs/locale.c (show_info): Don't try to look into
9341         data for LC_ALL (there is none).
9343         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9344         avoid writing over boundary.
9345         Patch by Greg McGary <gkm@eng.ascend.com>.
9347         * sysdeps/arm/memprof.h: New file.
9349 2000-04-12  Andreas Jaeger  <aj@suse.de>
9351         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9353         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9354         for memmem declaration.
9356 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9358         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9359         to -1.
9360         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9362         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9363         mode is invalid.
9364         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9365         Patch by Bart Veer <bartv@redhat.com>.
9367         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9368         function interface.
9370 2000-04-11  Andreas Jaeger  <aj@suse.de>
9372         * sysdeps/mips/dl-machine.h: Update some comments.
9373         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9375 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9377         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9378         _POSIX_SHARED_MEMORY_OBJECTS.
9380         * rt/Makefile (tests): Add tst-shm.
9381         Add rules to generate tst-shm.
9382         * rt/tst-shm.c: New file.
9384         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9385         for descriptor.
9387         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9388         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9389         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9390         * sysdeps/generic/shm_open.c: New file.
9391         * sysdeps/generic/shm_unlink.c: New file.
9392         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9393         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9394         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9395          __endmntent, __getmntent_r, __setmntent, and __statfs.
9397         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9398         fragmentation by allocating new memory at the end instead of
9399         reallocating.
9401         * posix/globtest.sh: Fix last change.
9403 2000-04-10  Philip Blundell  <philb@gnu.org>
9405         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9406         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9407         IPV6_DROP_MEMBERSHIP.
9408         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9409         Likewise.
9411 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9413         * elf/readlib (process_file): Close streams in case of an error.
9415 2000-04-09  Andreas Jaeger  <aj@suse.de>
9417         * elf/readlib.c (process_file): Check if file is big enough to
9418         contain aout and ELF headers.
9419         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9421 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9423         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9425 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9427         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9428         stream unbuffered.
9429         * rt/Makefile (tests): Add tst-clock.
9430         Add rules to build tst-clock.
9431         * rt/tst-clock.c: New file.
9432         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9433         about initialization of nsec.
9434         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9435         about initialization of freq.  Set retval to zero if successful.
9436         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9438 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9440         * Versions.def (librt): Add GLIBC_2.2.
9441         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9442         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9443         timer_getoverr, timer_gettime, and timer_settime.
9444         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9445         clock_settime, timer_create, timer_delete, timer_getoverrun,
9446         timer_gettime, and timer_settime.
9447         * sysdeps/generic/clock_getcpuclockid.c: New file.
9448         * sysdeps/generic/get_clockfreq.c: New file.
9449         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9450         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9451         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9452         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9453         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9454         * sysdeps/unix/i386/i686/Implies: New file.
9455         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9456         * time/Makefile (routines): Move clock_getres, clock_gettime,
9457         clock_settime, timer_create, timer_delete, timer_getoverr,
9458         timer_gettime, and timer_settime to rt/Makefile.
9459         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9460         clock_settime, timer_create, timer_delete, timer_getoverrun,
9461         timer_gettime, and timer_settime.
9462         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9464         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9465         and not const as attribute name.
9467 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9469         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9471 2000-04-10  Andreas Schwab  <schwab@suse.de>
9473         * posix/globtest.sh: Skip tests that depend on unreadable
9474         directories if run as root.
9476 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9478         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9479         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9481 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9483         * sysdeps/unix/clock_gettime.c: New file.
9484         * sysdeps/unix/clock_settime.c: New file.
9485         * sysdeps/posix/clock_getres.c: New file.
9487         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9489         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9490         lseek call be passing in a buffer which never allow a successful
9491         first getdents syscall if not at leas the initial entry can be
9492         stored in the user buffer.
9494         * localedata/Makefile: Add rules to clean up directories created by
9495         new strfmon tests.
9497 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9499         * localedata/tst-fmon.data: Added new tests for strfmon()
9500         using test locales with all combinations of cs_precedes,
9501         sign_posn and sep_by_space.
9502         * localedata/tst-fmon.sh: Updated to support the new tests.
9503         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9504         the localedef source for the new strfmon() test locale.
9505         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9506         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9507         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9508         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9509         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9510         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9511         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9512         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9513         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9514         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9515         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9516         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9517         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9518         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9520         * stdlib/strfmon.c: Correct problems with missing or extra
9521         spaces for unusual combinations of sign_posn and sep_by_space.
9522         Improved left-precision alignment code.
9524 2000-04-07  Andreas Jaeger  <aj@suse.de>
9526         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9528 2000-04-10  Andreas Jaeger  <aj@suse.de>
9530         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9532 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9534         Implement handling of restartable conversion functions according to
9535         ISO C.
9536         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9537         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9538         * iconv/gconv.c: Pass additional parameter to conversion function.
9539         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9540         (internal_ucs4le_loop_single): New function.
9541         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9542         (__gconv_transform_internal_ascii): Likewise.
9543         (__gconv_transform_internal_utf8): Likewise.
9544         (__gconv_transform_utf8_internal): Likewise.
9545         (__gconv_transform_ucs2_internal): Likewise.
9546         (__gconv_transform_internal_ucs2): Likewise.
9547         (__gconv_transform_ucs2reverse_internal): Likewise.
9548         (__gconv_transform_internal_ucs2reverse): Likewise.
9549         (internal_ucs4le_loop_unaligned): Before return
9550         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9551         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9552         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9553         * iconv/loop.c: Fit in definition of function to convert one character
9554         for processing of left-over bytes from the state object.
9555         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9556         inend to match names in loop functions.
9557         (RESET_INPUT_BUFFER): Change apprpriately.
9558         (gconv): If needed, call function to process bytes from the state
9559         object.  Similar at the end: store left over bytes if input is
9560         incomplete.
9561         Take extra argument and add new argument to all calls of the
9562         conversion function.
9563         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9564         information in the state object to not conflict with length count.
9565         * iconvdata/iso-2022-jp.c: Likewise.
9566         * iconvdata/iso-2022-kr.c: Likewise.
9567         * iconvdata/unicode.c: Adjust for change change in parameters of
9568         skeleton function.
9569         * iconvdata/utf-16.c: Likewise.
9570         * libio/iofwide.c: Add new parameter to all calls of conversion
9571         function.
9572         * wcsmbs/btowc.c: Likewise.
9573         * wcsmbs/mbrtowc.c: Likewise.
9574         * wcsmbs/mbsnrtowcs.c: Likewise.
9575         * wcsmbs/mbsrtowcs.c: Likewise.
9576         * wcsmbs/wcrtomb.c: Likewise.
9577         * wcsmbs/wcsnrtombs.c: Likewise.
9578         * wcsmbs/wcsrtombs.c: Likewise.
9579         * wcsmbs/wctob.c: Likewise.
9581         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9582         MAX_NEEDED_INPUT.
9584 2000-04-07  Andreas Jaeger  <aj@suse.de>
9586         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9587         newer kernels.
9589 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9591         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9592         element a union to allow byte access.
9593         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9594         mbstate_t.
9595         * iconvdata/iso-2022-jp.c: Likewise.
9596         * iconvdata/iso-2022-kr.c: Likewise.
9597         * wcsmbs/mbsinit.c: Likewise.
9598         * stdlib/mblen.c: Likewise.
9599         * stdio-common/printf-parse.h: Likewise.
9601 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9603         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9604         kernel does not allow relative seeks on descriptors associated
9605         with directories.  Go back to get the position in the directory
9606         every time we enter the function.  Return -1 and set errno if one
9607         entry could be read from the kernel but does not fit into the
9608         buffer passed in by the user.
9610         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9611         Support ..(2).. ellipsis.
9612         (parse_charmap): Recognize ..(2).. etc and pass step down.
9613         Correctly generate names for UCS4 characters.
9615         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9616         (ctype_finish): We know the wide character value for <SP>,
9617         don't search.
9618         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9619         (charclass_ucs4_ellipsis): Likewise.
9620         (read_translit_ignore_entry): Store ellipsis step.
9621         (ctype_read): Recognize ..(2).. etc and pass step down.
9623         * locale/programs/linereader.c (lr_token): When seeing comment
9624         character ignore only rest of line in sources but stop at escaped
9625         newline.
9626         Recognize ..(2).. and ....(2).....
9628         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9629         and tok_ellipsis4_2.
9631 2000-04-06  Andreas Jaeger  <aj@suse.de>
9633         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9634         removed, remove it here also.
9635         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9636         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9637         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9638         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9640 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9642         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9643         include bits/sigcontext.h.
9644         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9646 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9648         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9649         collation symbol definition.  Value in quivalence definition must
9650         be defined, don't check that it is not.
9652         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9653         values as character names.
9655         * locale/programs/ld-ctype.c (get_character): Handle missing
9656         repertoire map correctly.
9658 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9660         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9661         because it is used in generic code.
9662         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9663         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9664         * intl/gettext.c: Include <locale.h>.
9665         * intl/ngettext.c: Likewise.
9667 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9669         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9670         socklen_t type for size.
9671         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9672         init function interface.
9673         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9674         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9675         sys/ucontext.h.
9676         (__jmp_buf): Declare the whole type structure here, don't use
9677         ucontext.
9679 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9681         * iconv/skeleton.c (put16u): Fix typo.
9682         Reported by Bruno Haible <haible@ilog.fr>.
9684         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9685         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9686         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9687         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9688         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9689         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9691         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9692         * Makefile (distribute): Add abi-versions.awk and
9693         firstversions.awk.
9694         Patches by Torsten Duwe <duwe@caldera.de>.
9696 2000-04-05  Andreas Schwab  <schwab@suse.de>
9698         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9700 2000-04-05  Andreas Schwab  <schwab@suse.de>
9702         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9703         entry point, used on Hurd.
9705 2000-04-04  Andreas Jaeger  <aj@suse.de>
9707         * intl/Makefile: Only run the gettext test with shared libraries.
9709 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9711         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9712         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9714 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9716         * Makeconfig: Undo last change.
9717         * configure.in: If --disable-shared was given, don't set VERSIONING,
9718         don't define DO_VERSIONING, and don't give scare warning for no
9719         versioning.
9720         * configure: Regenerated.
9722 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9724         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9726 2000-04-04  Andreas Jaeger  <aj@suse.de>
9728         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9730 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9732         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9733         STV_HIDDEN and STV_INTERNAL during lookup.
9734         (profile_fixup): Likewise.
9735         * elf/dl-reloc.c (RESOLVE): Likewise.
9737         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9738         unaligned so that it compiles for system which need unaligned
9739         access handling.
9741 2000-04-04  Andreas Schwab  <schwab@suse.de>
9743         * elf/cache.c (print_entry): Only look at the type field when
9744         printing the type.
9746 2000-04-04  Andreas Schwab  <schwab@suse.de>
9748         * iconvdata/big5.c (BODY): Fix typo.
9750 2000-04-04  Andreas Schwab  <schwab@suse.de>
9752         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9753         function interface.  Remove unused _dl_start_user entry point.
9755 2000-04-03  Andreas Jaeger  <aj@suse.de>
9757         * include/arpa/inet.h (__inet_aton): Add protoype.
9759 2000-04-01  Andreas Jaeger  <aj@suse.de>
9761         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9763         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9764         * sysdeps/mach/mips/thread_state.h: Likewise.
9766         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9767         * sysdeps/generic/fegetenv.c: Likewise.
9768         * sysdeps/generic/fesetenv.c: Likewise.
9769         * sysdeps/generic/feupdateenv.c: Likewise.
9770         * sysdeps/generic/fraiseexcpt.c: Likewise.
9771         * sysdeps/generic/fsetexcptflg.c: Likewise.
9772         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9773         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9774         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9775         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9777 2000-04-02  H.J. Lu  <hjl@gnu.org>
9779         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9781 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9783         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9784         (add_name_to_object): Add cast in malloc call.
9785         (fillin_rpath): Optimize loop to initialize ->status a bit.
9787         * sysdeps/i386/dl-machine.h: Undo last change.
9788         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9789         Restore %edx register after call here.
9791         * sysdeps/arm/atomicity.h: New file.
9792         Contributed by Jesper Skov <jskov@redhat.com>.
9794 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9796         * Makeconfig (preprocess-versions): Undo last change.
9797         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9799         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9800         here, before we might move the stack.
9801         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9802         (init1): And not here.
9804         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9805         change, to restore argc value in call-clobbered register after
9806         RTLD_START_SPECIAL_INIT, which will contain a call.
9808         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9809         allocating and initializing L->l_initfini.
9811         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9813 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9815         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9816         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9817         (open_path): Change type of fourth parameter.  Make pointer to array
9818         of pointers.  Create variable dirs with original type.
9819         Track whether any directory for the object exists and if not,
9820         change *DIRSP to (void*) -1 to signal there is no such search path.
9821         (_dl_map_object): Change all calls of open_path.
9822         Rewrite decompose_rpath calls.
9824 2000-03-31  Andreas Schwab  <schwab@suse.de>
9826         * string/strfry.c: Declare STATE as array of char instead of int
9827         and do not initialize it (done by initstate_r).  Pass correct
9828         size.
9830 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9832         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9834         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9835         instruction out of the code.
9837 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9839         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9840         element at this position.
9842         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9843         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9844         l_reldeps elements.
9845         * elf/dl-lookup.c (add_dependency): New function.
9846         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9847         dynamically loaded object.
9848         (_dl_lookup_symbol_skip): Likewise.
9849         (_dl_lookup_versioned_symbol): Likewise.
9850         (_dl_lookup_versioned_symbol_skip): Likewise.
9851         * elf/dl-open.c: Don't define _dl_load_lock here...
9852         * elf/rtld.c: ...but here...
9853         * elf/dl-support.c: ...and here.
9854         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9855         through relocation.
9856         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9857         relocations.
9858         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9859         anymore.
9860         * dlfcn/glrefmain.c: Add one more debug message.
9862         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9863         command line.
9864         * Makerules (sysd-versions): Use ( ) instead of { }.
9866         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9867         optimize for the non-debugging case.
9868         * elf/dl-lookup.c: Likewise.
9869         * sysdeps/generic/libc-start.c: Likewise.
9871 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9873         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9874         (init1): Don't initialize __environ here, since init already does it.
9875         (first_init): New function, broken out of _init.
9876         (_hurd_stack_setup): Use it.
9877         [SHARED] (_dl_init_first): New function, renamed from old _init.
9878         (init1) [SHARED]: Don't call posixland_init here.
9879         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9880         [SHARED] (_init): Define as alias for posixland_init.
9881         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9882         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9883         RTLD_START_SPECIAL_INIT before calling initializers.
9884         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9885         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9886         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9887         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9889         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9890         since we define the function with the name `tmpfile'.
9892         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9893         * hurd/Versions: Likewise.
9895 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9897         * elf/dl-runtime.c (fixup): Fix typo in comment.
9899         * resolv/netdb.h (getnameinfo): All length parameters are of type
9900         socklen_t.
9901         * inet/getnameinfo.c: Likewise.
9903 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9905         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9906         (gethostname): Change type of second parameter to socklen_t.
9907         * include/unistd.h (__gethostname): Change type of second
9908         parameter to socklen_t.
9909         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9910         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9911         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9912         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9913         Likewise.
9914         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9915         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9916         Allow definition elsewhere.
9917         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9918         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9919         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9920         * sysdeps/generic/bits/types.h: Define __socklen_t.
9921         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9922         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9923         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9924         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9925         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9926         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9927         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9929         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9930         (inet_lnaof): Likewise.
9931         (inet_netof): Likewise.
9932         (inet_network): Likewise.
9933         (inet_aton): Likewise.
9934         (inet_makeaddr): Change parameter types to in_addr_t.
9935         (inet_neta): Likewise.
9936         (inet_ntop): Change type of last parameter to socklen_t.
9937         (inet_aton): Only make available if __USE_MISC.
9938         (inet_neta): Likewise.
9939         (inet_net_ntop): Likewise.
9940         (inet_net_pton): Likewise.
9941         (inet_nsap_ntoa): Likewise.
9943         * inet/in.h: Define in_port_t type.
9944         Define in_addr_t type.
9945         (struct in_addr): Use in_addr_t in definition.
9946         (IN_CLASSA): Use cast to in_addr_t.
9947         (IN_CLASSB): Likewise.
9948         (IN_CLASSC): Likewise.
9949         (IN_CLASSD): Likewise.
9950         (IN_EXPERIMENTAL): Likewise.
9951         (IN_BADCLASS): Likewise.
9952         (INADDR_ANY): Likewise.
9953         (INADDR_BROADCAST): Likewise.
9954         (INADDR_NONE): Likewise.
9955         (INADDR_LOOPBACK): Likewise.
9956         (INADDR_UNSPEC_GROUP): Likewise.
9957         (INADDR_ALLHOSTS_GROUP): Likewise.
9958         (INADDR_ALLRTRS_GROUP): Likewise.
9959         (INADDR_MAX_LOCAL_GROUP): Likewise.
9960         (struct sockaddr_in): Use in_port_t for sin_port element.
9961         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9962         Use uint8_t instead of u_int8_t.
9964         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9965         Call __inet_aton instead of inet_aton.
9966         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9968         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9969         (innetgr): Likewise.
9970         (struct addrinfo): Use socklen_t for ai_addrlen element.
9972         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9973         IPV6_RECVERR): New defines.
9975         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9976         * inet/getnetbyad.c: Likewise.
9977         * inet/getnetbyad_r.c: Likewise.
9978         * nis/nss_nis/nis-network.c: Likewise.
9979         * nis/nssplus_nis/nisplus-network.c: Likewise.
9980         * nss/nss_files/files-network.c: Likewise.
9981         * resolv/netdb.h: Define uint32_t if not already happened.
9982         Include bits/netdb.h.  Remove definition of struct netent.
9983         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9984         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9985         * sysdeps/generic/bits/netdb.h: New file.
9986         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9988         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9989         (tests): Add glrefmain.
9990         Add rules to build modules and run tests.  Ignore result of glrefmain
9991         for now since it fails.
9992         * dlfcn/glrefmain.c: New file.
9993         * dlfcn/glreflib1.c: New file.
9994         * dlfcn/glreflib2.c: New file.
9996         * test-skeleton.c: Include <string.h> for strsignal prototype.
9998         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9999         to be missing.
10001         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
10002         former init-first.h.  Initialize __libc_multiple_libcs.
10004 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10006         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
10007         #if expression for use of unaligned function to the one used in
10008         the definition of these functions.
10009         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
10010         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
10011         (internal_ucs4le_loop_unaligned): New function.
10013         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
10014         (tests): Add order.
10015         (module-names): Add dep1, dep2, dep3, and dep4.
10016         Add dependencies for dep* modules and order.
10017         Define rule for order.out which checks the result.
10018         * elf/dep1.c: New file.
10019         * elf/dep2.c: New file.
10020         * elf/dep3.c: New file.
10021         * elf/dep4.c: New file.
10022         * elf/order.c: New file.
10024         * elf/dl-init.c: Fix typo in comment.
10026 2000-03-31  Andreas Jaeger  <aj@suse.de>
10028         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10029         init function interface.
10030         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10032 2000-03-31  Andreas Jaeger  <aj@suse.de>
10034         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10035         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10036         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10037         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10038         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10040         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10041         anymore, update comment.
10043         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10045         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10046         SHLIB_COMPAT - the struct is always needed.
10048 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10050         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10051         * elf/dl-support.c: Define _dl_starting_up.
10053 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10055         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10056         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10058         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10060         * elf/Makefile (dl-routines): Remove preinit.
10061         * elf/Versions: Remove _dl_preinit.
10062         * elf/dl-preinit.c: Removed.  Move content into...
10063         * elf/dl-init.c: ...here.
10064         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10066         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10067         elements.
10069 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10071         * stdlib/strfmon.c: Corrected problems with the code that
10072         sets default values for [np]_sep_by_space and
10073         [np]_sign_posn; also the new positive/negative alignment
10074         code from the previous patch was not quite right for
10075         [np]_sign_posn = 0.
10077         * localedata/tst-fmon.data: Changes corresponding to the
10078         two sets of fixes made to stdlib/strfmon.c.
10080 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10082         * malloc/malloc.c: Declare bit flags UL so that they will not
10083         default to int size when being inverted.
10085 2000-03-29  Andreas Jaeger  <aj@suse.de>
10087         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10088         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10090 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10091             Ralf Baechle <ralf@uni-koblenz.de>
10093         * Makeconfig: Introduce new variable SHARED to mark code used in
10094         the shared library.
10095         * elf/dl-close.c: Use it instead of PIC.
10096         * elf/dl-load.c: Likewise.
10097         * elf/dl-open.c: Likewise.
10098         * hurd/geteuids.c: Likewise.
10099         * include/libc-symbols.h: Likewise.
10100         * include/shlib-compat.h: Likewise.
10101         * libio/freopen.c: Likewise.
10102         * linuxthreads/cancel.c: Likewise.
10103         * linuxthreads/pthread.c: Likewise.
10104         * linuxthreads/wrapsyscall.c: Likewise.
10105         * nss/nsswitch.c: Likewise.
10106         * stdio-common/vfprintf.c: Likewise.
10107         * sysdeps/arm/init-first.c: Likewise.
10108         * sysdeps/i386/init-first.c: Likewise
10109         * sysdeps/generic/init-first.c: Likewise.
10110         * sysdeps/generic/libc-start.c: Likewise.
10111         * sysdeps/mips/init-first.c: Likewise.
10112         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10113         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10114         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10115         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10116         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10118         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10120 2000-03-29  Andreas Jaeger  <aj@suse.de>
10122         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10123         Use D_PTR to access relocated entries in l_info.
10124         (elf_machine_rela): Likewise.
10126         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10127         Likewise.
10128         (elf_machine_rela): Likewise.
10130         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10131         Likewise.
10132         (__elf_machine_fixup_plt): Likewise.
10133         (__process_machine_rela): Likewise.
10135         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10136         (elf_machine_rela): Likewise.
10138         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10139         (elf_machine_rel): Likewise.
10141         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10142         (elf_machine_fixup_plt): Likewise.
10143         (elf_machine_rela): Likewise.
10145 2000-03-29  Andreas Jaeger  <aj@suse.de>
10147         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10148         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10149         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10150         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10151         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10152         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10153         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10154         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10155         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10156         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10157         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10158         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10159         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10160         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10161         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10163         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10164         macros, remove K&R prototypes.
10166 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10168         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10169         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10170         (PR libc/1677).
10172 2000-03-30  Andreas Jaeger  <aj@suse.de>
10174         * misc/sys/cdefs.h: Remove K&R support.
10176 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10178         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10179         more cases.
10180         * iconv/loop.c: Likewise.
10182 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10184         * iconv/loop.c (put16): Remove __const. Fix access index.
10185         (put32): Remove __const. Use uint32_t instead of uint16_t.
10186         * iconv/skeleton.c: Likewise.
10188 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10190         * mach/Versions (libc: GLIBC_2.0)
10191         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10192         __vm_allocate on this.
10193         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10194         mutex- and spinlock-related symbols on this.
10195         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10196         New version set.  Lock-related symbols go here instead in this case.
10197         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10198         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10199         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10200         * hurd/Versions
10201         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10202         Put them here instead.
10203         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10204         New version set.  Those cthreads symbols go here instead in this case.
10205         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10207 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10209         * elf/dl-init.c (_dl_init): We don't need to call constructors
10210         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10212         Implement dynamic determination of constructor/destructor order in
10213         the dynamic linker.
10214         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10215         (GLIBC_2.2): Add _dl_init.
10216         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10217         r_duplist is not anymore allocated separately.  l_initfini is and
10218         therefore free it if necessary.
10219         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10220         malloc block.  Otherwise allocate l_initfini list only.
10221         Put dependencies for the object in l_initfini list.
10222         Sort dependencies for the object to be loaded topologically.
10223         * elf/dl-fini.c: Before running the destructors sort the topologically.
10224         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10225         call constructors instead of iterating over the pointers.  Get list of
10226         objects for which to run constructors from l_initfini element. Accept
10227         argc, argv, and env as parameters and pass them to the constructors.
10228         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10229         with size of dynamic section.
10230         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10231         _dl_init_next and calling constructors ourself.
10232         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10233         Take argc, argv, and env as parameters and pass them to the
10234         constructors.  Rewrite to call all constructors and not iterate over
10235         the pointers.
10236         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10237         precompute l_initcount and l_preinitcount.
10238         * elf/link.h (struct link_map): Add l_ldnum member.
10239         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10240         l_initcount, and l_preinitcount.  Add l_initfini.
10241         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10242         one for _dl_init.
10243         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10244         function interface.
10245         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10246         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10247         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10248         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10249         conventions now match.
10251         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10252         effect for shared objects.  Don't emit message and call only for
10253         static library.
10255 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10257         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10258         CSA_Z243.4-1985-1..UCS2.
10259         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10260         ISO-8859-10..UCS2.
10262 2000-03-29  Andreas Jaeger  <aj@suse.de>
10264         * include/unistd.h: Remove duplicate entry for __rmdir.
10265         Remove declaration of __mkdir since __mkdir is declared in
10266         sys/stat.h.
10268         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10269         by Michael Deutschmann <michael@talamasca.ocis.net>.
10271         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10272         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10273         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10274         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10275         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10277 2000-03-28  Andreas Jaeger  <aj@suse.de>
10279         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10280         declaration, the prototype is defined via bits/mathcalls.h.
10281         (__sincosf): Likewise.
10282         (__sincosl): Likewise.
10283         (ldexp): Likewise.
10284         (ldexpf): Likewise.
10285         (ldexpl): Likewise.
10286         (__finite): Likewise.
10287         (__inline_mathcodeNP): New macro without prototype
10288         declarations.
10289         (__inline_mathcodeNP2): Likewise.
10290         (__inline_mathcodeNP3): Likewise.
10291         (__inline_mathcodeNP_): Likewise.
10292         (__inline_mathcodeNP2_): Likewise.
10293         (__inline_mathcodeNP3_): Likewise.
10294         (__inline_mathopNP): Likewise.
10295         (__inline_mathop_declNP): Likewise.
10296         (__inline_mathop_declNP_): Likewise.
10297         (__inline_mathcode_): Use __inline_mathcodeNP_.
10298         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10299         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10300         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10301         (__expm1l): Don't define prototype, the prototype is defined via
10302         bits/mathcalls.h.
10303         (exp): Likewise.
10304         (__expl): Likewise.
10305         (tan): Likewise.
10306         (atan2): Likewise.
10307         (__atan2l): Likewise.
10308         (fmod): Likewise.
10309         (pow): Likewise.
10310         (fabsf): Likewise.
10311         (fabsl): Likewise.
10312         (__fabsl): Likewise.
10313         (asin): Likewise.
10314         (acos): Likewise.
10315         (sinh): Likewise.
10316         (cosh): Likewise.
10317         (tanh): Likewise.
10318         (floor): Likewise.
10319         (ceil): Likewise.
10320         (expm1): Likewise.
10321         (log1p): Likewise.
10322         (asinh): Likewise.
10323         (acosh): Likewise.
10324         (atanh): Likewise.
10325         (hypot): Likewise.
10326         (logb): Likewise.
10327         (fma): Likewise.
10328         (drem): Likewise.
10329         (sqrt): Likewise.
10330         (__sqrtl): Likewise.
10331         (sin): Likewise.
10332         (cos): Likewise.
10333         (atan): Likewise.
10334         (log): Likewise.
10335         (log10): Likewise.
10336         (asinh): Likewise.
10337         (log2): Likewise.
10338         (rint): Likewise.
10340 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10342         * Makerules: If make variable md5 is defined to yes after
10343         generating dependencies generate MD5 sum for the object.
10345         * iconv/gconv_builtin.h: Fix length in transformation definition
10346         for UNICODEBIG.
10348         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10350         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10351         allow as well reading from/writing to unaligned addresses on machines
10352         which don't support this in hardware.  Use FCTNAME macro to define
10353         function name.  Include the file a second time for platforms which
10354         need special unaligned handling.
10355         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10356         to access potentially unaligned addresses.  These macros are intended
10357         to be used only outside the loops.
10358         (unaligned): New definition.  In case the machine can handle unaligned
10359         access define as zero.  Otherwise as a variable which is initialized
10360         as nonzero in case the buffer passed in at runtime is unaligned with
10361         respect to the character set encoding involved.
10362         Call aligned or unaligned looop functions according to unaligned
10363         variable.
10364         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10365         of direct casting pointer to potentially handle unaligned memory
10366         accesses.
10367         * iconvdata/8bit-generic.c: Likewise.
10368         * iconvdata/ansi_x3.110.c: Likewise.
10369         * iconvdata/big5.c: Likewise.
10370         * iconvdata/euc-cn.c: Likewise.
10371         * iconvdata/euc-jp.c: Likewise.
10372         * iconvdata/euc-kr.c: Likewise.
10373         * iconvdata/euc-tw.c: Likewise.
10374         * iconvdata/gbk.c: Likewise.
10375         * iconvdata/iso-2022-cn.c: Likewise.
10376         * iconvdata/iso-2022-jp.c: Likewise.
10377         * iconvdata/iso-2022-kr.c: Likewise.
10378         * iconvdata/iso646.c: Likewise.
10379         * iconvdata/iso_6937-2.c: Likewise.
10380         * iconvdata/iso_6937.c: Likewise.
10381         * iconvdata/johab.c: Likewise.
10382         * iconvdata/sjis.c: Likewise.
10383         * iconvdata/t.61.c: Likewise.
10384         * iconvdata/uhc.c: Likewise.
10385         * iconvdata/unicode.c: Likewise.
10386         * iconvdata/utf-16.c: Likewise.
10388         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10389         prototypes.
10391         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10392         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10393         public.
10394         * malloc/mcheck.h (mcheck_check_all): Declare.
10396         * stdio-common/Makefile (tests): Add tst-obprintf.
10398 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10400         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10401         Declare pthread_sigmask.
10403         * csu/version.c: Add 2000 to copyright years.
10404         Remove Emacs local variables section.
10406 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10408         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10409         __gconv_transform_internal_ucs2little): Remove declarations.
10410         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10411         __gconv_transform_internal_ucs2): Never need to bswap_16.
10412         (__gconv_transform_ucs2reverse_internal,
10413         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10415 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10417         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10418         obsoleting version not being defined at all, in which case the
10419         result is always true.
10421         * Makeconfig (preprocess-versions): New canned sequence for running
10422         cpp on shlib-versions and the like.
10423         (soversions.i): Use it.
10424         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10425         Versions.def and Versions files.
10427 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10429         * stdio-common/tst-obprintf.c (main): Add another check to see
10430         obstack_printf handling all possible beginnings of the block
10431         inside an obstack chunk.
10433         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10434         install mcheck handler.
10436         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10437         handling problem.
10439 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10441         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10443         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10444         on [HAVE_ELF && DO_VERSIONING].
10446 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10448         * stdio-common/tst-obprintf.c: New file.
10450 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10452         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10453         _IO_OVERFLOW directly instead through __overflow.
10455         * locale/programs/localedef.c (construct_output_path): If path
10456         contains a / compute the end of the directory name correctly.
10458         * include/features.h: Undef and document __USE_XOPEN2K.
10460         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10461         whenever a function is called.  Initiated by calling mcheck_pedantic
10462         instead of mcheck.
10463         * malloc/mcheck.h: Declare mcheck_pedantic.
10464         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10465         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10466         for now.
10468 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10470         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10471         * dlfcn/dlopenold.c: Likewise.
10472         * nss/getXXbyYY_r.c: Likewise.
10473         * nss/getXXent_r.c: Likewise.
10474         * hurd/hurdinit.c: Likewise.
10475         * hurd/compat-20.c: Likewise.
10476         * libio/oldiofopen.c: Likewise.
10477         * libio/oldiofclose.c: Likewise.
10478         * libio/oldiofdopen.c: Likewise.
10479         * libio/oldfileops.c: Likewise.
10480         * libio/oldstdfiles.c: Likewise.
10481         * libio/oldiofsetpos.c: Likewise.
10482         * libio/oldiofgetpos.c: Likewise.
10483         * libio/oldiofgetpos64.c: Likewise.
10484         * libio/oldiofsetpos64.c: Likewise.
10485         * libio/oldiopopen.c: Likewise.
10486         * libio/oldpclose.c: Likewise.
10487         * libio/oldtmpfile.c: Likewise.
10488         * libio/freopen.c (freopen): Likewise.
10489         * libio/iofclose.c (_IO_new_fclose): Likewise.
10491         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10492         (reboot): Declare it.
10494         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10496         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10498         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10500         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10501         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10502         We need this for the sbrk decl, which can be included without Unix98.
10504 2000-03-20  Richard Henderson  <rth@cygnus.com>
10506         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10507         argument to yperr2nss is an int, not size_t.
10508         * posix/regex.c (print_partial_compiled_pattern): Cast all
10509         ptrdiff_t to long for printing.
10510         (print_compiled_pattern): Use Z for printing size_t.
10511         * posix/testfnm.c (tests): Avoid trigraphs.
10512         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10513         Use a C comment, not an assembly comment.
10515         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10516         of __ASSUME_32BITUIDS.
10518 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10520         * libio/iofopncook.c: Remove K&R prototypes.
10522 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10524         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10525         an initial value of 1024 instead of RLIM_INFINITY.
10527         * Versions.def (libmachuser, libhurduser): Remove these sections,
10528         since these libraries do not presently use symbol versions.
10530         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10531         is RLIM_INFINITY, return -1 instead.
10533 2000-03-24  Andreas Jaeger  <aj@suse.de>
10535         * Makefile (postclean): Added soversions.i.
10537 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10539         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10540         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10541         and _FPU_IEEE.  Change _FPU_RESERVED.
10543 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10545         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10547 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10549         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10550         (gaih_inet): Remove unused duplicate variable.
10552         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10553         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10554         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10555         only flavors supported by this function anyway.
10557 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10559         * stdlib/strfmon.c: Corrected problems with missing signs and
10560         missing or extra spaces; allow for sign strings longer than
10561         one character; add padding to ensure positive and negative
10562         formats are aligned when a left precision is used.
10564 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10566         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10567         Patch by John Mizel <John.Mizel@msdw.com>.
10569 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10571         * manual/install.texi: Remove references to crypt add-on.
10573 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10575         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10576         section while taking the _hurd_rlimit_lock.
10577         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10579 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10581         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10582         using $(LN_S).
10584         * sysdeps/mach/hurd/if_index.c: New file.
10586         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10587         * sysdeps/gnu/net/if.h: here.
10588         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10589         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10590         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10591         functions and `struct if_nameindex' type.
10592         * socket/Makefile (headers): Add net/if.h here.
10593         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10594         * sysdeps/mach/hurd/Dist: Remove it here.
10595         * sysdeps/unix/sysv/linux/Dist: And here.
10596         * sysdeps/generic/if_index.c: Include <net/if.h>.
10598 2000-03-24  Andreas Jaeger  <aj@suse.de>
10600         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10601         access relocated entries in l_info.
10602         (elf_machine_got_rel): Likewise.
10603         (elf_machine_runtime_setup): Likewise.
10604         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10605         (elf_machine_runtime_setup): Likewise.
10606         (__dl_runtime_resolve): Likewise.
10608 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10610         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10611         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10612         according to RFC 2553.
10613         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10614         * inet/getnameinfo.c: Likewise.
10615         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10617 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10619         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10620         Remove no-op pointer increment.
10622 2000-03-23  Andreas Jaeger  <aj@suse.de>
10624         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10625         follow change for libio.h from 2000-03-10.
10627 2000-03-23  Andreas Jaeger  <aj@suse.de>
10629         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10630         change.
10631         * elf/dl-debug.c: Likewise.
10632         * elf/dl-deps.c: Likewise.
10633         * elf/dl-error.c: Likewise.
10634         * elf/dl-fini.c: Likewise.
10635         * elf/dl-init.c: Likewise.
10636         * elf/dl-load.c: Likewise.
10637         * elf/dl-lookup.c: Likewise.
10638         * elf/dl-minimal.c: Likewise.
10639         * elf/dl-object.c: Likewise.
10640         * elf/dl-open.c: Likewise.
10641         * elf/dl-preinit.c: Likewise.
10642         * elf/dl-profile.c: Likewise.
10643         * elf/dl-profstub.c: Likewise.
10644         * elf/dl-reloc.c: Likewise.
10645         * elf/dl-runtime.c: Likewise.
10646         * elf/dl-support.c: Likewise.
10647         * elf/dl-symbol.c: Likewise.
10648         * elf/dl-version.c: Likewise.
10649         * elf/rtld.c: Likewise.
10650         * elf/sprof.c: Likewise.
10651         * sysdeps/generic/dl-cache.c: Likewise.
10652         * sysdeps/generic/dl-origin.c: Likewise.
10653         * sysdeps/generic/dl-sysdep.c: Likewise.
10654         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10655         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10656         * sysdeps/generic/libc-start.c: Likewise.
10657         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10658         * sysdeps/powerpc/dl-machine.c: Likewise.
10659         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10660         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10661         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10662         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10664         * elf/ldsodefs.h: Move file to ...
10665         * sysdeps/generic/ldsodefs.h: ... here.
10667         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10669         * sysdeps/mips/elf/ldsodefs.h: New file.
10671         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10672         entries in l_info.
10673         (_dl_check_map_versions): Likewise.
10674         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10675         * elf/dl-load.c (_dl_init_paths): Likewise.
10676         (_dl_map_object): Likewise.
10677         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10678         (elf_get_dynamic_info): Likewise.
10679         * elf/do-lookup.h (FCT): Likewise.
10680         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10681         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10682         * elf/dl-addr.c (_dl_addr): Likewise.
10683         * elf/dl-runtime.c (profile_fixup): Likewise.
10684         (fixup): Likewise.
10685         * elf/dl-init.c (_dl_init_next): Likewise.
10686         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10687         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10688         (DISTINGUISH_LIB_VERSIONS): Likewise.
10689         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10690         (elf_machine_rel): Likewise.
10692         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10693         for writable dynamic section.
10695 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10697         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10698         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10700 2000-03-22  Andreas Jaeger  <aj@suse.de>
10702         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10703         from latest Linux kernel.
10705 2000-03-21  Andreas Jaeger  <aj@suse.de>
10707         * Versions.def: Add version 2.1.4.
10709 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10711         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10712         * libio/oldiofopen.c: Likewise.
10713         * libio/oldiofclose.c: Likewise.
10714         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10716 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10718         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10719         indicating the first version set to obsolete the conditionalized code.
10720         (compat_symbol): New macro.
10721         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10722         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10723         integer values to the ABI_* macros for supported versions.
10724         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10725         compat_symbol macro.
10727 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10729         * nscd/connections.c (nscd_run): Pretty print.
10730         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10732         * manual/charset.texi: Fix typos.  Rephrase.
10733         * manual/process.texi: Likewise.
10734         * manual/signal.texi: Likewise.
10735         Patches by Mike Coleman <mkc@kc.net>.
10737         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10738         versions.
10739         * libio/iofdopen.c: Likewise.
10740         * libio/iofgetpos.c: Likewise.
10741         * libio/iofgetpos64.c: Likewise.
10742         * libio/iofopen.c: Likewise.
10743         * libio/iofsetpos.c: Likewise.
10744         * libio/iofsetpos64.c: Likewise.
10745         * libio/iopopen.c: Likewise.
10746         * libio/oldiofopen.c: Likewise.
10747         * libio/pclose.c: Likewise.
10748         * sysdeps/gnu/siglist.c: Likewise.
10749         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10751         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10752         chance to expand VERSION_##lib##_##version.
10754         * libio/fileops.c: Use new macros from shlib-compat.h to define
10755         versions.
10756         * libio/iofclose.c: Likewise.
10757         * libio/oldiofclose.c: Likewise.
10758         Patch by Roland McGrath <roland@frob.com>.
10760 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10762         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10763         Lay out struct sigcontext according to what really gets passed on
10764         the stack.
10765         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10766         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10767         (prgregset_t, prfpregset_t): Define to elf_* types.
10768         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10769         Define to correct value.
10770         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10771         sigcontext.
10772         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10774 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10776         * scripts/firstversions.awk: Allow multiple version sets in the
10777         "earliest version" specification, meaning that version sets in the
10778         gaps between listed versions should be folded into the earliest later
10779         version that is explicitly listed.
10780         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10781         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10783 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10785         * iconv/gconv_builtin.c: Include <endian.h>.
10786         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10787         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10788         according to current platform.
10789         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10790         __gconv_transform_internal_ucs2reverse, and
10791         __gconv_transform_internal_ucs4le.
10792         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10793         __gconv_transform_ucs2reverse_internal and
10794         __gconv_transform_internal_ucs2reverse.
10795         * iconvdata/Makefile (modules): Add UNICODE.
10796         (distribute): Add unicode.c.
10797         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10798         * iconvdata/unicode.c: New file.
10800         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10801         determine byte order of input and convert accordingly.
10803         * iconvdata/utf-16.c (gconv_init): Fix typo.
10805 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10807         * iconvdata/gconv-modules: Fix typo.
10809         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10810         more messages.
10812         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10814 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10816         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10818 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10820         * misc/Makefile (routines): Add mincore.
10822 2000-03-20  Andreas Jaeger  <aj@suse.de>
10824         * sysdeps/generic/mincore.c: New stub file.
10826         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10827         from latest Linux kernel.
10829 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10831         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10832         _SC_GETPW_R_SIZE_MAX.
10834 2000-03-20  Richard Henderson  <rth@cygnus.com>
10836         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10837         in GLIBC_2.1.4.
10839 2000-03-20  Richard Henderson  <rth@cygnus.com>
10841         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10842         of arithmetic instructions.
10844         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10845         with the fpcr.  Protect from INV exception.
10846         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10847         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10848         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10850         * sysdeps/alpha/fpu/s_copysign.c: New.
10851         * sysdeps/alpha/fpu/s_copysignf.c: New.
10852         * sysdeps/alpha/fpu/s_fabs.c: New.
10853         * sysdeps/alpha/fpu/s_fabsf.c: New.
10854         * sysdeps/alpha/fpu/s_rint.c: New.
10855         * sysdeps/alpha/fpu/s_rintf.c: New.
10857         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10859         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10860         Kill sethae.
10861         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10862         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10863         Use physical addresses not KSEG addresses.
10864         (io_system): Add PYXIS.
10865         (io): Remove hae.reg, sys, hae_shift.
10866         (stb_mb, stw_mb, stl_mb, __sethae): New.
10867         (inline_outb, inline_outw, inline_outl): Don't set hae.
10868         (inline_inb, inline_inw, inline_inl): Likewise.
10869         (dense_sethae): New null function.
10870         (struct cpuinfo_data): New.
10871         (process_cpuinfo): Use local and stack variables, not static.
10872         Move readlink check here from init_iosys.
10873         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10874         (_iopl): Simplify.
10875         (_hae_shift): Calculate it here.
10876         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10877         add pciconfig_iobase.
10879 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10881         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10882         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10884         * scripts/versions.awk: Fixed version renaming code to distinguish
10885         libraries properly.
10887 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10889         * include/stdlib.h: Add prototype for __cxa_atexit.
10891         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10892         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10894 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10896         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10897         existing rtld-installed-name.
10898         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10899         replace existing rtld-installed-name using $(symbolic-link-prog).
10901 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10903         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10904         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10905         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10906         but not the former.
10908 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10910         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10911         glob64.  Since there is no glob64 in the LFS proposal applications
10912         can assume that glob handles LFS situations.  glob64 is only needed
10913         if alternative filesystem functions are used.
10915 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10917         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10918         when GLOB_DOOFFS is set; correct handling of patterns
10919         containing escaped wildcards (and no unescaped ones);
10920         GLOB_ERR flag was being ignored in some situations.
10922         * posix/globtest.c, posix/globtest.sh: Updated to include
10923         tests for the problems fixed by the above changes to glob.c.
10925         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10927 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10929         * Makeconfig (soversion.i): Use only first match for each lib.
10931         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10933         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10934         rather than $(sysd-dirs-done) to protect these rules.
10936         * Makerules (version-renames.def): Target removed.
10937         (Versions.all): Depend on soversions.i directly and parse it.
10939         * Makeconfig (soversions.i): New target, input-reading parts of
10940         soversions.mk generation moved here; result is a canonicalized
10941         list "LIB VERSION [SET]" for this configuration.
10942         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10943         * Makerules (version-renames.def): New target, generated from
10944         soversions.i with contents that was in $(map-firstversions).
10945         (Versions.all): Don't depend on soversions.mk, depend on
10946         version-renames.def instead; just cat it into the input.
10948         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10949         for $(map-firstversions), which better handles it being empty.
10951         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10952         supported version for libc 0.2.90.libio to GLIBC_2.2.
10954         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10955         and use it to emit new variable `map-firstversions'.
10956         * scripts/firstversions.awk: New file.
10957         * Makerules (Versions.all): Use scripts/firstversions.awk and
10958         the $(map-firstversions) value to generate a modified versions list
10959         that includes renames in "A = B" syntax for each version set earlier
10960         than the "earliest symbol version" named in shlib-versions.
10961         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10962         rename version set A to B in the output to the intermediate file.
10963         * scripts/abi-versions.awk: New file.
10964         * Makerules (abi-versions.h): New target, generated by that script.
10965         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10966         * include/shlib-compat.h: New file, uses that generated header.
10968 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10970         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10971         after stripping # comments, and then run it through cpp.
10972         This allows things like "%ifdef FOO" based on config.h settings.
10973         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10975         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10976         and other errors that indicate a pseudo-receive happened, grok through
10977         the message buffer for port rights that need references fixed up.
10979 2000-03-16  Andreas Jaeger  <aj@suse.de>
10981         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10983         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10985         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10986         from latest Linux kernel.
10987         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10989         * misc/sys/mman.h: Add prototype for mincore.
10991 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10993         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10994         entry for GLIBC_2.0 version of setrlimit.
10995         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10997 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10999         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
11000         * nis/nss_compat/compat-initgroups.c: Likewise.
11001         * nis/nss_nis/nis-initgroups.c: Likewise.
11002         * nis/nss_nis/nis-netgrp.c: Likewise.
11003         * nis/nss_nis/nis-proto.c: Likewise.
11004         * nis/nss_nis/nis-rpc.c: Likewise.
11005         * nis/nss_nis/nis-service.c: Likewise.
11006         * nis/ypclnt.c: Likewise.
11008 2000-03-16  Andreas Jaeger  <aj@suse.de>
11010         * manual/Makefile: MAKEINFO is set to `:' from configure if it
11011         doesn't exist, correct checks.  Fixes PR libc/1649.
11013 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11015         * nscd/hstcache.c: Restore correct UID.
11016         * nscd/pwdcache.c: Likewise.
11017         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
11019 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11021         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11022         macros for register names, in line with 2000-03-14 linux change.
11024         * sysdeps/mach/sched_yield.c: New file.
11026 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11028         * sysdeps/generic/lockfile.c: Include <stdio.h>
11029         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11030         case <libio.h> defined them.
11031         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11032         from __internal_*.
11033         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11034         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11036         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11037         for more pleasing parse error.
11039 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11041         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11042         memory for eras.
11043         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11045         * elf/Makefile: Add rules to compile and run constload1 test.
11046         * elf/constload1.c: New file.
11047         * elf/constload2.c: New file.
11048         * elf/constload3.c: New file.
11050 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11052         * sysdeps/posix/open64.c: Make __open64 weak alias.
11053         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11054         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11055         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11056         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11057         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11058         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11059         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11060         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11061         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11062         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11064 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11066         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11067         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11069 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11071         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11072         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11074 2000-03-08  Andreas Jaeger  <aj@suse.de>
11076         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11078 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11080         * timezone/africa: Update from tzdata2000d.
11081         * timezone/asia: Likewise.
11082         * timezone/australasia: Likewise.
11083         * timezone/europe: Likewise.
11084         * timezone/northamerica: Likewise.
11085         * timezone/southamerica: Likewise.
11087         * po/fr.po: Update from translation team.
11088         * po/de.po: Likewise.
11090         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11091         last parameter.  Move code to add map to global scope from here...
11092         * elf/dl-open.c (dl_open_worker): ...here.
11093         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11094         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11096         * locale/programs/ld-collate.c (collate_read): Fix warning.
11098         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11099         values and macros for register names.
11101         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11102         returned by seek cookie function is -1.
11104 2000-03-14  Andreas Jaeger  <aj@suse.de>
11106         * locale/localeconv.c (localeconv): Fix typo.
11107         Reported by Andre Charbonneau <andrec@corel.com>.
11109 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11111         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11112         since modules depend on it counting the number of times the conversion
11113         function got called.
11115         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11117         * iconv/gconv.h: Pretty print.
11119 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11121         * posix/wordexp-test.c: Correct one of the tests added in the last
11122         change.  Really get the root passwd entry to check again ~root.
11124 2000-03-10  Andreas Jaeger  <aj@suse.de>
11126         * manual/filesys.texi (Working Directory): Fix last patch.
11127         Patch by Martin Buchholz  <martin@xemacs.org>.
11129 2000-03-10  Andreas Jaeger  <aj@suse.de>
11131         * manual/creature.texi (Feature Test Macros): Fix language.
11133 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11135         * mach/devstream.c (devstream_write, devstream_read): New functions.
11136         (input, output): Functions removed.
11137         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11138         using only the vanilla fopencookie interface.
11140         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11141         as macro for __io_functions.
11142         (funcsio): Use cookie_io_functions_t type name.
11143         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11145         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11146         fopencookie.
11147         (fopencookie): Use it.
11148         * libio/libio.h: Declare _IO_cookie_init.
11149         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11150         _IO_cookie_init.
11152         * libio/libio.h (__io_seek_fn): Fix second argument type
11153         to be a pointer, in line with the manual and the old stdio.
11154         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11156         * sysdeps/generic/bits/stdio-lock.h: New file.
11157         This is a stub with #error, but that's better than no file at all.
11159 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11161         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11162         * manual/message.texi (Using gettextized software): Doc Fixes.
11163         * manual/message.texi (Message Translation): Doc Fixes.
11164         * manual/filesys.texi (File Size): Doc Fixes.
11165         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11166         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11167         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11168         * manual/install.texi: Doc Fixes.
11169         * manual/search.texi (Hash Search Function): Doc Fixes.
11170         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11171         * FAQ.in: Doc Fixes.
11172         * config.h.in: Doc Fixes.
11173         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11174         Doc Fixes.  `allows to' is not correct English.
11176         * elf/rtld.c: Doc fixes.
11177         * manual/creature.texi (Feature Test Macros): Doc fixes.
11178         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11180         * manual/filesys.texi (Working Directory): Check for ERANGE to
11181         avoid infloop.
11183 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11185         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11186         conditions so as not to clobber the final '\0' when there is only one
11187         element in the vector.
11189 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11191         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11192         broken by 2000-02-27 change.
11194         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11196 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11198         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11199         argument type, for 2000-02-22 change in signal/signal.h declaration.
11201 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11203         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11204         to getdirentries64 (no __), since the Linux implementation
11205         has no __ name, and there is no declaration for the __ name.
11207         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11209         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11210         sed regexp so as not to break directory names including /../ within.
11212         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11213         The sysdeps/generic file is right for BSD.  This file was in fact the
11214         Hurd file, but the only difference was the WNOREAP flag that was never
11215         actually implemented or used anywhere.
11217         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11218         since AC_PATH_PROG already does it for us.
11219         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11220         correctness and sh portability.  I replaced the broken check
11221         with a more sensible implementation of the apparently intended
11222         semantics, which might still be questionable.  Using expr causes
11223         a non-numeric value for `perl -V:apiversion` to be accepted,
11224         refusing to use only a perl that reports a number less than 5;
11225         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11226         * configure: Regenerated.
11228 2000-03-08  Andreas Jaeger  <aj@suse.de>
11230         * manual/crypt.texi: Fix paths.
11232 2000-03-07  Andreas Jaeger  <aj@suse.de>
11234         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11235         were swapped.
11236         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11237         libc/1636.
11239 2000-03-06  Andreas Jaeger  <aj@suse.de>
11241         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11242         in __sgn1l, otherwise g++ fails to parse this.
11243         Reported by Sean Chen <sean.chen@turbolinux.com>.
11245 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11247         * configure.in: Compute sizeof-long-double.
11248         * configure: Regenerated.
11249         * config.make.in: Make sizeof-long-double available to sub-makes.
11251 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11253         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11254         call.
11256 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11258         * Makeconfig (rpath-dirs): Add crypt.
11259         (all-subdirs): Remove md5crypt.
11260         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11261         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11262         * sysdeps/generic/crypt-entry.c: Delete.
11263         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11264         * sysdeps/generic/crypt.h: Delete.
11265         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11266         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11267         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11268         * sysdeps/generic/des_impl.c: Delete.
11269         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11270         * crypt/sysdeps: Delete.
11271         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11272         * md5-crypt/Versions: Move to crypt/.
11273         * md5-crypt/md5-crypt.c: Move to crypt/.
11274         * md5-crypt/md5.c: Move to crypt/.
11275         * md5-crypt/md5c-test.c: Move to crypt/.
11276         * md5-crypt/md5test.c: Move to crypt/.
11277         * md5-crypt: Delete.
11278         * crypt/Makefile: Adjust for new structure.
11280 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11282         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11283         define to 1 if not defined.
11285 2000-03-03  Andreas Jaeger  <aj@suse.de>
11287         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11289 2000-03-03  Andreas Jaeger  <aj@suse.de>
11291         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11292         cases.
11293         (xdr_int64_t): Correctly handle lower half.
11294         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11296 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11298         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11299         call.
11301 2000-03-02  Andreas Jaeger  <aj@suse.de>
11303         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11304         2.3.43.
11306 2000-03-02  Andreas Jaeger  <aj@suse.de>
11308         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11310 2000-03-01  Andreas Jaeger  <aj@suse.de>
11312         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11313         (tests): Added tst-getdate.
11315         * time/tst-getdate.c: New file.
11317         * time/datemsk: New file, needed for tst-getdate.
11319 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11321         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11323 2000-02-17  H.J. Lu  <hjl@gnu.org>
11325         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11327         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11328         available.
11329         (svcudp_recv): Set up message with the new "xp_pad" field for
11330         IP_PKTINFO.
11331         (svcudp_reply): Support IP_PKTINFO if available.
11333 2000-03-01  Andreas Jaeger  <aj@suse.de>
11335         * time/getdate.c (check_mday): Fix check for february.
11336         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11337         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11339 2000-03-02  Andreas Jaeger  <aj@suse.de>
11341         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11342         g++ fails to parse this.
11343         Reported by Sean Chen <sean.chen@turbolinux.com>.
11345 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11347         * io/creat.c: Moved to...
11348         * sysdeps/generic/creat.c: ...here.
11349         * io/creat64.c: Moved to...
11350         * sysdeps/generic/creat64.c: ...here.
11351         * io/lockf.c: Moved to...
11352         * sysdeps/generic/lockf.c: ...here.
11354         * crypt/crypt.texi: Moved to...
11355         * manual/crypt.texi: ...here.
11356         * crypt/examples/genpass.c: Moved to...
11357         * manual/examples/genpass.c: ...here.
11358         * crypt/examples/mygenpass.c: Moved to...
11359         * manual/examples/mygenpass.c: ...here.
11360         * crypt/examples/testpass.c: Moved to...
11361         * manual/examples/testpass.c: ...here.
11363         * manual/Makefile (chapters): Add crypt.
11364         * manual/conf.texi: Add usual header for not-last chapter.
11365         * manual/crypt.texi: Add special header for last chapter.
11367 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11369         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11370         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11371         complain if there is no crypt add-on.
11372         * crypt/configure: Removed.
11374         * crypt/crypt.texi: Update documentation of US export restrictions
11375         to match the 14 Jan 2000 regulations.
11377 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11379         * crypt: New subdirectory, merged in from the crypt add-on.
11381 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11383         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11386 See ChangeLog.10 for earlier changes.