Update.
[glibc.git] / ChangeLog
blob78264eb0e0904a3f41bedeec60ce3ad16501167c
1 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
3         * version.h (VERSION): Bump to 2.1.94.
5         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
6         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
7         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
8         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
10         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
12 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
14         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
15         range 0xD800..0xDFFF.
16         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
17         (BODY for FROM_LOOP): Likewise.
18         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
19         (internal_ucs2_loop): Likewise.
20         (ucs2reverse_internal_loop): Likewise.
21         (internal_ucs2reverse_loop): Likewise.
23 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
25         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
26         names.
28 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
30         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
31         * iconvdata/tst-table-to.c (main): Likewise.
33 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
35         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
36         __isoir165_tab.
37         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
38         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
39         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
40         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
41         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
42         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
43         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
44         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
45         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
46         encodings when needed.  When outputting an announcement, don't clear
47         most other announcements.
49 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
51         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
52         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
54 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
56         * intl/Versions: Add bind_textdomain_codeset.
58 2000-09-16  Ralf Baechle  <ralf@gnu.org>
60         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
61         as function.
62         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
63         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
64         it will even work when not loaded to the standard address.
65         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
66         before the dynamic linker itself is relocated.
68 2000-09-18  Andreas Jaeger  <aj@suse.de>
70         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
71         __ASSUME_32BITUIDS for MIPS.
72         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
73         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
75 2000-09-17  H.J. Lu  <hjl@gnu.org>
77         * catgets/Makefile ($(objpfx)de/libc.cat): Use
78         $(make-target-directory) instead of mkdir.
80 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
82         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
83         __ASSUME_32BITUIDS for __powerpc__.
84         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
85         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
87 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
89         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
90         patch.
91         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
93 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
95         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
96         first.
97         * sysdeps/m68k/Implies: Likewise.
98         * sysdeps/sparc/sparc64/Implies: Likewise.
100 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
102         * elf/readlib.c (process_file): Don't error for stale .so links either.
104 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
106         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
107         __builtin_expect.
109         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
110         Patch by Thorsten Kukuk <kukuk@suse.de>.
112         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
113         (test): Add default.
114         (modules-names): Add defaultmod1 and defaultmod2.
115         Add rules to build test objects.
117 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
119         * wctype/wctype.h: Always include <bits/types.h>.
120         Reported by Jim Meyering <meyering@ascend.com>.
122         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
123         * elf/dl-support.c: Likewise.
125         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
126         st_blocks member in stat and stat64 structs.
127         Patch by Bill Nottingham <notting@redhat.com>.
129         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
130         take longer.
132         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
133         __extension__ to _Complex_I definition since gcc warns if -pedantic.
134         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
135         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
137         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
138         necessary.  Move includes of POSIX and Unix limits files to the end.
139         * stdlib/Makefile (tests): Add tst-limits.
140         * stdlib/tst-limits.h: New file.
142 2000-09-15  Andreas Jaeger  <aj@suse.de>
144         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
146         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
148 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
150         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
151         clobber.
152         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
153         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
155 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
157         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
158         (tests): Add next.
159         (modules-names): Add nextmod1 and nextmod2.
160         Add rules to build and run next.
161         * elf/next.c: New file.
162         * elf/nextmod1.c: New file.
163         * elf/nextmod2.c: New file.
165 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
167         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
169 2000-09-15  Andreas Jaeger  <aj@suse.de>
171         * sysdeps/mips/fpu/fenv_libc.h: New file.
172         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
173         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
174         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
176         * sysdeps/mips/fpu/feenablxcpt.c: New file.
177         * sysdeps/mips/fpu/fegetexcept.c: New file.
178         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
180 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
182         * intl/Makefile: Avoid unnecessary test reruns.
184         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
186         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
187         to not use sysctl().  Too many architectures have problems with it.
189 2000-09-14  Andreas Jaeger  <aj@suse.de>
191         * scripts/config.sub: New version from subversions.gnu.org.
193         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
194         long.
196 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
198         * posix/regex.c (compile_range): Cast collseq index to unsigned char
199         to avoid accessing data before collseq.
201         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
202         pasting strings together.
204 2000-09-14  Greg McGary  <greg@mcgary.org>
206         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
207         copyright notice.
208         * sysdeps/generic/bp-semctl.h: Likewise.
209         * sysdeps/generic/bp-start.h: Likewise.
210         * sysdeps/generic/bp-sym.h: Likewise.
211         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
212         rename prototype.
214 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
216         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
217         don't fail.
219         * elf/elf.h: Add missing official relocations.
221         * libio/stdio.h: Define __FILE if __need___FILE is defined.
222         * stdio/stdio.h: Likewise.
223         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
224         * include/stdio.h: Handle __need___FILE like __need_FILE.
225         * include/wchar.h: Use __FILE instead of FILE.
226         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
227         * libio/fwscanf.c: Likewise.
228         * libio/getwc.c: Likewise.
230         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
231         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
232         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
234         * assert/assert.h: Update comment header about ISO C section.
235         * math/complex.h: Likewise.
236         * ctype/ctype.h: Likewise.
237         * include/errno.h: Likewise.
238         * include/limits.h: Likewise.
239         * locale/locale.h: Likewise.
240         * math/math.h: Likewise.
241         * setjmp/setjmp.h: Likewise.
242         * signal/signal.h: Likewise.
243         * stdio/stdio.h: Likewise.
244         * libio/stdio.h: Likewise.
245         * stdlib/stdlib.h: Likewise.
246         * string/string.h: Likewise.
247         * time/time.h: Likewise.
248         * wcsmbs/wchar.h: Likewise.
249         * wctype/wctype.h: Likewise.
250         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
252 2000-09-13  Andreas Jaeger  <aj@suse.de>
254         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
255         for no more entries.
256         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
257         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
258         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
260 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
262         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
263         constant since this is what clock_t is.
264         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
265         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
266         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
267         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
269         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
270         definitions are requested.
272 2000-09-13  Andreas Jaeger  <aj@suse.de>
274         * shlib-versions: libBrokenLocale needs minimal version for ia64,
275         sparc64 and sh to synch with libc.
277 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
279         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
280         (distribute): Add iso-2022-cn-ext.c.
281         Add definitions to compile the new module.
282         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
283         * iconvdata/iso-2022-cn-ext.c: New file.
284         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
285         ucs4_from_isoir165.  Increment input pointer if successful.
287         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
289         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
291 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
293         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
294         __syscall_getdents64 wrapper.
296         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
298 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
300         * iconvdata/gb18030.c: Many many changes.  Make consistent with
301         charmap and with itself.
302         * iconvdata/tst-tables.sh: Test GB18030.
304 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
306         * iconv/skeleton.c: Fix last patch, add missing parameter to
307         unaligned function call.
309 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
311         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
312         of decimal ellipsis.
314 2000-09-11  Bruno Haible <haible@clisp.cons.org>
316         * locale/programs/ld-collate.c (collate_read): Always initialize
317         error_section.next.
319 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
321         * locale/programs/ld-collate.c (collate_finish): Upper bound for
322         ruleidx is 128, not 256.
324 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
326         * locale/programs/ld-collate.c (collate_read): Correct check for
327         already inserted entries.
329 2000-09-10  Bruno Haible <haible@clisp.cons.org>
331         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
332         second try as well.
334 2000-09-10  Bruno Haible <haible@clisp.cons.org>
336         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
337         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
339 2000-09-10  Bruno Haible <haible@clisp.cons.org>
341         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
342         SAVE_RESET_STATE.
344 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
346         * iconvdata/utf-7.c: New file.
347         * iconvdata/gconv-modules (UTF-7): New module entries.
348         * iconvdata/Makefile (modules): Add UTF-7.
349         (distribute): Add utf-7.c.
350         * iconvdata/testdata/UTF-7: New file.
351         * iconvdata/testdata/UTF-7..UTF8: New file.
352         * iconvdata/TESTS (UTF-7): New entry.
353         * iconvdata/run-iconv-test.sh: Fix confusing output.
355 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
357         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
359 2000-09-10  David S. Miller  <davem@redhat.com>
361         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
362         frame pointer offset for non-fast path.
364 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
366         * locale/programs/3level.h (*_init): Initialize level1, level2,
367         and level3 as well.
368         (*_add): Remove a few unnecessary conditionals.
370 2000-09-05  Wolfram Gloger  <wg@malloc.de>
372         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
373         ensure usability of mutex as an `in use' flag.
375 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
377         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
379         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
380         ugly GMON_WEAK_START hack.
381         Patch by Philip Blundell <philb@gnu.org>.
383         * sysdeps/i386/i486/bits/string.h: Pretty printing.
385 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
387         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
388         and PPC_ICBI asm for broken compilers.
389         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
391 2000-09-09  Andreas Jaeger  <aj@suse.de>
393         * manual/message.texi (Advanced gettext functions): Fix typo.
395         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
396         strncpy prototype.
398 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
400         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
401         warnings.
402         * sysdeps/ia64/memccpy.S: Likewise.
403         Patches by Jim Wilson <wilson@redhat.com>.
405         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
406         before trying to read /proc.
407         Patch by Matt Wilson <msw@redhat.com>.
408         * include/sys/utsname.h: Declare __uname.
409         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
410         * sysdeps/mach/hurd/uname.c: Likewise.
411         * sysdeps/unix/syscalls.list: Likewise.
413         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
414         unloading a bit.
416 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
418         * posix/getopt.c (_getopt_internal): When long_only is set always
419         recognize conflicts just like before.
421 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
423         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
425 2000-09-08  Greg McGary  <greg@mcgary.org>
427         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
428         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
429         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
431 2000-09-08  Andreas Jaeger  <aj@suse.de>
433         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
435         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
437         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
438         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
439         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
441 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
443         * iconvdata/tst-tables.sh: Enable EUC-KR test.
445         * elf/dl-load.c (lose): Decrement _nl_loaded.
446         (_dl_map_object_from_fd): Don't try to dlopen executables.
448         * iconvdata/tst-tables.sh: Actually return with an error if
449         something goes wrong.
450         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
451         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
453         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
455         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
456         * iconvdata/tst-table-from.c: Include <string.h>.
457         (try): Correct cast in iconv call.
459         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
460         too.
461         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
462         (sysdep_routines): Remove dl-start.
463         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
465         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
467         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
468         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
470 2000-09-06  Andreas Schwab  <schwab@suse.de>
472         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
474 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
476         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
478         * scripts/config.sub: Strip out -unknown for Linux targets.
479         Patch by Scott Bambrough <scottb@netwinder.org>.
481         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
482         add one more test.
484 2000-09-07  Andreas Jaeger  <aj@suse.de>
486         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
488         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
489         syscalls.
491         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
493         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
494         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
496         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
498         * stdlib/tst-bsearch.c (main): Add more test cases.
500         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
501         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
502         Reported by GOTO Masanori <gotom@debian.or.jp>.
504 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
506         * posix/Makefile (tests): Add tst-dir.
507         (tst-dir-ARGS): New variable.
508         * posix/tst-dir.c: New file.
510 2000-09-07  Andreas Jaeger  <aj@suse.de>
512         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
513         (SYS_fcntl64): New.
515         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
517 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
519         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
520         use the hack with tryopen_o_directory to determine at runtime
521         whether it works.
522         * sysdeps/unix/sysv/linux/opendir.c: New file.
523         * sysdeps/unix/sysv/linux/kernel-features.h: Define
524         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
526         * catgets/Depend: New file.  Add intl.
527         * catgets/Makefile (tests): Add tst-catgets.
528         (generated): Remove de.msg.
529         (generated-dirs): Add de.
530         Add dependency if tst-catgets output on de/libc.cat.
531         * catgets/tst-catgets.c: New file.
533         * po/ja.po: New file.
534         * po/el.po: Update from translation team.
536         * wcsmbs/Depend: New file.
537         * wcsmbs/Makefile (tests): Add tst-btowc.
538         (tst-btowc-ENV): Define.
539         * wcsmbs/tst-btowc.c: New file.
541         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
542         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
544         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
546         * stdlib/Makefile (tests): Add tst-bsearch.
547         * stdlib/tst-bsearch.c: New file.
549         * posix/getopt.c (_getopt_internal): Don't recognize an option
550         name as ambiguous if it's a prefix for more than one name but the
551         other struct option values are identical.
553         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
554         Don't depend on visual inspection of the output file to recognize
555         errors.
556         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
558 2000-09-06  Andreas Jaeger  <aj@suse.de>
560         * sysdeps/alpha/soft-fp/Dist: New file.
561         * sysdeps/i386/soft-fp/Dist: New file.
562         * sysdeps/mips/mips64/soft-fp/Dist: New file.
563         * sysdeps/mips/soft-fp/Dist: New file.
564         * sysdeps/powerpc/soft-fp/Dist: New file.
565         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
566         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
568         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
569         Use sysdep_routines instead of routines to fix make dist failure.
570         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
571         out code).
572         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
574         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
575         sysdep_headers instead of headers for make dist.
577         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
578         Likewise.
580 2000-09-06  Andreas Schwab  <schwab@suse.de>
582         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
584 2000-09-06  Andreas Jaeger  <aj@suse.de>
586         * soft-fp/Makefile (distribute): Remove ChangeLog.
588         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
589         sysdep_routines instead of routines for make dist.
591 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
593         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
594         compatibility check for old stream and call _IO_wide in doubt.
595         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
596         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
597         needed tst for such an old structure and don't do anything.
598         * libio/freopen.c: Remove declaration of _IO_stdin_used.
600 2000-09-06  Andreas Jaeger  <aj@suse.de>
602         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
603         sysdep-dl-routines and sysdep_routines instead of rtld-routines
604         and dl-routines.
606         * soft-fp/ChangeLog: Merged with this file.
608 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
610         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
612         * soft-fp/Makefile (distribute): Add the math functions, too.
614         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
616 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
618         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
619         as a statement.
621         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
622         * soft-fp/sysdeps/powerpc/q_*: New files.
624 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
626         * stdio-common/vfprintf.c (process_string_arg): Handle precision
627         in wide char case correctly.  Don't allocate too long temporary
628         strings with alloca.
630         * stdio-common/Makefile (tests): Add tst-swprintf.
631         (tst-swprintf-ENV): New variable.
632         * stdio-common/tst-swprintf.c: New file.
634 2000-09-05  Andreas Jaeger  <aj@suse.de>
636         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
637         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
638         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
640 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
642         * configure.in: Strip out "unknown" from configuration names.
644 2000-09-05  Andreas Jaeger  <aj@suse.de>
646         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
648         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
649         * sysdeps/sparc/sparc32/Implies: Likewise.
650         * sysdeps/powerpc/Implies: Likewise.
652         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
653         * libio/oldiofgetpos64.c: Likewise.
655         * soft-fp/Makefile (distribute): Remove configure.
657         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
659         * soft-fp/configure: Remove.
661         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
662         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
664         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
665         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
667         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
668         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
670         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
671         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
673         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
674         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
676         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
677         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
679         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
680         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
682         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
683         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
685         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
686         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
688         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
689         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
691         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
692         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
694         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
695         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
697         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
698         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
700         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
701         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
703         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
704         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
706         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
707         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
709         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
710         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
712         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
713         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
715         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
716         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
718         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
719         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
721         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
722         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
724         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
725         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
727         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
728         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
730         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
731         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
733         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
734         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
736         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
737         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
739         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
740         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
742         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
743         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
745         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
746         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
748         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
749         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
751         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
752         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
754         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
755         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
757         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
758         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
760         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
761         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
763         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
764         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
766         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
767         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
769         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
770         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
772         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
773         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
775         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
776         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
778         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
779         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
781         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
782         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
784         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
785         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
787         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
788         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
790         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
791         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
793         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
794         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
796         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
797         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
799         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
800         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
802         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
803         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
805         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
806         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
808         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
809         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
811         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
812         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
814         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
815         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
817         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
818         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
820         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
821         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
823         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
824         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
826         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
827         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
829         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
830         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
832         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
833         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
835         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
836         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
838         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
839         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
841         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
842         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
844         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
845         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
847         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
848         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
850         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
851         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
853         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
854         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
856         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
857         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
859         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
860         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
862         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
863         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
865         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
866         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
868         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
869         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
871         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
872         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
874         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
875         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
877         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
878         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
880         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
881         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
883         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
884         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
886         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
887         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
889         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
890         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
892         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
893         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
895         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
896         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
898         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
899         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
901         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
902         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
904         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
905         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
907         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
908         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
910         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
911         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
913         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
914         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
916         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
917         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
919         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
920         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
922         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
923         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
925         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
926         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
928         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
929         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
931         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
932         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
934         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
935         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
937         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
938         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
940         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
941         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
943         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
944         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
946         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
947         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
949         * soft-fp/sysdeps/powerpc/Versions: Move from here...
950         * sysdeps/powerpc/soft-fp/Versions: ... to here.
952         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
953         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
955         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
956         change symbol version.
957         * libio/oldiofgetpos64.c: Likewise.
958         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
960         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
961         typo.
962         Reported by dyky@kondara.org, closes PR libc/1886.
964         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
965         libc/1880.
967 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
969         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
970         script when ^C is hit.
972         * locale/programs/localedef.c (construct_output_path): Correct
973         computation of endp after asprintf.
974         * locale/programs/locfile.c (write_locale_data): Don't add extra
975         slash in filename.
977 2000-09-05  Andreas Jaeger  <aj@suse.de>
979         * scripts/config.guess: New upstream version.
980         * scripts/config.sub: Likewise.
981         * manual/texinfo.tex: Likewise.
983 2000-09-04  Andreas Schwab  <schwab@suse.de>
985         * elf/Makefile (all-dl-routines): New variable.
986         (elide-routines.os): Use it instead of $(dl-routines).
987         (all-rtld-routines): New variable.
988         (extra-objs): Use it instead of $(rtld-routines).
989         ($(objpfx)dl-allobjs.os): Likewise.
990         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
991         sysdep-dl-routines and sysdep_routines instead of rtld-routines
992         and dl-routines.
994 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
996         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
997         Set fname to NULL if the module wasn't found.
999 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1001         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1002         true if trans->name already ends in ".so".
1004 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1006         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1007         void.
1008         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1009         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1010         (__gconv_release_shlib): Change return type to void.
1011         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1012         step->__counter here.
1013         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1014         if the reference is zero.
1015         (release_step): New function.
1016         (gen_steps): Always initialize the __counter to 1. Use release_step.
1017         Don't call the destructor on the step whose initializer failed.
1018         (increment_counter): Use release_step. Don't normally run destructors
1019         here.
1020         (__gconv_close_transform): Use release_step.
1022 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1024         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1025         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1027 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1029         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1030         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1031         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1032         to check for incomplete input.
1033         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1034         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1035         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1036         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1037         0x9f9d..0x9fa5.
1038         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1039         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1040         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1041         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1042         upto index 0x0052.
1044 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1046         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1047         solution.
1049 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1051         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1052         are invalid.
1054 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1056         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1057         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1058         U+007E.
1060 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1062         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1064 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1066         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1068 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1070         * iconvdata/tst-tables.sh: New file.
1071         * iconvdata/tst-table.sh: New file.
1072         * iconvdata/tst-table-from.c: New file.
1073         * iconvdata/tst-table-to.c: New file.
1074         * iconvdata/tst-table-charmap.sh: New file.
1075         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1076         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1077         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1078         ISIRI-3342.irreversible, SJIS.irreversible.
1079         (tests): Add dependency on tst-tables.out.
1080         (tst-tables.out, tst-tables-clean): New rules.
1081         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1082         * iconvdata/ISIRI-3342.irreversible: New file.
1083         * iconvdata/EUC-JP.irreversible: New file.
1084         * iconvdata/SJIS.irreversible: New file.
1086 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1088         * manual/locale.texi (General Numeric): Update description of
1089         representation of the grouping information in the locale data.
1090         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1092 2000-09-04  Andreas Jaeger  <aj@suse.de>
1094         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1095         * iconv/iconv_prog.c (options): Fix typo.
1096         Reported by dyky@kondara.org, closes PR libc/1885.
1098 2000-09-04  Andreas Jaeger  <aj@suse.de>
1100         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1101         Reported by Rob Levin <lilo@transvirtual.com>.
1103 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1105         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1106         to the typedefs of __timezone_ptr_t.
1107         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1109 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1111         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1112         the loop.
1114 2000-09-01  H.J. Lu  <hjl@gnu.org>
1116         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1117         to run a binary if it is in $(tests-static).
1119         * Rules (binaries-static): Add $(tests-static).
1121 2000-09-02  Andreas Jaeger  <aj@suse.de>
1123         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1125         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1126         patch.
1128 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1130         * iconvdata/big5hkscs.c: Regenerated from charmap.
1131         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1132         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1134         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1135         statement.  General cleanup.
1137 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1139         * wctype/wcfuncs.c (iswblank): New function.
1140         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1141         * wctype/wcextra.c: Remove file.
1142         * wctype/wcextra_l.c: Remove file.
1143         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1145 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1147         * locale/programs/ld-collate.c (collate_output): Remove redundant
1148         assert call.
1149         * string/strcoll.c: Likewise.
1150         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1151         string/strcoll.c.
1153 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1155         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1156         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1157         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1158         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1159         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1160         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1161         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1162         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1163         _NL_CTYPE_GAP5/6 respectively.
1165         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1166         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1167         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1168         Don't initialize __ctype_names and __ctype_width.
1169         * wctype/cname-lookup.h: Remove file.
1170         * wctype/Makefile (distribute): Remove cname-lookup.h.
1171         * wctype/wchar-lookup.h: Include stdint.h.
1172         * wctype/wctype.c (__wctype): Assume new locale format.
1173         * wctype/wctype_l.c (__wctype_l): Likewise.
1174         * wctype/iswctype.c: Don't include cname-lookup.h.
1175         (__iswctype): Assume new locale format.
1176         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1177         (__iswctype_l): Assume new locale format.
1178         * wctype/wctrans.c: Don't include ctype.h.
1179         (wctrans): Assume new locale format.
1180         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1181         * wctype/towctrans.c: Don't include cname-lookup.h.
1182         (__towctrans): Assume new locale format.
1183         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1184         (__towctrans_l): Assume new locale format.
1185         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1186         localeinfo.h instead.
1187         (__NO_WCTYPE): Remove unused macro.
1188         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1189         declarations.
1190         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1191         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1192         (towlower, towupper): Likewise.
1193         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1194         localeinfo.h instead.
1195         (__NO_WCTYPE): Remove unused macro.
1196         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1197         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1198         __iswxdigit_l): Assume new locale format.
1199         (__towlower_l, __towupper_l): Likewise.
1200         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1201         (__ctype32_b): Remove declaration.
1202         (internal_wcwidth): Assume new locale format.
1203         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1204         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1205         to map32_b, rename width_3level to width.
1206         (ctype_output): Always create new locale format. Don't emit
1207         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1208         (allocate_arrays): Always create new locale format.
1210         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1211         * locale/weightwc.h (findidx): Assume new locale format.
1212         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1213         names.
1214         * string/strxfrm.c (wcsxfrm): Likewise.
1215         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1216         local variable collseq to 'const char *'.
1217         (SUFFIX): Don't use, don't undefine.
1218         * posix/fnmatch.c: Remove SUFFIX definition.
1219         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1220         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1221         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1222         (collate_finish): Always create new locale format. Remove local
1223         variables min_total, act_size.
1224         (collate_output): Always create new locale format. Remove local
1225         variables table_size, names, tablewc. Rename tablewc_3level to
1226         tablewc.
1228 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1230         * locale/programs/ld-collate.c (obstack_int32_grow,
1231         obstack_int32_grow_fast): New inline functions.
1232         (output_weightwc, collate_output): Use them where possible.
1234 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1236         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1237         patch (_mode -> _flags).
1239         * libio/Makefile (headers): Add stdio_ext.h.
1240         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1241         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1242         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1243         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1244         __fsetlocking, and _flushlbf.
1245         * libio/__fbufsize.c: New file.
1246         * libio/__flbf.c: New file.
1247         * libio/__fpending.c: New file.
1248         * libio/__fpurge.c: New file.
1249         * libio/__freadable.c: New file.
1250         * libio/__freading.c: New file.
1251         * libio/__fsetlocking.c: New file.
1252         * libio/__fwritable.c: New file.
1253         * libio/__fwriting.c: New file.
1254         * libio/stdio_ext.h: New file.
1255         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1256         * libio/libio.h (_IO_USER_LOCK): Define.
1257         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1258         test _IO_USER_LOCK flag first.
1260         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1261         malloc fails.
1263 2000-09-01  Andreas Jaeger  <aj@suse.de>
1265         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1267         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1269 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1271         * math/Makefile (tests): Add tst-defintions.
1272         * math/tst-definitions.c: New file.
1274         * stdlib/Makefile (headers): Add bits/wchar.h.
1275         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1276         * sysdeps/generic/bits/wchar.h: New file.
1277         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1278         file to define WCHAR_MIN and WCHAR_MAX.
1279         Change UINT*8_MAX and UIN*16_MAX value to type int.
1280         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1281         file to define WCHAR_MIN and WCHAR_MAX.
1282         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1283         int values.
1284         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1285         * sysdeps/generic/bits/mathdef.h: Likewise.
1286         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1287         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1288         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1289         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1290         * locale/locale.h (struct lconv): Add __ prefix to the new members
1291         if not C99.
1292         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1293         imaxdiv optimizations.
1294         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1295         * sysdeps/wordsize-64/ldiv.c: Likewise.
1296         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1297         const fenv_t*.
1298         * sysdeps/generic/bits/fenv.h: Likewise.
1299         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1300         * sysdeps/ia64/bits/fenv.h: Likewise.
1301         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1302         * sysdeps/mips/bits/fenv.h: Likewise.
1303         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1304         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1305         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1307         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1308         * inet/ruserpass.c: Likewise.
1309         * catgets/open_catalog.c: Likewise.
1310         * intl/loadmsgcat.c: Likewise.
1311         * io/getdirname.c: Likewise.
1312         * locale/loadlocale.c: Likewise.
1313         * misc/getusershell.c: Likewise.
1314         * stdlib/canonicalize.c: Likewise.
1315         * sysdeps/posix/euidaccess.c: Likewise.
1316         * sysdeps/posix/isfdtype.c: Likewise.
1317         * sysdeps/posix/posix_fallocate.c: Likewise.
1318         * sysdeps/posix/tempname.c: Likewise.
1319         * sysdeps/unix/grantpt.c: Likewise.
1320         * sysdeps/unix/opendir.c: Likewise.
1321         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1322         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1323         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1324         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1325         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1326         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1327         * sysvipc/ftok.c: Likewise.
1328         * time/getdate.c: Likewise.
1330         * time/getdate.c: Add extra access test.
1332 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1334         * version.h (VERSION): Bump to 2.1.93.
1336         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1337         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1339         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1340         Make this a new rule depending on tst-gettext.out and run mtrace.
1341         * intl/tst-gettext.c: Call mtrace.
1342         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1344         * elf/dl-reloc.c: Add a few more __builtin_expect.
1346         * configure.in: Remove --with-gettext option.
1348         * intl/dcigettext.c (free_mem): Correct freeing of
1349         _nl_domain_bindings list.
1351         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1352         allocated memory.
1354         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1356         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1358         * stdio-common/itoa-digits.c: Move upper digits to...
1359         * stdio-common/itoa-udigits.c: ...here.  New file.
1360         * stdio-common/Makefile (routines): Add itoa-udigits.
1362         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1363         relocate ld.so don't add supprt for relocations which should not
1364         appear in ld.so.
1366         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1367         __secure_getenv.  Instead test __libc_enable_secure once.
1369         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1371 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1373         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1374         whether the new record should be freed if it's a duplicate.
1375         (add_module): Adjust insert_module call.
1376         (__gconv_read_conf): Likewise.
1377         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1378         mtrace-tst-loading.
1379         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1381         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1382         _dl_all_init_dirs.
1383         * include/link.h (struct r_search_path_struct): New.
1384         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1385         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1386         _dl_all_init_dirs.
1387         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1388         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1389         added at startup time.
1390         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1391         contains element to remember fact that we can free memory.
1392         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1393         (_dl_init_all_dirs): New variable.
1394         (fillin_rpath): Save one malloc call.
1395         (decompose_rpath): Change interface.  New first parameter points to
1396         r_search_path_struct.
1397         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1398         deletable.  Set _dl_init_all_paths value.
1399         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1400         parameter replaced with r_search_path_struct *.  Information about
1401         freeing now contained in r_search_path_struct.
1402         (_dl_map_object): Adjust for above changes.
1404         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1406         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1407         when adding new entries.
1409         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1410         since the object being loaded can be unloaded.
1412         * iconvdata/Makefile (tests): Add tst-loading.
1413         * iconvdata/tst-loading.c: New file.
1415 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1417         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1418         When comparing a char with an int, always cast the char to
1419         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1420         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1422 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1424         * time/strftime.c (my_strftime): Add compatibility code for use
1425         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1427         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1428         return 0 for success but always < 0 on failure.
1430         * nss/getXXbyYY_r.c: Define result to *result before including
1431         digits_dots.c.
1433 2000-08-30  Andreas Jaeger  <aj@suse.de>
1435         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1437 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1439         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1440         official file.
1441         * iconvdata/TESTS: Add BIG5HKSCS entry.
1442         * iconvdata/testdata/BIG5HKSCS: New file.
1443         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1445         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1446         always true.
1448         * libio/iogetline.c: Set mode before the loop in case n==0.
1449         * libio/iogetwline.c: Likewise.
1451 2000-08-29  H.J. Lu  <hjl@gnu.org>
1453         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1454         of fp->_mode < 0.
1455         (_IO_new_file_overflow): Likewise.
1456         * libio/genops.c (_IO_flush_all): Likewise.
1457         * libio/ioftell.c (_IO_ftell): Likewise.
1459 2000-08-29  Akira Higuchi  <a@kondara.org>
1461         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1462         and __end_fct fields of struct __gconv_step.
1463         * iconv/Makefile (tests): Add iconv-bug2.
1464         * iconv/iconv-bug2.c: New file.
1466         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1467         instead of 'inptr - inend' to ksc5601_to_ucs4.
1469         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1471         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1472         character or shift sequence is found at the end of the input
1473         string, return__GCONV_INCOMPLETE_INPUT instead of
1474         __GCONV_EMPTY_INPUT.
1475         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1476         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1478         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1479         __GCONV_ILLEGAL_INPUT for 8bit characters.
1481 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1483         * signal/signal.h (sigpause): Move __THROW before __asm__.
1485         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1486         names don't match don't return.
1487         Patch by Olaf Kirch <okir@flash.lst.de>.
1489 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1491         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1493 2000-08-27  H.J. Lu  <hjl@gnu.org>
1495         * posix/Makefile (otherlibs): Add for building with static-nss
1496         for "make check".
1498 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1500         * libio/stdio.h: Add fmemopen prototype.
1502 2000-08-25  Andreas Jaeger  <aj@suse.de>
1504         * libio/Makefile (routines): Add fmemopen.
1505         (tests): Add test-fmemopen.
1506         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1507         * libio/test-fmemopen.c: New file.
1508         * libio/fmemopen.c: New file.
1509         Patches by Hanno Mueller <kontakt@hanno.de>.
1511 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1513         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1514         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1516         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1517         to avoid crashing statically linked applications.
1519 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1521         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1522         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1524         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1525         If the result is fits in the buffer, copy only as many bytes as needed.
1527         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1528         buffer after copying numbuf into it.
1529         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1531 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1533         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1534         the result.  When string_len < len, don't clear the rest of the buffer.
1536 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1538         Support for new LC_COLLATE format.
1539         * locale/coll-lookup.h: New file.
1540         * locale/weightwc.h (findidx): When size == 0, call
1541         collidx_table_lookup.
1542         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1543         * wcsmbs/wcsxfrm.c: Likewise.
1544         * posix/fnmatch.c: Likewise.
1545         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1546         collseq_table_lookup.
1547         * locale/programs/3level.h: New file.
1548         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1549         by including "3level.h".
1550         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1551         collseq_table): New types, defined by including "3level.h".
1552         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1553         (encoding_mask, encoding_byte): Remove.
1554         (utf8_encode): Use simple shifts instead.
1555         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1556         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1557         (collate_output): New local variable tablewc_3level. When
1558         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1559         tablewc_3level instead of tablewc. Change format of TABLEWC and
1560         COLLSEQWC entries written to the file.
1561         * locale/C-collate.c (collseqwc): Change format.
1562         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1563         of COLLSEQWC.
1564         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1566 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1568         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1569         (locale_ctype_t): New charnames_idx field.
1570         (ctype_startup): Initialize charnames_idx field.
1571         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1573 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1575         * locale/C-ctype.c: Switch to new locale format.
1576         (_nl_C_LC_CTYPE_names): Remove array.
1577         (STRUCT_CTYPE_CLASS): New macro.
1578         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1579         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1580         New three-level tables.
1581         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1582         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1583         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1584         12 class tables and 2 map tables at the end.
1585         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1586         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1587         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1588         New declarations.
1589         (b): Remove trailing semicolon.
1590         (__ctype_names, __ctype_width): Don't initialize.
1591         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1593 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1595         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1596         is guaranteed to be allocated with the same malloc() and may be
1597         passed to free().
1598         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1599         been set to empty by an earlier open_path call, don't pass it again.
1601 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1603         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1604         we are not optimizing.
1606         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1607         inclusion.
1609         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1610         really match EOF.
1611         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1613 2000-08-28  Andreas Jaeger  <aj@suse.de>
1615         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1617 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1619         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1620         getpeername.  Use ISO C style function definition.
1621         (getpeername): Provide weak alias.
1622         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1623         setrlimit.  Use ISO C style function definition.
1624         (setrlimit): Provide weak alias.
1626 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1628         * shlib-versions: Add a rule for S/390 to the libm version list.
1629         * sysdeps/s390/Versions: New file.
1630         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1631         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1632         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1633         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1634         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1635         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1636         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1637         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1638         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1639         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1640         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1641         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1642         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1643         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1644         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1645         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1646         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1647         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1649 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1651         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1652         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1654         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1655         * elf/dl-close.c (_dl_close): Print debug message if object is not
1656         unloaded.
1657         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1658         returning to caller.
1660         * po/zh.po: Renamed to...
1661         * po/zh_TW.po: ...this.
1663 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1665         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1667         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1668         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1669         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1670         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1672 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1674         * locale/programs/ld-collate.c (insert_weights): Also update
1675         backpointer of next element.
1676         (collate_read): Allow definition of new collation symbols in stage 2.
1677         Symbol after reorder-after can be UCS4 value.
1678         Allow reordering of collation symbols and elements.
1679         Do not only move reorder entry in new position.  Instead call
1680         insert_weight to do this and read the weights.
1682         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1684         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1685         to determine invalid locale name.
1686         * locale/findlocale.c (_nl_find_locale): Likewise.
1688         * posix/annexc.c: Correct test for unavailable feature.
1690         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1691         __inline.
1693 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1695         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1696         syscall.
1698         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1699         (sysdep_routines): Add oldgetrlimit64.
1701         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1702         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1703         (tests): Add unload, reldep, reldep2, and reldep3.
1704         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1705         and reldepmod4.
1706         Add rules to build and run unload, reldep, reldep2, and reldep3.
1707         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1708         Don't create relocation dependency if it is nonzero.
1709         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1710         can never happen here.
1711         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1712         Don't create relocation dependency if it is nonzero.
1713         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1714         stuff.  This can never happen here.
1715         * sysdeps/generic/ldsodefs.h: Change prototypes.
1716         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1717         _dl_lookup_up and _dl_lookup_versioned_symbol.
1718         (RESOLV): Likewise.
1719         * elf/dl-runtime.c (fixup): Likewise.
1720         (profile_fixup): Likewise.
1721         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1722         _dl_lookup_symbol.
1723         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1724         * elf/rtld.c (dl_main): Likewise.
1725         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1726         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1727         and pass down the caller map.
1728         (_dl_vsym): Likewise.
1729         * elf/reldep.c: New file.
1730         * elf/reldep2.c: New file.
1731         * elf/reldep3.c: New file.
1732         * elf/reldepmod1.c: New file.
1733         * elf/reldepmod2.c: New file.
1734         * elf/reldepmod3.c: New file.
1735         * elf/reldepmod4.c: New file.
1736         * elf/unload.c: New file.
1737         * elf/unloadmod.c: New file.
1739         * elf/do-lookup.h: Remove unused undef_name parameter.
1740         * elf/dl-lookup.c: Adjust callers.
1742 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1744         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1745         irreversible in recursive call of conversion function to signal that
1746         no error handling is wanted.
1747         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1748         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1749         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1750         recursive error handling call, otherwise to &lirreversible.  Use it
1751         for calls to conversion functions.
1752         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1753         transliterating.
1754         (ucs4_internal_loop_unaligned): Likewise.
1755         (ucs4le_internal_loop): Likewise.
1756         (ucs4le_internal_loop_unaligned): Likewise.
1758 2000-08-25  Greg McGary  <greg@mcgary.org>
1760         * sysdeps/i386/memchr.S: Check high bound against chars
1761         actually scanned.
1762         * sysdeps/i386/memcmp.S: Likewise.
1763         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1764         account for pointers that lie one beyond end-of-buffer.
1766 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1768         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1769         * elf/nodelete.c (fini_ran): New global variable.
1770         (do_test): Before every dlclose call clear fini_ran and test
1771         afterwards that it is not set by the destructors.
1772         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1773         * elf/nodelmod2.c: Likewise.
1774         * elf/nodelmod4.c: Likewise.
1776 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1778         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1779         getrlimit to the list.
1781 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1783         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1784         long double format so use ldbl-96 instead of ldbl-128.
1786 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1788         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1789         even if bits 10 a 11 are non-zero.
1790         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1792         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1793         included before building gnu/lib-names.h
1794         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1796         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1797         marked DF_1_NODELETE.
1799         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1800         since we call sigaction in the child.
1802 2000-08-25  Andreas Jaeger  <aj@suse.de>
1804         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1805         gconv-modules.
1807 2000-08-25  Andreas Jaeger  <aj@suse.de>
1809         * manual/arith.texi (Control Functions): Clarify possible
1810         arguments.  Closes PR libc/1856.
1812 2000-08-24  H.J. Lu  <hjl@gnu.org>
1814         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1815         * malloc/Makefile (tests): Likewise.
1817 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1819         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1821 2000-08-24  Andreas Jaeger  <aj@suse.de>
1823         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1824         only if LIBGD is available.
1826 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1828         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1829         problems with now restrict parameter types.
1830         (convaddr4to6): Likewise.
1832 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1834         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1835         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1836         * sysdeps/s390/fpu/fegetexcept.c: New file.
1837         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1838         FPC_VALID_MASK.
1840 2000-08-24  Andreas Jaeger  <aj@suse.de>
1842         * malloc/Makefile (extra-objs): Add memusagestat.o.
1843         (generated): Added memusage and memusagestat for make clean.
1845         * libio/tst_putwc.c (do_test): Delete temporary file.
1846         Move inclusion of test-skeleton to front to have prototype for
1847         add_temp_file.
1849         * posix/Makefile (generated): Add wordexp-tst.out.
1851 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1853         * resolv/res_hconf.c (free_mem): Remove not needed if.
1855         * time/tzset.c (free_mem): New function.
1856         * string/strsignal.c (free_mem): New function.
1857         * inet/inet_ntoa.c (free_mem): New function.
1858         * sunrpc/clnt_perr.c (free_mem): New function.
1860 2000-08-24  Andreas Jaeger  <aj@suse.de>
1862         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1863         * sysdeps/unix/sysv/syscalls.list: Likewise.
1865         * posix/unistd.h: Move internal prototypes from here ...
1866         * include/unistd.h: ... to here.
1868         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1870 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1872         * grp/initgroups.c (initgroups): Deallocate groups array.
1873         Reported by jani.raiha@sonera.com [PR libc/1868].
1875         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1876         * sysdeps/alpha/Dist: Likewise.
1878 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1880         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1881         destructor).  Reported by Solar Designer <solar@false.com>.
1883         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1884         avoid adding double slashes.
1886 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1888         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1889         out of the __REDIRECT macro.
1891 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1893         * stdio-common/vfscanf.c: Add %F format support.
1895         * locale/programs/ld-ctype.c (ctype_output): Make sure
1896         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1897         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1898         (ctype_read): Enable returning of wide character strings for reading
1899         transliteration information.
1901 2000-08-23  Andreas Jaeger  <aj@suse.de>
1903         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1904         Use static __inline instead of _EXTERN_INLINE.
1906         * misc/sys/select.h: Move prototypes of __select from here ...
1907         * include/sys/select.h: ... to here.
1909         * socket/sys/socket.h: Move prototypes of __send and __connect
1910         from here....
1911         * include/sys/socket.h: ... to here.
1913         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1914         lr_error.
1916 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1918         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1919         __setrlimit as strong name. Takes only 2 arguments.
1921         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1922         takes only 2 arguments.
1924 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1926         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1928         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1930 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1932         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1933         default_missing character being specified, pick the first
1934         representable.
1936 2000-08-23  Andreas Jaeger  <aj@suse.de>
1938         * include/wchar.h: Add some pure attributes.
1940         * time/time.h: Add const attribute for dysize.
1942         * include/stdlib.h: Add malloc attribute to __posix memalign.
1944         * stdlib/stdlib.h: Add some pure and malloc attributes.
1945         * wcsmbs/wchar.h: Likewise.
1947         * dirent/dirent.h: Add some pure attributes.
1948         * include/dirent.h: Likewise.
1950 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1952         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1953         on 64bit arches.
1955 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1957         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1958         missing buffer size checks.
1960 2000-08-23  Andreas Jaeger  <aj@suse.de>
1962         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1963         strong name.
1964         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1966         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1967         otherwise __LINUX_KERNEL_VERSION might not be defined.
1968         (MIN): Define if not already defined.
1970 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1972         * stdio-common/vfprintf.c: Handle %F format.
1973         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1974         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1976         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1978         * po/zh.po: New file.
1980         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1981         enough room in target buffer.
1982         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1983         * iconvdata/bug-iconv1.c: New file.
1984         * iconvdata/Makefile (tests): Add bug-iconv1.
1986         * locale/iso-4217.def: Update entry for Nicaragua.
1988 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1990         * hurd/hurdsig.c: Rearrange headers a bit.
1991         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1992         when cthreads is being used.
1994 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1996         * elf/Makefile (distribute): Add dl-osinfo.h.
1997         * sysdeps/generic/dl-osinfo.h: New file.
1998         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1999         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2000         if defined.
2001         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2002         only for !SHARED case.  Get the code from dl-osinfo.h.
2004         * stdlib/random_r.c: Cleanups.
2005         * stdlib/tst-random.c: New file.
2006         * stdlib/Makefile (tests): Add tst-random.
2007         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2009 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2011         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2012         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2013         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2014         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2016 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2018         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2019         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2020         (__syscall__sysctl): Add.
2022 2000-08-21  Andreas Jaeger  <aj@suse.de>
2024         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2025         libc/1864).
2026         * stdlib/tst-strtoll.c: Likewise.
2028 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2030         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2031         correctly.
2032         (__initstate_r): Set errno on error.
2033         (__random_r): Likewise.
2034         (__setstate_r): Correct offset when computing
2035         new rptr and fptr.  Test for arg_state being NULL.
2036         Reported by Michael Fischer <fischer@cs.yale.edu>.
2038         * posix/regex.h: Add macro definitions to allow compiling outside
2039         glibc.
2041         * sysdeps/i370/Implies: Removed.
2042         * sysdeps/mvs/Implies: Removed.
2044         * catgets/catgets.c (catopen): Filter out env_var values with / if
2045         necessary.
2047         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2048         locale name after all getenvs.
2050         * configure.in: Allow sed versions like 3.02.8.
2051         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2053 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2055         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2057 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2059         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2060         of gethostbyname2_r call.
2062         * intl/locale.alias: Add aliases for Korean.
2064 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2066         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2067         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2068         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2069         * sysdeps/s390/fpu/fegetenv.c: New file.
2070         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2071         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2072         * sysdeps/s390/fpu/fenv_libc.h: New file.
2073         * sysdeps/s390/fpu/fesetenv.c: New file.
2074         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2075         * sysdeps/s390/fpu/feupdateenv.c: New file.
2076         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2077         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2078         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2079         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2080         * sysdeps/s390/fpu/ftestexcept.c: New file.
2081         * sysdeps/s390/fpu/libm-test-ulps: New file.
2082         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2083         * sysdeps/s390/initfini.c: New file.
2084         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2085         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2086         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2087         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2088         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2089         sys/procfs.h as proposed by Mark Kettenis.
2090         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2092 2000-08-21  Andreas Jaeger  <aj@suse.de>
2094         * include/poll.h: Include include/sys/poll.h to get __poll
2095         declaration.
2097         * io/sys/poll.h: Move __poll declaration from here...
2098         * include/sys/poll.h: ...to here.
2100         * include/sys/socket.h (__getpeername): Add declaration.
2102         * include/wchar.h (__vswprintf): Add declaration.
2104         * include/stdio.h (__flockfile): Add declaration.
2105         (__funlockfile): Likewise.
2107 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2109         * misc/sys/cdefs.h: Define __restrict_arr.
2110         * include/sys/time.h: Add restrict where required by AGd4.
2111         * inet/arpa/inet.h: Likewise.
2112         * io/sys/stat.h: Likewise.
2113         * io/sys/statvfs.h: Likewise.
2114         * misc/search.h: Likewise.
2115         * misc/sys/select.h: Likewise.
2116         * posix/glob.h: Likewise.
2117         * posix/regex.h: Likewise.
2118         * posix/spawn.h: Likewise.
2119         * posix/unistd.h: Likewise.
2120         * rt/aio.h: Likewise.
2121         * signal/signal.h: Likewise.
2122         * socket/sys/socket.h: Likewise.
2123         * stdlib/ucontext.h: Likewise.
2124         * streams/stropts.h: Likewise.
2125         * string/string.h: Likewise.
2126         * time/time.h: Likewise.
2127         * time/sys/time.h: Likewise.
2129         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2130         and posix_spawnattr_setscheparam.
2132         * libio/stdio.h: Make cuserid prototype again available for all
2133         XPG versions.
2135         * argp/argp-help.c: Unify use of function aliases to make more compact
2136         PLT.
2137         * include/libintl.h: Likewise.
2138         * inet/rcmd.c: Likewise.
2139         * intl/dcigettext.c: Likewise.
2140         * libio/iofputws.c: Likewise.
2141         * libio/iofputws_u.c: Likewise.
2142         * libio/iogetwline.c: Likewise.
2143         * libio/swprintf.c: Likewise.
2144         * malloc/malloc.c: Likewise.
2145         * nss/digits_dots.c: Likewise.
2146         * posix/fnmatch.c: Likewise.
2147         * posix/spawn_faction_addclose.c: Likewise.
2148         * posix/spawn_faction_adddup2.c: Likewise.
2149         * posix/spawn_faction_addopen.c: Likewise.
2150         * posix/spawni.c: Likewise.
2151         * posix/wordexp.c: Likewise.
2152         * posix/spawni.c: Likewise.
2153         * resolv/res_hconf.c: Likewise.
2154         * resolv/res_init.c: Likewise.
2155         * shadow/lckpwdf.c: Likewise.
2156         * signal/sighold.c: Likewise.
2157         * signal/sigrelse.c: Likewise.
2158         * stdio-common/printf-parse.h: Likewise.
2159         * stdio-common/printf-prs.c: Likewise.
2160         * stdio-common/printf_fp.c: Likewise.
2161         * stdio-common/vfprintf.c: Likewise.
2162         * stdio-common/vfscanf.c: Likewise.
2163         * stdlib/rpmatch.c: Likewise.
2164         * sunrpc/create_xid.c: Likewise.
2165         * sunrpc/key_call.c: Likewise.
2166         * sysdeps/generic/setrlimit64.c: Likewise.
2167         * sysdeps/generic/utmp_file.c: Likewise.
2168         * sysdeps/generic/vlimit.c: Likewise.
2169         * sysdeps/posix/posix_fallocate.c: Likewise.
2170         * sysdeps/posix/posix_fallocate64.c: Likewise.
2171         * sysdeps/posix/sigpause.c: Likewise.
2172         * sysdeps/posix/sigset.c: Likewise.
2173         * sysdeps/unix/grantpt.c: Likewise.
2174         * sysdeps/unix/bsd/ualarm.c: Likewise.
2175         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2176         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2177         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2178         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2179         * time/strftime.c: Likewise.
2180         * wcsmbs/wcscoll.c: Likewise.
2181         * wcsmbs/wcsxfrm.c: Likewise.
2183         * time/tst-getdate.c (main): Make error messages more human readable.
2185         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2186         postinc/predec instruction.
2187         (_FPU_SETCW): Likewise.
2188         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2190 2000-08-20  Andreas Jaeger  <aj@suse.de>
2192         * time/tst-getdate.c (main): Increase error in case of wrong
2193         conversion.
2194         Fix typo in test case.
2196 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2198         * ctype/ctype.h (isblank): Make available if ISO C99.
2199         * wctype/wctype.h (iswblank): Make available if ISO C99.
2200         * math/math.h (signgam): Don't make available if ISO C99.
2201         * math/tgmath.h (tgamma): Renamed from gamma.
2202         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2204         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2205         Pretty printing.
2206         * intl/plural.y (new_exp): Take number of optional parameters in
2207         second parameter.  Test for correct number of parameters and free
2208         correctly in case of failure.  Adjust all callers.
2209         (yylex): Allow ';' as terminator character.
2211 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2213         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2214         walt_digits.
2216         * locale/findlocale.c (free_mem): Also free here->filename.
2218         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2220         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2221         first test.
2222         (feexcp_nomask_test): Correct printf args.
2223         (feexcp_mask_test): Likewise.
2225 2000-08-19  Andreas Jaeger  <aj@suse.de>
2227         * inet/tst-gethnm.c: Include string.h to provide prototype for
2228         strcmp.
2230         * malloc/mtrace.pl (usage): Inform about --help.
2232 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2234         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2235         size HEAP_MAX_SIZE.
2237 2000-08-19  Andreas Jaeger  <aj@suse.de>
2239         * shlib-versions: Remove libnss_db, libdb and libdb1.
2241 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2243         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2244         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2245         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2246         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2247         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2248         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2249         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2250         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2251         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2252         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2253         getdents.
2254         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2255         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2257 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2259         * include/glob.h (__glob64): Add prototype.
2260         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2261         define glob and glob_in_dir.
2262         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2263         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2264         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2265         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2266         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2267         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2268         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2269         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2271 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2273         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2275 2000-08-17  Andreas Jaeger  <aj@suse.de>
2277         * math/test-fenv.c (fe_single_test): New function.
2278         (fe_env_tests): Use fe_single_test.
2279         (feenable_test): New tests for feenable/fedisable and
2280         fegetexcpetions.
2281         (feexcp_mask_test): New function.
2282         (feexcp_nomask_test): New function.
2284 2000-08-19  Richard Henderson  <rth@cygnus.com>
2286         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2287         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2288         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2289         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2290         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2291         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2292         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2293         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2294         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2295         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2296         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2297         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2298         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2299         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2300         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2301         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2302         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2304 2000-08-19  Andreas Jaeger  <aj@suse.de>
2306         * elf/constload1.c: Include <stdio.h> for puts prototype.
2308 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2310         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2311         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2312         a dynamically loaded object remove old l_initfini list.
2313         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2314         remove some dynamically allocated memory blocks in the dynamic
2315         loading data structures.
2316         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2317         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2318         Instead call _dl_check_map_versions only for the dependencies.
2319         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2320         information of initial objects as not free-able.
2321         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2322         element.
2324         * elf/filter.c: Call mtrace.
2325         * elf/restest1.c: Likewise.  Close the objects.
2326         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2327         debug information.
2329         * elf/constload1.c: Add comment explaining not freed memory.
2331 2000-08-18  Andreas Jaeger  <aj@suse.de>
2333         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2334         alignment for structs stat and stat64.
2335         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2337 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2339         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2340         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2342         * nss/Versions: Remove libnss_db information.
2344 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2346         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2347         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2348         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2349         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2351         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2352         to match Solaris.
2354 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2356         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2357         (_FPU_SETCW): Likewise.
2358         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2360         * stdio-common/printf_fp.c: Fix chars_needed computation.
2361         Patch by Greg McGary <greg@mcgary.org>.
2363 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2365         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2366         _dl_loaded are NULL.
2368 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2370         * manual/arith.texi (feholdexcept): Returns 0 on success.
2372 2000-08-17  Andreas Jaeger  <aj@suse.de>
2374         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2375         (ifr_newname): New.
2376         Reported by Andi Kleen <ak@suse.de>.
2378 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2380         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2381         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2382         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2384 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2386         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2387         of buf->st_ino and kbuf->st_ino, not __st_ino.
2388         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2389         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2390         directive so that only linux/getdents.c is used, not some
2391         architecture specific one.
2393 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2395         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2396         enabled, not disabled exceptions.
2397         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2398         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2400 2000-08-17  Greg McGary  <greg@mcgary.org>
2402         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2403         from test program name when constructing suffix for $(LDLIBS-*).
2404         (bounded-thread-library): New variable.
2405         * crypt/Makefile
2406         [build-shared, build-static] (libcrypt-dep): Remove variable.
2407         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2408         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2409         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2410         (librt-tests): Add variable.  (tests): Use it.
2411         [build-shared, build-static]
2412         ($(addprefix $(objpfx),$(tests)),
2413         $(addprefix $(objpfx),$(librt-tests))):
2414         Consolidate individual dependencies.
2415         [build-bounded]
2416         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2417         Add dependencies.
2418         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2419         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2420         * misc/Makefile
2421         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2422         * rt/Makefile
2423         [build-shared, build-static]
2424         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2425         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2427 2000-08-17  Greg McGary  <greg@mcgary.org>
2429         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2430         * sysdeps/unix/make-syscalls.sh: Likewise.
2431         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2432         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2433         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2434         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2435         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2437 2000-08-17  Greg McGary  <greg@mcgary.org>
2439         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2440         Wrap extern symbols in BP_SYM ().
2441         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2442         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2443         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2444         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2445         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2446         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2447         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2448         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2449         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2450         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2452 2000-08-16  Andreas Schwab  <schwab@suse.de>
2454         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2455         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2456         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2458 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2460         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2461         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2462         * elf/dl-support.c: Define _nl_nloaded.
2463         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2464         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2465         object to global list.
2466         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2467         from _dl_loaded list.
2468         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2469         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2470         number here.
2472         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2473         unmask, exceptions.
2474         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2475         exceptions.
2476         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2478 2000-08-16  Andreas Jaeger  <aj@suse.de>
2480         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2482 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2484         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2486 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2488         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2489         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2490         (sysdep_routines): Add oldgetrlimit64.
2491         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2492         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2494         * include/link.h: Undo last patches.  Hurd now has stat64.
2495         * elf/Makefile: Likewise.
2496         * elf/dl-load.c: Likewise.
2497         * elf/dl-misc.c: Likewise.
2498         * elf/dl-profile.c: Likewise.
2499         * sysdeps/generic/sysd-link.h: Removed.
2500         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2502         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2503         thread event callback function.
2504         (__aio_notify_only): Use function above.
2505         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2507 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2509         * sysdeps/mach/hurd/lseek64.c: New file.
2511 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2513         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2514         Remove typedefs.
2515         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2516         typedefs.
2517         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2518         typedefs.
2519         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2521 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2523         * sysdeps/mach/hurd/xstatconv.c: New file.
2524         * sysdeps/mach/hurd/fxstat64.c: New file.
2525         * sysdeps/mach/hurd/lxstat64.c: New file.
2526         * sysdeps/mach/hurd/xstat64.c: New file.
2527         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2529 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2531         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2532         Initialize, needed for change in common symbol handling in newer
2533         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2535 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2537         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2538         * elf/constload2.c: Add destructor to unload constload3.
2540         * include/link.h: Include sysd-link.h.
2541         * sysdeps/generic/sysd-link.h: New file.
2542         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2543         * elf/Makefile (distribute): Add sysd-link.h.
2544         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2545         types and functions directly.
2546         * elf/dl-misc.c: Likewise.
2547         * elf/dl-profile.c: Likewise.
2549         * elf/loadfail.c (main): Close all successfully loaded objects.
2551         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2552         free wd.
2553         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2554         there is already one.
2556         * elf/dl-close.c: Pretty print.
2558 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2560         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2561         global (with file scope).  Add __libc_subfreeres function to free the
2562         string.
2563         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2564         in ttyname function.
2566         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2568         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2570         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2571         mapping them to /x5c and /x7e respectively.
2573         * locale/programs/ld-ctype.c: Add support for more definitions after
2574         copy statement.
2576 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2578         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2579         * sysdeps/unix/sysv/linux/kernel-features.h
2580         (__ASSUME_GETDENTS64_SYSCALL): Define.
2581         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2582         syscall if available to get d_type fields.
2583         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2584         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2585         __lxstat64): Export at GLIBC_2.2.
2586         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2587         Likewise.
2588         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2589         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2590         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2591         getdirentries64, versionsort64): Remove.
2592         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2593         getdirentries64, versionsort64): Remove.
2595 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2597         * posix/Makefile: Remove rules to generate glob package.
2599         * posix/Makefile (tests): Add tst-regexloc.
2600         (tst-regexloc-ENV): Add LOCPATH.
2601         * posix/tst-regexloc.c: New file.
2603 2000-08-12  Andreas Jaeger  <aj@suse.de>
2605         * include/features.h (__STDC_ISO_10646__): Define.
2606         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2608 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2610         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2612         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2613         for revision 6 and up).
2615         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2616         including <time.h>.
2617         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2618         to get definitions of just these types.
2620         * signal/signal.h: Define thread signal handling functions also for
2621         POSIX95.
2623         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2624         POSIX95.
2625         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2626         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2627         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2628         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2630         * sysvipc/sys/shm.h: Define pid_t for XPG.
2632         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2633         they are not anymore required here.
2635         * wcsmbs/wchar.h: Make the various wide char string and stream
2636         functions available for the respective XPG versions.
2638         * nss/Makefile: Remove rules to build and distribute nss_db.
2640         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2641         * sysdeps/generic/scandir64.c: Likewise.
2642         * sysdeps/generic/versionsort64.c: Likewise.
2644 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2645             Benjamin Koznik  <bkoz@redhat.com>
2647         * libio/fileops.c: Merge with libstdc++-v3.
2648         * libio/genops.c: Likewise.
2649         * libio/iofclose.c: Likewise.
2650         * libio/iofopen.c: Likewise.
2651         * libio/iofwide.c: Likewise.
2652         * libio/libio.h: Likewise.
2653         * libio/libioP.h: Likewise.
2654         * libio/stdfiles.c: Likewise.
2655         * libio/stdio.c: Likewise.
2656         * libio/wfileops.c: Likewise.
2657         * libio/wgenops.c: Likewise.
2659         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2661 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2663         * locale/programs/localedef.c: Implement --prefix option to allow
2664         writing in standard places of alternative install directories.
2666         * posix/regex.c (compile_range): Implement collation sequence
2667         handling for glibc.  Use simple character ordering otherwise and
2668         not strcoll.
2670 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2672         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2674 2000-08-12  Andreas Jaeger  <aj@suse.de>
2676         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2677         __USE_FILE_OFFSET64 correctly for locking.
2678         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2680 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2682         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2683         Define for 2.4.1 on sparc as well.
2684         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2685         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2686         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2687         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2689 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2691         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2692         defined.
2694 2000-08-12  Andreas Jaeger  <aj@suse.de>
2696         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2697         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2699         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2700         mips2 for assembler.
2702         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2703         if fnctl64 is not available for F_*LK*64.
2705         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2707 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2709         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2710         Define for 2.4.1 on x86.
2711         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2712         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2713         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2715         * dirent/dirent.h: Define DT_WHT.
2717         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2718         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2719         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2720         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2721         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2722         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2724 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2726         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2727         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2728         * inet/Makefile (tests): Add tst-gethnm.
2729         * inet/tst-gethnm.c: New file.
2731         * rt/aio_cancel.c: If canceling a specific request which is running
2732         *really* do nothing.
2733         * rt/aio_misc.h: Add `done' to states of a request.
2734         * rt/aio_misc.c: Add several tests for the correct state.
2735         Simplify request table memory handling.
2737 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2739         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2740         * dirent/scandir64.c: Move...
2741         * sysdeps/generic/scandir64.c: ...here.
2742         * dirent/alphasort64.c: Move...
2743         * sysdeps/generic/alphasort64.c: ...here.
2744         * dirent/versionsort64.c: Move...
2745         * sysdeps/generic/versionsort64.c: ...here.
2746         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2747         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2748         Export symbols at GLIBC_2.2.
2749         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2750         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2751         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2752         __versionsort64): Add prototypes.
2753         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2754         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2755         unused prototype.
2756         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2757         and GLIBC_2.2.
2758         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2759         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2760         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2761         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2762         __u_quad_t.
2763         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2764         Adjust for kernel-2.4.0-test6 layout.
2765         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2766         GLIBC_2.1 and GLIBC_2.2.
2767         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2768         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2769         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2770         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2771         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2772         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2773         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2774         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2775         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2776         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2777         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2778         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2779         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2780         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2781         __u_quad_t.
2782         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2783         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2784         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2785         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2786         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2787         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2788         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2789         __u_quad_t.
2790         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2791         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2792         Define.
2793         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2794         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2795         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2796         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2797         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2798         Define.
2799         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2800         alpha/readdir.c.
2801         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2802         alpha/readdir_r.c
2803         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2804         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2805         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2806         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2807         st_ino from __st_ino.
2808         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2809         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2810         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2811         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2812         set __st_ino in addition to st_ino.
2813         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2814         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2815         __old_getdents64 as well.
2816         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2817         getdirentries64 and old_getdirentries64 as well.
2818         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2819         __GETDENTS): Define.
2820         (GETDENTS64): Remove.
2821         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2822         Define.
2823         (GETDENTS64): Remove.
2824         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2825         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2826         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2827         as well.
2828         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2829         __old_readdir64_r as well.
2830         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2831         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2833 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2835         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2836         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2837         define of the kernel.
2838         Add missing __SEG_PSTKOVF definition.
2839         Adjust the padding of struct siginfo and struct sigevent to
2840         match the fact that sigval_t is 64 bit.
2842 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2844         * timezone/zic.c: Update from tzcode2000f.
2845         * timezone/australasia: Update from tzdata2000f.
2846         * timezone/europe: Likewise.
2847         * timezone/southamerica: Likewise.
2848         * timezone/yearistype: Likewise.
2850 2000-08-10  Andreas Jaeger  <aj@suse.de>
2852         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2853         stat with current MIPS kernel.
2855 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2857         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2858         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2859         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2860         Remove the junk that's only relevant in the Linux kernel itself.
2861         Add a warning saying that this file is now obsolete, and include
2862         <sys/procfs.h>.
2863         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2864         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2865         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2866         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2867         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2868         and add the notice that the file is primarily there for GDB.
2869         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2871 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2873         * time/tzfile.c (__tzfile_compute): __tzstring zones
2874         from zone_names.
2876 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2878         * resolv/resolv.h (__res_state): Surround prototype with
2879         __BEGIN_DECLS/__END_DECLS.
2880         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2882 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2884         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2885         Make independant of asm/resource.h from the Linux kernel.
2887 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2889         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2891 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2893         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2894         * locale/Makefile (locale-CPPFLAGS): Likewise.
2896 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2898         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2899         for AMD processors.
2901 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2903         * misc/Versions (mincore): Export at GLIBC_2.2.
2905 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2907         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2909 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2911         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2912         socketpair.  Made socketpair a weak alias.
2913         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2914         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2915         conforming, but fall back on the old protocol if the socket server
2916         doesn't support it.
2917         * include/sys/socket.h: Add prototype for __socketpair.
2919 2000-08-09  Andreas Schwab  <schwab@suse.de>
2921         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2922         long long modifier is seen.
2924         * elf/nodelete.c (do_test): Remove reference to undefined member
2925         sa_restorer.
2926         * rt/tst-aio4.c (do_test): Likewise.
2928         * configure.in: Add `-lm' when checking for libgd.
2929         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2930         linking.
2932 2000-08-09  Andreas Jaeger  <aj@suse.de>
2934         * configure.in: Change required make versions.
2936         * manual/install.texi (Tools for Compilation): Document required
2937         make version.
2938         (Supported Configurations): Update list of supported
2939         configurations.
2941 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2943         * locale/linereader.c (get_string): Don't print an error is a string
2944         contains an unknown character.
2946 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2948         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2949         (new_symbol): Take new parameters with name of the symbol.
2950         Adjust callers.
2951         (handle_ellipsis): Don't only allow character symbols.
2952         (collate_read): Allow string of collating elements contain invalid
2953         characters; ignore entry in this case.
2954         Handle ellipsis of collating symbols before first order_start.
2955         Allow ellipsis in state 0.
2957 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2959         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2960         error message.
2961         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2963 2000-08-04  Greg McGary  <greg@mcgary.org>
2965         * posix/regex.c (SET_HIGH_BOUND): New macro.
2966         (MOVE_BUFFER_POINTER): Use it.
2967         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2968         (EXTEND_BUFFER): Use it.
2970 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2972         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2973         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2974         _wide_data but from _IO_FILE directly.
2975         * libio/iofclose.c: Likewise.
2976         * libio/wfileops.c: Likewise.
2978         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2979         * libio/libioP.h: Change prototypes.
2981 2000-08-03  Greg McGary  <greg@mcgary.org>
2983         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2984         frame pointer early so that we save caller's frame pointer.
2985         * sysdeps/i386/elf/setjmp.S: Likewise.
2987         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2988         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2990         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2991         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2992         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2994 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2996         * iconvdata/big5.c: Updated.
2997         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2999 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3001         * Makeconfig (all-subdirs): Add conform.
3002         * conform/Makefile: Include ../Rules.
3004         * Makefile (README): Add rules to generate here as well.
3006 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3008         * version.h (VERSION): Bump to 2.1.92.
3010         * sysdeps/ia64/Dist: Add _mcount.S.
3012         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3014         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3016         * elf/Makefile (distribute): Add missing modules.
3018         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3020         * posix/regex.c (compile_range): Translate range start and end
3021         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3023         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3024         asm/resource.h.
3026         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3028 2000-08-02  Andreas Jaeger  <aj@suse.de>
3030         * elf/elf.h (EM_S390): Added.
3031         (R_390_*): New relocs for S390.
3033         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3034         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3035         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3036         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3037         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3038         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3039         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3040         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3041         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3042         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3043         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3044         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3045         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3046         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3047         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3048         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3049         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3050         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3051         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3052         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3053         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3054         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3055         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3056         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3057         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3058         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3059         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3060         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3061         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3062         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3063         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3064         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3065         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3066         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3067         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3068         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3069         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3070         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3071         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3072         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3073         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3074         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3075         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3076         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3077         * sysdeps/s390/sysdep.h: New file.
3078         * sysdeps/s390/sys/ucontext.h: New file.
3079         * sysdeps/s390/sub_n.S: New file.
3080         * sysdeps/s390/strncpy.S: New file.
3081         * sysdeps/s390/strcpy.S: New file.
3082         * sysdeps/s390/stackinfo.h: New file.
3083         * sysdeps/s390/setjmp.S: New file.
3084         * sysdeps/s390/s390-mcount.S: New file.
3085         * sysdeps/s390/mul_1.S: New file.
3086         * sysdeps/s390/memusage.h: New file.
3087         * sysdeps/s390/memset.S: New file.
3088         * sysdeps/s390/memcpy.S: New file.
3089         * sysdeps/s390/memchr.S: New file.
3090         * sysdeps/s390/machine-gmon.h: New file.
3091         * sysdeps/s390/ldbl2mpn.c: New file.
3092         * sysdeps/s390/gmp-mparam.h: New file.
3093         * sysdeps/s390/fpu/fpu_control.h: New file.
3094         * sysdeps/s390/fpu/fesetround.c: New file.
3095         * sysdeps/s390/fpu/fegetround.c: New file.
3096         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3097         * sysdeps/s390/fpu/bits/fenv.h: New file.
3098         * sysdeps/s390/ffs.c: New file.
3099         * sysdeps/s390/elf/start.S: New file.
3100         * sysdeps/s390/elf/setjmp.S: New file.
3101         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3102         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3103         * sysdeps/s390/dl-machine.h: New file.
3104         * sysdeps/s390/bzero.S: New file.
3105         * sysdeps/s390/bsd-setjmp.S: New file.
3106         * sysdeps/s390/bsd-_setjmp.S: New file.
3107         * sysdeps/s390/bits/string.h: New file.
3108         * sysdeps/s390/bits/setjmp.h: New file.
3109         * sysdeps/s390/bits/huge_val.h: New file.
3110         * sysdeps/s390/bits/endian.h: New file.
3111         * sysdeps/s390/bits/byteswap.h: New file.
3112         * sysdeps/s390/bcopy.S: New file.
3113         * sysdeps/s390/backtrace.c: New file.
3114         * sysdeps/s390/atomicity.h: New file.
3115         * sysdeps/s390/asm-syntax.h: New file.
3116         * sysdeps/s390/addmul_1.S: New file.
3117         * sysdeps/s390/add_n.S: New file.
3118         * sysdeps/s390/abort-instr.h: New file.
3119         * sysdeps/s390/__longjmp.c: New file.
3120         * sysdeps/s390/Makefile: New file.
3121         * sysdeps/s390/Implies: New file.
3122         * sysdeps/s390/Dist: New file.
3123         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3125 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3127         Remove incompatible IPv6 extension of RPC.
3128         * sunrpc/Makefile: Undo changes.
3129         * sunrpc/rpc_main.c: Likewise.
3130         * sunrpc/rpc/clnt.h: Likewise.
3131         * sunrpc/rpc/svc.h: Likewise.
3132         * sunrpc/bindrsvprt6.c: Removed.
3133         * sunrpc/clnt_tcp6.c: Removed.
3134         * sunrpc/clnt_udp6.c: Removed.
3135         * sunrpc/svc_tcp6.c: Removed.
3136         * sunrpc/svc_udp6.c: Removed.
3138         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3139         dgettext, and dcgettetxt.
3141         * intl/locale.alias: Update japanese aliases.
3143         * sysdeps/ia64/bits/byteswap.h: New file.
3144         Patch by Dan Pop <Dan.Pop@cern.ch>.
3146         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3147         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3149 2000-07-13  H.J. Lu  <hjl@gnu.org>
3151         * posix/regex.c (re_max_failures): Set to 4000.
3153 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3155         * gnulib/Makefile (tests): Add tst-gcc.
3156         * gnulib/tst-gcc.c: New file.
3158         * assert/Makefile (routines): Add __assert.
3159         * assert/Versions: Export __assert for glibc 2.2.
3160         * assert/__assert.c: New file.
3161         * assert/assert.h: Declare __assert.
3163 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3165         * locale/localeinfo.h (_ISCTYPE): New macro.
3166         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3167         LC_CTYPE locale format.
3168         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3169         (ctype_output): Output class_b[nr] right before class_3level[nr].
3170         (allocate_arrays): Fill class_b, similarly to class_3level.
3172 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3173             Joseph S. Myers  <jsm28@cam.ac.uk>
3175         * math/tgmath.h: Make standard compliant.  Don't ask how.
3177 2000-07-04  H.J. Lu  <hjl@gnu.org>
3179         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3180         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3181         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3183 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3185         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3186         (__USE_LARGEFILE): Add an explanation.
3187         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3188         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3190 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3192         * libio/Makefile: Enable exception handling for genops, wgenops,
3193         fileops, and wfileops.
3195 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3197         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3198         acount that elf/rtld's main program might remove some varibales
3199         from the environment if we're trying to be secure.  Move the Hurd
3200         startup data if necessary, or, if we there is no startup data,
3201         make sure the magical convention that ARGV[0] is stored just after
3202         the environment list.
3204 2000-08-01  Philip Blundell  <philb@gnu.org>
3206         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3207         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3208         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3209         oldsetrlimit for GLIBC_2.0.
3211 2000-08-01  Andreas Jaeger  <aj@suse.de>
3213         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3214         (LINE_PARSER): Allow any number of spaces between ip address and
3215         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3217         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3219         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3220         constants in.
3222         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3223         _nss_nisplus_getipnodebyname_r.
3225         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3226         now, getipnodebyname is deprecated.
3227         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3228         Likewise.
3230         * inet/Makefile (routines): Don't build getipnodebyaddr and
3231         friends.
3233         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3235         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3237         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3239         * wctype/Makefile (distribute): Add wchar-lookup.h.
3241         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3243         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3245 2000-08-01  Andreas Schwab  <schwab@suse.de>
3247         * Make-dist (dist): Resolve `..' in file names.
3249 2000-08-01  Andreas Jaeger  <aj@suse.de>
3251         * stdio-common/Makefile (distribute): Remove removed files, add
3252         new files.
3254         * Makefile (distribute): Remove include/db_185.h and db.h.
3256         * include/db_185.h: Remove, it's not needed anymore.
3257         * include/db.h: Likewise.
3259 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3261         * inet/Makefile (tests): Remove tst-ipnode.
3262         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3263         now.
3265 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3267         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3268         endp statements have already been added.
3270 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3272         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3273         <sysdeps/ia64/sysdep.h>.
3275         * sysdeps/ia64/_mcount.S: New file.
3277         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3278         __gmon_start__.  Fix up extraneous whitespace.
3280 2000-01-12  H.J. Lu  <hjl@gnu.org>
3282         * sysdeps/ia64/elf/initfini.c: New file.
3284 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3286         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3287         dependency between branch and ar.pfs write.
3289 2000-07-31  H.J. Lu  <hjl@gnu.org>
3291         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3292         handle the wchar_t array.
3294 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3296         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3297         10646 which are not yet assigned.
3298         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3300 2000-07-31  Andreas Jaeger  <aj@suse.de>
3302         * inet/Versions: Remove getipnodebyaddr and friends from
3303         GLIBC_2.2.
3305         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3307 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3309         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3310         ch >= 0x81 && ch2 < 0x40 as invalid.
3312 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3314         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3315         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3317 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3319         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3320         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3322 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3324         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3325         0xb8.
3326         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3328 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3330         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3332 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3334         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3335         (from_ucs4): Change values of U+00A4 and U+00ED.
3336         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3338 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3340         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3341         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3343 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3345         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3346         * iconvdata/isiri-3342.h: New file.
3347         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3348         treat 0x80 as a gap.
3350 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3352         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3353         (utf8_encode): Use simple shifts instead.  Fix return value.
3355 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3357         * timezone/private.h: Update from tzcode2000e.
3358         * timezone/asia: Update from tzdata2000e.
3359         * timezone/australasia: Likewise.
3360         * timezone/europe: Likewise.
3361         * timezone/northamerica: Likewise.
3362         * timezone/zone-tab: Likewise.
3364 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3366         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3367         the order of struct sigaltstack members is different.
3369 2000-07-26  Philip Blundell  <philb@gnu.org>
3371         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3373 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3375         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3376         * locale/programs/ld-ctype.c: Adjust for this.
3378         * locale/programs/ld-collate.c: Add more alignment checks.
3379         * locale/string/strcoll.c: Likewise.
3381 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3383         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3384         outside USE_IN_LIBIO block.
3386 2000-07-26  Philip Blundell  <philb@gnu.org>
3388         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3389         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3391 2000-07-28  Philip Blundell  <philb@gnu.org>
3393         * math/test-fpucw.c: Ignore reserved bits in control word.
3395 2000-07-28  Philip Blundell  <philb@gnu.org>
3397         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3398         (ret): Redefine to PSEUDO_RET.
3399         (PSEUDO): Remove jump to syscall_error.
3401 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3403         * resolv/README: Add some information about using the resolver in
3404         multi-threaded code and with C++.  Spelling fixes.
3406 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3408         * resolv/resolv.h (struct __sockaddr_in): Remove.
3409         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3411 2000-07-29  Greg McGary  <greg@mcgary.org>
3413         * Rules (test-bp-inputs, make-test-out): New variables.
3414         ($(objpfx)%-bp.out): New rule.
3415         ($(objpfx)%.out): Rewrite in terms of new variables.
3417         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3418         internal function that uses vtable.
3419         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3420         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3422         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3423         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3424         (chunk_align): Likewise.
3426         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3427         in a way that conforms to decl, and avoids spurious bounds violation.
3429         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3430         * sysdeps/generic/frame.h: Likewise.
3431         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3432         around return value.
3433         (__backtrace): Qualify frame-pointer chain and return address
3434         pointers as __unbounded.  Wrap bounds around variable `current'.
3435         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3436         around return value.
3437         (catch_segfault): Qualify frame-pointer chain and return address
3438         pointers as __unbounded.  Wrap bounds around variable `current'.
3439         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3440         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3441         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3442         __unbounded.
3443         (__backtrace): Qualify frame-pointer chain and return address
3444         pointers as __unbounded.  Wrap bounds around variable `current'.
3446         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3447         * sysdeps/i386/mul_1.S: Likewise.
3448         * sysdeps/i386/submul_1.S: Likewise.
3449         * sysdeps/i386/i586/addmul_1.S: Likewise.
3450         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3451         * sysdeps/i386/i586/submul_1.S: Likewise.
3453 2000-07-27  Andreas Jaeger  <aj@suse.de>
3455         * libio/Depend: New file, libio needs localedata for tests.
3456         * posix/Depend: Likewise.
3458 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3460         * stdio-common/_i18n_itoa.c: Removed.
3461         * stdio-common/_i18n_itoa.h: Removed.
3462         * stdio-common/_i18n_itowa.c: Removed.
3463         * stdio-common/_i18n_itowa.h: Removed.
3464         * stdio-common/_i18n_number.h: New file.
3465         * stdio-common/Depend: New file.
3466         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3467         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3468         printing.  Change printing of numbers with locale specific digits to
3469         use new code in _i18n_number.h.
3470         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3471         _i18n_itowa.
3473         * stdio-common/bug13.c: Improve messages.
3475         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3476         (set_class_defaults): Always search also for Uxxxx names.
3477         Detect insufficient number of outdigits.
3479         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3481 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3483         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3484         _NL_CTYPE_MAP_NAMES.
3485         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3486         * wctype/wcfuncs.c (towlower, towupper): Use them.
3487         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3488         * wctype/wctrans.c (wctrans): Likewise.
3489         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3491 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3493         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3494         Use the optimized version of this function outside glibc as well.
3496 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3498         * locale/indigits.h (indigit_value): Correct.
3499         * locale/indigitswc.h (indigitwc_value): Correct.
3500         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3501         conversion, add GROUP checking for it, fix GROUP number
3502         conversion with strlen(thousands) > 1.
3503         Honour width correctly in the presence of floating
3504         decimal points and thousands separators.
3505         * stdio-common/tst-sscanf.c: New test.
3506         * stdio-common/Makefile: Add it to tests.
3507         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3508         thousands separators and group argument is non-zero.
3510 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3512         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3513         starts at GLIBC_2.2.
3515 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3517         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3518         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3519         _test_and_set.
3520         (headers): Add sys/tas.h.
3521         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3522         GLIBC_2.2 from libc.
3523         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3524         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3525         _test_and_set.
3527 2000-07-28  Andreas Jaeger  <aj@suse.de>
3529         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3531         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3532         ($(objpfx)tst-dladdr.out): new.
3533         (tests): Add tst-dladdr.
3534         ($(objpfx)glrefmain): Use libdl.
3536         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3537         <vs@caldera.de>.
3539 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3541         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3542         ftruncate(64) calls.
3544 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3546         * intl/tst-translit.c: Include string.h to get prototype for
3547         strcmp().
3549 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3551         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3552         name and add weak alias for __fork.
3554         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3555         & pwrite to use __libc_<name> as strong names instead of
3556         __syscall_<name>.
3558         * include/sched.h: Add clone2 prototype.
3560 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3562         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3563         procedure name twice.
3565 2000-07-27  Philip Blundell  <philb@gnu.org>
3567         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3569 2000-07-27  Andreas Jaeger  <aj@suse.de>
3571         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3572         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3573         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3574         Reported by Andi Kleen <ak@suse.de>.
3576         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3577         (do_wait): Test requests with aio_return64.
3578         (do_test): Change callers of do_wait.
3580 2000-07-26  Andreas Jaeger  <aj@suse.de>
3582         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3583         (do_wait): Test requests with aio_return.
3584         (do_test): Change callers of do_wait.
3586 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3588         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3589         from request list.  Don't do the list handling here, call
3590         __aio_remove_request.
3591         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3592         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3593         request might already be processed.  Don't do the list handling
3594         here, call __aio_remove_request.
3596         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3597         LIO_DSYNC.
3599         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3600         are missing.
3602 2000-07-27  Greg McGary  <greg@mcgary.org>
3604         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3605         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3606         in union init.  Pass zero for ignored semnum arg to semctl.
3607         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3609 2000-07-26  Greg McGary  <greg@mcgary.org>
3611         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3612         data structure pointers as __unbounded.
3613         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3614         * sysdeps/generic/bp-semctl.h: New file.
3615         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3616         pointers as __unbounded.  Check bounds of syscall args.
3617         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3618         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3619         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3620         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3621         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3622         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3623         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3624         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3625         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3626         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3627         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3628         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3629         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3630         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3631         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3632         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3634 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3636         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3637         by default.
3638         * locale/C-ctype.c: Likewise.
3639         * wcsmbs/wcsmbsload.c: Likewise.
3641 2000-07-26  Greg McGary  <greg@mcgary.org>
3643         * Makeconfig (+link-bounded, link-libc-bounded,
3644         link-extra-libs-bounded): New variables.
3645         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3646         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3647         * Rules (tests-bp.out): New variable.
3648         (tests): Conditionally add BP tests.
3649         (binaries-bounded): Add variable and associated rule.
3650         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3651         Move conditional stuff after place where condition is defined.
3653         * malloc/malloc.c (bp-checks.h): Add #include.
3654         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3655         (_bin_at): Add unbounded version of bin_at.
3656         (IAV, chunk_alloc): Use unbounded _bin_at.
3657         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3658         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3659         Wrap BOUNDED_N around return value.
3660         (chunk_realloc): Adjust oldsize once.
3662         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3663         (__ubp_memchr): Add correct decl.
3664         (_CHECK_STRING): Use __ubp_memchr.
3665         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3666         New alias for unbounded-pointer __memchr.
3667         * sysdeps/i386/memchr.S: Likewise.
3668         * sysdeps/ia64/memchr.S: Likewise.
3669         * sysdeps/m68k/memchr.S: Likewise.
3670         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3671         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3672         * sysdeps/vax/memchr.s: Likewise.
3674         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3675         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3676         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3677         * sysdeps/i386/i686/strtok.S: Likewise.
3678         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3679         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3681         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3682         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3684         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3685         bounds of copy_result to mount_proc.
3687 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3689         * wctype/wctype.h (__wctrans_l): New declaration.
3690         * wctype/wctrans_l.c: New file.
3691         * wctype/Makefile (routines): Add wctrans_l.
3693 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3695         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3696         Patch by MacGyver <macgyver@tos.net>.
3698 2000-07-26  Andreas Jaeger  <aj@suse.de>
3700         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3701         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3702         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3704         * rt/tst-aio.c (test_file): Fix typo.
3705         * rt/tst-aio64.c (test_file): Likewise.
3707         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3708         * rt/Makefile: Add rules to build and run tst-aio3.
3710         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3711         it's not needed and confuses only.
3713 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3715         * resolv/res_init.c: Add support for nameserver communication with
3716         IPv6.
3717         * resolv/res_send.c: Likewise.
3718         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3719         in nsaddrs field.
3720         Patch by <venaas@nvg.ntnu.no>.
3722 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3724         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3725         (wcwidth_table_get): New function.
3726         (wcwidth_table_add): Call it.
3727         (wctrans_table_get): New function.
3728         (wctrans_table_add): Call it.
3730 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3732         * rt/lio_listio.c (lio_listio): Always disable individual
3733         notification.
3734         * rt/Makefile: Add rules to build and run tst-aio2.
3735         * rt/tst-aio2.c: New file.
3737         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3738         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3740 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3742         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3743         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3744         leading and trailing spaces from host, user and domain name.
3746 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3748         * csu/defs.awk: Add support for need_endp.
3750 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3752         * resolv/resolv.h: Remove __P from res_send_qhook and
3753         res_send_rhook typedefs.
3755 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3757         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3759 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3761         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3763 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3765         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3766         calling thread, set the cancellation flag and return success
3767         instead of EINTR.
3769 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3771         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3772         * libio/tst-widetext.c: New file.
3773         * libio/tst-widetext.input: New file.
3775         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3777         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3778         empty external buffer correctly.
3780 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3782         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3783         __STRING(entry) and not #entry.
3784         (_RTLD_EPILOGUE): Likewise.
3785         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3787 2000-07-25  Andreas Jaeger  <aj@suse.de>
3789         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3790         according to changes in test program, run also with static only
3791         builds.
3792         ($(objpfx)tst-printf.out): Likewise.
3794         * stdio-common/tst-unbputc.sh: Likewise.
3795         * stdio-common/tst-printf.sh: Likewise.
3797 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3799         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3801         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3802         loop.
3804         * libio/fileops.c: Pretty print.
3806 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3808         * wctype/wchar-lookup.h: New file.
3809         * wctype/iswctype.c: Include "wchar-lookup.h".
3810         (__iswctype): Support alternate locale format with 3-level tables.
3811         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3812         * wctype/towctrans.c (__towctrans): Likewise.
3813         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3814         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3815         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3816         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3817         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3818         __iswxdigit, towlower, towupper): Support alternate locale format
3819         with 3-level tables.
3820         * wctype/wcextra.c (iswblank): Likewise.
3821         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3822         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3823         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3824         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3825         format with 3-level tables.
3826         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3827         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3828         format, return a 3-level table pointer.
3829         * wctype/wctype_l.c (__wctype_l): Likewise.
3830         * wctype/wctrans.c (wctrans): Likewise.
3831         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3832         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3833         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3834         (iswctype): Remove macro definition.
3835         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3836         (internal_wcwidth): Support alternate locale format with 3-level
3837         tables.
3838         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3839         New nl_items.
3840         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3841         Define them as being type "word".
3842         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3843         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3844         __ctype32_width): New exported variables.
3845         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3846         alternate locale format. Don't initialize __ctype_names and
3847         __ctype_width in the alternate locale format.
3848         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3849         * locale/programs/localedef.c (oldstyle_tables): New variable.
3850         (OPT_OLDSTYLE): New macro.
3851         (options): Add --old-style option.
3852         (parse_opt): Handle --old-style option.
3853         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3854         map_offset, class_3level, map_3level, width_3level members.
3855         (ctype_output): Support for alternate locale format: Computation of
3856         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3857         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3858         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3859         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3860         now contain both class and map tables.
3861         (struct wctype_table): New type.
3862         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3863         functions.
3864         (struct wcwidth_table): New type.
3865         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3866         functions.
3867         (struct wctrans_table): New type.
3868         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3869         functions.
3870         (allocate_arrays): Support for alternate locale format: Set
3871         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3872         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3873         to the first 256 characters. Compute ctype->map_3level. Set
3874         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3875         instead of ctype->width.
3877 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3879         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3880         string functions.
3882 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3884         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3885         in wide characters, not bytes.
3886         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3887         into file.
3889 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3891         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3892         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3893         LC_MEASUREMENT, LC_IDENTIFICATION.
3895         * locale/xlocale.h (struct __locale_struct): Increase size of
3896         __locales array.
3897         * locale/duplocale.c (__duplocale): Copy newly added categories as
3898         well.
3899         * locale/freelocale.c (__freelocale): Free newly added categories.
3900         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3901         If a base is given, use it, don't simply return it.
3903 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3905         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3906         variables, copied_key and copied_salt, instead of boolean variables.
3908 2000-07-24  Andreas Jaeger  <aj@suse.de>
3910         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3911         check for offset.
3913         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3914         initgroups_function, adopted prototype for change from 2000-07-23.
3915         (initgroups): Follow type change.
3917         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3918         & PAGE_MASK case, reformat.
3920         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3921         from stdin and setup environment.
3923 2000-07-24  Andreas Schwab  <schwab@suse.de>
3925         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3927 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3929         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3930         more.  Patch by scarlet@mit.edu [PR libc/1799].
3932         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3933         [PR libc/1792].
3935         * argp/argp-parse.c (parser_finalize): Reverse order in which
3936         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3938         * grp/initgroups.c (initgroups): Don't limit the possible number
3939         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3940         the setgroups call while the call fails and descrease the number
3941         of groups each round.
3942         The name of the initgroups function in the NSS modules changed.
3943         (compat_call): Adapt for dynamic resizing.
3944         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3945         Implement dynamic resizing.
3946         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3947         Likewise.
3948         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3949         * hesiod/Versions: Change exported interface name.
3950         * nis/Versions: Change exported interface name.
3952 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3954         * locale/iso-639.def: Some errors corrected.
3955         Patch by Keld Simonsen.
3957         * include/limits.h: Update non-gcc portion.
3958         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3960 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3962         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3963         program's data space, reallocate only the space that was just
3964         deallocated to release its backing space.
3966 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3968         * stdio-common/vfprintf.c (process_string_arg): For wide character
3969         version, handle precision also correctly.
3971         * nss/nss_files/files-hosts.c: Correct problem with three or more
3972         entries with the same name.
3974         * nss/nss_files/files-hosts.c: Implement multi handling.
3975         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3977 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3979         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3980         strcasecmp.
3982         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3983         * malloc/Makefile: Likewise.
3984         * malloc/tst-mtrace.sh: Likewise.
3985         * posix/Makefile: Likewise.
3986         * posix/globtest.sh: Likewise.
3987         * posix/wordexp-tst.sh: Likewise.
3988         * string/Makefile: Likewise.
3990 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3992         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3993         size instead of LC_ALL to take into account the new locale
3994         categories.
3996 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3998         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3999         remainders of hash table.
4000         * locale/categories.def: Remove remainders of transliteration
4001         hash table.
4002         * locale/langinfo.h: Likewise.
4003         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4004         transliteration tables.
4006         * locale/gen-translit.pl: New file.
4007         * locale/C-translit.h.in: New file.
4008         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4009         data pointers with data from this file.
4010         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4011         and gen-translit.pl.
4012         Add rule to generate C-translit.h.
4013         * intl/tst-translit.c (main): Update for now performed
4014         transliteration.
4016         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4017         (it's no input error).
4018         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4019         * stdio-common/scanf12.c: Correct expected result for first scanf.
4021         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4022         of multibyte character strings in %s format with precision.
4024 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4026         * locale/programs/ld-collate.c (collate_read): Allow collating
4027         symbols and elements be named in reorder-after instructions.
4028         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4030         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4031         duplication with generated name, not the name of the first
4032         character.
4033         Patch by Yong Li <yong.li@asu.edu>.
4035         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4036         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4038 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4040         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4041         allocations only if a non-main arena cannot be extended.
4043 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4045         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4046         in DF_1_NODEFLIB handling.
4048 2000-07-21  Andreas Jaeger  <aj@suse.de>
4050         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4051         own rule.
4053         * libio/fwide.c: Include <wchar.h> for prototype.
4055 2000-07-21  Greg McGary  <greg@mcgary.org>
4057         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4058         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4059         Define in terms of chunk_at_offset.
4060         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4061         (next_bin, prev_bin): offset by size of real array elements.
4062         (chunk_align): Make `m' a scalar, since that's how it's used.
4064 2000-07-21  Greg McGary  <greg@mcgary.org>
4066         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4067         UNCHECK_BOUNDS.
4068         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4069         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4070         Wrap bounds around argv & envp and each of their string members.
4071         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4072         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4073         symbol in BP_SYM ().  Discard bounds of address arg.
4074         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4075         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4076         Discard bounds on address arg, add bounds to return value.
4078 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4080         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4081         * elf/filter.c: New file.
4082         * elf/filtmod1.c: New file.
4083         * elf/filtmod2.c: New file.
4085         * elf/rtld.c: Define _dl_bind_not variable.
4086         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4087         * elf/dl-support.c: Likewise.
4088         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4089         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4090         _dl_bind_not.
4091         (profile_fixup): Likewise.
4093         * libio/Makefile (routines): Add fwide.
4094         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4095         fwide now.  Internal calls to _IO_fwide must do locking themselves
4096         or don't need locking.
4097         * libio/fwide.c: New file.
4099         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4101         * elf/Makefile: Add no modules for nodelete test.
4102         * elf/nodelmod3.c: New file.
4103         * elf/nodelmod4.c: New file.
4104         * elf/nodelete.c: Also test case where dependency of dlopen() object
4105         is marked nodelete.
4107         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4108         * elf/nodlopen.c: New file.
4109         * elf/nodlopenmod.c: New file.
4110         * include/dlfcn.h: Define __RTLD_DLOPEN.
4111         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4112         and this is a dlopen() call, do not load the binary.
4113         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4114         * dlfcn/dlopenold.c: Likewise.
4115         * configure.in: Add test for -z nodelete option.
4116         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4118 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4120         Make Hesiod NSS module thread-safe.
4122         * hesiod/README.hesiod: Update.
4124         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4125         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4126         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4127         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4128         hesiod-proto.
4129         * hesiod/nss_hesiod/hesiod-init.c: New file.
4130         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4131         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4132         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4133         * hesiod/nss_hesiod/hesiod-service.c
4134         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4135         looking up services by port number.
4136         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4138         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4139         * hesiod/hesiod.h: Likewise.
4140         * hesiod/hesiod_p.h: Likewise.
4142 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4144         Fix problems with `struct __res_state' getting too big.
4145         * resolv/resolv.h (struct __sockaddr_in): New definition.
4146         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4147         the private parts of the structure to save some space.
4148         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4149         (struct sockaddr_in *) in call to sock_eq.
4150         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4152 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4154         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4155         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4156         with nodelete.
4157         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4158         to _dl_map_object.  Return immediately if no object loaded.
4159         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4160         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4161         if it exists into l_flags_1 word.
4162         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4163         it to determine whether loading is wanted or not.
4164         (_dl_map_object): Likewise.
4165         Call _dl_map_object_from_fd with new parameter.
4166         * sysdeps/generic/ldsodefs.h: Update prototype.
4167         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4168         * elf/rtld.c: Likewise.
4169         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4170         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4171         * elf/noload.c: New file.
4172         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4173         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4174         * sysdeps/mips/bits/dlfcn.h: Likewise.
4175         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4176         (tests-nodelete-yes): Define.
4177         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4178         Add rules to build nodelete and modules.
4179         * elf/nodelete.c: New file.
4180         * elf/nodelmod1.c: New file.
4181         * elf/nodelmod2.c: New file.
4182         * configure.in: Add test for -z nodelete option.
4183         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4185         * libio/Makefile (tests): Add tst_wprintf2.
4186         (tst_wprintf2-ARGS): Define.
4187         * libio/tst_wprintf2.c: New file.
4188         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4190         * libio/wfiledoalloc.c: Only allocate external buffer if this
4191         hasn't happened yet.
4193         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4194         something in the buffer.  gconv call can write up to end of the
4195         buffer, not only _IO_write_end.
4196         (_IO_wfile_overflow): Allocate also external buffer.
4198 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4200         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4201         strings with precision in vfwprintf correctly.
4202         * stdio-common/vfprintf.c: Fix completely broken handling of
4203         unbuffered wide character streams.
4204         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4206         * resolv/Makefile (distribute): Add README.
4208         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4210 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4212         Update resolver code to BIND 8.2.3-T5B.
4214         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4215         __res_nclose.
4216         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4217         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4218         __res_search.
4219         * resolv/Banner: BIND-8.2.3-T5B.
4221         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4222         * resolv/herror.c: Likewise.
4223         * resolv/inet_addr.c: Likewise.
4224         * resolv/inet_net_ntop.c: Likewise.
4225         * resolv/inet_net_pton.c: Likewise.
4226         * resolv/inet_neta.c: Likewise.
4227         * resolv/inet_ntop.c: Likewise.
4228         * resolv/nsap_addr.c: Likewise.
4229         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4230         IPv6 addresses (ISC bug #520).
4232         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4233         * resolv/ns_parse.c: Likewise.
4234         * resolv/ns_netint.c: Likewise.
4235         * resolv/ns_samedomain.c: Likewise.
4236         * resolv/ns_ttl.c: Likewise.
4237         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4238         RCS ID in object file.
4240         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4241         * resolv/res_mkquery.c: Likewise.
4242         * resolv/res_query.c: Likewise.
4243         * resolv/res_init.c: Likewise.
4244         (res_setoptions): Mark internal.
4245         * resolv/res_send.c: Likewise.
4246         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4247         by using poll instead.
4248         * resolv/res_comp.c: Likewise.
4249         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4250         weak alias for __dn_expand.
4251         * resolv/res_data.c: Likewise.
4252         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4253         in _res.options.  Avoids a potential security risk by avoiding a
4254         close (0).
4255         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4256         res_mkquery, res_query, res_querydomain adn res_search weak
4257         aliases for __res_mkquery, __res_query, __res_querydomain and
4258         __res_search.
4259         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4260         instead to avoid close(0).
4261         (res_init): Always use the static resolver context.
4262         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4263         alias for __res_init.
4265         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4266         RES_SET_H_ERRNO and accompanying comment to...
4267         * include/resolv.h: ... here.
4269         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4270         * resolv/arpa/nameser_compat.h: Likewise.
4272 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4274         * nss/makedb.c (main): Compare result of load_db with
4275         NSS_STATUS_SUCCESS and not 0.
4276         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4278         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4280 2000-07-18  Greg McGary  <greg@mcgary.org>
4282         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4283         (EXTEND_BUFFER): Use it.
4285 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4287         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4288         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4289         __builtin_return_address.
4290         * dlfcn/dlopenold.c: Likewise.
4291         * dlfcn/dlsym.c: Likewise.
4292         * dlfcn/dlvsym.c: Likewise.
4293         * elf/dl-profstub.c: Likewise.
4294         * malloc/malloc.c: Likewise.
4295         * sysdeps/generic/machine-gmon.h: Likewise.
4296         Based on a patch by schwidefsky@de.ibm.com.
4298 2000-07-18  Andreas Jaeger  <aj@suse.de>
4300         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4301         NULL to elf_machine_fixup_plt t argument to silence GCC.
4303         * include/string.h: Add prototype for __memchr.
4305         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4307         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4308         instead of memrchr.
4310 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4312         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4314         * locale/C-ctype.c: Add initializers for gap elements.
4315         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4316         for gap elements.
4318 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4320         * nscd/nscd.c (print_version): Update copyright year.
4322 2000-07-17  Greg McGary  <greg@mcgary.org>
4324         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4325         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4326         signature argnames with angle-brackets for use as word delimiters,
4327         and to induce syntax errors for any args not handled.  Split
4328         multi-echo echoes and comment each stage.
4329         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4330         * sysdeps/unix/inet/syscalls.list: Likewise.
4331         * sysdeps/unix/mman/syscalls.list: Likewise.
4332         * sysdeps/unix/syscalls.list: Likewise.
4333         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4334         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4335         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4336         * sysdeps/unix/sysv/syscalls.list: Likewise.
4337         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4339         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4340         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4341         qualifiers.  Don't check NULL-terminator of argv & envp.
4342         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4343         unbounded pointer type in word-size assertion.
4344         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4345         cases to stifle warnings.
4347         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4348         _IO_file_attach.
4349         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4351         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4352         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4353         ptr as __unbouned.
4355         * Makerules (o-objects): Supplement with $(o-objects$o).
4356         * string/Makefile (o-objects.ob): Add variable to pull
4357         unbounded versions of memcpy, memset and memchr into libc_b.
4359         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4360         rather than non-existent __ubp_memchr.
4361         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4362         (_CHECK_STRING, _CHECK_N): New macros.
4363         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4364         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4365         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4366         Add weak alias "memchr".
4367         * sysdeps/generic/memchr.c: Likewise.
4368         * sysdeps/i386/memchr.S: Likewise.
4369         * sysdeps/ia64/memchr.S: Likewise.
4370         * sysdeps/m68k/memchr.S: Likewise.
4371         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4372         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4373         * sysdeps/vax/memchr.s: Likewise.
4375         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4377         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4378         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4379         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4380         __BOUNDED_POINTERS__.
4381         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4382         for __BOUNDED_POINTERS__.
4384 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4386         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4387         field of struct __gconv_trans_data differently.  Don't pass NULL to
4388         trans_init_fct.  Simplify list append operation.
4390 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4392         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4393         not only those having tsearch.
4395 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4397         * locale/langinfo.h: Add placeholder values in enum for removed
4398         LC_CTYPE entries.
4400 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4402         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4403         chain if the PHDR check fails.
4405 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4407         * nss/getent.c (print_hosts): Make sure we always print a space
4408         between numeric addresses and hostnames.
4410 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4412         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4413         i.e. if n_mmaps_max>0.
4415 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4417         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4418         values to remove possible clash with other AI_* constants.
4419         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4420         hexadecimal constants to stress the fact they're in fact
4421         bit flags.
4423 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4425         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4426         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4427         instead of res_init.
4429 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4431         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4432         parameters of memset calls to avoid warnings.
4434 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4436         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4437         necessary.
4439         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4440         Patch by Greg McGary <greg@mcgary.org>.
4442         * io/Makefile (tests): Add tst-getcwd.
4443         * io/tst-getcwd.c: New file.
4445         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4447 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4449         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4450         structure.
4452 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4454         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4455         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4457 2000-07-12  H.J. Lu  <hjl@gnu.org>
4459         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4460         GLIBC_2.2.
4461         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4462         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4463         (sysdep-routines): Add clone2.
4464         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4466 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4468         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4469         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4471 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4473         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4474         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4475         Change type of si_band from "int" to "long".
4476         (si_imm) [USE_GNU]: Define
4477         (si_isr) [USE_GNU]: Ditto.
4478         (ILL_BREAK) [USE_GNU]: Ditto.
4479         (FPE_DECOVF) [USE_GNU]: Ditto.
4480         (FPE_DECDIV) [USE_GNU]: Ditto.
4481         (FPE_DECERR) [USE_GNU]: Ditto.
4482         (FPE_INVASC) [USE_GNU]: Ditto.
4483         (FPE_INVDEC) [USE_GNU]: Ditto.
4484         (TRAP_BRANCH) [USE_GNU]: Ditto.
4485         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4487 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4489         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4490         bits/sigcontext as struct mcontext does not depend on it.
4492         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4494 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4496         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4498 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4500         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4502 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4504         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4506 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4508         * intl/Makefile (test-srcs): Add tst-translit.
4509         (tests): Likewise.
4510         Add rules to build and run tst-translit.
4511         * intl/tst-translit.c: New file.
4512         * intl/tst-translit.sh: New file.
4513         * intl/translit.po: New file.
4515 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4517         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4518         transliteration function did its job, continue, don't stop.
4520         * iconvdata/iso646.c: Little optimizations in body for conversion
4521         from UCS4.
4523 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4525         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4527 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4529         * configure.in: Check for pwd binary.
4530         * config.make.in: Add PWD_P to be subsituted.
4531         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4533 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4535         * iconvdata/Makefile (modules): Add GB18030.
4536         (distribute): Add gb18030.c.
4537         * iconvdata/gconv-modules: Add entries for GB18030 module.
4538         * iconvdata/gb18030.c: New file.
4539         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4540         and Wu Jian.
4542 2000-07-13  Andreas Jaeger  <aj@suse.de>
4544         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4545         patch.
4547         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4548         * inet/getnetgrent.c (free_mem): Likewise.
4549         * misc/mntent.c (free_mem): Likewise.
4550         * nss/getXXbyYY.c (free_mem): Likewise.
4551         * nss/getXXent.c (free_mem): Likewise.
4552         * pwd/fgetpwent.c (free_mem): Likewise.
4553         * shadow/fgetspent.c (free_mem): Likewise.
4555 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4557         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4558         64-bit architecture correctly [PR libc/1794].
4560 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4562         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4563         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4564         report that we are out of memory.
4565         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4566         * elf/dl-libc.c (dlerror_run): Likewise.
4567         * elf/dl-open.c (_dl_open): Likewise.
4568         * elf/rtld.c (dl_main): Likewise.
4569         * elf/dl-error.c: Define _dl_out_of_memory.
4570         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4571         the error string.
4572         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4573         [PR libc/1813].
4575         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4577         * iconv/loop.c: Fix comment.
4579         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4581 2000-07-13  Andreas Jaeger  <aj@suse.de>
4583         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4584         getcwd (NULL, size) with size > 0.
4585         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4587 2000-07-13  Andreas Jaeger  <aj@suse.de>
4589         * posix/Makefile: Remove build rules for libposix.
4591 2000-07-13  Andreas Schwab  <schwab@suse.de>
4593         * sysdeps/generic/glob.c (glob): Fix memory leak.
4594         [SHELL]: Remove reference to undefined variable `files'.
4595         Fixes PR libc/1782.
4597 2000-07-13  Andreas Jaeger  <aj@suse.de>
4599         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4600         functions.
4602         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4603         memory if it was allocated.
4605 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4607         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4608         step.
4610         * iconv/gconv_open.c (__gconv_open): Reapply
4611         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4613                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4615         * iconv/gconv_open.c: Undo last two changes for now.  They break
4616         everything.
4618 2000-07-12  Andreas Jaeger  <aj@suse.de>
4620         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4621         compiler.
4622         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4623         (CFLAGS-dl-cache.c): Likewise.
4624         (CFLAGS-ldconfig.c): Added, passes directory locations.
4626         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4627         locate cache.
4628         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4629         (main): Use configured LIBDIR and SLIBDIR.
4631 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4633         * math/bits/cmathcalls.h (cimag): Add __THROW.
4634         (creal, conj): Likewise.
4635         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4636         by negative value.
4638 2000-07-12  H.J. Lu  <hjl@gnu.org>
4640         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4641         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4643 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4645         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4646         it is wrong.
4648 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4650         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4652 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4654         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4655         __modname.
4657 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4659         * iconv/gconv_open.c (__gconv_open): Initialize
4660         result->__steps[cnt].__data.
4662 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4664         * nss/getent.c (services_keys): Pass port number in network byte
4665         order in call to getservbyport.
4667 2000-07-11  Andreas Jaeger  <aj@suse.de>
4669         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4670         source dir.
4671         * intl/Makefile (do-gettext-test): Likewise.
4672         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4674 2000-07-11  Andreas Schwab  <schwab@suse.de>
4676         * Makeconfig (run-program-prefix): New rule.
4677         (built-program-cmd): Use run-program-prefix.
4679 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4681         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4682         and NOEXPR unconditionally available.
4684 2000-07-12  Greg McGary  <greg@mcgary.org>
4686         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4687         * sysdeps/posix/open64.c: Likewise.
4688         * sysdeps/generic/fegetenv.c: Likewise.
4689         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4690         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4691         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4692         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4693         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4694         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4696 2000-07-11  Greg McGary  <greg@mcgary.org>
4698         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4699         Add extra level of macro expansion.
4700         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4701         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4702         is available at the time `select' prototype is declared.
4703         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4704         Collect non-versioned weak aliases.  Consider only non-versioned
4705         aliases for the user-visible systemcall name.  Do checks inline with
4706         call to primitive system call.
4707         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4708         stand-alone bounds checks to suppress unused value warnings.
4709         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4711 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4713         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4714         file descriptor checking in SUID programs for the Hurd.
4716         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4717         res_hostalias instead of __hostalias for thread-safety.
4719 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4721         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4722         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4724 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4726         * include/features.h: Include ISO C99 features if the compiler used
4727         is an ISO C99 compiler.
4728         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4730 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4732         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4734 2000-07-10  Andreas Jaeger  <aj@suse.de>
4736         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4737         it's overridden by libpthreads.
4738         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4739         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4740         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4741         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4742         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4744         * malloc/Makefile: Run tst-mtrace only with shared libs.
4746         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4747         with shared libs.
4749 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4751         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4752         that gpreg really points to the GOT section of the calling object.
4753         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4754         checking a start address of first one.
4755         Fix typos.
4756         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4757         Likewise.
4759         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4761 2000-07-10  Andreas Jaeger  <aj@suse.de>
4763         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4764         (string_alias->strong_alias).
4766 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4768         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4770 2000-07-07  Greg McGary  <greg@mcgary.org>
4772         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4773         have no names without leading underscores.
4775 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4777         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4778         U007E.
4780         * stdio-common/Makefile (tests): Remove tst-printf here...
4781         (tests-srcs): ...and add it here.
4782         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4783         Add rules to run tst-printf.sh.
4784         * stdio-common/tst-printf.c: Move code around so that there is really
4785         no further output where it's stated.
4786         * stdio-common/tst-printf.sh: New file.
4788 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4790         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4791         (do_write): Renamed from pwrite.
4792         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4793         `struct _IO_cookie_file'.
4795 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4797         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4798         detected.
4799         * malloc/tst-mtrace.sh: Run mtrace script.
4801 2000-07-07  Greg McGary  <greg@mcgary.org>
4803         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4804         Move all three components of a bounded pointer.
4806 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4808         * locale/programs/locale.c (write_locales): Don't simply add all
4809         directories found in the subdir, test whether at least the
4810         LC_CTYPE file is in there.
4812 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4814         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4815         * iconvdata/euc-kr.c: Likewise.
4817         * stdio-common/vfprintf.c (process_string_arg): Check result of
4818         wcrtomb call and bail out if it failed.
4820         * malloc/Makefile (test-srcs): Add tst-mtrace.
4821         (distribute): Add tst-mtrace.sh.
4822         Add rule to run tst-mtrace.sh.
4823         * malloc/tst-mtrace.c: New file.
4824         * malloc/tst-mtrace.sh: New file.
4826         * include/signal.h: Declare __libc_sigaction.
4827         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4828         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4829         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4830         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4831         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4832         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4833         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4835         * configure.in: Fix CFLAGS-memprofstat.c definition after
4836         2000-06-19 change.
4837         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4839 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4841         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4842         instead of NULL to elf_machine_fixup_plt t argument.
4843         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4844         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4845         cast.
4847 2000-07-06  Andreas Jaeger  <aj@suse.de>
4849         * crypt/Makefile (LDLIBS-cert): Removed.
4850         (LDLIBS-md5c-test): Removed.
4851         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4852         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4854 2000-07-06  Andreas Jaeger  <aj@suse.de>
4856         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4857         of the proc system is "proc".
4859         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4860         thread library for static programs.
4862 2000-07-06  Greg McGary  <greg@mcgary.org>
4864         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4865         New macros.
4866         * sysdeps/generic/strcpy.c: Add bounds checks.
4867         * sysdeps/unix/fxstat.c: Likewise.
4868         * sysdeps/unix/xstat.c: Likewise.
4869         * sysdeps/unix/common/lxstat.c: Likewise.
4870         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4871         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4872         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4873         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4874         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4875         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4876         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4877         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4878         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4879         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4880         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4881         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4882         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4883         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4884         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4885         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4886         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4887         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4888         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4889         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4890         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4891         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4892         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4893         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4894         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4895         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4896         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4897         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4898         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4899         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4900         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4901         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4902         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4903         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4904         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4905         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4906         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4907         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4908         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4909         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4910         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4911         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4912         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4913         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4914         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4915         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4916         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4917         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4918         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4919         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4920         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4921         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4922         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4923         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4924         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4925         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4926         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4927         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4928         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4929         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4930         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4931         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4932         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4933         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4935         * string/endian.h (__LONG_LONG_PAIR): New macro.
4936         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4937         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4938         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4939         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4940         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4941         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4942         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4943         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4944         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4945         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4946         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4947         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4949         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4951 2000-07-06  Andreas Jaeger  <aj@suse.de>
4953         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4954         Initialize result.
4956         * math/test-fpucw.c: Include <stdio.h> for printf.
4958 2000-07-05  Greg McGary  <greg@mcgary.org>
4960         * sysdeps/generic/bp-checks.h: New file.
4961         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4962         with list of #include files.
4963         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4964         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4965         Don't generate BP thunk if `V' appears in signature.
4966         Generate thunks with complete bounds checks.
4967         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4968         * sysdeps/unix/inet/syscalls.list: Likewise.
4969         * sysdeps/unix/mman/syscalls.list: Likewise.
4970         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4971         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4972         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4973         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4975 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4977         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4978         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4979         If mount not in the file fall back on /proc.
4981         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4982         string got copied in.
4983         Patch by Solar Designer <solar@false.com>.
4985 2000-07-05  Andreas Jaeger  <aj@suse.de>
4987         * manual/install.texi (Installation): Update information about
4988         add-ons.
4989         (Configuring and compiling): Update for glibc 2.2.
4991 2000-07-04  Andreas Jaeger  <aj@suse.de>
4993         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4994         (_FPU_IEEE): Likewise.
4996         * math/Makefile (tests): Add test-fpucw.
4998         * math/test-fpucw.c (main): New file.
5000 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5002         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5004         * locale/programs/ld-collate.c (collate_output): Also write out the
5005         collation sequence values and the wide character string for the
5006         collation symbol table.
5008         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5009         * posix/fnmatch_loop.c: Implement collating symbol handling.
5010         * posix/tst-fnmatch.input: Add more tests, especially for collating
5011         symbol handling.
5013         * posix/regex.c: Fix comment.
5015 2000-07-05  Andreas Jaeger  <aj@suse.de>
5017         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5018         (_FPU_GETCW): Remove extra colon.
5019         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5021         * posix/fnmatch_loop.c (FCT): Only declare len if
5022         !WIDE_CHAR_VERSION to silence GCC.
5024         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5025         prototype.
5026         * sysdeps/generic/strchrnul.c: Likewise.
5027         * sysdeps/generic/strlen.c: Likewise.
5028         * sysdeps/generic/strchr.c: Likewise.
5029         * sysdeps/generic/memchr.c: Likewise.
5031 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5033         * posix/fnmatch_loop.c: Implement equivalence class handling.
5034         * posix/tst-fnmatch.input: Add tests for equivalence class
5035         handling.
5037         * posix/fnmatch_loop.c: Improve performance for single-byte
5038         character sets by not using btowc.
5040         * posix/tst-fnmatch.input: Add tests for locale dependent
5041         behaviour.
5042         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5044         * posix/tst-fnmatch.input: Add more test cases.
5046         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5047         are not aligned to alignof(md5_uint32) do it before calling
5048         __md5_process_bytes.
5049         * crypt/md5.c: Make sure buffers are aligned.
5050         * crypt/md5.h: Likewise.
5051         Reported by Solar Designer <solar@false.com>.
5053         * crypt/Makefile: Add dependencies for test programs.
5055         * Rules: Define LC_ALL=C in environments of all programs we run.
5057         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5059 2000-07-03  H.J. Lu  <hjl@gnu.org>
5061         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5062         is 2 + elem + offset, not 2 + elem + offset + 2.
5064 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5066         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5067         suite.
5068         * posix/Makefile (tests): Add tst-fnmatch.
5069         (tst-fnmatch-ENV): Define.
5070         * posix/tst-fnmatch.c: New file.
5071         * posix/tst-fnmatch.sh: New file.
5073 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5075         * locale/programs/charmap.c (charmap_read): Prepend
5076         the condition filename == NULL.
5078 2000-07-03  Greg McGary  <greg@mcgary.org>
5080         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5082         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5083         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5085         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5086         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5087         (FILEBUF_LITERAL): Add cast for CHAIN init.
5088         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5089         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5090         Revert type of `fp' to _IO_FILE*.
5091         (_IO_iter_file): Remove cast.
5092         (_IO_iter_next): Elide intermediate member reference.
5094         * sysdeps/powerpc/strchr.S:  Check bounds.
5095         Wrap extern symbols in BP_SYM ().
5097 2000-07-03  Andreas Jaeger  <aj@suse.de>
5099         * dlfcn/Makefile (generated): New.
5101 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5103         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5104         (__uflow): Likewise.
5105         (__underflow): Likewise.
5106         * libio/wgenops.c (__wunderflow): Likewise.
5107         * stdio-common/tst-unbputc.c: New file.
5108         * stdio-common/tst-unbputc.sh: New file.
5109         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5111         * po/en_GB.po: New file.
5112         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5114 2000-07-01  Andreas Jaeger  <aj@suse.de>
5116         * intl/Makefile (generated-dirs): New.
5118         * elf/Makefile (generated): trusted-dirs.h is always generated,
5119         move out of build-shared condition.
5120         (generated): Merge the two entries for build-shared.
5122 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5124         * debug/Makefile (distribute): Add xtrace.sh.
5126 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5128         * version.h (VERSION): Bump to 2.1.91.
5130         * configure.in: Update warning comment.  glibc should not be
5131         broken anymore.
5133         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5134         ioperm.c, sys/procfs.h, and sys/io.h.
5136         * sysdeps/powerpc/Dist: Add bp-asm.h.
5138         * assert/Depend: Add localedata.
5139         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5140         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5142         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5143         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5144         relocation address to prevent unaligned trap.
5145         Suggested by Richard Henderson <rth@cygnus.com>.
5147 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5149         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5150         if redirecting and either redirection is done using defines or
5151         not optimizing.
5153 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5155         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5156         generated expressions.
5157         Patch by Darren McClelland <dmcclell@zetec.com>.
5159         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5160         since zic uses setlocale and gettext but we cannot make it use the
5161         new locale data since zic calls a shell which might not use the
5162         new libc.
5164         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5165         handling the internation currency symbol.  POSIX says that the
5166         fourth character is used to separate the currency symbol from the
5167         value.  Therefore it does not have to be printed.  But we cannot
5168         remove the space if the currency symbol is printed before the
5169         number since this is what many locales expect.
5171         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5172         whether this information is available.
5174         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5175         buffers in case the translation is too large.  Remember allocated
5176         memory blocks in a list.
5177         (free_mem): Free memory for translations.
5179         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5181         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5182         information is available set the string length to zero.
5184         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5186 2000-06-30  Greg McGary  <greg@mcgary.org>
5188         * sysdeps/powerpc/bp-asm.h: New file.
5189         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5190         Wrap extern symbols in BP_SYM ().
5191         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5192         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5193         * sysdeps/powerpc/setjmp.S: Likewise.
5194         * sysdeps/powerpc/add_n.S: Likewise.
5195         * sysdeps/powerpc/addmul_1.S: Likewise.
5196         * sysdeps/powerpc/lshift.S: Likewise.
5197         * sysdeps/powerpc/rshift.S: Likewise.
5198         * sysdeps/powerpc/mul_1.S: Likewise.
5199         * sysdeps/powerpc/sub_n.S: Likewise.
5200         * sysdeps/powerpc/submul_1.S: Likewise.
5201         * sysdeps/powerpc/strlen.S: Likewise.
5202         * sysdeps/powerpc/memset.S: Likewise.
5203         * sysdeps/powerpc/stpcpy.S: Likewise.
5204         * sysdeps/powerpc/strcmp.S: Likewise.
5205         * sysdeps/powerpc/strcpy.S: Likewise.
5206         * sysdeps/powerpc/elf/bzero.S: Likewise.
5208         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5209         Line up operands column with tabs.
5211 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5213         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5215         * sysdeps/ia64/htonl.S: New file.
5216         * sysdeps/ia64/htons.S: New file.
5217         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5218         floating point registers.
5219         Patches by Dan Pop <Dan.Pop@cern.ch>.
5221 2000-06-30  Andreas Jaeger  <aj@suse.de>
5223         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5224         shared libraries.
5226         * io/Makefile (CFLAGS-test-lfs.c): New.
5227         (tests): Add test-lfs.
5229         * io/test-lfs.c: New file.
5231 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5233         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5234         instruction.
5236 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5238         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5240 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5242         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5243         alias to the fstatfs call.
5245         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5246         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5248         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5249         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5251         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5252         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5253         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5254         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5256         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5257         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5259         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5260         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5262         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5263         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5265         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5267 2000-06-29  Andreas Jaeger  <aj@suse.de>
5269         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5270         with syslog.
5271         (print_err_message): Likewise.
5272         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5274 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5276         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5277         used as words is properly aligned.
5279         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5280         data files.
5282 2000-06-29  Greg McGary  <greg@mcgary.org>
5284         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5285         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5286         length 7..9, just in case...
5287         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5289         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5290         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5291         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5292         (PUSH_SIGNAL_MASK): New macro.
5293         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5294         LEAVE is unnecessary.  Check bounds of jmp_buf.
5295         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5296         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5297         immediately before tail-call.
5298         * sysdeps/i386/setjmp.S: Likewise.
5299         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5300         * sysdeps/i386/bsd-setjmp.S: Likewise.
5302 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5304         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5305         versioned_symbol.
5306         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5307         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5308         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5309         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5310         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5311         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5312         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5313         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5315 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5317         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5318         we later need to calling free().
5319         Patch by Matt Wilson <msw@redhat.com>.
5321         * stdio-common/tst-printf.c: Add test for above problem.
5323 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5325         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5326         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5328 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5330         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5331         prototype for abs().
5332         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5334 2000-06-23  Andreas Jaeger  <aj@suse.de>
5336         * config.h.in: Don't use regparm with bounded pointers.
5338 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5340         * stdlib/grouping.h: Correctly handle multibyte thousands
5341         separator and decimal point.
5342         * stdlib/stdtod.c: Likewise.
5343         * sysdeps/generic/strtol.c: Likewise.
5345         * locale/categories.def: Add entries for wide character decimal point
5346         and thousands separator in numeric and monetary category.
5348 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5350         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5351         second definition and initialization of decimal.
5353 2000-06-28  Greg McGary  <greg@mcgary.org>
5355         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5356         out.
5357         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5358         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5359         in.
5360         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5361         (struct _IO_FILE_plus *).
5362         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5363         THIS, since _IO_JUMPS no longer does it implicitly.
5364         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5365         arg type as (struct _IO_FILE_plus *).
5366         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5367         arg as (_IO_strfile *).
5368         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5369         Declare 1st arg as (_IO_strfile *).
5370         * libio/fileops.c (_IO_new_file_init): Declare
5371         arg type as (struct _IO_FILE_plus *).
5372         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5373         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5374         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5375         Declare iteration pointer as (struct _IO_FILE_plus *).
5376         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5377                 (struct _IO_FILE_plus *).
5378         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5379         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5380         (_IO_check_libio): Set user-visible handles to
5381         (struct _IO_FILE_plus *).
5382         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5383         to (struct _IO_FILE_plus *).
5385         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5386         whose high bound includes vtable to all functions that will use
5387         vtable.  For streambufs, pass pointer whose bounds include struct
5388         _IO_strfile.
5389         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5390         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5391         * libio/iofopen.c (_IO_new_fopen): Likewise.
5392         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5393         * libio/iofopen64.c (_IO_fopen64): Likewise.
5394         * libio/iopopen.c (_IO_new_popen): Likewise.
5395         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5396         * libio/memstream.c (open_memstream): Likewise.
5397         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5398         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5399         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5400         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5401         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5402         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5403         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5404         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5405         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5406         * stdlib/strfmon.c (__strfmon_l): Likewise.
5407         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5408         (vfprintf): Qualify computed-goto targets as unbounded.
5410 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5412         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5413         thousands separator correctly.
5415         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5416         * stdio-common/vfwscanf.c: Likewise.
5418 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5420         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5421         count into signatures for most calls.
5423 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5425         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5426         the generic parser now.
5428 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5430         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5431         table entries are 32 bit on the ia64 (as specified by the ABI),
5432         not 64 bit as on the Alpha.
5434         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5435         change of objects to use 32 bit hash table indices (see above).
5437 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5439         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5440         prototype for abs().
5442 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5444         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5445         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5446         may have been reached.
5448 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5450         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5451         symbols in multi-character weights correctly.
5453         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5454         depending on whether the input string is empty or not.
5456         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5457         given state and not avoiding this by modifying a local object.
5458         * wcsmbs/wcrtomb.c: Likewise.
5460         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5461         object since some incomplete characters might be in there.
5463         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5464         sequences with first byte 0x8e correctly.
5466         * iconvdata/jis0208.h: Remove redundant test.
5468 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5470         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5471         Add it where it is needed now.
5473         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5474         the input charset into account when generating the hash table.
5475         (allocate_arrays): Correct setting default width.  Not all empty slots
5476         in the table are filled, only those not covert explicitly by the
5477         locale description and in the charset.
5479         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5480         return values from the wctrans function.
5482         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5483         wide character version.
5484         For %C handling, test correct pointer variable for NULL.
5486         * wcsmbs/wctob.c: Handle WEOF special.
5488         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5490         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5491         always-true test to avoid warning.
5493 2000-06-27  Greg McGary  <greg@mcgary.org>
5495         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5496         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5497         (symbol_version, default_symbol_version): Factor redundant
5498         definitions out of conditional.
5500 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5502         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5503         not obstack_blank.
5505 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5507         * include/libc-symbols.h (symbol_version): Add extra level of
5508         macro expansion.
5509         (default_symbol_version): Likewise.
5511 2000-06-26  Greg McGary  <greg@mcgary.org>
5513         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5514         for BP return value & push implicit struct-return pointer to
5515         __errno_location.
5516         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5517         (SYSCALL_ERROR_HANDLER): Likewise.
5518         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5519         (SYSCALL_ERROR_HANDLER): Likewise.
5521         * Makeconfig: Add missing comment.
5522         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5523         BP-flavored startup object.
5524         ($(objpfx)b$(start-installed-name)): New rule.
5525         * include/libc-symbols.h (symbol_set_declare): Change type
5526         of `__start_##set' and `__stop_##set' to pointer-to-function.
5527         (symbol_set_declare): Change type of `set' to array of
5528         pointer-to-function.
5529         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5530         pointer-to-function.
5532         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5534         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5535         Remove clock_* and timer_* entries.
5536         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5537         arg-count with signatures.
5539         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5540         Check bounds of arguments.
5541         * sysdeps/i386/addmul_1.S: Likewise.
5542         * sysdeps/i386/lshift.S: Likewise.
5543         * sysdeps/i386/mul_1.S: Likewise.
5544         * sysdeps/i386/rshift.S: Likewise.
5545         * sysdeps/i386/sub_n.S: Likewise.
5546         * sysdeps/i386/submul_1.S: Likewise.
5547         * sysdeps/i386/i586/add_n.S: Likewise.
5548         * sysdeps/i386/i586/addmul_1.S: Likewise.
5549         * sysdeps/i386/i586/lshift.S: Likewise.
5550         * sysdeps/i386/i586/rshift.S: Likewise.
5551         * sysdeps/i386/i586/sub_n.S: Likewise.
5552         * sysdeps/i386/i686/add_n.S: Likewise.
5554         * sysdeps/i386/memchr.S: Likewise.
5555         * sysdeps/i386/memcmp.S: Likewise.
5556         * sysdeps/i386/rawmemchr.S: Likewise.
5557         * sysdeps/i386/i586/bzero.S: Likewise.
5558         * sysdeps/i386/i586/memcpy.S: Likewise.
5559         * sysdeps/i386/i586/mempcpy.S: Likewise.
5560         * sysdeps/i386/i586/memset.S: Likewise.
5561         * sysdeps/i386/i686/bzero.S: Likewise.
5562         * sysdeps/i386/i686/memcpy.S: Likewise.
5563         * sysdeps/i386/i686/mempcpy.S: Likewise.
5564         * sysdeps/i386/i686/memset.S: Likewise.
5566         * sysdeps/i386/stpcpy.S: Likewise.
5567         * sysdeps/i386/stpncpy.S: Likewise.
5568         * sysdeps/i386/strchr.S: Likewise.
5569         * sysdeps/i386/strchrnul.S: Likewise.
5570         * sysdeps/i386/strcspn.S: Likewise.
5571         * sysdeps/i386/strpbrk.S: Likewise.
5572         * sysdeps/i386/strrchr.S: Likewise.
5573         * sysdeps/i386/strspn.S: Likewise.
5574         * sysdeps/i386/strtok.S: Likewise.
5575         * sysdeps/i386/strtok_r.S: Likewise.
5576         * sysdeps/i386/i486/strcat.S: Likewise.
5577         * sysdeps/i386/i486/strlen.S: Likewise.
5578         * sysdeps/i386/i586/strchr.S: Likewise.
5579         * sysdeps/i386/i586/strcpy.S: Likewise.
5580         * sysdeps/i386/i586/strlen.S: Likewise.
5581         * sysdeps/i386/i686/strcmp.S: Likewise.
5582         * sysdeps/i386/i686/strtok.S: Likewise.
5583         * sysdeps/i386/i686/strtok_r.S: Likewise.
5585         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5586         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5587         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5588         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5589         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5591         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5592         * sysdeps/i386/mul_1.S: Likewise.
5593         * sysdeps/i386/submul_1.S: Likewise.
5594         * sysdeps/i386/i586/add_n.S: Likewise.
5595         * sysdeps/i386/i586/addmul_1.S: Likewise.
5596         * sysdeps/i386/i586/lshift.S: Likewise.
5597         * sysdeps/i386/i586/mul_1.S: Likewise.
5598         * sysdeps/i386/i586/rshift.S: Likewise.
5599         * sysdeps/i386/i586/sub_n.S: Likewise.
5600         * sysdeps/i386/i586/submul_1.S: Likewise.
5602 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5604         * rt/Makefile (librt-routines): Add clock_nanosleep.
5605         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5606         * sysdeps/generic/clock_nanosleep.c: New file.
5607         * sysdeps/unix/clock_nanosleep.c: New file.
5608         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5609         * time/time.h: Declare clock_nanosleep.
5611 2000-06-26  Greg McGary  <greg@mcgary.org>
5613         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5614         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5615         (ALIGN): Cleanup surrounding conditionals.
5617         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5618         Call ENTER/LEAVE macros.
5619         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5620         * sysdeps/i386/submul_1.S: Likewise.
5622         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5623         syntax.  Define & use symbolic argument stack offsets.  Call
5624         ENTER/LEAVE macros.
5625         * sysdeps/i386/i586/mul_1.S: Likewise.
5626         * sysdeps/i386/i586/submul_1.S: Likewise.
5628 2000-06-25  Greg McGary  <greg@mcgary.org>
5630         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5631         not as bcopy.
5633 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5635         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5636         * iconvdata/gen-8bit-gap.sh: Likewise.
5637         * iconvdata/gen-8bit.sh: Likewise.
5639         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5641         * locale/programs/ld-collate.c (collate_read): Don't actually read
5642         the copy locale if we are ignoring the content.
5644         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5645         unknown character.
5647         * locale/programs/ld-collate.c: Correct handling of different
5648         collation sections.
5649         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5650         as extra parameter from which to copy category information.
5651         Change all callers.
5652         (load_locale): Likewise.
5653         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5654         and load_locale.
5655         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5656         * locale/programs/locfile.h: Likewise.
5657         * locale/programs/locfile-kw.gperf: Add entry for script.
5658         * locale/programs/locfile-token.h: Add tok_script.
5660         * locale/programs/locale.c: Update copyright year.
5661         * locale/programs/localedef.c: Likewise.
5663 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5665         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5666         Jens Moeller <jens.moeller@waii.com>.
5668 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5670         * locale/programs/ld-name.c (name_finish): Add missing format
5671         specifier to test for name_fmt.
5673         * locale/programs/ld-address.c (iso639): Correct length of string
5674         elements.
5675         (iso3166): Likewise.
5677         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5679         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5680         Define.
5682         * elf/elf.h (NT_PRFPXREG): Define.
5684 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5686         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5687         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5689 2000-06-23  Andreas Schwab  <schwab@suse.de>
5691         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5692         with signatures.
5694 2000-06-23  Andreas Jaeger  <aj@suse.de>
5696         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5698         * io/test-stat.c: Add copyright header, mention Maciej.
5700         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5701         SYS_mincore, SYS_madvise): Added.
5703         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5704         execve.
5706 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5708         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5709         (CFLAGS-tst_putwc.c): New definition.
5710         * libio/tst_getwc.c: New file.
5711         * libio/tst_getwc.input: New file.
5712         * libio/tst_putwc.c: New file.
5714         * include/string.h: Add prototype for __strdup.
5716 2000-06-22  Greg McGary  <greg@mcgary.org>
5718         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5719         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5720         Fix signatures.
5722 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5724         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5726 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5728         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5730 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5732         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5733         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5735 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5737         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5738         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5739         and __S_TYPEISSHM.
5740         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5741         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5742         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5743         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5744         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5745         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5746         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5747         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5748         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5749         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5750         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5751         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5752         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5753         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5754         S_TYPEISSHM.
5756 2000-06-22  Andreas Jaeger  <aj@suse.de>
5758         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5759         with signatures.
5761         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5763         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5765 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5767         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5768         ahead.
5770 2000-06-21  Greg McGary  <greg@mcgary.org>
5772         * Makerules (elide-routines.*, elide-bp-thunks):
5773         Define unconditionally.
5775 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5777         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5779 2000-06-21  Andreas Jaeger  <aj@suse.de>
5781         * io/Makefile (tests): Add test-stat.
5782         (CFLAGS-test-stat.c): New.
5784         * io/test-stat.c: New file from Maciej W. Rozycki
5785         <macro@ds2.pg.gda.pl>.
5787 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5789         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5790         in __rlimit_resource to make them match the kernel order.
5791         rlim_t is always 64 bit, use __rlim64_t to declare it
5792         unconditionally.
5794 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5796         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5797         RLIM_INFINITY before defining it to avoid clash with kernel header
5799 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5801         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5803 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5805         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5807 2000-06-21  Andreas Jaeger  <aj@suse.de>
5809         * stdio-common/temptest.c: Include <stdlib.h>.
5810         * stdio-common/tst-fileno.c: Likewise.
5811         * stdio-common/scanf4.c: Likewise.
5812         * stdio-common/scanf5.c: Likewise.
5813         * time/clocktest.c: Likewise.
5814         * posix/test-vfork.c: Likewise.
5815         * posix/globtest.c: Likewise.
5816         * io/test-utime.c: Likewise.
5817         * wctype/test_wcfuncs.c: Likewise.
5818         * crypt/cert.c: Likewise.
5820         * stdio-common/tst-printfsz.c: Include <string.h>.
5821         * libio/tst_swscanf.c: Likewise.
5822         * libio/tst_wscanf.c: Likewise.
5823         * posix/runtests.c: Likewise.
5824         * posix/tst-getaddrinfo.c: Likewise.
5825         * posix/wordexp-test.c: Likewise.
5826         * misc/tst-efgcvt.c: Likewise.
5828         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5829         * nss/test-netdb.c: Likewise.
5831         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5832         supported kernel for MIPS.
5834         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5835         * rt/aio_suspend.c: Likewise.
5837 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5839         * math/libm-test.inc: Include <string.h>.
5841 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5843         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5845 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5847         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5848         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5850 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5852         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5854 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5856         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5858 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5860         * locale/programs/ld-collate.c (insert_value): Now take string and
5861         length instead of struct token* parameter.  Adjust use of token.
5862         (handle_ellipsis): Likewise.
5863         (collate_read): Allow <Uxxxx> names and transform them into names
5864         to be passed to insert_value and handle_ellipsis.
5866         * locale/programs/ld-ctype.c (uninames): New array with names of
5867         digits in <Uxxxxxxxx> format.
5868         (ctype_finish): Correct search for space character value.  Likewise
5869         for default outdigits values.
5871 2000-06-20  Greg McGary  <greg@mcgary.org>
5873         * Makerules (objects): Add BP thunks.
5875 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5877         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5878         in width definitions.
5880 2000-06-20  Andreas Jaeger  <aj@suse.de>
5882         * sysdeps/mips/fpu/libm-test-ulps: New file.
5884         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5885         first.
5887         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5889         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5891 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5893         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5894         change in gconv_builtin.h.
5896         * malloc/Makefile: Change all references to memprof into memusage.
5897         * malloc/memprof.c: Rename to...
5898         * malloc/memusage.c: ...this.  New file.
5899         * malloc/memprof.sh: Rename to...
5900         * malloc/memusage.sh: ...this.  New file.
5901         * malloc/memprofstat.c: Rename to...
5902         * malloc/memusagestat.c: ...this.  New file.
5903         * sysdeps/alpha/memprof.h: Rename to..
5904         * sysdeps/alpha/memusage.h: ...this.  New file.
5905         * sysdeps/arm/memprof.h: Rename to..
5906         * sysdeps/arm/memusage.h: ...this.  New file.
5907         * sysdeps/generic/memprof.h: Rename to..
5908         * sysdeps/generic/memusage.h: ...this.  New file.
5909         * sysdeps/i386/memprof.h: Rename to..
5910         * sysdeps/i386/memusage.h: ...this.  New file.
5911         * sysdeps/ia64/memprof.h: Rename to..
5912         * sysdeps/ia64/memusage.h: ...this.  New file.
5913         * sysdeps/m68k/memprof.h: Rename to..
5914         * sysdeps/m68k/memusage.h: ...this.  New file.
5915         * sysdeps/mips/memprof.h: Rename to..
5916         * sysdeps/mips/memusage.h: ...this.  New file.
5917         * sysdeps/powerpc/memprof.h: Rename to..
5918         * sysdeps/powerpc/memusage.h: ...this.  New file.
5919         * sysdeps/sparc/memprof.h: Rename to..
5920         * sysdeps/sparc/memusage.h: ...this.  New file.
5921         * sysdeps/sh/memprof.h: Rename to..
5922         * sysdeps/sh/memusage.h: ...this.  New file.
5924         * elf/sprof.c (print_version): Update year.
5926         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5927         table entry values.  Use D_PTR.
5928         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5929         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5931 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5933         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5934         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5935         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5936         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5938 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5940         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5942 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5944         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5945         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5946         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5948         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5950         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5951         kernel change.
5953         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5954         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5955         structure.
5956         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5957         implementation.
5959 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5961         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5963 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5965         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5967 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5969         * iconv/gconv_int.h (strict gconv_module): Remove all members
5970         associated with regular expressions.  Use a simple string as the
5971         from name.
5972         * iconv/gconv_db.c: Remove code handling regular expressions.
5973         * iconv/gconv_conf.c: Likewise.
5974         * iconv/iconv_prog.c: Likewise.
5975         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5977         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5978         General namespace cleanup.
5979         (struct __gconv_trans_data): Add next field.
5980         (struct __gconv_step_data): Make __trans a pointer.
5981         * iconv/gconv_conf.c: Split out code to find gconv directories from
5982         __gconv_read_conf in new functions.
5983         * iconv/gconv_int.h: Define new data structure and declare new
5984         functions for handling of gconv directory list.
5985         * iconv/gconv_open.c: Allow more than one error handling step being
5986         used.  Call function to load error handling module if it is none
5987         of the builtin transformations.
5988         * iconv/gconv_close.c: Add code to free transliteration data.
5989         * iconv/gconv_trans.c: Add functions to load and unload modules
5990         implementing transliteration etc.
5991         * iconv/skeleton.c: Call all context functions now that more than
5992         one module is allowed.
5993         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5994         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5995         where the full error handling using transliteration is needed.
5996         * iconvdata/8bit-gap.c: Likewise.
5997         * iconvdata/8bit-generic.c: Likewise.
5998         * iconvdata/ansi_x3.110.c: Likewise.
5999         * iconvdata/big5.c: Likewise.
6000         * iconvdata/big5hkscs.c: Likewise.
6001         * iconvdata/euc-cn.c: Likewise.
6002         * iconvdata/euc-jp.c: Likewise.
6003         * iconvdata/euc-kr.c: Likewise.
6004         * iconvdata/euc-tw.c: Likewise.
6005         * iconvdata/gbgbk.c: Likewise.
6006         * iconvdata/gbk.c: Likewise.
6007         * iconvdata/iso-2022-cn.c: Likewise.
6008         * iconvdata/iso-2022-jp.c: Likewise.
6009         * iconvdata/iso-2022-kr.c: Likewise.
6010         * iconvdata/iso646.c: Likewise.
6011         * iconvdata/iso8859-1.c: Likewise.
6012         * iconvdata/iso_6937-2.c: Likewise.
6013         * iconvdata/iso_6937.c: Likewise.
6014         * iconvdata/johab.c: Likewise.
6015         * iconvdata/sjis.c: Likewise.
6016         * iconvdata/t.61.c: Likewise.
6017         * iconvdata/uhc.c: Likewise.
6018         * iconvdata/unicode.c: Likewise.
6019         * iconvdata/utf-16.c: Likewise.
6020         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6021         structure correctly after last change.
6022         * wcsmbs/btowc.c: Likewise.
6023         * wcsmbs/mbrtowc.c: Likewise.
6024         * wcsmbs/mbsnrtowcs.c: Likewise.
6025         * wcsmbs/mbsrtowcs.c: Likewise.
6026         * wcsmbs/wcrtomb.c: Likewise.
6027         * wcsmbs/wcsnrtombs.c: Likewise.
6028         * wcsmbs/wcsrtombs.c: Likewise.
6029         * wcsmbs/wctob.c: Likewise.
6031         * localedata/Makefile: Set -Wno-format for some files since gcc does
6032         not know all the format specifiers.
6034 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6036         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6037         unneeded code.
6038         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6040 2000-06-18  Andreas Jaeger  <aj@suse.de>
6042         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6043         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6045 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6047         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6048         LINUX_LINK_MAX.
6049         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6051         * locale/programs/ld-ctype.c (ctype_output): Really write out
6052         mboutdigits information.
6053         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6054         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6055         * localedata/tests/trans.def: Add outdigit information.
6057         * localedata/tst-mbswcs3.c: Remove comment.
6059         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6060         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6061         * libio/tst_wprintf.c (main): Add test for I flag.
6063         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6064         * locale/langinfo.h: Add entries for translit_ignore information.
6065         * locale/categories.def: Add entries for new LC_CTYPE elements.
6066         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6067         pointer instead of "" where possible.
6068         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6069         * intl/Depend: Add localedata.
6070         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6071         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6073 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6075         * locale/langinfo.h: Add entries for default_missing information.
6076         * locale/C-ctype.c: Add initializers for new fields.
6077         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6078         information.
6079         * locale/categories.h: Add entries for all LC_CTYPE values.
6080         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6081         information.
6083         * localedata/tst-trans.c: Write out an error message if class is
6084         not found.
6086         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6087         * iconv/gconv_open.c: Remove error handling specification from `from'
6088         character set name.
6089         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6090         new parameter to always enable transliteration.
6091         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6092         change.
6093         (struct locale_data): Add new members use_translit and options.
6094         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6095         character set name contained modifier TRANSLIT.
6096         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6097         and options fields.
6098         (_nl_unload_locale): Free options string if necessary.
6099         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6100         the locale names suggested this.
6101         * locale/C-address.c: Add two new initialilzers to adjust data
6102         structure for new format.
6103         * locale/C-collate.c: Likewise.
6104         * locale/C-ctype.c: Likewise.
6105         * locale/C-identification.c: Likewise.
6106         * locale/C-measurement.c: Likewise.
6107         * locale/C-messages.c: Likewise.
6108         * locale/C-monetary.c: Likewise.
6109         * locale/C-name.c: Likewise.
6110         * locale/C-numeric.c: Likewise.
6111         * locale/C-paper.c: Likewise.
6112         * locale/C-telephone.c: Likewise.
6113         * locale/C-time.c: Likewise.
6115         * locale/setlocale.c: Add some more __builtin_expect.
6117 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6119         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6120         unsigned char **.
6121         (__gconv_init_fct): Remove two parameters.
6122         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6123         gconv_transliterate.  Remove two parameters.
6124         Change prototypes of builtin functions according to __gconv_fct change.
6125         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6126         != NULL only during error handling.  Stop in this case after the
6127         conversion.
6128         * iconv/gconv_trans.c: Replace with real implementation for
6129         __gconv_transliterate.
6130         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6131         * iconv/gconv.c: Change calls to downstream functions once again.
6132         Use NULL for the fifth parameter instead of pointer to output buffer.
6133         * libio/iofwide.c: Likewise.
6134         * wcsmbs/btowc.c: Likewise.
6135         * wcsmbs/mbrtowc.c: Likewise.
6136         * wcsmbs/mbsnrtowcs.c: Likewise.
6137         * wcsmbs/mbsrtowcs.c: Likewise.
6138         * wcsmbs/wcrtomb.c: Likewise.
6139         * wcsmbs/wcsnrtombs.c: Likewise.
6140         * wcsmbs/wcsrtombs.c: Likewise.
6141         * wcsmbs/wctob.c: Likewise.
6142         * iconv/gconv_simple.c: Remove two parameters from error handling
6143         function call.
6144         * iconvdata/8bit-gap.c: Likewise.
6145         * iconvdata/8bit-generic.c: Likewise.
6146         * iconvdata/ansi_x3.110.c: Likewise.
6147         * iconvdata/big5.c: Likewise.
6148         * iconvdata/big5hkscs.c: Likewise.
6149         * iconvdata/euc-cn.c: Likewise.
6150         * iconvdata/euc-jp.c: Likewise.
6151         * iconvdata/euc-kr.c: Likewise.
6152         * iconvdata/euc-tw.c: Likewise.
6153         * iconvdata/gbgbk.c: Likewise.
6154         * iconvdata/gbk.c: Likewise.
6155         * iconvdata/iso-2022-cn.c: Likewise.
6156         * iconvdata/iso-2022-jp.c: Likewise.
6157         * iconvdata/iso-2022-kr.c: Likewise.
6158         * iconvdata/iso646.c: Likewise.
6159         * iconvdata/iso8859-1.c: Likewise.
6160         * iconvdata/iso_6937-2.c: Likewise.
6161         * iconvdata/iso_6937.c: Likewise.
6162         * iconvdata/johab.c: Likewise.
6163         * iconvdata/sjis.c: Likewise.
6164         * iconvdata/t.61.c: Likewise.
6165         * iconvdata/uhc.c: Likewise.
6166         * iconvdata/unicode.c: Likewise.
6167         * iconvdata/utf-16.c: Likewise.
6169 2000-06-15  Greg McGary  <greg@mcgary.org>
6171         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6172         of callnum assignment.  Tolerate callnum expressions containing
6173         parens.
6175 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6177         * login/Makefile (utmpd): Remove rule to build utmpd.
6179         * csu/Versions: Move libgcc frame handling functions from here...
6180         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6181         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6182         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6183         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6184         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6185         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6186         New file.
6187         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6189         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6191         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6193 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6195         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6196         compatibility.
6197         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6198         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6199         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6200         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6202 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6204         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6205         defined, terminate quotes and read them after the comment char.
6206         * configure.in (HAVE_SECTION_QUOTES): Test whether
6207         __attribute__((section ("x"))) puts quotes around x or not.
6208         * config.h.in (HAVE_SECTION_QUOTES): Add.
6209         * configure: Rebuilt.
6211 2000-06-14  Andreas Jaeger  <aj@suse.de>
6213         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6214         depending on the configure option --sysconfdir.
6215         Closes PR libc/1762.
6216         Patch by Andreas Schwab <schwab@suse.de>.
6218         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6219         entry point.
6220         Reported by Jim Pick <jim@jimpick.com>.
6222 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6224         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6225         crashing the application.  Emit some simple error message.
6226         Reported by mju@panasas.com [PR libc/1769].
6228 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6230         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6232         * crypt/Makefile (distribute): Add md5.h.
6234         * Makefile (distribute): Add include/shlib-compat.h.
6236         * Make-dist: Search for tests also in sysdeps hierachy.
6238         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6239         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6241         * sysdeps/sparc/Subdirs: New file.
6243         * locale/Makefile (distribute): Add weightwc.h and
6244         programs/localedef.h.
6246         * time/Makefile (distribute): Add datemsk.
6248         * sysdeps/ia64/Dist: Add softpipe.h.
6250         * sysdeps/unix/sysv/aix/Dist: New file.
6252         * posix/setpgrp.c: Moved to...
6253         * sysdeps/generic/setpgrp.c: ...here.  New file.
6254         * io/mknod.c: Moved to...
6255         * sysdeps/generic/mknod.c: ...here.  New file.
6257         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6259         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6261         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6263         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6264         gprsave0.S, gprrest1.S, and gprrest0.S.
6266         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6268         * posix/Makefile (routines): Add spawnattr_getsigmask,
6269         spawnattr_getschedpolicy, spawnattr_getschedparam,
6270         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6271         spawnattr_setschedparam.
6272         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6273         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6274         posix_spawnattr_setschedparam.
6276         * posix/spawnattr_setschedparam.c: Fix typo.
6278         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6279         Correct typo.
6281         * login/programs/utmpd.c: Removed.
6282         * login/programs/utmpd.h: Removed.
6283         * login/programs/utmpd-private.h: Removed.
6285         * Makefile (distribute): Add include/db_185.h and include/db.h.
6287         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6288         iso-ir-165.h.
6290         * elf/Makefile (distribute): Add missing files.
6292         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6293         * elf/eval.c: Moved to...
6294         * dlfcn/eval.c: ...here.  New file.
6296         * Makefile (distribute): Also distribute ChangeLog.1?.
6298         * Make-dist (+tsrcs): Remove .args handling here as well.
6300         * rt/Makefile (tests): Add tst-timer.
6301         * sysdeps/generic/tst-timer.c: New file.
6303         * Makerules (sources): Don't add BP sources here.
6305         * login/Makefile (distribute): Remove xtmp.h.
6307         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6308         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6310 2000-06-13  Andreas Jaeger  <aj@suse.de>
6312         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6313         Patch by Ralf Baechle <ralf@gnu.org>.
6315 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6317         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6318         for mincore syscall.
6320         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6321         __BOUNDED_POINTERS__ is not defined.
6323 2000-06-07  Greg McGary  <greg@mcgary.org>
6325         * sysdeps/generic/bp-sym.h: New file.
6326         * sysdeps/generic/bp-start.h: New file.
6327         * sysdeps/i386/elf/start.S: Designate BP symbols.
6328         * sysdeps/generic/libc-start.c: Wrap bounds around
6329         argv & envp and each of their string members.
6331 2000-06-07  Greg McGary  <greg@mcgary.org>
6333         * sysdeps/unix/make-syscalls.sh: Add comments to
6334         output that aid debugging & comprehension.
6335         Map simple syscall signatures to number of args.
6336         Generate BP syscall thunk definitions.
6337         * sysdeps/generic/bp-thunks.h: New file.
6338         * sysdeps/unix/syscalls.list: Replace arg-count with
6339         simple return+arg signature.
6340         * sysdeps/unix/common/syscalls.list: Likewise.
6341         * sysdeps/unix/inet/syscalls.list: Likewise.
6342         * sysdeps/unix/mman/syscalls.list: Likewise.
6343         * sysdeps/unix/sysv/syscalls.list: Likewise.
6344         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6345         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6347 2000-06-07  Greg McGary  <greg@mcgary.org>
6349         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6350         for all files *.[cS].
6351         (CFLAGS-.ob): Don't optimize sibling calls.
6352         (bppfx): New variable.
6353         * Makerules (elide-bp-thunks): New variable.
6354         (elide-routines.*): Elide BP-* files for all but *.ob.
6355         (sources): Include bp-thunks.
6357 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6359         * iconv/gconv_simple.c: Remove unnecessary prototype.
6361         * iconv/gconv_trans.c: Pretty print.
6363         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6365         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6366         minimal kernel versions.  Add information about IA-64 kernel.
6368         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6369         specific minimal supported kernel versions to be specified.
6371         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6372         step data structure.
6373         * wcsmbs/btowc.c: Likewise.
6374         * wcsmbs/mbrtowc.c: Likewise.
6375         * wcsmbs/mbsnrtowcs.c: Likewise.
6376         * wcsmbs/mbsrtowcs.c: Likewise.
6377         * wcsmbs/wcrtomb.c: Likewise.
6378         * wcsmbs/wcsnrtombs.c: Likewise.
6379         * wcsmbs/wcsrtombs.c: Likewise.
6380         * wcsmbs/wctob.c: Likewise.
6382         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6383         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6385         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6387         * misc/sys/cdefs.h: Remove one more __P.
6389         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6390         Reported by HJ Lu.
6392         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6393         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6394         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6396 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6397             Yutaka Niibe  <gniibe@chroot.org>
6399         * configure.in: Add machine sh3, sh4.
6400         * elf/elf.h: Add SH specific declarations of relocations.
6401         * shlib-versions: Add sh*-*-linux* cases.
6403 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6405         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6406         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6407         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6408         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6409         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6410         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6412         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6413         instead of KERNEL_MATH_EMULATION.
6414         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6415         KERNEL_MATH_EMULATION.
6417         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6418         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6419         * sysdeps/sh/dl-machine.h: ...here.  New file.
6420         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6421         and include generic SH version.
6422         * sysdeps/sh/sh3/bits/endian.h: Move to...
6423         * sysdeps/sh/bits/endian.h: ...here.  New file.
6424         * sysdeps/sh/sh4/bits/endian.h: Removed.
6425         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6426         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6427         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6429         * include/libc-symbols.h (link_warning): Work around a change in
6430         GAS which warns about changing section attributes.
6431         Proposed by Nick Clifton <nickc@redhat.com>.
6433 2000-06-12  H.J. Lu  <hjl@gnu.org>
6435         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6437 2000-06-11  H.J. Lu  <hjl@gnu.org>
6439         * sysdeps/i386/fpu/Versions: New file.
6441 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6443         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6444         parameters.
6445         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6446         exists.
6448 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6450         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6451         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6452         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6454         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6455         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6456         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6458 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6459             Yutaka Niibe  <gniibe@chroot.org>
6461         * sysdeps/sh/Dist: New file.
6462         * sysdeps/sh/Implies: New file.
6463         * sysdeps/sh/elf/initfini.c: New file.
6464         * sysdeps/sh/gmp-mparam.h: New file.
6465         * sysdeps/sh/init-first.c: New file.
6466         * sysdeps/sh/machine-gmon.h: New file.
6467         * sysdeps/sh/memcpy.S: New file.
6468         * sysdeps/sh/memprof.h: New file.
6469         * sysdeps/sh/memset.S: New file.
6470         * sysdeps/sh/sh3/__longjmp.S: New file.
6471         * sysdeps/sh/sh3/bits/endian.h: New file.
6472         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6473         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6474         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6475         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6476         * sysdeps/sh/sh3/dl-machine.h: New file.
6477         * sysdeps/sh/sh3/setjmp.S: New file.
6478         * sysdeps/sh/sh4/__longjmp.S: New file.
6479         * sysdeps/sh/sh4/bits/endian.h: New file.
6480         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6481         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6482         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6483         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6484         * sysdeps/sh/sh4/dl-machine.h: New file.
6485         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6486         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6487         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6488         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6489         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6490         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6491         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6492         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6493         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6494         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6495         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6496         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6497         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6498         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6499         * sysdeps/sh/sh4/setjmp.S: New file.
6500         * sysdeps/sh/elf/start.S: New file.
6501         * sysdeps/sh/sys/ucontext.h: New file.
6502         * sysdeps/sh/strlen.S: New file.
6503         * sysdeps/sh/sysdep.h: New file.
6504         * sysdeps/unix/sh/sysdep.S: New file.
6505         * sysdeps/unix/sh/sysdep.h: New file.
6506         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6507         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6508         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6509         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6510         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6511         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6512         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6513         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6514         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6515         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6516         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6517         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6518         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6519         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6520         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6521         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6522         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6523         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6524         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6525         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6526         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6527         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6528         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6529         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6530         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6531         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6532         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6533         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6534         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6535         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6536         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6537         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6538         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6539         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6540         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6541         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6542         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6543         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6544         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6545         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6546         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6547         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6548         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6549         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6550         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6551         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6552         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6553         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6554         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6555         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6557 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6559         * Rules (%.out): Define GCONV_PATH in the environment.
6560         * assert/Depend: New file.
6561         * iconvdata/Depend: New file.
6562         * intl/Depend: New file.
6563         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6564         * intl/tst-gettext.sh: Likewise.
6565         * iconv/Makefile (routines): Add gconv_trans.
6566         * iconv/gconv_trans.c: New file.
6567         * iconv/gconv.h (struct __gconv_trans_data): New type.
6568         (__gconv_fct): New parameter with starting position in output buffer.
6569         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6570         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6571         (struct __gconv_step): Add new member __trans.
6572         * iconv/gconv_int.h: Pretty print prototypes.
6573         (gconv_transliterate): New prototype.
6574         (__BUILTIN_TRANS): Update for new conversion function interface.
6575         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6576         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6577         in names, find appropriate function, and install in the conversion
6578         steps it can be used.
6579         * iconv/skeleton.c: Add additional parameter for beginning of output
6580         buffer.  Change calls of downstream functions.
6581         * iconv/loop.c: Change loop function interface completely.  Pass in
6582         step and step_data structure.  Remove optimization for BODY with
6583         NEED_LENGTH_TEST == 0.
6584         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6585         appropriate error handling code to use transliteration steps.  Remove
6586         optimization for BODY with NEED_LENGTH_TEST == 0.
6587         * iconvdata/8bit-gap.c: Likewise.
6588         * iconvdata/8bit-generic.c: Likewise.
6589         * iconvdata/ansi_x3.110.c: Likewise.
6590         * iconvdata/big5.c: Likewise.
6591         * iconvdata/big5hkscs.c: Likewise.
6592         * iconvdata/euc-cn.c: Likewise.
6593         * iconvdata/euc-jp.c: Likewise.
6594         * iconvdata/euc-kr.c: Likewise.
6595         * iconvdata/euc-tw.c: Likewise.
6596         * iconvdata/gbgbk.c: Likewise.
6597         * iconvdata/gbk.c: Likewise.
6598         * iconvdata/iso-2022-cn.c: Likewise.
6599         * iconvdata/iso-2022-jp.c: Likewise.
6600         * iconvdata/iso-2022-kr.c: Likewise.
6601         * iconvdata/iso646.c: Likewise.
6602         * iconvdata/iso8859-1.c: Likewise.
6603         * iconvdata/iso_6937-2.c: Likewise.
6604         * iconvdata/iso_6937.c: Likewise.
6605         * iconvdata/johab.c: Likewise.
6606         * iconvdata/sjis.c: Likewise.
6607         * iconvdata/t.61.c: Likewise.
6608         * iconvdata/uhc.c: Likewise.
6609         * iconvdata/unicode.c: Likewise.
6610         * iconvdata/utf-16.c: Likewise.
6611         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6612         DL_CALL_FCT.
6613         * wcsmbs/btowc.c: Likewise.
6614         * wcsmbs/mbrtowc.c: Likewise.
6615         * wcsmbs/mbsnrtowcs.c: Likewise.
6616         * wcsmbs/mbsrtowcs.c: Likewise.
6617         * wcsmbs/wcrtomb.c: Likewise.
6618         * wcsmbs/wcsnrtombs.c: Likewise.
6619         * wcsmbs/wcsrtombs.c: Likewise.
6620         * wcsmbs/wctob.c: Likewise.
6622 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6624         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6625         other header files.  Mention about 128-byte cache line sizes.
6626         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6627         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6628         for current calling sequence.
6629         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6631         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6632         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6634         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6635         and setrlimit syscalls for backwards compatibility.
6637 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6639         * iconv/skeleton.c:  Rename converted written to correcter name
6640         irreversible.
6641         * iconv/gconv.c: Rename converted variable to correcter name
6642         irreversible.
6643         * iconv/gconv_int.h: Likewise.
6644         * iconv/gconv_simple.c: Likewise.
6645         * iconv/iconv.c: Likewise.
6646         * iconv/loop.c: Likewise.
6647         * iconvdata/8bit-gap.c: Likewise.
6648         * iconvdata/8bit-generic.c: Likewise.
6649         * iconvdata/ansi_x3.110.c: Likewise.
6650         * iconvdata/big5.c: Likewise.
6651         * iconvdata/big5hkscs.c: Likewise.
6652         * iconvdata/euc-cn.c: Likewise.
6653         * iconvdata/euc-jp.c: Likewise.
6654         * iconvdata/euc-kr.c: Likewise.
6655         * iconvdata/gbgbk.c: Likewise.
6656         * iconvdata/gbk.c: Likewise.
6657         * iconvdata/iso-2022-cn.c: Likewise.
6658         * iconvdata/iso-2022-jp.c: Likewise.
6659         * iconvdata/iso-2022-kr.c: Likewise.
6660         * iconvdata/iso646.c: Likewise.
6661         * iconvdata/iso8859-1.c: Likewise.
6662         * iconvdata/iso_6937-2.c: Likewise.
6663         * iconvdata/iso_6937.c: Likewise.
6664         * iconvdata/johab.c: Likewise.
6665         * iconvdata/sjis.c: Likewise.
6666         * iconvdata/t.61.c: Likewise.
6667         * iconvdata/uhc.c: Likewise.
6668         * iconvdata/unicode.c: Likewise.
6669         * iconvdata/utf-16.c: Likewise.
6671         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6672         __cmsg_data field with __extension__.
6674 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6676         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6678 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6680         * iconv/gconv_simple.c: Fix various small bugs in several
6681         functions.
6683         * iconv/loop.c: Fix comment.
6685 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6687         * elf/link.h: Remove libc internal declarations.
6688         * include/link.h: Move them here.
6690 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6692         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6693         Patch by Dan Pop <Dan.Pop@cern.ch>.
6695         Rewrite error message handling.
6696         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6697         _dl_catch_error.
6698         * elf/dl-error (struct catch): Add objname member.
6699         (_dl_signal_error): Take new parameter with object name.  When
6700         passing message on simply store object name and duplicate error
6701         message.
6702         (_dl_catch_error): Take new parameter.  Store object name in the
6703         place pointed to.
6704         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6705         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6706         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6707         (dlerror): Add objname to asprintf() parameters.
6708         (_dl_error_run): Pass new parameter to _dl_catch_error.
6709         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6710         * elf/dl-open.c (_dl_open): Likewise.
6711         * elf/rtld.c (dl_main): Likewise.
6712         * elf/dl-close.c: Mark error messages with N_().
6713         * elf/dl-deps.c: Likewise.
6714         * elf/dl-error.c: Likewise.
6715         * elf/dl-load.c: Likewise.
6716         * elf/dl-open.c: Likewise.
6717         * elf/dl-reloc.c: Likewise.
6718         * elf/dl-support.c: Likewise.
6719         * elf/dl-sym.c: Likewise.
6720         * elf/dl-version.c: Likewise.
6721         * elf/dl-lookup.c: Add comments about problems with error message
6722         translations.
6723         * elf/dl-reloc.c: Likewise.
6724         * elf/dl-version.c: Likewise.
6726 2000-06-09  H.J. Lu  <hjl@gnu.org>
6728         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6729         after freeing it.
6731         * dlfcn/Makefile (distribute): Add failtestmod.c.
6732         (tests): Add failtest.
6733         Add rules to build and run failtest.
6734         * dlfcn/failtest.c: New file.
6735         * dlfcn/failtestmod.c: New file.
6737 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6739         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6740         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6741         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6742         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6743         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6745 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6747         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6748         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6750 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6751             Ulrich Drepper  <drepper@redhat.com>
6753         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6754         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6755         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6756         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6757         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6758         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6760 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6762         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6763         to find correct mount point despite wrong information from the
6764         kernel.
6766 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6768         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6769         the address of a symbol so function pointers are handled properly.
6771 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6773         * sysdeps/i386/Dist: Add bp-asm.h.
6775         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6776         defaultdir variable instead of "/var/shm" everywhere.
6777         (defaultdir): Change to /dev/shm/.
6779 2000-06-08  Greg McGary  <greg@mcgary.org>
6781         * sysdeps/i386/bp-asm.h: New file.
6782         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6783         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6784         frame-pointer chain when debugging.
6785         * sysdeps/i386/add_n.S: Likewise.
6786         * sysdeps/i386/addmul_1.S: Likewise.
6787         * sysdeps/i386/lshift.S: Likewise.
6788         * sysdeps/i386/memchr.S: Likewise.
6789         * sysdeps/i386/memcmp.S: Likewise.
6790         * sysdeps/i386/mul_1.S: Likewise.
6791         * sysdeps/i386/rawmemchr.S: Likewise.
6792         * sysdeps/i386/rshift.S: Likewise.
6793         * sysdeps/i386/stpcpy.S: Likewise.
6794         * sysdeps/i386/stpncpy.S: Likewise.
6795         * sysdeps/i386/strchr.S: Likewise.
6796         * sysdeps/i386/strchrnul.S: Likewise.
6797         * sysdeps/i386/strcspn.S: Likewise.
6798         * sysdeps/i386/strpbrk.S: Likewise.
6799         * sysdeps/i386/strrchr.S: Likewise.
6800         * sysdeps/i386/strspn.S: Likewise.
6801         * sysdeps/i386/strtok.S: Likewise.
6802         * sysdeps/i386/sub_n.S: Likewise.
6803         * sysdeps/i386/submul_1.S: Likewise.
6804         * sysdeps/i386/elf/setjmp.S: Likewise.
6805         * sysdeps/i386/i486/strcat.S: Likewise.
6806         * sysdeps/i386/i486/strlen.S: Likewise.
6807         * sysdeps/i386/i586/add_n.S: Likewise.
6808         * sysdeps/i386/i586/lshift.S: Likewise.
6809         * sysdeps/i386/i586/memcpy.S: Likewise.
6810         * sysdeps/i386/i586/memset.S: Likewise.
6811         * sysdeps/i386/i586/rshift.S: Likewise.
6812         * sysdeps/i386/i586/strchr.S: Likewise.
6813         * sysdeps/i386/i586/strcpy.S: Likewise.
6814         * sysdeps/i386/i586/strlen.S: Likewise.
6815         * sysdeps/i386/i586/sub_n.S: Likewise.
6816         * sysdeps/i386/i686/add_n.S: Likewise.
6817         * sysdeps/i386/i686/memcpy.S: Likewise.
6818         * sysdeps/i386/i686/mempcpy.S: Likewise.
6819         * sysdeps/i386/i686/memset.S: Likewise.
6820         * sysdeps/i386/i686/strcmp.S: Likewise.
6822 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6824         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6826         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6827         256 and don't use OPEN_MAX.
6829         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6830         use it instead of LINK_MAX.
6831         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6833 2000-06-08  Andreas Jaeger  <aj@suse.de>
6835         * libio/genops.c (_IO_list_lock): Only compile body if we're
6836         thread safe.
6837         (_IO_list_unlock): Likewise.
6838         (_IO_list_resetlock): Likewise.
6840 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6842         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6843         unless user defined it.
6845         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6846         if not defined by the user.
6848         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6849         * libio/iofwrite.c (_IO_fwrite): Likewise.
6851         * time/time.h: Add missing __THROW for clock_getcpuclockid
6852         prototype.
6854         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6855         * include/elf.h: Include also <dl-dtprocnum.h>.
6856         * elf/dl-deps.c: Likewise.
6857         * elf/dl-lookup.c: Likewise.
6858         * elf/dl-runtime.c: Likewise.
6859         * elf/dl-version.c: Likewise.
6860         * elf/do-rel.h: Likewise.
6861         * elf/dynamic-link.h: Likewise.
6862         * elf/link.h: Likewise.
6863         * elf/rtld.c: Likewise.
6864         * sysdeps/generic/dl-dtprocnum.h: New file.
6865         * sysdeps/ia64/dl-dtprocnum.h: New file.
6866         * sysdeps/mips/dl-dtprocnum.h: New file.
6867         * sysdeps/sparc/dl-dtprocnum.h: New file.
6869         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6871         * elf/do-lookup.h: Add some __builtin_expect.
6873         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6875         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6876         (_dl_dynamic_weak): New variable.
6877         * elf/dl-support.c: Likewise.
6878         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6879         * elf/do-lookup.h: If we find a weak definition treat it like a
6880         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6881         case treat it like before.
6883         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6884         is in main program.
6885         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6887         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6888         using l_map_start and l_map_end.
6890         * elf/dl-version.c: Add __builtin_expect in many places.
6892         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6893         Update.
6895 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6897         Lock for stdio stream list becomes global, for use in LinuxThreads.
6899         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6900         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6901         _IO_list_resetlock): New interface for iterating global list of
6902         streams without accessing the _IO_list_all global variable,
6903         and for manipulating the lock which protects this list.
6904         * libio/libioP.h: Likewise.
6905         * libio/Version: Add entries for the new functions.
6907         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6908         pointer to _IO_FILE.
6910 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6912         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6913         BIT() must actually be BITw().
6915         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6917         * locale/programs/charmap.c: Allow string arguments for
6918         code_set_name and repertoiremap.
6920 2000-06-07  Andreas Jaeger  <aj@suse.de>
6922         * elf/Makefile: Build ldconfig only when building shared libraries.
6924 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6926         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6927         __USE_ISOC99.
6928         (fdimf, __fdim, fdim): Likewise.
6930 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6932         * locale/findlocale.c: Add __builtin_expect in many places.
6933         * locale/loadlocale.c: Likewise.
6935 2000-06-06  Greg McGary  <greg@mcgary.org>
6937         * sysdeps/mips/elf/start.S: Trim redundant code.
6939         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6940         Use C comments throughout.  Line up operands column with tabs.
6941         * sysdeps/powerpc/strchr.S: Likewise.
6942         * sysdeps/powerpc/strcmp.S: Likewise.
6943         * sysdeps/powerpc/strcpy.S: Likewise.
6944         * sysdeps/powerpc/strlen.S: Likewise.
6946         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6947         Get low part of &__curbrk with @l.
6949 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6951         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6952         * iconvdata/unicode.c: Likewise.
6953         * iconvdata/uhc.c: Likewise.
6954         * iconvdata/t.61.c: Likewise.
6955         * iconvdata/sjis.c: Likewise.
6956         * iconvdata/johab.c: Likewise.
6957         * iconvdata/iso_6937.c: Likewise.
6958         * iconvdata/iso_6937-2.c: Likewise.
6959         * iconvdata/iso8859-1.c: Likewise.
6960         * iconvdata/iso646.c: Likewise.
6961         * iconvdata/iso-2022-kr.c: Likewise.
6962         * iconvdata/iso-2022-jp.c: Likewise.
6963         * iconvdata/iso-2022-cn.c: Likewise.
6964         * iconvdata/gbgbk.c: Likewise.
6965         * iconvdata/gbk.c: Likewise.
6966         * iconvdata/euc-kr.c: Likewise.
6967         * iconvdata/euc-jp.c: Likewise.
6968         * iconvdata/euc-cn.c: Likewise.
6970 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6972         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6973         * iconvdata/big5.c: Likewise.
6974         * iconvdata/ansi_x3.110.c: Likewise.
6975         * iconvdata/8bit-generic.c: Likewise.
6976         * iconvdata/8bit-gap.c: Likewise.
6977         * iconv/loop.c: Likewise.
6978         * iconv/gconv_db.c: Likewise.
6979         * iconv/gconv_dl.c: Likewise.
6980         * iconv/gconv_simple.c: Likewise.
6981         * iconv/skeleton.c: Likewise.
6983         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6984         (struct __gconv_step_data): Rename __is_last to __flags.
6985         * iconv/gconv_close.c: Change all uses of __is_last.
6986         * iconv/skeleton.c: Likewise.
6987         * iconvdata/iso-2022-cn.c: Likewise.
6988         * iconvdata/iso-2022-jp.c: Likewise.
6989         * iconvdata/iso-2022-kr.c: Likewise.
6990         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6991         Recognize IGNORE error handling, set flag, and remove from name.
6992         * iconv/loop.c (ignore_errors_p): Define.
6993         Add flags parameter to both functions.
6994         * iconv/skeleton.c: Pass flags to all conversion functions.
6995         * iconv/gconv_simple.c: Add flags parameter to all functions.
6996         Don't return error for invald error if ignore flag is set.
6997         (ucs4_internal_loop_single): Add missing pointer increment.
6998         (internal_ucs4le_loop_single): Likewise.
6999         * iconv/iconv_prog.c: Implement handling of -c parameter.
7000         * iconvdata/8bit-gap.c: Don't return error for invald error if
7001         ignore flag is set.
7002         * iconvdata/8bit-generic.c: Likewise.
7003         * iconvdata/ansi_x3.110.c: Likewise.
7004         * iconvdata/big5.c: Likewise.
7005         * iconvdata/big5hkscs.c: Likewise.
7006         * iconvdata/euc-cn.c: Likewise.
7007         * iconvdata/euc-jp.c: Likewise.
7008         * iconvdata/euc-kr.c: Likewise.
7009         * iconvdata/gbgbk.c: Likewise.
7010         * iconvdata/gbk.c: Likewise.
7011         * iconvdata/iso-2022-cn.c: Likewise.
7012         * iconvdata/iso-2022-jp.c: Likewise.
7013         * iconvdata/iso-2022-kr.c: Likewise.
7014         * iconvdata/iso646.c: Likewise.
7015         * iconvdata/iso8859-1.c: Likewise.
7016         * iconvdata/iso_6937-2.c: Likewise.
7017         * iconvdata/iso_6937.c: Likewise.
7018         * iconvdata/johab.c: Likewise.
7019         * iconvdata/sjis.c: Likewise.
7020         * iconvdata/t.61.c: Likewise.
7021         * iconvdata/uhc.c: Likewise.
7022         * iconvdata/unicode.c: Likewise.
7023         * iconvdata/utf-16.c: Likewise.
7024         * libio/fileops.c: Likewise.
7025         * libio/iofwide.c: Likewise.
7026         * wcsmbs/btowc.c: Likewise.
7027         * wcsmbs/mbrtowc.c: Likewise.
7028         * wcsmbs/mbsnrtowcs.c: Likewise.
7029         * wcsmbs/mbsrtowcs.c: Likewise.
7030         * wcsmbs/wcrtomb.c: Likewise.
7031         * wcsmbs/wcsnrtombs.c: Likewise.
7032         * wcsmbs/wcsrtombs.c: Likewise.
7033         * wcsmbs/wctob.c: Likewise.
7035         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7036         an error.
7038 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7040         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7041         counter for the object we are releasing, just decrement it.
7042         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7044 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7046         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7047         if -ffast-math.
7049 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7051         * iconvdata/big5hkscs.c: New file.
7052         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7054         * iconvdata/gconv-modules: Add entry for new module.
7055         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7056         (distribute): Add big5hkscs.c.
7058 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7060         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7061         inlines to match prototypes in mathcalls.h.
7062         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7063         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7064         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7065         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7067 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7069         * elf/elf.h (SHT_SUNW_move): Define.
7071         * elf/elf.h: Add more Solaris compatiblity definitions.
7073 2000-06-03  Andreas Jaeger  <aj@suse.de>
7075         * sysdeps/powerpc/dl-start.S: Close open comment.
7077 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7079         * inet/Versions: Fix typo in rresvport_af export.
7081 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7083         * math/tgmath.h: Pretty print.
7085 2000-06-02  Andreas Jaeger  <aj@suse.de>
7087         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7088         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7090 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7092         * elf/rtld.c (process_envvars): Test for = after variable name.
7094 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7096         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7097         have extra call to __gmon_start__, use the pointer we already have.
7099         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7100         shifting.
7102         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7103         binutils.  gas now emits a jump through the PLT instead of a
7104         relative jump if the jump target is an exported symbol.
7106 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7108         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7110 2000-05-31  Andreas Jaeger  <aj@suse.de>
7112         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7113         gregset_t.
7115         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7116         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7118         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7119         syscall.
7120         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7122 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7124         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7126         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7127         * locale/localeconv.c: Make function versioned (with same definition).
7129         * elf/Makefile (modules-names): Strip before using it.
7131 2000-05-30  Andreas Jaeger  <aj@suse.de>
7133         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7134         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7135         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7136         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7137         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7138         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7140 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7142         * Makefile: Add GNU make magic.
7144         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7145         Removed.
7146         * inet/rcmd.c: Remove __P.  Remove unused variables.
7147         (iruserfopen): Make first parameter const.
7148         (ruserok_sa): Return result of ruserok2_sa.
7149         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7150         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7151         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7152         (ruserpass): Check results of memory allocation.
7153         * include/netdb.h: Add prototype for ruserpass.
7155 2000-05-29  Andreas Jaeger  <aj@suse.de>
7157         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7158         for all platforms.
7160 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7162         * inet/rcmd.c (rresvport_af): Use correct port number.
7164 2000-05-26  Andreas Schwab  <schwab@suse.de>
7166         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7167         entries in all-sonames.
7168         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7169         preserving the old name if different for compatibility.
7171 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7173         * posix/Makefile (tests): Add tst-spawn.
7174         (tst-spawn-ARGS): New variable.
7175         * posix/tst-spawn.c: New file.
7177         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7178         * posix/spawn_faction_adddup2.c: Likewise.
7179         * posix/spawn_faction_addopen.c: Likewise.
7180         * posix/spawni.c: Correctly test for success of dup2 calls.
7182         * posix/tst-preadwrite.c: Check success of malloc call.
7184 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7186         * posix/Makefile (tests): Add tst-exec.
7187         (tst-exec-ARGS): New variable.
7188         * posix/tst-exec.c: New file.
7190         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7192 2000-05-04  Andreas Jaeger  <aj@suse.de>
7194         * string/string.h: Remove __strdup prototype, it's not needed in
7195         this file anymore.
7197 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7199         * posix/Makefile (tests): Add tst-fork.
7200         * posix/tst-fork.c: New file.
7202         * resolv/inet_pton.c: Loose __P.
7204 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7206         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7207         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7208         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7209         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7210         _IO_CHECK_WIDE fails.
7212 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7214         * po/da.po: New file.
7216         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7217         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7219         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7220         (Other iconv Implementations): Fix typo.
7221         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7223 2000-05-27  Andreas Jaeger  <aj@suse.de>
7225         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7226         normal version now.
7227         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7228         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7229         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7230         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7231         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7232         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7234         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7235         endianness to decide how to pass arguments.
7236         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7238         * elf/vismain.c: Use test-skeleton interface.
7239         (TEST_FUNCTION): New macro.
7240         (do_test): Renamed from main.
7242 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7244         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7245         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7247         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7248         handling of AI_V4MAPPED flag.
7250         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7251         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7252         perform lookup for T_A type and tell getanswer_r to convert the
7253         result with new argument.
7254         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7255         Don't convert addresses from IPv4 to IPv6 here.
7256         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7257         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7258         IPv4 mapping has to be done.  Perform mappings if required by the
7259         caller and not if RES_USE_INET6 bit in _res.options is set.
7260         Add several __builtin_expect.
7262 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7264         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7266         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7267         NULL.
7269         * posix/tst-preadwrite.c: Allow parallel execution of
7270         tst-preadwrite and tst-preadwrite64.
7272         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7273         * posix/tst-truncate.c: New file.
7274         * posix/tst-truncate64.c: New file.
7276         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7277         was switched.
7279         * posix/Makefile (tests): Add tst-preadwrite64.
7280         * posix/tst-preadwrite.c: Alloc file being used also for testing
7281         pread64 and pwrite64.
7282         * posix/tst-preadwrite64.c: New file.
7284 2000-05-26  Andreas Jaeger  <aj@suse.de>
7286         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7287         of arguments dependend on endianness.
7288         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7290         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7291         normal version now.
7292         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7293         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7294         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7295         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7297         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7298         endianness to check how to pass argument.
7299         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7301         * elf/ldconfig.h: Update parameter list for process_elf_file.
7303         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7304         Add parameter file_length and pass it ot process_elf*file.
7306         * sysdeps/generic/readelflib.c (check_ptr): New.
7307         (process_elf_file): Use check_ptr to check all accesses to the
7308         mmapped file. Add parameter file_length.
7310         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7311         library names.
7313         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7314         Closes PR libc/1573, reported by Bradley White
7315         <bww@laurelnetworks.com>.
7317 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7319         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7320         __FAST_MATH__ is defined.
7322 2000-05-22  Andreas Jaeger  <aj@suse.de>
7324         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7325         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7327         * manual/math.texi (FP Function Optimizations): Document gcc
7328         -ffast-math behaviour with mathinlines.
7330         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7331         functions unless -ffast-math is given to gcc.
7333 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7335         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7336         __sincosl): Guard with __USE_GNU.
7338 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7340         * csu/Makefile (routines): Add check_fds.
7341         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7342         binaries.  Add various __builtin_expect.
7343         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7344         * sysdeps/generic/check_fds.c: ...here.  New file.
7346         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7347         binaries if file /etc/suid-debug is available.
7349         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7350         and wcseqorder members.
7351         (struct locale_collate_t): Likewise.
7352         (collate_finish): Assign collation sequence value to each character.
7353         Create tables for output.
7354         (collate_output): Write out tables with collation sequence information.
7355         * locale/C-collate.c: Provide C locale data for collation sequence
7356         table.
7357         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7358         _NL_COLLATE_COLLSEQWC.
7359         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7360         _NL_COLLATE_COLLSEQWC.
7361         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7362         include fnmatch_loop.c.
7363         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7364         character is matched by range expression.  Use collation sequence
7365         table.  Outside glibc fall back on simple character value comparison.
7367 2000-05-24  Andreas Jaeger  <aj@suse.de>
7369         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7370         words.
7372         * intl/Makefile: Run gettext-test only if msgfmt is available.
7374         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7375         Define it for newer kernels.
7377 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7379         * elf/dl-sym.c: Minor cleanups.
7381         * configure.in: Add test for .protected.
7382         * config.make.in: Add have-protected variable.
7383         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7384         (tests-vis-yes): Add vismain.
7385         (modules-names): Add $(modules-vis-$(have-protected)).
7386         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7387         Add rules to generate and run vismain.
7388         * elf/vismain.c: New file.
7389         * elf/vismod1.c: New file.
7390         * elf/vismod2.c: New file.
7391         * elf/vismod3.c: New file.
7393 2000-05-23  Andreas Jaeger  <aj@suse.de>
7395         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7397         * manual/search.texi (Array Sort Function): Document that qsort is
7398         not necessarily in-place.
7400         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7401         Closes PR libc/1731.
7403         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7404         * dirent/scandir64.c: Likewise.
7405         * pwd/getpw.c: Likewise.
7406         * stdlib/bsearch.c (bsearch): Likewise.
7407         * stdlib/tst-strtoll.c: Likewise.
7408         * localedata/collate-test.c: Likewise.
7409         * localedata/xfrm-test.c: Likewise.
7410         * posix/bsd-getpgrp.c: Likewise.
7411         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7412         * sysdeps/generic/bits/siginfo.h: Likewise.
7413         * sysdeps/generic/bits/sockaddr.h: Likewise.
7414         * sysdeps/generic/sys/swap.h: Likewise.
7415         * sysdeps/generic/sys/sysinfo.h: Likewise.
7416         * sysdeps/generic/vfork.c: Likewise.
7417         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7418         * sysdeps/mach/hurd/fdopen.c: Likewise.
7419         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7420         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7421         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7422         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7423         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7424         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7425         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7427         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7428         * shadow/lckpwdf.c: Likewise.
7429         * stdlib/tst-strtol.c: Likewise.
7430         * sysdeps/generic/tcsetattr.c: Likewise.
7431         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7432         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7434 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7436         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7437         free it and set to (void *) -1.
7439 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7441         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7442         not the second character in the range.
7443         * stdio-common/tstscanf.c (main): Add testcase for the above.
7444         Reported by jik@kamens.brookline.ma.us.
7446 2000-05-21  H.J. Lu  <hjl@gnu.org>
7448         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7449         with noexec and noplt parameter.
7450         (do_lookup): Likewise.
7452         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7453         do_lookup.  Support STV_PROTECTED.
7454         (_dl_lookup_symbol_skip): Likewise.
7455         (_dl_lookup_versioned_symbol): Likewise.
7456         (_dl_lookup_versioned_symbol_skip): Likewise.
7458         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7460         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7462 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7464         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7465         * sysdeps/i386/bits/huge_val.h: Likewise.
7466         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7467         * sysdeps/m68k/bits/huge_val.h: Likewise.
7468         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7469         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7471 2000-05-22  Andreas Jaeger  <aj@suse.de>
7473         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7474         change in iconv.h.
7476 2000-05-19  Andreas Jaeger  <aj@suse.de>
7478         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7479         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7480         breaks compilation without linuxthreads.
7482 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7484         * sysdeps/ia64/memccpy.S: New file.
7485         * sysdeps/ia64/memchr.S: New file.
7486         * sysdeps/ia64/memcmp.S: New file.
7487         * sysdeps/ia64/memcpy.S: New file.
7488         * sysdeps/ia64/memmove.S: New file.
7489         * sysdeps/ia64/memset.S: New file.
7490         * sysdeps/ia64/strcat.S: New file.
7491         * sysdeps/ia64/strchr.S: New file.
7492         * sysdeps/ia64/strcmp.S: New file.
7493         * sysdeps/ia64/strcpy.S: New file.
7494         * sysdeps/ia64/strlen.S: New file.
7495         * sysdeps/ia64/strncmp.S: New file.
7496         * sysdeps/ia64/strncpy.S: New file.
7497         * sysdeps/ia64/softpipe.h: New file.
7498         Patches by Dan Pop <Dan.Pop@cern.ch>.
7500         * manual/memory.texi: Document memory handling functions (mlock,
7501         munlock, mlockall, munlockall, brk, and sbrk)
7502         * manual/time.texi: Document timespec and friends.
7503         * manual/conf.texi: Fix references.
7504         * manual/ctype.texi: Likewise.
7505         * manual/errno.texi: Likewise.
7506         * manual/intro.texi: Likewise.
7507         * manual/locale.texi: Likewise.
7508         * manual/sysinfo.texi: Likewise.
7509         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7511 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7513         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7514         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7516 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7518         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7519         dxfer_direction.
7521 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7523         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7524         * locale/localeconv.c: Initialize new elements from ISO C99.
7525         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7526         new standard elements.
7527         * locale/categories.def: Adjust accordingly.
7529         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7530         * iconv/iconv.c: Likewise.
7531         * conform/data/iconv.h-data: Likewise.
7532         * iconv/iconv_prog.c (process_block): Remove const from second
7533         parameter.
7534         (main): Remove const from addr definition.
7535         * manual/charset.texi (Generic Conversion Interface): Remove from
7536         inbuf parameter of iconv.
7538         * intl/dcigettext.c: Fix typo in comment.
7540 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7542         * resolv/res_libc.c (_res): Initialize _sock to -1.
7544 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7546         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7547         (fopencookie@@GLIBC_2.2): New.
7548         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7549         (fopencookie@GLIBC_2.0): New.
7550         * libio/Versions: Add fopencookie to GLIBC_2.2.
7552 2000-05-18  Andreas Jaeger  <aj@suse.de>
7554         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7555         Closes PR libc/1731.
7557         * manual/arith.texi (Parsing of Integers): Fix typo.
7558         Closes PR libc/1744, reported by blp@gnu.org.
7560 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7562         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7563         __extension__ to hexadecimal floating constant notation.
7564         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7565         Likewise.
7566         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7567         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7568         Likewise.
7569         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7570         HUGE_VALL): Likewise.
7571         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7572         HUGE_VALL): Likewise.
7573         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7575 2000-05-17  Andreas Jaeger  <aj@suse.de>
7577         * string/envz.h: Add pure attributes if possible.
7579         * string/argz.h: argz_count is a pure function.
7581         * string/strings.h: Add pure and const attributes if possible.
7583         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7584         possibly searching through the whole memory.
7585         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7587 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7589         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7590         not yet defined.
7591         (_dl_cache_check_flags): Likewise.
7592         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7593         dl-cache.h.
7595 2000-05-17  Andreas Jaeger  <aj@suse.de>
7597         * manual/creature.texi (Feature Test Macros): Remove paragraph
7598         since the description is wrong.
7599         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7601         * scripts/config.sub: New version.
7602         * scripts/config.guess: Likewise.
7603         * manual/texinfo.tex: Likewise.
7605         * time/test_time.args: Removed.
7606         * time/Makefile (test_time-ARGS): Added contents here instead.
7608         * posix/tstgetopt.args: Removed.
7609         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7611         * Rules: Allow arguments for test files to be specified in
7612         Makefile with testname-ARGS; remove rules with .args in it.
7614         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7615         remove old bogus rule for opendir-tst1.args.
7617         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7619         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7620         into objdir.  This allows a readonly sourcetree.
7621         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7623 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7624             David Huggins-Daines <dhd@linuxcare.com>
7626         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7627         cache_data in case of only new cache format correctly.
7629         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7630         cache_file_new.
7632         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7633         struct cache_file_new.
7635         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7636         present.
7638         * elf/cache.c (save_cache): Align struct new_file_cache.
7639         (print_cache): Likewise.
7641 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7643         * elf/soinit.c (__libc_global_ctors): Move
7644         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7645         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7646         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7647         variable, don't define it to __res_state call.
7649 2000-05-13  Andreas Jaeger  <aj@suse.de>
7651         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7652         Linux 2.3.99pre7.
7653         (AF_PPPOX): Likewise.
7654         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7655         (AF_PPPOX): Likewise.
7657 2000-05-12  Andreas Jaeger  <aj@suse.de>
7659         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7660         Reported by tmoestl@gmx.net, closes PR libc/1732.
7662 2000-05-11  Jan Hubicka  <jh@suse.cz>
7664         * misc/sys/cdefs.h: Add support for pure attribute.
7666         * include/string.h: Add __attribute_pure__ to various functions.
7667         * string/string.h: Likewise.
7669 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7671         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7672         argument.
7673         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7674         R_SPARC_UA64.
7675         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7677 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7679         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7680         at proper place.  Compute the high nibble correctly.
7682 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7684         * elf/ldconfig.c: Include elf.h.
7686         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7687         (_dl_vsym): Likewise.
7688         Reported by Owen Taylor <otaylor@redhat.com>.
7690         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7691         always.
7693 2000-05-08  Andreas Jaeger  <aj@suse.de>
7695         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7697         * intl/bindtextdom.c (set_binding_values): Add prototype.
7699 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7701         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7702         call to elf_machine_fixup_plt.
7703         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7704         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7706 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7708         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7709         they are not dlclose'd from underneath us.
7711 2000-05-08  Andreas Schwab  <schwab@suse.de>
7713         * posix/execle.c: Fix size parameter of memcpy.
7715 2000-05-08  Andreas Schwab  <schwab@suse.de>
7717         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7718         getpagesize syscall if available.
7720 2000-05-08  Andreas Jaeger  <aj@suse.de>
7722         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7723         set errno.
7725 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7727         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7728         sizeof(struct link_map *) chunks, not in bytes.
7730 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7732         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7733         only needed for locale.
7734         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7735         It's only needed for catgets.
7736         Patches by Greg McGary <gkm@eng.ascend.com>.
7738 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7740         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7741         Remove duplicate <errno.h> include.  Remove inclusion of
7742         <libintl.h> and "nsswitch.h".
7743         (set_cloexec_flag): New function, broken out of dbopen.
7744         (dbopen): Changed return type to `enum
7745         nss_status'.  Mostly rewritten to make sure that we do not report
7746         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7747         (internal_setent): Change return type to nss_status.
7748         Document, and make sure that the function
7749         behaves accordingly.  Make dynamically loading the database
7750         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7751         failed.
7752         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7753         unecessary casts.
7754         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7755         documentation.
7756         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7757         c_get function member.
7758         * nss/nss_db/nss_db.h: Add and tweak some comments.
7759         (DBT): Move typedef before NSS_DBC typedef.
7760         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7762 2000-05-07  H.J. Lu  <hjl@gnu.org>
7764         * csu/initfini.c: Moved to ....
7765         * sysdeps/generic/initfini.c: ...here.
7767         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7769 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7771         * manual/resource.texi: Document POSIX scheduling functions.
7772         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7774         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7775         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7777         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7778         for x since promotion in comparison might leads to unexpected
7779         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7781         * iconv/Makefile (tests): Add tst-iconv1.
7782         * iconv/tst-iconv1.c: New file.
7783         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7784         empty input buffer over full output buffer.
7785         (ucs4_internal_loop): Likewise.
7786         (ucs4_internal_loop_unaligned): Likewise.
7787         (internal_ucs4le_loop): Likewise.
7788         (internal_ucs4le_loop_unaligned): Likewise.
7789         (ucs4le_internal_loop): Likewise.
7790         (ucs4le_internal_loop_unaligned): Likewise.
7791         Reported by yaoz@nih.gov.
7793 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7795         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7796         returned != __GCONV_OK, there is nothing to clean up.
7798 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7800         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7801         OUTPUT_CHARSET environment variables.
7803 2000-05-06  Andreas Jaeger  <aj@suse.de>
7805         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7806         (struct cache_file_new): New.
7807         (struct file_entry): New (moved from cache.c).
7808         (struct cache_file): New (moved from cache.c).
7810         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7811         from _dl_load_cache_lookup.
7812         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7813         the different cache formats.
7814         New variable cache_new for new format.
7816         * elf/ldconfig.h: Change according to changes in cache.c and
7817         ldconfig.c; remove cache_libcmp; add opt_format.
7819         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7820         stuff that's defined in those headers.
7821         Add hwcap to struct lib_entry.
7822         (opt_format): New variable to select cache format.
7823         (options): Add format parameter.
7824         (is_hwcap): New function.
7825         (path_hwcap): New function.
7826         (parse_opt): Handle new format parameter.
7827         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7829         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7830         ldconfig is part of glibc.
7831         Include dl-cache.h and remove stuff that's defined there.
7832         (struct cache_entry): Add new member hwcap.
7833         (print_entry): Print hwcap, cleanup a bit.
7834         (print_cache): Print new and old formats.
7835         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7836         (save_cache): Save new and old formats.
7837         (add_to_cache): Handle hwcap.
7839         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7840         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7841         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7842         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7843         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7844         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7846 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7848         * intl/dcigettext.c (alignof): New macro.
7849         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7850         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7851         freemem_size to 0.
7853 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7855         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7856         return value.
7858 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7860         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7861         (mempcpy): Correct typo is parameter list.
7863 2000-05-06  Andreas Jaeger  <aj@suse.de>
7865         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7866         functions unless -ffast-math is given to gcc.
7868 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7870         * po/ko.po: Update from translation team.
7872 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7874         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7875         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7876         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7877         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7878         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7879         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7881         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7882         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7883         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7885         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7886         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7887         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7888         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7890         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7891         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7893 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7895         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7896         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7898         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7899         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7901         * sysdeps/ia64/Implies: New file.
7902         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7903         * sysdeps/ia64/Makefile: New file.
7904         * sysdeps/ia64/gmp-mparam.h: New file,
7906         * sysdeps/ia64/elf/start.S: New file.
7908         * sysdeps/ia64/bits/fenv.h: New file.
7910 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7912         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7914 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7916         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7917         ia64 has 64 bit .hash entries just as the Alpha.
7919 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7921         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7923 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7925         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7926         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7927         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7928         * sysdeps/ia64/fpu/fegetenv.c: New file.
7929         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7930         * sysdeps/ia64/fpu/fegetround.c: New file.
7931         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7932         * sysdeps/ia64/fpu/fesetenv.c: New file.
7933         * sysdeps/ia64/fpu/fesetround.c: New file.
7934         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7935         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7936         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7937         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7938         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7940 2000-05-05  Andreas Jaeger  <aj@suse.de>
7942         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7944         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7945         (_dl_string_hwcap): New, does nothing.
7947         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7948         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7949         (_dl_string_hwcap): New function, converts from string to hwcap
7950         encoding.
7951         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7952         (_DL_HWCAP_COUNT): New.
7953         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7954         (_dl_string_hwcap): New function, converts from string to hwcap
7955         encoding.
7956         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7957         (_DL_HWCAP_COUNT): New.
7958         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7959         (_dl_string_hwcap): New function, converts from string to hwcap
7960         encoding.
7962 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7964         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7965         * sysdeps/ia64/Dist: New file.
7967         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7968         parameter to mprotect and for variable assignments.
7970 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7972         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7973         validity of map before dereferencing it.
7975         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7977 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7979         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7980         lookup to the arguments to elf_machine_fixup_plt().
7982         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7983         of the symbol being resolved to input argument list and make the
7984         function return the pointer to the reloc.
7986         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7987         return valuie to lookup_t and return the value.
7988         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7989         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7990         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7991         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7992         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7993         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7995         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7996         Make it an inline function returning value after calling
7997         __elf_machine_fixup_plt().
7999         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8000         symbol address.
8002         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8003         obtain the symbol address.
8005         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8006         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8008         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8009         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8010         inline on non ia64.
8012 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8014         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8015         symbol address of an object.
8017         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8018         the symbol address of an object.
8020         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8021         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8022         (_dl_lookup_symbol_skip): Likewise.
8023         (_dl_lookup_versioned_symbol): Likewise.
8024         (_dl_lookup_versioned_symbol_skip): Likewise.
8026 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8028         * elf/rtld.c (_dl_start): Get the function pointer return address
8029         via _dl_start_address for architectures that need a function
8030         pointer descriptor rather than just a pointer (ia64).
8032         * sysdeps/generic/dl-lookupcfg.h: New file.
8033         * sysdeps/ia64/dl-lookupcfg.h: New file.
8034         * sysdeps/ia64/dl-machine.h: New file.
8035         * sysdeps/ia64/dl-symaddr.c: New file.
8036         * sysdeps/ia64/dl-fptr.c: New file.
8038         * elf/elf.h: Add IA-64 specific definitions.
8040 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8042         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8043         end of enum.
8045 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8047         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8048         happy.
8050 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8052         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8053         symbol.  Call _dl_init rather than the old way.
8055 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8057         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8058         test for pointer in range of DSO address space.
8060 2000-05-04  Andreas Jaeger  <aj@suse.de>
8062         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8064 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8066         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8067         calls of _nl_make_l10nflist.
8069         * libio/stdio.h: Make fseeko and ftello prototypes available is
8070         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8072         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8073         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8075 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8077         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8078         before calling tfind.
8080 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8082         * resolv/resolv.h (res_querydomain): Remove redefinition to
8083         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8085 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8087         * po/gl.po: Update from translation team.
8089         * manual/intro.texi (Program Basics): Change section title.
8090         * manual/process.texi: Fix reference.
8091         (Executing a File): Add reference exec in other section.
8092         * manual/signal.texi: Fix reference.
8093         * manual/startup.texi: Document syscall function.
8094         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8096 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8098         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8099         * intl/bindtextdom.c (set_binding_values): New function.
8100         (bindtextdomain): Call it.
8101         (bind_textdomain_codeset): New function.
8102         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8103         (free_mem): Free each binding's codeset.
8104         * intl/gettextP.h (struct binding): Add codeset field.
8105         (_nl_find_domain): Add domainbinding argument.
8106         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8107         Pass it to _nl_make_l10nflist.
8108         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8109         (_nl_make_l10nflist): Add domainbinding argument.
8110         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8111         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8112         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8113         locale_charset().
8114         * manual/message.texi: New node "Charset conversion in gettext".
8116 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8118         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8119         appropriate.  Handle possible __read error.
8121 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8123         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8124         compiler builtin.
8125         * intl/loadinfo.h (__builtin_expect): Likewise.
8126         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8127         __builtin_expect where appropriate.
8128         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8129         * intl/localealias.c (extend_alias_table): Return an error indicator.
8130         (read_alias_file): Bail out if extend_alias_table fails.
8132 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8134         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8135         * intl/localealias.c: Likewise.
8137 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8139         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8140         Initialize domain->plural and domain->nplurals even if there is no
8141         nullentry.
8143 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8145         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8146         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8147         In case of failure, goto converted.
8149 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8151         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8152         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8153         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8154         __gconv_open.
8156 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8158         * intl/dcigettext.c (transcmp): Compare the domains as well.
8159         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8160         not before.
8161         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8162         <errno.h>.
8164 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8166         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8167         Reported by Bruno Haible.
8169 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8171         * manual/arith.texi: Remove @w from @itemize.
8173 2000-05-02  Andreas Jaeger  <aj@suse.de>
8175         * conform/data/tar.h-data: Add some checks for specific values.
8177         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8178         and RAND_MAX.
8180         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8181         FOPEN_MAX.
8183         * conform/data/netinet/in.h-data: Add exact checks for the values
8184         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8186         * conform/data/float.h-data: Add some minimal values.
8188         * conform/conformtest.pl: Test for macros with string constants,
8189         check for minimum and maximum values.
8190         Add limits.h to headers.
8192         * conform/data/cpio.h-data: Test for value of MAGIC.
8194         * conform/data/limits.h-data: New file.
8196 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8198         * math/Makefile (headers): Add bits/fenvinline.h.
8200 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8202         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8203         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8205         * posix/Versions: Change posix_spawnattr_getdefault and
8206         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8207         and posix_spawnattr_setsigdefault respectively.
8208         * posix/spawn.h: Likewise.
8209         * posix/spawnattr_getdefault.h: Likewise.
8210         * posix/spawnattr_setdefault.h: Likewise.
8211         * conform/data/spawn.h-data: Likewise.
8213 2000-05-01  Andreas Jaeger  <aj@suse.de>
8215         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8217 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8219         * manual/sysinfo.texi: Document getdomainname, setdomainname
8220         and sysctl.
8221         * manual/string.texi: Fix typo.
8222         * manual/terminal.texi: Document gtty and stty.
8223         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8225 2000-04-30  Andreas Jaeger  <aj@suse.de>
8227         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8228         accordance with Austin Draft.
8230 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8232         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8233         to recognize second character in comment line.
8235         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8236         ENOBUFS if we are out of memory.
8238         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8239         available if __USE_XOPEN2K.
8240         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8241         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8242         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8243         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8244         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8245         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8246         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8247         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8249 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8251         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8252         Recognize option -s, -c, and -l.
8254 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8256         * nscd/nscd.c: Start new session for nscd, drop privilegs
8257         to configured user if requested and no -S parameter are used.
8258         * nscd/nscd.conf: Add new option "server-user".
8259         * nscd/nscd_conf.c: Add support for new "server-user" option.
8260         * nscd/nscd.h: Add declaration for server_user variable.
8261         Based on patch by Chris Wing <wingc@engin.umich.edu>
8263 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8265         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8266         that changing the __restore and __restore_rt signal return code
8267         will break GDB.
8269 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8271         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8272         <sys/user.h>.
8274 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8276         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8278 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8280         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8281         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8282         arpa/inet.h.
8283         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8284         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8285         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8286         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8287         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8288         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8289         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8290         posix_fallocate, and posix_madvise.
8291         * conform/data/netdb.h-data: New file.
8292         * conform/data/pthread.h-data: Add pthread_barrier_t,
8293         pthread_barrierattr_t, pthread_barrier_destroy,
8294         pthread_barrier_init, pthread_barrier_wait,
8295         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8296         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8297         pthread_condattr_getclock, pthread_condattr_setclock,
8298         pthread_getcpuclockid, pthread_mutex_timedlock,
8299         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8300         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8301         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8302         * conform/data/sched.h-data: Add sched_ss_low_priority,
8303         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8304         SCHED_SPORADIC.
8305         * conform/data/semaphore.h-data: Add sem_timedwait.
8306         * conform/data/signal.h-data: Add SIGIO.
8307         * conform/data/spawn.h-data: New file.
8308         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8309         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8310         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8311         Fix typo in gmtime_r definition.
8312         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8313         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8314         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8315         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8316         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8317         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8318         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8319         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8320         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8321         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8322         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8323         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8324         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8325         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8326         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8327         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8328         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8329         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8330         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8331         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8332         typo in off_t definition.
8333         * conform/data/net/if.h-data: New file.
8334         * conform/data/netinet/in.h-data: New file.
8335         * conform/data/netinet/tcp.h-data: New file.
8336         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8337         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8338         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8339         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8340         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8341         and posix_typed_mem_open.
8342         * conform/data/sys/socket.h-data: New file.
8343         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8344         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8345         pthread_barrierattr_t, and pthread_spinlock_t.
8346         * conform/data/sys/un.h-data: New file.
8347         * conform/data/sys/utsname.h-data: New file.
8349         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8350         parameter.
8351         * inet/gethstbyad.c (gethostbyname): Likewise.
8352         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8353         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8354         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8355         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8356         Likewise.
8357         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8358         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8359         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8360         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8361         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8362         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8363         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8364         and second parameter.
8366         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8367         == NULL.
8369 2000-04-29  Andreas Jaeger  <aj@suse.de>
8371         * conform/data/arpa/inet.h-data: New file.
8373 2000-04-28  Geoff Clare <gwc@unisoft.com>
8375         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8376         path passed to ftw() or nftw() is an empty string.
8377         Closes PR libc/1710.
8379 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8381         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8382         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8383         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8384         * localedata/tst-mbswcs4.c: New file.
8385         * localedata/tst-mbswcs5.c: New file.
8387         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8388         == NULL.  Little optimization.
8390         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8391         DT_PREINIT_ARRAYSZ).
8392         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8394         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8395         overflows in conversion from ASCII.
8397 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8399         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8400         * Makerules (full_config_sysdirs): Likewise.
8401         * MakeTAGS (full_config_sysdirs): Likewise.
8403 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8405         * .cvsignore: Remove linuxthreads.
8406         * po/.cvsignore: Remove *.pot.
8407         * posix/glob/.cvsignore: Removed.
8408         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8410 2000-04-25  Andreas Jaeger  <aj@suse.de>
8412         * conform/Makefile (distribute): Also distribute contents of
8413         subdirectories.
8415         * Makerules (no_deps): Remove abi-versions.h.
8417         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8419 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8421         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8422         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8423         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8424         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8425         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8426         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8427         objects.
8429 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8431         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8433 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8435         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8436         * intl/l10nflist.c: Likewise.
8438 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8440         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8441         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8442         * intl/textdomain.c [!_LIBC]: Likewise.
8443         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8444         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8445         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8446         syntax error.
8448 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8450         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8451         character set conversion also in the case the translation was found
8452         after a hash collision or through binary search.  Store the maximum
8453         index together with the converted message.  Use iconv() when available.
8454         In case of out of memory during conversion, return the unconverted
8455         translated string, not NULL.
8457 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8459         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8460         to avoid name clashes with the ia32 linker.
8462 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8464         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8465         handling.
8467 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8469         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8470         strtoumax, strfry, and memfrob.
8471         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8472         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8474         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8475         if this function is available.
8477         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8478         all values.
8480 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8482         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8484 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8486         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8487         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8488         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8489         * localedata/tst-mbswcs3.c: New file.
8491 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8493         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8494         characters.  Don't handle incomplete characters as errors.
8495         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8496         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8497         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8498         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8499         * localedata/tst-mbswcs2.c: New file.
8501         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8502         stored character in state in UNPACK_BYTES macro.
8503         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8504         test for available characters, handle result of BODY code correctly.
8505         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8506         (distribute): Add tst-mbswcs.sh.
8507         Add rule to run tst-mbswcs.sh.
8508         * localedata/tst-mbswcs.sh: New file.
8509         * localedata/tst-mbswcs1.c: New file.
8511 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8513         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8514         allocation fixups centrally, fix __builtin_expect call, return NULL
8515         on failure, not NIS_NOMEMORY.
8517 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8519         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8521         * intl/loadinfo.h (internal_function): Define if not already defined.
8523 2000-04-27  Andreas Jaeger  <aj@suse.de>
8525         * intl/libintl.h: Fix typo, reported by Bruno Haible
8526         <haible@clisp.cons.org>.
8528 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8530         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8531         setting the state to GMON_PROF_BUSY.
8533 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8535         * elf/dl-profile.c (_dl_start_profile): define all variables which
8536         do not have to be global as local variables.
8538         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8539         patch.  Keep needed tests for failed memory allocation.
8541         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8542         __builtin_expect saying that we don't normally expect to profile.
8544         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8545         __builtin_expect where desirable.
8547 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8549         * manual/Makefile (chapters): Add syslog.
8550         * manual/syslog.texi: New file.
8551         * manual/math.texi: Fix references.
8552         * manual/terminal.texi: Likewise.
8553         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8555 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8557         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8558         stdlib.h was not included or __USE_XOPEN not defined.
8560 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8562         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8563         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8565 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8567         * manual/examples/subopt.c (mount_opts): Add missing terminating
8568         entry.
8569         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8571         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8572         * libio/ftello.c: Likewise.
8573         * libio/ftello64.c: Likewise.
8574         * libio/ioftell.c: Likewise.
8575         * sysdeps/generic/memrchr.c: Likewise.
8576         * sysdeps/posix/libc_fatal.c: Likewise.
8577         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8578         * misc/fstab.c: Include <string.h> for strcmp prototype.
8579         * sysdeps/generic/ldsodefs.h: Likewise.
8580         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8581         Patch by Kurt Roeckx <Q@ping.be>.
8583         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8584         Remove db-open.  Change all uses.
8585         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8587 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8589         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8590         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8591         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8592         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8593         with .set noat/at to shut up warnings.
8594         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8595         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8596         compilation if __NR_pciconfig_iobase is not defined.
8597         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8598         Add alias.
8600 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8602         * manual/sysinfo.texi: Fix typo.
8603         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8604         Replace "high precision time" with "high accuracy clock".
8605         Fix language.
8606         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8608         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8609         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8610         instead of malloc.
8611         * nis/nis_subr.c: Use __builtin_expect.
8612         * nis/ypclnt.c: Likewise.
8613         * nis/nis_getservlist.c: Likewise.
8614         * nis/nis_creategroup.c: Likewise.
8616         * nis/nis_callback.c (__nis_create_callback): Check result of
8617         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8618         (__nis_destroy_callback): Fix memory leaks.
8620 2000-04-21  Andreas Jaeger  <aj@suse.de>
8622         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8623         * sysdeps/mips/mips64/add_n.S: Likewise.
8624         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8625         * sysdeps/mips/mips64/lshift.S: Likewise.
8626         * sysdeps/mips/mips64/mul_1.S: Likewise.
8627         * sysdeps/mips/mips64/rshift.S: Likewise.
8628         * sysdeps/mips/mips64/setjmp.S: Likewise.
8629         * sysdeps/mips/mips64/sub_n.S: Likewise.
8630         * sysdeps/mips/mips64/submul_1.S: Likewise
8631         * sysdeps/unix/mips/sysdep.S: Likewise.
8633         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8634         and update comment.  The strtab from _dl_relocate_object can be
8635         used.
8637 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8639         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8640         * iconv/iconv_close.c (iconv_close): Likewise.
8641         * iconv/iconv_open.c (iconv_open): Likewise.
8643         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8644         __builtin_expect where useful.
8646         * grp/initgroups.c (initgroups): Test for result of memory
8647         allocation and punt if it fails.
8649         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8650         * grp/fgetgrent.c (fgetfrent): Likewise.
8651         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8653 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8655         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8657 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8659         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8660         don't search for NUL byte to decrement counter.
8661         Reported by Ulrich.Brink@sap.com.
8663         * iconv/gconv_simple.c: Define separate functions to convert from
8664         UCS4/UCS4-LE to the internal encoding.
8665         * iconv/gconv_builtin.h: Use separate functions to convert from
8666         UCS4/UCS4-LE to the internal encoding.
8667         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8668         __gconv_transform_ucs4le_internal.
8670         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8671         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8673         * iconv/skeleton.c: Add some more __builtin_expect.
8674         * iconv/loop.c: Likewise.
8676 2000-03-08  H.J. Lu  <hjl@gnu.org>
8678         * posix/regex.c (regex_compile): Correctly handle "\{" when
8679         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8681 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8683         * manual/stdio.texi: Give advise about handling error when using
8684         stream functions.
8685         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8687 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8689         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8690         field to nelems * sizeof (uint32_t).
8691         * locale/programs/ld-address.c (address_output): Align word fields
8692         properly.
8693         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8694         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8695         field.
8696         Avoid giving arbitrary garbage in the crncystr field.
8697         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8698         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8699         fields.
8700         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8701         Don't restart idx pointers to idx end at the decimal_point_wc field.
8702         * locale/programs/ld-time.c (time_output): week_1stday should be
8703         word, not byte.  Align it properly.
8705 2000-04-19  H.J. Lu  <hjl@gnu.org>
8707         * csu/gmon-start.c (_start): Declared as "extern void".
8708         (etext): Likewise.
8710 2000-04-18  Andreas Jaeger  <aj@suse.de>
8712         * manual/install.texi (Running make install): Don't mention utmpd
8713         anymore.
8715 2000-04-18  Andreas Jaeger  <aj@suse.de>
8717         * linuxthreads/Versions: Use ld instead of ld.so.
8719         * elf/Makefile (ld-map): Use ld.map.
8721         * Versions.def: Use ld instead of ld.so.
8722         * elf/Versions: Likewise.
8723         * sysdeps/mach/hurd/Versions: Likewise.
8725 2000-04-20  Andreas Jaeger  <aj@suse.de>
8727         * elf/rtld.c (print_statistics): Move ifndef further up.
8728         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8729         (dl_main): Likewise.
8731 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8733         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8734         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8736         * po/cs.po: Update from translation team.
8738         * sysdeps/generic/updwtmp.c: Remove daemon support.
8740         * login/Makefile (routines): Remove utmp_daemon.
8742         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8743         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8744         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8745         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8747         * elf/rtld.c: Display statitics option also if hp timing is not
8748         available.
8750         * login/programs/connection.c: Removed.
8751         * login/programs/database.c Removed.
8752         * login/programs/error.c: Removed.
8753         * login/programs/request.c: Removed.
8754         * login/programs/xtmp.c: Removed.
8755         * login/programs/xtmp.h: Removed.
8756         * login/Makefile: Remove rules for utmpd.
8757         * login/README.utmpd: Removed.
8758         * login/utmp_daemon.c: Removed.
8759         * login/getutent_r.c: Remove references to daemon functions.
8760         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8761         declaration.
8763 2000-04-18  Andreas Jaeger  <aj@suse.de>
8765         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8766         2.2 for libnsl, libresolv, librt, libnss_*.
8768         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8770         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8772 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8774         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8775         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8776         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8777         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8778         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8779         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8780         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8781         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8782         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8783         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8784         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8785         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8786         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8787         it here.
8788         * sysdeps/unix/sysv/aix/msync.c: New file.
8789         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8790         * sysdeps/unix/sysv/aix/net/if.h: New file.
8791         * sysdeps/unix/sysv/aix/pipe.c: New file.
8792         * sysdeps/unix/sysv/aix/poll.c: New file.
8793         * sysdeps/unix/sysv/aix/rename.c: New file.
8794         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8795         * sysdeps/unix/sysv/aix/select.c: New file.
8796         * sysdeps/unix/sysv/aix/semctl.c: New file.
8797         * sysdeps/unix/sysv/aix/semget.c: New file.
8798         * sysdeps/unix/sysv/aix/semop.c: New file.
8799         * sysdeps/unix/sysv/aix/sendto.c: New file.
8800         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8801         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8802         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8803         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8804         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8805         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8806         * sysdeps/unix/sysv/aix/setsid.c: New file.
8807         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8808         * sysdeps/unix/sysv/aix/shmat.c: New file.
8809         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8810         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8811         * sysdeps/unix/sysv/aix/shmget.c: New file.
8812         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8813         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8814         * sysdeps/unix/sysv/aix/socket.c: New file.
8815         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8816         * sysdeps/unix/sysv/aix/speed.c: New file.
8817         * sysdeps/unix/sysv/aix/symlink.c: New file.
8818         * sysdeps/unix/sysv/aix/sync.c: New file.
8819         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8820         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8821         * sysdeps/unix/sysv/aix/times.c: New file.
8822         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8823         * sysdeps/unix/sysv/aix/umask.c: New file.
8824         * sysdeps/unix/sysv/aix/unlink.c: New file.
8825         * sysdeps/unix/sysv/aix/ustat.c: New file.
8826         * sysdeps/unix/sysv/aix/utimes.c: New file.
8828 2000-04-18  Andreas Jaeger  <aj@suse.de>
8830         * manual/startup.texi (Environment Access): Fix putenv prototype
8831         according to recent changes.
8832         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8833         PR libc/1692.
8835         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8836         needed.
8838 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8840         * posix/Makefile (tests): Add tst-getaddrinfo.
8841         * posix/tst-getaddrinfo.c: New file.
8843 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8845         * manual/sysinfo.texi: Document that umount2 is not widely available.
8847         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8848         signal timing is not really implemented.
8850 2000-04-17  Andreas Jaeger  <aj@suse.de>
8852         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8854 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8856         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8857         and inst_libdir.
8859 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8861         * manual/intro.texi: Change reference from System Information to
8862         System Management.
8863         * manual/users.texi: Likewise.
8864         * manual/conf.texi: Likewise.
8865         * manual/sysinfo.texi: Document mount, umount, and umount2.
8866         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8868 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8870         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8871         Create wnumstr as well as numstr to support wide character output
8872         correctly.
8874 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8876         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8877         modification and move it...
8878         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8879         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8880         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8881         switch to $(LD) on sparc-linux.
8883 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8885         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8886         and setresuid from sysdep_routines.
8888 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8890         * manual/Makefile (chapters): Add resource.
8892         * manual/time.texi: Move section on resources to...
8893         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8894         and vtimes.
8895         * manual/setjmp.texi: Adjust back reference.
8896         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8898         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8899         definition.
8900         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8901         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8902         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8903         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8904         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8905         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8906         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8907         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8908         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8909         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8910         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8911         * sysdeps/unix/sysv/aix/Implies: New file.
8912         * sysdeps/unix/sysv/aix/Versions: New file.
8913         * sysdeps/unix/sysv/aix/bind.c: New file.
8914         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8915         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8916         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8917         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8918         * sysdeps/unix/sysv/aix/chdir.c: New file.
8919         * sysdeps/unix/sysv/aix/chmod.c: New file.
8920         * sysdeps/unix/sysv/aix/chroot.c: New file.
8921         * sysdeps/unix/sysv/aix/creat.c: New file.
8922         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8923         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8924         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8925         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8926         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8927         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8928         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8929         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8930         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8931         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8932         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8933         * sysdeps/unix/sysv/aix/link.c: New file.
8934         * sysdeps/unix/sysv/aix/madvise.c: New file.
8935         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8936         * sysdeps/unix/sysv/aix/mknod.c: New file.
8937         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8938         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8939         * sysdeps/unix/sysv/aix/msgget.c: New file.
8940         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8942 2000-04-17  Andreas Jaeger  <aj@suse.de>
8944         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8945         as suggested by Ulrich Drepper.
8946         (__dl_runtime_resolve): Remove unused variable, initialize sym
8947         directly.
8948         (RTLD_START): Document OFFSET_GP_GOT.
8949         (OFFSET_GP_GOT): New magic value.
8950         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8951         (elf_machine_got_rel): Only declare strtab if needed.
8952         (elf_machine_relplt): Removed, it's not needed.
8953         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8955         * sysdeps/mips/add_n.S: Add newline at EOF.
8956         * sysdeps/mips/rshift.S: Likewise.
8957         * sysdeps/mips/mul_1.S: Likewise.
8958         * sysdeps/mips/lshift.S: Likewise.
8959         * sysdeps/mips/addmul_1.S: Likewise.
8961 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8963         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8965         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8966         * elf/dl-lookup.c: Likewise.
8967         * elf/dl-init.c (_dl_init): Likewise.
8968         * elf/dl-fini.c (_dl_fini): Likewise.
8969         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8970         * elf/dl-close.c (_dl_close): Likewise.
8971         * elf/rtld.c (_dl_start_final): Likewise.
8973         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8975 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8977         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8978         only fall back on using Linux.
8980         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8981         Before testing versions check that we actually loaded the object
8982         and whether we are in trace mode.  If not loaded during tracing don't
8983         test versions in this object.
8984         (_dl_check_all_versions): Take new parameter and pass to
8985         _dl_check_map_versions.
8986         * sysdeps/generic/ldsodefs.h: Update prototypes for
8987         _dl_check_all_versions and _dl_check_map_versions.
8988         * elf/rtld.c (struct version_check_args): Add dotrace.
8989         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8990         (dl_main): Pass info about trace mode to version_check_doit.
8991         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8992         _dl_check_all_versions.
8994         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8995         and getutmpx.
8996         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8998         * manual/argp.texi: Document index parameter of argp_parse.
8999         Fix typo.
9000         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9002 2000-04-14  Andreas Jaeger  <aj@suse.de>
9004         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9005         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9007         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9009 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9011         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9012         compat_symbol call for old adjtime.
9014         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9015         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9017         * posix/Makefile (headers): Add spawn.h.
9018         (distribute): Add spawn_int.h.
9019         (routines): Add spawn_faction_init, spawn_faction_destroy,
9020         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9021         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9022         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9023         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9024         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9025         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9026         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9027         posix_spawnattr_init, posix_spawnattr_destroy,
9028         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9029         posix_spawnattr_getflags, posix_spawnattr_setflags,
9030         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9031         and posix_spawnp.
9032         * posix/spawn.c: New file.
9033         * posix/spawn.h: New file.
9034         * posix/spawn_faction_addclose.c: New file.
9035         * posix/spawn_faction_adddup2.c: New file.
9036         * posix/spawn_faction_addopen.c: New file.
9037         * posix/spawn_faction_destroy.c: New file.
9038         * posix/spawn_faction_init.c: New file.
9039         * posix/spawn_int.h: New file.
9040         * posix/spawnattr_destroy.c: New file.
9041         * posix/spawnattr_getdefault.c: New file.
9042         * posix/spawnattr_getflags.c: New file.
9043         * posix/spawnattr_getpgroup.c: New file.
9044         * posix/spawnattr_getschedparam.c: New file.
9045         * posix/spawnattr_getschedpolicy.c: New file.
9046         * posix/spawnattr_getsigmask.c: New file.
9047         * posix/spawnattr_init.c: New file.
9048         * posix/spawnattr_setdefault.c: New file.
9049         * posix/spawnattr_setflags.c: New file.
9050         * posix/spawnattr_setpgroup.c: New file.
9051         * posix/spawnattr_setschedparam.c: New file.
9052         * posix/spawnattr_setschedpolicy.c: New file.
9053         * posix/spawnattr_setsigmask.c: New file.
9054         * posix/spawni.c: New file.
9055         * posix/spawnp.c: New file.
9057         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9058         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9060 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9062         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9063         * malloc/malloc.c: Implement posix_memalign for glibc.
9064         * include/stdlib.h: Add prototype for __posix_memalign.
9065         * stdlib/stdlib.h: Add prototype for posix_memalign.
9067 2000-04-14  Andreas Jaeger  <aj@suse.de>
9069         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9070         symidx correctly.
9071         (elf_machine_got_rel): Cast sym correctly.
9073         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9074         * sysdeps/mips/addmul_1.S: Likewise.
9075         * sysdeps/mips/lshift.S: Likewise.
9076         * sysdeps/mips/mul_1.S: Likewise.
9077         * sysdeps/mips/rshift.S: Likewise.
9078         * sysdeps/mips/sub_n.S: Likewise.
9079         * sysdeps/mips/submul_1.S: Likewise.
9081         * stdlib/stdlib.h: Fix typo in comment.
9083         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9084         2.2 for libdl, ld and libm.
9086         * sysdeps/generic/madvise.c: Fix typos.
9088         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9090         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9092         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9093         warnings.
9095 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9097         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9098         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9099         Make old name weak alias.
9100         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9101         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9102         Make old name weak alias.
9103         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9105         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9106         posix_fallocate, and posix_fallocate64.
9107         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9108         posix_fallocate, and posix_fallocate64.
9109         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9110         posix_fallocate, and posix_fallocate64.
9111         * sysdeps/generic/fadvise.c: New file.
9112         * sysdeps/generic/fadvise64.c: New file.
9113         * sysdeps/generic/fallocate.c: New file.
9114         * sysdeps/generic/fallocate64.c: New file.
9115         * sysdeps/posix/fallocate.c: New file.
9116         * sysdeps/posix/fallocate64.c: New file.
9117         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9118         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9119         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9120         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9121         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9122         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9123         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9124         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9125         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9127         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9128         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9130 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9132         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9133         * misc/sys/mman.h (posix_madvise): Add prototype.
9134         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9135         old name and posix_madvise weak aliases.
9136         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9137         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9138         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9139         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9140         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9141         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9142         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9144 2000-04-13  Andreas Jaeger  <aj@suse.de>
9146         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9147         versioning.
9148         (elf_machine_got_rel): Only add runtime display if needed.
9149         (elf_machine_got_rel): Handle symbol versioning.
9151 2000-04-13  Andreas Jaeger  <aj@suse.de>
9153         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9155         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9156         default.
9158         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9159         with some applications.
9160         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9162         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9163         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9164         * sysdeps/mips/setjmp.S: Likewise.
9166         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9168 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9170         * posix/globtest.sh: Work around inconsistency with expanding ~/
9171         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9173 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9175         * posix/getconf.c: Add support for many more POSIX options.
9176         * sysdeps/posix/sysconf.c: Likewise.
9177         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9178         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9179         _POSIX_SHELL.
9180         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9181         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9182         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9183         CLOCK_THREAD_CPUTIME_ID.
9184         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9185         CLOCK_PROCESS_CPUTIME_ID.
9186         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9187         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9188         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9189         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9191         * malloc/Makefile (tests): Add tst-calloc.
9192         * malloc/tst-calloc.c: New file.
9194         * sysdeps/arm/libm-test-ulps: New file.
9196         * malloc/malloc.c: Undo all of today's changes.
9198         * locale/programs/locale.c (show_info): Don't try to look into
9199         data for LC_ALL (there is none).
9201         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9202         avoid writing over boundary.
9203         Patch by Greg McGary <gkm@eng.ascend.com>.
9205         * sysdeps/arm/memprof.h: New file.
9207 2000-04-12  Andreas Jaeger  <aj@suse.de>
9209         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9211         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9212         for memmem declaration.
9214 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9216         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9217         to -1.
9218         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9220         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9221         mode is invalid.
9222         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9223         Patch by Bart Veer <bartv@redhat.com>.
9225         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9226         function interface.
9228 2000-04-11  Andreas Jaeger  <aj@suse.de>
9230         * sysdeps/mips/dl-machine.h: Update some comments.
9231         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9233 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9235         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9236         _POSIX_SHARED_MEMORY_OBJECTS.
9238         * rt/Makefile (tests): Add tst-shm.
9239         Add rules to generate tst-shm.
9240         * rt/tst-shm.c: New file.
9242         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9243         for descriptor.
9245         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9246         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9247         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9248         * sysdeps/generic/shm_open.c: New file.
9249         * sysdeps/generic/shm_unlink.c: New file.
9250         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9251         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9252         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9253          __endmntent, __getmntent_r, __setmntent, and __statfs.
9255         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9256         fragmentation by allocating new memory at the end instead of
9257         reallocating.
9259         * posix/globtest.sh: Fix last change.
9261 2000-04-10  Philip Blundell  <philb@gnu.org>
9263         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9264         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9265         IPV6_DROP_MEMBERSHIP.
9266         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9267         Likewise.
9269 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9271         * elf/readlib (process_file): Close streams in case of an error.
9273 2000-04-09  Andreas Jaeger  <aj@suse.de>
9275         * elf/readlib.c (process_file): Check if file is big enough to
9276         contain aout and ELF headers.
9277         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9279 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9281         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9283 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9285         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9286         stream unbuffered.
9287         * rt/Makefile (tests): Add tst-clock.
9288         Add rules to build tst-clock.
9289         * rt/tst-clock.c: New file.
9290         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9291         about initialization of nsec.
9292         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9293         about initialization of freq.  Set retval to zero if successful.
9294         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9296 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9298         * Versions.def (librt): Add GLIBC_2.2.
9299         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9300         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9301         timer_getoverr, timer_gettime, and timer_settime.
9302         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9303         clock_settime, timer_create, timer_delete, timer_getoverrun,
9304         timer_gettime, and timer_settime.
9305         * sysdeps/generic/clock_getcpuclockid.c: New file.
9306         * sysdeps/generic/get_clockfreq.c: New file.
9307         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9308         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9309         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9310         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9311         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9312         * sysdeps/unix/i386/i686/Implies: New file.
9313         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9314         * time/Makefile (routines): Move clock_getres, clock_gettime,
9315         clock_settime, timer_create, timer_delete, timer_getoverr,
9316         timer_gettime, and timer_settime to rt/Makefile.
9317         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9318         clock_settime, timer_create, timer_delete, timer_getoverrun,
9319         timer_gettime, and timer_settime.
9320         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9322         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9323         and not const as attribute name.
9325 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9327         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9329 2000-04-10  Andreas Schwab  <schwab@suse.de>
9331         * posix/globtest.sh: Skip tests that depend on unreadable
9332         directories if run as root.
9334 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9336         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9337         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9339 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9341         * sysdeps/unix/clock_gettime.c: New file.
9342         * sysdeps/unix/clock_settime.c: New file.
9343         * sysdeps/posix/clock_getres.c: New file.
9345         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9347         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9348         lseek call be passing in a buffer which never allow a successful
9349         first getdents syscall if not at leas the initial entry can be
9350         stored in the user buffer.
9352         * localedata/Makefile: Add rules to clean up directories created by
9353         new strfmon tests.
9355 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9357         * localedata/tst-fmon.data: Added new tests for strfmon()
9358         using test locales with all combinations of cs_precedes,
9359         sign_posn and sep_by_space.
9360         * localedata/tst-fmon.sh: Updated to support the new tests.
9361         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9362         the localedef source for the new strfmon() test locale.
9363         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9364         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9365         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9366         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9367         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9368         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9369         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9370         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9371         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9372         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9373         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9374         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9375         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9376         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9378         * stdlib/strfmon.c: Correct problems with missing or extra
9379         spaces for unusual combinations of sign_posn and sep_by_space.
9380         Improved left-precision alignment code.
9382 2000-04-07  Andreas Jaeger  <aj@suse.de>
9384         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9386 2000-04-10  Andreas Jaeger  <aj@suse.de>
9388         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9390 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9392         Implement handling of restartable conversion functions according to
9393         ISO C.
9394         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9395         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9396         * iconv/gconv.c: Pass additional parameter to conversion function.
9397         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9398         (internal_ucs4le_loop_single): New function.
9399         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9400         (__gconv_transform_internal_ascii): Likewise.
9401         (__gconv_transform_internal_utf8): Likewise.
9402         (__gconv_transform_utf8_internal): Likewise.
9403         (__gconv_transform_ucs2_internal): Likewise.
9404         (__gconv_transform_internal_ucs2): Likewise.
9405         (__gconv_transform_ucs2reverse_internal): Likewise.
9406         (__gconv_transform_internal_ucs2reverse): Likewise.
9407         (internal_ucs4le_loop_unaligned): Before return
9408         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9409         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9410         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9411         * iconv/loop.c: Fit in definition of function to convert one character
9412         for processing of left-over bytes from the state object.
9413         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9414         inend to match names in loop functions.
9415         (RESET_INPUT_BUFFER): Change apprpriately.
9416         (gconv): If needed, call function to process bytes from the state
9417         object.  Similar at the end: store left over bytes if input is
9418         incomplete.
9419         Take extra argument and add new argument to all calls of the
9420         conversion function.
9421         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9422         information in the state object to not conflict with length count.
9423         * iconvdata/iso-2022-jp.c: Likewise.
9424         * iconvdata/iso-2022-kr.c: Likewise.
9425         * iconvdata/unicode.c: Adjust for change change in parameters of
9426         skeleton function.
9427         * iconvdata/utf-16.c: Likewise.
9428         * libio/iofwide.c: Add new parameter to all calls of conversion
9429         function.
9430         * wcsmbs/btowc.c: Likewise.
9431         * wcsmbs/mbrtowc.c: Likewise.
9432         * wcsmbs/mbsnrtowcs.c: Likewise.
9433         * wcsmbs/mbsrtowcs.c: Likewise.
9434         * wcsmbs/wcrtomb.c: Likewise.
9435         * wcsmbs/wcsnrtombs.c: Likewise.
9436         * wcsmbs/wcsrtombs.c: Likewise.
9437         * wcsmbs/wctob.c: Likewise.
9439         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9440         MAX_NEEDED_INPUT.
9442 2000-04-07  Andreas Jaeger  <aj@suse.de>
9444         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9445         newer kernels.
9447 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9449         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9450         element a union to allow byte access.
9451         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9452         mbstate_t.
9453         * iconvdata/iso-2022-jp.c: Likewise.
9454         * iconvdata/iso-2022-kr.c: Likewise.
9455         * wcsmbs/mbsinit.c: Likewise.
9456         * stdlib/mblen.c: Likewise.
9457         * stdio-common/printf-parse.h: Likewise.
9459 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9461         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9462         kernel does not allow relative seeks on descriptors associated
9463         with directories.  Go back to get the position in the directory
9464         every time we enter the function.  Return -1 and set errno if one
9465         entry could be read from the kernel but does not fit into the
9466         buffer passed in by the user.
9468         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9469         Support ..(2).. ellipsis.
9470         (parse_charmap): Recognize ..(2).. etc and pass step down.
9471         Correctly generate names for UCS4 characters.
9473         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9474         (ctype_finish): We know the wide character value for <SP>,
9475         don't search.
9476         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9477         (charclass_ucs4_ellipsis): Likewise.
9478         (read_translit_ignore_entry): Store ellipsis step.
9479         (ctype_read): Recognize ..(2).. etc and pass step down.
9481         * locale/programs/linereader.c (lr_token): When seeing comment
9482         character ignore only rest of line in sources but stop at escaped
9483         newline.
9484         Recognize ..(2).. and ....(2).....
9486         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9487         and tok_ellipsis4_2.
9489 2000-04-06  Andreas Jaeger  <aj@suse.de>
9491         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9492         removed, remove it here also.
9493         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9494         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9495         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9496         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9498 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9500         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9501         include bits/sigcontext.h.
9502         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9504 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9506         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9507         collation symbol definition.  Value in quivalence definition must
9508         be defined, don't check that it is not.
9510         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9511         values as character names.
9513         * locale/programs/ld-ctype.c (get_character): Handle missing
9514         repertoire map correctly.
9516 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9518         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9519         because it is used in generic code.
9520         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9521         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9522         * intl/gettext.c: Include <locale.h>.
9523         * intl/ngettext.c: Likewise.
9525 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9527         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9528         socklen_t type for size.
9529         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9530         init function interface.
9531         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9532         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9533         sys/ucontext.h.
9534         (__jmp_buf): Declare the whole type structure here, don't use
9535         ucontext.
9537 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9539         * iconv/skeleton.c (put16u): Fix typo.
9540         Reported by Bruno Haible <haible@ilog.fr>.
9542         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9543         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9544         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9545         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9546         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9547         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9549         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9550         * Makefile (distribute): Add abi-versions.awk and
9551         firstversions.awk.
9552         Patches by Torsten Duwe <duwe@caldera.de>.
9554 2000-04-05  Andreas Schwab  <schwab@suse.de>
9556         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9558 2000-04-05  Andreas Schwab  <schwab@suse.de>
9560         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9561         entry point, used on Hurd.
9563 2000-04-04  Andreas Jaeger  <aj@suse.de>
9565         * intl/Makefile: Only run the gettext test with shared libraries.
9567 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9569         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9570         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9572 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9574         * Makeconfig: Undo last change.
9575         * configure.in: If --disable-shared was given, don't set VERSIONING,
9576         don't define DO_VERSIONING, and don't give scare warning for no
9577         versioning.
9578         * configure: Regenerated.
9580 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9582         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9584 2000-04-04  Andreas Jaeger  <aj@suse.de>
9586         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9588 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9590         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9591         STV_HIDDEN and STV_INTERNAL during lookup.
9592         (profile_fixup): Likewise.
9593         * elf/dl-reloc.c (RESOLVE): Likewise.
9595         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9596         unaligned so that it compiles for system which need unaligned
9597         access handling.
9599 2000-04-04  Andreas Schwab  <schwab@suse.de>
9601         * elf/cache.c (print_entry): Only look at the type field when
9602         printing the type.
9604 2000-04-04  Andreas Schwab  <schwab@suse.de>
9606         * iconvdata/big5.c (BODY): Fix typo.
9608 2000-04-04  Andreas Schwab  <schwab@suse.de>
9610         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9611         function interface.  Remove unused _dl_start_user entry point.
9613 2000-04-03  Andreas Jaeger  <aj@suse.de>
9615         * include/arpa/inet.h (__inet_aton): Add protoype.
9617 2000-04-01  Andreas Jaeger  <aj@suse.de>
9619         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9621         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9622         * sysdeps/mach/mips/thread_state.h: Likewise.
9624         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9625         * sysdeps/generic/fegetenv.c: Likewise.
9626         * sysdeps/generic/fesetenv.c: Likewise.
9627         * sysdeps/generic/feupdateenv.c: Likewise.
9628         * sysdeps/generic/fraiseexcpt.c: Likewise.
9629         * sysdeps/generic/fsetexcptflg.c: Likewise.
9630         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9631         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9632         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9633         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9635 2000-04-02  H.J. Lu  <hjl@gnu.org>
9637         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9639 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9641         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9642         (add_name_to_object): Add cast in malloc call.
9643         (fillin_rpath): Optimize loop to initialize ->status a bit.
9645         * sysdeps/i386/dl-machine.h: Undo last change.
9646         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9647         Restore %edx register after call here.
9649         * sysdeps/arm/atomicity.h: New file.
9650         Contributed by Jesper Skov <jskov@redhat.com>.
9652 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9654         * Makeconfig (preprocess-versions): Undo last change.
9655         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9657         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9658         here, before we might move the stack.
9659         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9660         (init1): And not here.
9662         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9663         change, to restore argc value in call-clobbered register after
9664         RTLD_START_SPECIAL_INIT, which will contain a call.
9666         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9667         allocating and initializing L->l_initfini.
9669         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9671 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9673         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9674         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9675         (open_path): Change type of fourth parameter.  Make pointer to array
9676         of pointers.  Create variable dirs with original type.
9677         Track whether any directory for the object exists and if not,
9678         change *DIRSP to (void*) -1 to signal there is no such search path.
9679         (_dl_map_object): Change all calls of open_path.
9680         Rewrite decompose_rpath calls.
9682 2000-03-31  Andreas Schwab  <schwab@suse.de>
9684         * string/strfry.c: Declare STATE as array of char instead of int
9685         and do not initialize it (done by initstate_r).  Pass correct
9686         size.
9688 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9690         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9692         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9693         instruction out of the code.
9695 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9697         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9698         element at this position.
9700         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9701         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9702         l_reldeps elements.
9703         * elf/dl-lookup.c (add_dependency): New function.
9704         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9705         dynamically loaded object.
9706         (_dl_lookup_symbol_skip): Likewise.
9707         (_dl_lookup_versioned_symbol): Likewise.
9708         (_dl_lookup_versioned_symbol_skip): Likewise.
9709         * elf/dl-open.c: Don't define _dl_load_lock here...
9710         * elf/rtld.c: ...but here...
9711         * elf/dl-support.c: ...and here.
9712         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9713         through relocation.
9714         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9715         relocations.
9716         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9717         anymore.
9718         * dlfcn/glrefmain.c: Add one more debug message.
9720         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9721         command line.
9722         * Makerules (sysd-versions): Use ( ) instead of { }.
9724         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9725         optimize for the non-debugging case.
9726         * elf/dl-lookup.c: Likewise.
9727         * sysdeps/generic/libc-start.c: Likewise.
9729 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9731         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9732         (init1): Don't initialize __environ here, since init already does it.
9733         (first_init): New function, broken out of _init.
9734         (_hurd_stack_setup): Use it.
9735         [SHARED] (_dl_init_first): New function, renamed from old _init.
9736         (init1) [SHARED]: Don't call posixland_init here.
9737         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9738         [SHARED] (_init): Define as alias for posixland_init.
9739         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9740         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9741         RTLD_START_SPECIAL_INIT before calling initializers.
9742         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9743         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9744         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9745         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9747         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9748         since we define the function with the name `tmpfile'.
9750         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9751         * hurd/Versions: Likewise.
9753 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9755         * elf/dl-runtime.c (fixup): Fix typo in comment.
9757         * resolv/netdb.h (getnameinfo): All length parameters are of type
9758         socklen_t.
9759         * inet/getnameinfo.c: Likewise.
9761 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9763         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9764         (gethostname): Change type of second parameter to socklen_t.
9765         * include/unistd.h (__gethostname): Change type of second
9766         parameter to socklen_t.
9767         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9768         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9769         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9770         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9771         Likewise.
9772         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9773         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9774         Allow definition elsewhere.
9775         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9776         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9777         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9778         * sysdeps/generic/bits/types.h: Define __socklen_t.
9779         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9780         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9781         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9782         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9783         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9784         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9785         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9787         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9788         (inet_lnaof): Likewise.
9789         (inet_netof): Likewise.
9790         (inet_network): Likewise.
9791         (inet_aton): Likewise.
9792         (inet_makeaddr): Change parameter types to in_addr_t.
9793         (inet_neta): Likewise.
9794         (inet_ntop): Change type of last parameter to socklen_t.
9795         (inet_aton): Only make available if __USE_MISC.
9796         (inet_neta): Likewise.
9797         (inet_net_ntop): Likewise.
9798         (inet_net_pton): Likewise.
9799         (inet_nsap_ntoa): Likewise.
9801         * inet/in.h: Define in_port_t type.
9802         Define in_addr_t type.
9803         (struct in_addr): Use in_addr_t in definition.
9804         (IN_CLASSA): Use cast to in_addr_t.
9805         (IN_CLASSB): Likewise.
9806         (IN_CLASSC): Likewise.
9807         (IN_CLASSD): Likewise.
9808         (IN_EXPERIMENTAL): Likewise.
9809         (IN_BADCLASS): Likewise.
9810         (INADDR_ANY): Likewise.
9811         (INADDR_BROADCAST): Likewise.
9812         (INADDR_NONE): Likewise.
9813         (INADDR_LOOPBACK): Likewise.
9814         (INADDR_UNSPEC_GROUP): Likewise.
9815         (INADDR_ALLHOSTS_GROUP): Likewise.
9816         (INADDR_ALLRTRS_GROUP): Likewise.
9817         (INADDR_MAX_LOCAL_GROUP): Likewise.
9818         (struct sockaddr_in): Use in_port_t for sin_port element.
9819         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9820         Use uint8_t instead of u_int8_t.
9822         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9823         Call __inet_aton instead of inet_aton.
9824         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9826         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9827         (innetgr): Likewise.
9828         (struct addrinfo): Use socklen_t for ai_addrlen element.
9830         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9831         IPV6_RECVERR): New defines.
9833         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9834         * inet/getnetbyad.c: Likewise.
9835         * inet/getnetbyad_r.c: Likewise.
9836         * nis/nss_nis/nis-network.c: Likewise.
9837         * nis/nssplus_nis/nisplus-network.c: Likewise.
9838         * nss/nss_files/files-network.c: Likewise.
9839         * resolv/netdb.h: Define uint32_t if not already happened.
9840         Include bits/netdb.h.  Remove definition of struct netent.
9841         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9842         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9843         * sysdeps/generic/bits/netdb.h: New file.
9844         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9846         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9847         (tests): Add glrefmain.
9848         Add rules to build modules and run tests.  Ignore result of glrefmain
9849         for now since it fails.
9850         * dlfcn/glrefmain.c: New file.
9851         * dlfcn/glreflib1.c: New file.
9852         * dlfcn/glreflib2.c: New file.
9854         * test-skeleton.c: Include <string.h> for strsignal prototype.
9856         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9857         to be missing.
9859         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9860         former init-first.h.  Initialize __libc_multiple_libcs.
9862 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9864         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9865         #if expression for use of unaligned function to the one used in
9866         the definition of these functions.
9867         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9868         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9869         (internal_ucs4le_loop_unaligned): New function.
9871         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9872         (tests): Add order.
9873         (module-names): Add dep1, dep2, dep3, and dep4.
9874         Add dependencies for dep* modules and order.
9875         Define rule for order.out which checks the result.
9876         * elf/dep1.c: New file.
9877         * elf/dep2.c: New file.
9878         * elf/dep3.c: New file.
9879         * elf/dep4.c: New file.
9880         * elf/order.c: New file.
9882         * elf/dl-init.c: Fix typo in comment.
9884 2000-03-31  Andreas Jaeger  <aj@suse.de>
9886         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9887         init function interface.
9888         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9890 2000-03-31  Andreas Jaeger  <aj@suse.de>
9892         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9893         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9894         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9895         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9896         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9898         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9899         anymore, update comment.
9901         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9903         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9904         SHLIB_COMPAT - the struct is always needed.
9906 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9908         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9909         * elf/dl-support.c: Define _dl_starting_up.
9911 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9913         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9914         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9916         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9918         * elf/Makefile (dl-routines): Remove preinit.
9919         * elf/Versions: Remove _dl_preinit.
9920         * elf/dl-preinit.c: Removed.  Move content into...
9921         * elf/dl-init.c: ...here.
9922         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9924         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9925         elements.
9927 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9929         * stdlib/strfmon.c: Corrected problems with the code that
9930         sets default values for [np]_sep_by_space and
9931         [np]_sign_posn; also the new positive/negative alignment
9932         code from the previous patch was not quite right for
9933         [np]_sign_posn = 0.
9935         * localedata/tst-fmon.data: Changes corresponding to the
9936         two sets of fixes made to stdlib/strfmon.c.
9938 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9940         * malloc/malloc.c: Declare bit flags UL so that they will not
9941         default to int size when being inverted.
9943 2000-03-29  Andreas Jaeger  <aj@suse.de>
9945         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9946         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9948 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9949             Ralf Baechle <ralf@uni-koblenz.de>
9951         * Makeconfig: Introduce new variable SHARED to mark code used in
9952         the shared library.
9953         * elf/dl-close.c: Use it instead of PIC.
9954         * elf/dl-load.c: Likewise.
9955         * elf/dl-open.c: Likewise.
9956         * hurd/geteuids.c: Likewise.
9957         * include/libc-symbols.h: Likewise.
9958         * include/shlib-compat.h: Likewise.
9959         * libio/freopen.c: Likewise.
9960         * linuxthreads/cancel.c: Likewise.
9961         * linuxthreads/pthread.c: Likewise.
9962         * linuxthreads/wrapsyscall.c: Likewise.
9963         * nss/nsswitch.c: Likewise.
9964         * stdio-common/vfprintf.c: Likewise.
9965         * sysdeps/arm/init-first.c: Likewise.
9966         * sysdeps/i386/init-first.c: Likewise
9967         * sysdeps/generic/init-first.c: Likewise.
9968         * sysdeps/generic/libc-start.c: Likewise.
9969         * sysdeps/mips/init-first.c: Likewise.
9970         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9971         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9972         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9973         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9974         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9976         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9978 2000-03-29  Andreas Jaeger  <aj@suse.de>
9980         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9981         Use D_PTR to access relocated entries in l_info.
9982         (elf_machine_rela): Likewise.
9984         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9985         Likewise.
9986         (elf_machine_rela): Likewise.
9988         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9989         Likewise.
9990         (__elf_machine_fixup_plt): Likewise.
9991         (__process_machine_rela): Likewise.
9993         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9994         (elf_machine_rela): Likewise.
9996         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9997         (elf_machine_rel): Likewise.
9999         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10000         (elf_machine_fixup_plt): Likewise.
10001         (elf_machine_rela): Likewise.
10003 2000-03-29  Andreas Jaeger  <aj@suse.de>
10005         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10006         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10007         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10008         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10009         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10010         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10011         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10012         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10013         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10014         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10015         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10016         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10017         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10018         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10019         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10021         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10022         macros, remove K&R prototypes.
10024 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10026         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10027         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10028         (PR libc/1677).
10030 2000-03-30  Andreas Jaeger  <aj@suse.de>
10032         * misc/sys/cdefs.h: Remove K&R support.
10034 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10036         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10037         more cases.
10038         * iconv/loop.c: Likewise.
10040 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10042         * iconv/loop.c (put16): Remove __const. Fix access index.
10043         (put32): Remove __const. Use uint32_t instead of uint16_t.
10044         * iconv/skeleton.c: Likewise.
10046 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10048         * mach/Versions (libc: GLIBC_2.0)
10049         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10050         __vm_allocate on this.
10051         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10052         mutex- and spinlock-related symbols on this.
10053         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10054         New version set.  Lock-related symbols go here instead in this case.
10055         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10056         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10057         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10058         * hurd/Versions
10059         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10060         Put them here instead.
10061         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10062         New version set.  Those cthreads symbols go here instead in this case.
10063         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10065 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10067         * elf/dl-init.c (_dl_init): We don't need to call constructors
10068         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10070         Implement dynamic determination of constructor/destructor order in
10071         the dynamic linker.
10072         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10073         (GLIBC_2.2): Add _dl_init.
10074         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10075         r_duplist is not anymore allocated separately.  l_initfini is and
10076         therefore free it if necessary.
10077         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10078         malloc block.  Otherwise allocate l_initfini list only.
10079         Put dependencies for the object in l_initfini list.
10080         Sort dependencies for the object to be loaded topologically.
10081         * elf/dl-fini.c: Before running the destructors sort the topologically.
10082         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10083         call constructors instead of iterating over the pointers.  Get list of
10084         objects for which to run constructors from l_initfini element. Accept
10085         argc, argv, and env as parameters and pass them to the constructors.
10086         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10087         with size of dynamic section.
10088         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10089         _dl_init_next and calling constructors ourself.
10090         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10091         Take argc, argv, and env as parameters and pass them to the
10092         constructors.  Rewrite to call all constructors and not iterate over
10093         the pointers.
10094         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10095         precompute l_initcount and l_preinitcount.
10096         * elf/link.h (struct link_map): Add l_ldnum member.
10097         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10098         l_initcount, and l_preinitcount.  Add l_initfini.
10099         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10100         one for _dl_init.
10101         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10102         function interface.
10103         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10104         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10105         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10106         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10107         conventions now match.
10109         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10110         effect for shared objects.  Don't emit message and call only for
10111         static library.
10113 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10115         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10116         CSA_Z243.4-1985-1..UCS2.
10117         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10118         ISO-8859-10..UCS2.
10120 2000-03-29  Andreas Jaeger  <aj@suse.de>
10122         * include/unistd.h: Remove duplicate entry for __rmdir.
10123         Remove declaration of __mkdir since __mkdir is declared in
10124         sys/stat.h.
10126         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10127         by Michael Deutschmann <michael@talamasca.ocis.net>.
10129         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10130         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10131         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10132         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10133         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10135 2000-03-28  Andreas Jaeger  <aj@suse.de>
10137         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10138         declaration, the prototype is defined via bits/mathcalls.h.
10139         (__sincosf): Likewise.
10140         (__sincosl): Likewise.
10141         (ldexp): Likewise.
10142         (ldexpf): Likewise.
10143         (ldexpl): Likewise.
10144         (__finite): Likewise.
10145         (__inline_mathcodeNP): New macro without prototype
10146         declarations.
10147         (__inline_mathcodeNP2): Likewise.
10148         (__inline_mathcodeNP3): Likewise.
10149         (__inline_mathcodeNP_): Likewise.
10150         (__inline_mathcodeNP2_): Likewise.
10151         (__inline_mathcodeNP3_): Likewise.
10152         (__inline_mathopNP): Likewise.
10153         (__inline_mathop_declNP): Likewise.
10154         (__inline_mathop_declNP_): Likewise.
10155         (__inline_mathcode_): Use __inline_mathcodeNP_.
10156         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10157         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10158         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10159         (__expm1l): Don't define prototype, the prototype is defined via
10160         bits/mathcalls.h.
10161         (exp): Likewise.
10162         (__expl): Likewise.
10163         (tan): Likewise.
10164         (atan2): Likewise.
10165         (__atan2l): Likewise.
10166         (fmod): Likewise.
10167         (pow): Likewise.
10168         (fabsf): Likewise.
10169         (fabsl): Likewise.
10170         (__fabsl): Likewise.
10171         (asin): Likewise.
10172         (acos): Likewise.
10173         (sinh): Likewise.
10174         (cosh): Likewise.
10175         (tanh): Likewise.
10176         (floor): Likewise.
10177         (ceil): Likewise.
10178         (expm1): Likewise.
10179         (log1p): Likewise.
10180         (asinh): Likewise.
10181         (acosh): Likewise.
10182         (atanh): Likewise.
10183         (hypot): Likewise.
10184         (logb): Likewise.
10185         (fma): Likewise.
10186         (drem): Likewise.
10187         (sqrt): Likewise.
10188         (__sqrtl): Likewise.
10189         (sin): Likewise.
10190         (cos): Likewise.
10191         (atan): Likewise.
10192         (log): Likewise.
10193         (log10): Likewise.
10194         (asinh): Likewise.
10195         (log2): Likewise.
10196         (rint): Likewise.
10198 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10200         * Makerules: If make variable md5 is defined to yes after
10201         generating dependencies generate MD5 sum for the object.
10203         * iconv/gconv_builtin.h: Fix length in transformation definition
10204         for UNICODEBIG.
10206         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10208         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10209         allow as well reading from/writing to unaligned addresses on machines
10210         which don't support this in hardware.  Use FCTNAME macro to define
10211         function name.  Include the file a second time for platforms which
10212         need special unaligned handling.
10213         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10214         to access potentially unaligned addresses.  These macros are intended
10215         to be used only outside the loops.
10216         (unaligned): New definition.  In case the machine can handle unaligned
10217         access define as zero.  Otherwise as a variable which is initialized
10218         as nonzero in case the buffer passed in at runtime is unaligned with
10219         respect to the character set encoding involved.
10220         Call aligned or unaligned looop functions according to unaligned
10221         variable.
10222         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10223         of direct casting pointer to potentially handle unaligned memory
10224         accesses.
10225         * iconvdata/8bit-generic.c: Likewise.
10226         * iconvdata/ansi_x3.110.c: Likewise.
10227         * iconvdata/big5.c: Likewise.
10228         * iconvdata/euc-cn.c: Likewise.
10229         * iconvdata/euc-jp.c: Likewise.
10230         * iconvdata/euc-kr.c: Likewise.
10231         * iconvdata/euc-tw.c: Likewise.
10232         * iconvdata/gbk.c: Likewise.
10233         * iconvdata/iso-2022-cn.c: Likewise.
10234         * iconvdata/iso-2022-jp.c: Likewise.
10235         * iconvdata/iso-2022-kr.c: Likewise.
10236         * iconvdata/iso646.c: Likewise.
10237         * iconvdata/iso_6937-2.c: Likewise.
10238         * iconvdata/iso_6937.c: Likewise.
10239         * iconvdata/johab.c: Likewise.
10240         * iconvdata/sjis.c: Likewise.
10241         * iconvdata/t.61.c: Likewise.
10242         * iconvdata/uhc.c: Likewise.
10243         * iconvdata/unicode.c: Likewise.
10244         * iconvdata/utf-16.c: Likewise.
10246         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10247         prototypes.
10249         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10250         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10251         public.
10252         * malloc/mcheck.h (mcheck_check_all): Declare.
10254         * stdio-common/Makefile (tests): Add tst-obprintf.
10256 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10258         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10259         Declare pthread_sigmask.
10261         * csu/version.c: Add 2000 to copyright years.
10262         Remove Emacs local variables section.
10264 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10266         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10267         __gconv_transform_internal_ucs2little): Remove declarations.
10268         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10269         __gconv_transform_internal_ucs2): Never need to bswap_16.
10270         (__gconv_transform_ucs2reverse_internal,
10271         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10273 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10275         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10276         obsoleting version not being defined at all, in which case the
10277         result is always true.
10279         * Makeconfig (preprocess-versions): New canned sequence for running
10280         cpp on shlib-versions and the like.
10281         (soversions.i): Use it.
10282         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10283         Versions.def and Versions files.
10285 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10287         * stdio-common/tst-obprintf.c (main): Add another check to see
10288         obstack_printf handling all possible beginnings of the block
10289         inside an obstack chunk.
10291         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10292         install mcheck handler.
10294         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10295         handling problem.
10297 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10299         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10301         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10302         on [HAVE_ELF && DO_VERSIONING].
10304 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10306         * stdio-common/tst-obprintf.c: New file.
10308 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10310         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10311         _IO_OVERFLOW directly instead through __overflow.
10313         * locale/programs/localedef.c (construct_output_path): If path
10314         contains a / compute the end of the directory name correctly.
10316         * include/features.h: Undef and document __USE_XOPEN2K.
10318         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10319         whenever a function is called.  Initiated by calling mcheck_pedantic
10320         instead of mcheck.
10321         * malloc/mcheck.h: Declare mcheck_pedantic.
10322         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10323         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10324         for now.
10326 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10328         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10329         * dlfcn/dlopenold.c: Likewise.
10330         * nss/getXXbyYY_r.c: Likewise.
10331         * nss/getXXent_r.c: Likewise.
10332         * hurd/hurdinit.c: Likewise.
10333         * hurd/compat-20.c: Likewise.
10334         * libio/oldiofopen.c: Likewise.
10335         * libio/oldiofclose.c: Likewise.
10336         * libio/oldiofdopen.c: Likewise.
10337         * libio/oldfileops.c: Likewise.
10338         * libio/oldstdfiles.c: Likewise.
10339         * libio/oldiofsetpos.c: Likewise.
10340         * libio/oldiofgetpos.c: Likewise.
10341         * libio/oldiofgetpos64.c: Likewise.
10342         * libio/oldiofsetpos64.c: Likewise.
10343         * libio/oldiopopen.c: Likewise.
10344         * libio/oldpclose.c: Likewise.
10345         * libio/oldtmpfile.c: Likewise.
10346         * libio/freopen.c (freopen): Likewise.
10347         * libio/iofclose.c (_IO_new_fclose): Likewise.
10349         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10350         (reboot): Declare it.
10352         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10354         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10356         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10358         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10359         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10360         We need this for the sbrk decl, which can be included without Unix98.
10362 2000-03-20  Richard Henderson  <rth@cygnus.com>
10364         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10365         argument to yperr2nss is an int, not size_t.
10366         * posix/regex.c (print_partial_compiled_pattern): Cast all
10367         ptrdiff_t to long for printing.
10368         (print_compiled_pattern): Use Z for printing size_t.
10369         * posix/testfnm.c (tests): Avoid trigraphs.
10370         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10371         Use a C comment, not an assembly comment.
10373         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10374         of __ASSUME_32BITUIDS.
10376 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10378         * libio/iofopncook.c: Remove K&R prototypes.
10380 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10382         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10383         an initial value of 1024 instead of RLIM_INFINITY.
10385         * Versions.def (libmachuser, libhurduser): Remove these sections,
10386         since these libraries do not presently use symbol versions.
10388         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10389         is RLIM_INFINITY, return -1 instead.
10391 2000-03-24  Andreas Jaeger  <aj@suse.de>
10393         * Makefile (postclean): Added soversions.i.
10395 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10397         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10398         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10399         and _FPU_IEEE.  Change _FPU_RESERVED.
10401 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10403         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10405 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10407         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10408         (gaih_inet): Remove unused duplicate variable.
10410         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10411         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10412         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10413         only flavors supported by this function anyway.
10415 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10417         * stdlib/strfmon.c: Corrected problems with missing signs and
10418         missing or extra spaces; allow for sign strings longer than
10419         one character; add padding to ensure positive and negative
10420         formats are aligned when a left precision is used.
10422 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10424         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10425         Patch by John Mizel <John.Mizel@msdw.com>.
10427 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10429         * manual/install.texi: Remove references to crypt add-on.
10431 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10433         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10434         section while taking the _hurd_rlimit_lock.
10435         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10437 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10439         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10440         using $(LN_S).
10442         * sysdeps/mach/hurd/if_index.c: New file.
10444         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10445         * sysdeps/gnu/net/if.h: here.
10446         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10447         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10448         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10449         functions and `struct if_nameindex' type.
10450         * socket/Makefile (headers): Add net/if.h here.
10451         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10452         * sysdeps/mach/hurd/Dist: Remove it here.
10453         * sysdeps/unix/sysv/linux/Dist: And here.
10454         * sysdeps/generic/if_index.c: Include <net/if.h>.
10456 2000-03-24  Andreas Jaeger  <aj@suse.de>
10458         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10459         access relocated entries in l_info.
10460         (elf_machine_got_rel): Likewise.
10461         (elf_machine_runtime_setup): Likewise.
10462         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10463         (elf_machine_runtime_setup): Likewise.
10464         (__dl_runtime_resolve): Likewise.
10466 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10468         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10469         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10470         according to RFC 2553.
10471         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10472         * inet/getnameinfo.c: Likewise.
10473         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10475 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10477         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10478         Remove no-op pointer increment.
10480 2000-03-23  Andreas Jaeger  <aj@suse.de>
10482         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10483         follow change for libio.h from 2000-03-10.
10485 2000-03-23  Andreas Jaeger  <aj@suse.de>
10487         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10488         change.
10489         * elf/dl-debug.c: Likewise.
10490         * elf/dl-deps.c: Likewise.
10491         * elf/dl-error.c: Likewise.
10492         * elf/dl-fini.c: Likewise.
10493         * elf/dl-init.c: Likewise.
10494         * elf/dl-load.c: Likewise.
10495         * elf/dl-lookup.c: Likewise.
10496         * elf/dl-minimal.c: Likewise.
10497         * elf/dl-object.c: Likewise.
10498         * elf/dl-open.c: Likewise.
10499         * elf/dl-preinit.c: Likewise.
10500         * elf/dl-profile.c: Likewise.
10501         * elf/dl-profstub.c: Likewise.
10502         * elf/dl-reloc.c: Likewise.
10503         * elf/dl-runtime.c: Likewise.
10504         * elf/dl-support.c: Likewise.
10505         * elf/dl-symbol.c: Likewise.
10506         * elf/dl-version.c: Likewise.
10507         * elf/rtld.c: Likewise.
10508         * elf/sprof.c: Likewise.
10509         * sysdeps/generic/dl-cache.c: Likewise.
10510         * sysdeps/generic/dl-origin.c: Likewise.
10511         * sysdeps/generic/dl-sysdep.c: Likewise.
10512         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10513         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10514         * sysdeps/generic/libc-start.c: Likewise.
10515         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10516         * sysdeps/powerpc/dl-machine.c: Likewise.
10517         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10518         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10519         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10520         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10522         * elf/ldsodefs.h: Move file to ...
10523         * sysdeps/generic/ldsodefs.h: ... here.
10525         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10527         * sysdeps/mips/elf/ldsodefs.h: New file.
10529         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10530         entries in l_info.
10531         (_dl_check_map_versions): Likewise.
10532         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10533         * elf/dl-load.c (_dl_init_paths): Likewise.
10534         (_dl_map_object): Likewise.
10535         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10536         (elf_get_dynamic_info): Likewise.
10537         * elf/do-lookup.h (FCT): Likewise.
10538         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10539         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10540         * elf/dl-addr.c (_dl_addr): Likewise.
10541         * elf/dl-runtime.c (profile_fixup): Likewise.
10542         (fixup): Likewise.
10543         * elf/dl-init.c (_dl_init_next): Likewise.
10544         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10545         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10546         (DISTINGUISH_LIB_VERSIONS): Likewise.
10547         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10548         (elf_machine_rel): Likewise.
10550         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10551         for writable dynamic section.
10553 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10555         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10556         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10558 2000-03-22  Andreas Jaeger  <aj@suse.de>
10560         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10561         from latest Linux kernel.
10563 2000-03-21  Andreas Jaeger  <aj@suse.de>
10565         * Versions.def: Add version 2.1.4.
10567 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10569         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10570         * libio/oldiofopen.c: Likewise.
10571         * libio/oldiofclose.c: Likewise.
10572         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10574 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10576         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10577         indicating the first version set to obsolete the conditionalized code.
10578         (compat_symbol): New macro.
10579         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10580         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10581         integer values to the ABI_* macros for supported versions.
10582         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10583         compat_symbol macro.
10585 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10587         * nscd/connections.c (nscd_run): Pretty print.
10588         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10590         * manual/charset.texi: Fix typos.  Rephrase.
10591         * manual/process.texi: Likewise.
10592         * manual/signal.texi: Likewise.
10593         Patches by Mike Coleman <mkc@kc.net>.
10595         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10596         versions.
10597         * libio/iofdopen.c: Likewise.
10598         * libio/iofgetpos.c: Likewise.
10599         * libio/iofgetpos64.c: Likewise.
10600         * libio/iofopen.c: Likewise.
10601         * libio/iofsetpos.c: Likewise.
10602         * libio/iofsetpos64.c: Likewise.
10603         * libio/iopopen.c: Likewise.
10604         * libio/oldiofopen.c: Likewise.
10605         * libio/pclose.c: Likewise.
10606         * sysdeps/gnu/siglist.c: Likewise.
10607         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10609         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10610         chance to expand VERSION_##lib##_##version.
10612         * libio/fileops.c: Use new macros from shlib-compat.h to define
10613         versions.
10614         * libio/iofclose.c: Likewise.
10615         * libio/oldiofclose.c: Likewise.
10616         Patch by Roland McGrath <roland@frob.com>.
10618 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10620         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10621         Lay out struct sigcontext according to what really gets passed on
10622         the stack.
10623         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10624         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10625         (prgregset_t, prfpregset_t): Define to elf_* types.
10626         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10627         Define to correct value.
10628         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10629         sigcontext.
10630         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10632 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10634         * scripts/firstversions.awk: Allow multiple version sets in the
10635         "earliest version" specification, meaning that version sets in the
10636         gaps between listed versions should be folded into the earliest later
10637         version that is explicitly listed.
10638         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10639         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10641 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10643         * iconv/gconv_builtin.c: Include <endian.h>.
10644         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10645         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10646         according to current platform.
10647         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10648         __gconv_transform_internal_ucs2reverse, and
10649         __gconv_transform_internal_ucs4le.
10650         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10651         __gconv_transform_ucs2reverse_internal and
10652         __gconv_transform_internal_ucs2reverse.
10653         * iconvdata/Makefile (modules): Add UNICODE.
10654         (distribute): Add unicode.c.
10655         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10656         * iconvdata/unicode.c: New file.
10658         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10659         determine byte order of input and convert accordingly.
10661         * iconvdata/utf-16.c (gconv_init): Fix typo.
10663 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10665         * iconvdata/gconv-modules: Fix typo.
10667         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10668         more messages.
10670         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10672 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10674         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10676 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10678         * misc/Makefile (routines): Add mincore.
10680 2000-03-20  Andreas Jaeger  <aj@suse.de>
10682         * sysdeps/generic/mincore.c: New stub file.
10684         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10685         from latest Linux kernel.
10687 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10689         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10690         _SC_GETPW_R_SIZE_MAX.
10692 2000-03-20  Richard Henderson  <rth@cygnus.com>
10694         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10695         in GLIBC_2.1.4.
10697 2000-03-20  Richard Henderson  <rth@cygnus.com>
10699         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10700         of arithmetic instructions.
10702         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10703         with the fpcr.  Protect from INV exception.
10704         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10705         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10706         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10708         * sysdeps/alpha/fpu/s_copysign.c: New.
10709         * sysdeps/alpha/fpu/s_copysignf.c: New.
10710         * sysdeps/alpha/fpu/s_fabs.c: New.
10711         * sysdeps/alpha/fpu/s_fabsf.c: New.
10712         * sysdeps/alpha/fpu/s_rint.c: New.
10713         * sysdeps/alpha/fpu/s_rintf.c: New.
10715         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10717         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10718         Kill sethae.
10719         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10720         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10721         Use physical addresses not KSEG addresses.
10722         (io_system): Add PYXIS.
10723         (io): Remove hae.reg, sys, hae_shift.
10724         (stb_mb, stw_mb, stl_mb, __sethae): New.
10725         (inline_outb, inline_outw, inline_outl): Don't set hae.
10726         (inline_inb, inline_inw, inline_inl): Likewise.
10727         (dense_sethae): New null function.
10728         (struct cpuinfo_data): New.
10729         (process_cpuinfo): Use local and stack variables, not static.
10730         Move readlink check here from init_iosys.
10731         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10732         (_iopl): Simplify.
10733         (_hae_shift): Calculate it here.
10734         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10735         add pciconfig_iobase.
10737 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10739         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10740         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10742         * scripts/versions.awk: Fixed version renaming code to distinguish
10743         libraries properly.
10745 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10747         * include/stdlib.h: Add prototype for __cxa_atexit.
10749         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10750         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10752 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10754         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10755         existing rtld-installed-name.
10756         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10757         replace existing rtld-installed-name using $(symbolic-link-prog).
10759 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10761         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10762         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10763         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10764         but not the former.
10766 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10768         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10769         glob64.  Since there is no glob64 in the LFS proposal applications
10770         can assume that glob handles LFS situations.  glob64 is only needed
10771         if alternative filesystem functions are used.
10773 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10775         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10776         when GLOB_DOOFFS is set; correct handling of patterns
10777         containing escaped wildcards (and no unescaped ones);
10778         GLOB_ERR flag was being ignored in some situations.
10780         * posix/globtest.c, posix/globtest.sh: Updated to include
10781         tests for the problems fixed by the above changes to glob.c.
10783         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10785 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10787         * Makeconfig (soversion.i): Use only first match for each lib.
10789         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10791         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10792         rather than $(sysd-dirs-done) to protect these rules.
10794         * Makerules (version-renames.def): Target removed.
10795         (Versions.all): Depend on soversions.i directly and parse it.
10797         * Makeconfig (soversions.i): New target, input-reading parts of
10798         soversions.mk generation moved here; result is a canonicalized
10799         list "LIB VERSION [SET]" for this configuration.
10800         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10801         * Makerules (version-renames.def): New target, generated from
10802         soversions.i with contents that was in $(map-firstversions).
10803         (Versions.all): Don't depend on soversions.mk, depend on
10804         version-renames.def instead; just cat it into the input.
10806         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10807         for $(map-firstversions), which better handles it being empty.
10809         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10810         supported version for libc 0.2.90.libio to GLIBC_2.2.
10812         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10813         and use it to emit new variable `map-firstversions'.
10814         * scripts/firstversions.awk: New file.
10815         * Makerules (Versions.all): Use scripts/firstversions.awk and
10816         the $(map-firstversions) value to generate a modified versions list
10817         that includes renames in "A = B" syntax for each version set earlier
10818         than the "earliest symbol version" named in shlib-versions.
10819         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10820         rename version set A to B in the output to the intermediate file.
10821         * scripts/abi-versions.awk: New file.
10822         * Makerules (abi-versions.h): New target, generated by that script.
10823         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10824         * include/shlib-compat.h: New file, uses that generated header.
10826 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10828         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10829         after stripping # comments, and then run it through cpp.
10830         This allows things like "%ifdef FOO" based on config.h settings.
10831         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10833         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10834         and other errors that indicate a pseudo-receive happened, grok through
10835         the message buffer for port rights that need references fixed up.
10837 2000-03-16  Andreas Jaeger  <aj@suse.de>
10839         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10841         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10843         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10844         from latest Linux kernel.
10845         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10847         * misc/sys/mman.h: Add prototype for mincore.
10849 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10851         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10852         entry for GLIBC_2.0 version of setrlimit.
10853         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10855 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10857         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10858         * nis/nss_compat/compat-initgroups.c: Likewise.
10859         * nis/nss_nis/nis-initgroups.c: Likewise.
10860         * nis/nss_nis/nis-netgrp.c: Likewise.
10861         * nis/nss_nis/nis-proto.c: Likewise.
10862         * nis/nss_nis/nis-rpc.c: Likewise.
10863         * nis/nss_nis/nis-service.c: Likewise.
10864         * nis/ypclnt.c: Likewise.
10866 2000-03-16  Andreas Jaeger  <aj@suse.de>
10868         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10869         doesn't exist, correct checks.  Fixes PR libc/1649.
10871 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10873         * nscd/hstcache.c: Restore correct UID.
10874         * nscd/pwdcache.c: Likewise.
10875         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10877 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10879         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10880         macros for register names, in line with 2000-03-14 linux change.
10882         * sysdeps/mach/sched_yield.c: New file.
10884 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10886         * sysdeps/generic/lockfile.c: Include <stdio.h>
10887         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10888         case <libio.h> defined them.
10889         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10890         from __internal_*.
10891         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10892         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10894         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10895         for more pleasing parse error.
10897 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10899         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10900         memory for eras.
10901         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10903         * elf/Makefile: Add rules to compile and run constload1 test.
10904         * elf/constload1.c: New file.
10905         * elf/constload2.c: New file.
10906         * elf/constload3.c: New file.
10908 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10910         * sysdeps/posix/open64.c: Make __open64 weak alias.
10911         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10912         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10913         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10914         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10915         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10916         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10917         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10918         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10919         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10920         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10922 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10924         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10925         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10927 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10929         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10930         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10932 2000-03-08  Andreas Jaeger  <aj@suse.de>
10934         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10936 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10938         * timezone/africa: Update from tzdata2000d.
10939         * timezone/asia: Likewise.
10940         * timezone/australasia: Likewise.
10941         * timezone/europe: Likewise.
10942         * timezone/northamerica: Likewise.
10943         * timezone/southamerica: Likewise.
10945         * po/fr.po: Update from translation team.
10946         * po/de.po: Likewise.
10948         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10949         last parameter.  Move code to add map to global scope from here...
10950         * elf/dl-open.c (dl_open_worker): ...here.
10951         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10952         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10954         * locale/programs/ld-collate.c (collate_read): Fix warning.
10956         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10957         values and macros for register names.
10959         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10960         returned by seek cookie function is -1.
10962 2000-03-14  Andreas Jaeger  <aj@suse.de>
10964         * locale/localeconv.c (localeconv): Fix typo.
10965         Reported by Andre Charbonneau <andrec@corel.com>.
10967 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10969         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10970         since modules depend on it counting the number of times the conversion
10971         function got called.
10973         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10975         * iconv/gconv.h: Pretty print.
10977 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10979         * posix/wordexp-test.c: Correct one of the tests added in the last
10980         change.  Really get the root passwd entry to check again ~root.
10982 2000-03-10  Andreas Jaeger  <aj@suse.de>
10984         * manual/filesys.texi (Working Directory): Fix last patch.
10985         Patch by Martin Buchholz  <martin@xemacs.org>.
10987 2000-03-10  Andreas Jaeger  <aj@suse.de>
10989         * manual/creature.texi (Feature Test Macros): Fix language.
10991 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10993         * mach/devstream.c (devstream_write, devstream_read): New functions.
10994         (input, output): Functions removed.
10995         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10996         using only the vanilla fopencookie interface.
10998         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10999         as macro for __io_functions.
11000         (funcsio): Use cookie_io_functions_t type name.
11001         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11003         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11004         fopencookie.
11005         (fopencookie): Use it.
11006         * libio/libio.h: Declare _IO_cookie_init.
11007         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11008         _IO_cookie_init.
11010         * libio/libio.h (__io_seek_fn): Fix second argument type
11011         to be a pointer, in line with the manual and the old stdio.
11012         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11014         * sysdeps/generic/bits/stdio-lock.h: New file.
11015         This is a stub with #error, but that's better than no file at all.
11017 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11019         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11020         * manual/message.texi (Using gettextized software): Doc Fixes.
11021         * manual/message.texi (Message Translation): Doc Fixes.
11022         * manual/filesys.texi (File Size): Doc Fixes.
11023         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11024         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11025         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11026         * manual/install.texi: Doc Fixes.
11027         * manual/search.texi (Hash Search Function): Doc Fixes.
11028         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11029         * FAQ.in: Doc Fixes.
11030         * config.h.in: Doc Fixes.
11031         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11032         Doc Fixes.  `allows to' is not correct English.
11034         * elf/rtld.c: Doc fixes.
11035         * manual/creature.texi (Feature Test Macros): Doc fixes.
11036         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11038         * manual/filesys.texi (Working Directory): Check for ERANGE to
11039         avoid infloop.
11041 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11043         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11044         conditions so as not to clobber the final '\0' when there is only one
11045         element in the vector.
11047 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11049         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11050         broken by 2000-02-27 change.
11052         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11054 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11056         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11057         argument type, for 2000-02-22 change in signal/signal.h declaration.
11059 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11061         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11062         to getdirentries64 (no __), since the Linux implementation
11063         has no __ name, and there is no declaration for the __ name.
11065         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11067         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11068         sed regexp so as not to break directory names including /../ within.
11070         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11071         The sysdeps/generic file is right for BSD.  This file was in fact the
11072         Hurd file, but the only difference was the WNOREAP flag that was never
11073         actually implemented or used anywhere.
11075         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11076         since AC_PATH_PROG already does it for us.
11077         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11078         correctness and sh portability.  I replaced the broken check
11079         with a more sensible implementation of the apparently intended
11080         semantics, which might still be questionable.  Using expr causes
11081         a non-numeric value for `perl -V:apiversion` to be accepted,
11082         refusing to use only a perl that reports a number less than 5;
11083         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11084         * configure: Regenerated.
11086 2000-03-08  Andreas Jaeger  <aj@suse.de>
11088         * manual/crypt.texi: Fix paths.
11090 2000-03-07  Andreas Jaeger  <aj@suse.de>
11092         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11093         were swapped.
11094         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11095         libc/1636.
11097 2000-03-06  Andreas Jaeger  <aj@suse.de>
11099         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11100         in __sgn1l, otherwise g++ fails to parse this.
11101         Reported by Sean Chen <sean.chen@turbolinux.com>.
11103 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11105         * configure.in: Compute sizeof-long-double.
11106         * configure: Regenerated.
11107         * config.make.in: Make sizeof-long-double available to sub-makes.
11109 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11111         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11112         call.
11114 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11116         * Makeconfig (rpath-dirs): Add crypt.
11117         (all-subdirs): Remove md5crypt.
11118         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11119         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11120         * sysdeps/generic/crypt-entry.c: Delete.
11121         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11122         * sysdeps/generic/crypt.h: Delete.
11123         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11124         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11125         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11126         * sysdeps/generic/des_impl.c: Delete.
11127         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11128         * crypt/sysdeps: Delete.
11129         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11130         * md5-crypt/Versions: Move to crypt/.
11131         * md5-crypt/md5-crypt.c: Move to crypt/.
11132         * md5-crypt/md5.c: Move to crypt/.
11133         * md5-crypt/md5c-test.c: Move to crypt/.
11134         * md5-crypt/md5test.c: Move to crypt/.
11135         * md5-crypt: Delete.
11136         * crypt/Makefile: Adjust for new structure.
11138 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11140         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11141         define to 1 if not defined.
11143 2000-03-03  Andreas Jaeger  <aj@suse.de>
11145         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11147 2000-03-03  Andreas Jaeger  <aj@suse.de>
11149         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11150         cases.
11151         (xdr_int64_t): Correctly handle lower half.
11152         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11154 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11156         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11157         call.
11159 2000-03-02  Andreas Jaeger  <aj@suse.de>
11161         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11162         2.3.43.
11164 2000-03-02  Andreas Jaeger  <aj@suse.de>
11166         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11168 2000-03-01  Andreas Jaeger  <aj@suse.de>
11170         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11171         (tests): Added tst-getdate.
11173         * time/tst-getdate.c: New file.
11175         * time/datemsk: New file, needed for tst-getdate.
11177 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11179         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11181 2000-02-17  H.J. Lu  <hjl@gnu.org>
11183         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11185         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11186         available.
11187         (svcudp_recv): Set up message with the new "xp_pad" field for
11188         IP_PKTINFO.
11189         (svcudp_reply): Support IP_PKTINFO if available.
11191 2000-03-01  Andreas Jaeger  <aj@suse.de>
11193         * time/getdate.c (check_mday): Fix check for february.
11194         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11195         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11197 2000-03-02  Andreas Jaeger  <aj@suse.de>
11199         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11200         g++ fails to parse this.
11201         Reported by Sean Chen <sean.chen@turbolinux.com>.
11203 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11205         * io/creat.c: Moved to...
11206         * sysdeps/generic/creat.c: ...here.
11207         * io/creat64.c: Moved to...
11208         * sysdeps/generic/creat64.c: ...here.
11209         * io/lockf.c: Moved to...
11210         * sysdeps/generic/lockf.c: ...here.
11212         * crypt/crypt.texi: Moved to...
11213         * manual/crypt.texi: ...here.
11214         * crypt/examples/genpass.c: Moved to...
11215         * manual/examples/genpass.c: ...here.
11216         * crypt/examples/mygenpass.c: Moved to...
11217         * manual/examples/mygenpass.c: ...here.
11218         * crypt/examples/testpass.c: Moved to...
11219         * manual/examples/testpass.c: ...here.
11221         * manual/Makefile (chapters): Add crypt.
11222         * manual/conf.texi: Add usual header for not-last chapter.
11223         * manual/crypt.texi: Add special header for last chapter.
11225 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11227         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11228         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11229         complain if there is no crypt add-on.
11230         * crypt/configure: Removed.
11232         * crypt/crypt.texi: Update documentation of US export restrictions
11233         to match the 14 Jan 2000 regulations.
11235 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11237         * crypt: New subdirectory, merged in from the crypt add-on.
11239 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11241         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11244 See ChangeLog.10 for earlier changes.