Update.
[glibc.git] / ChangeLog
blob94d441b55af7710738061ee7028cfafa82397ece
1 2000-09-29  David Mosberger  <davidm@hpl.hp.com>
3         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__ia64_syscall): Cleanup.
5         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Implement.
7 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
9         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix it so it actually
10         works: call to __sigjmp_save must be done unconditionally to
11         ensure jmp_buf is initialized properly.
13 2000-09-27  Andreas Jaeger  <aj@suse.de>
15         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Synch with Linux
16         2.4.0-test9-pre7.
18 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
20         * nscd/nscd-client.h (NSCD_VERSION): Bump to 3.
21         Use int32_t where appropriate.
22         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use uint32_t instead of size_t
23         where appropriate.
24         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25         * nscd/hstcache.c (cache_addhst): Likewise.
26         * nscd/grpcache.c (cache_addgr): Likewise.
28 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
30         * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
31         INADDR_LOOPBACK instead of numeric value.
33 2000-09-28  H.J. Lu  <hjl@gnu.org>
35         * sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
36         _dl_skip_args.
37         (ELF_MACHINE_FIXED_STACK): Removed.
39 2000-09-29  Andreas Jaeger  <aj@suse.de>
41         * sysdeps/unix/sysv/linux/s390/lockf64.c: New file.
43         * sysdeps/unix/sysv/linux/s390/fcntl.c: New file.
45         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: New file.
47         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: New file.
49 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
51         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle unaligned
52         relocation also for R_ALPHA_RELATIVE.
53         Reported by Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
55 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
57         * intl/dcigettext.c: Outside libc, use local variable names that don't
58         clash with those in libc.
59         * intl/bindtextdom.c: Likewise.
60         * intl/textdomain.c: Likewise.
62 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
64         * elf/ldconfig.c (parse_conf): Print full name of config dir
65         including chroot() path.
66         (main): Remove trailing / from opt_chroot string.
68         * include/features.h: Correct description of what happens if no
69         *_SOURCE macro is defined.
71         * sysdeps/posix/getaddrinfo.c (gaih_inet): Handle req->ai_socktype
72         correctly.  Reported by Felix von Leitner <leitner@convergence.de>.
74 2000-09-19  H.J. Lu  <hjl@gnu.org>
76         * malloc/malloc.h (__memalign_hook): Fix the parameter order.
77         * malloc/malloc.c (__memalign_hook): Likewise.
78         (memalign_hook_ini): Likewise.
80 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
82         * stdio-common/tmpnam.c (tmpnam): Optimize a bit.
84         * sysdeps/posix/getaddrinfo.c (gaih_local): Don't use tmpnam, use
85         underlying functions directly.
87         * sysdeps/unix/sysv/linux/bits/resource.h: Add RLIMIT_LOCKS.
88         * sysdeps/unix/sysv/linux/arm/bits/resource.h: Likewise.
89         * sysdeps/unix/sysv/linux/i386/bits/resource.h: Likewise.
90         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
91         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: Likewise.
92         * sysdeps/unix/sysv/linux/sh/bits/resource.h: Likewise.
93         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
95 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
97         * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
98         define it for powerpc for kernel >= 2.4.0.
99         * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
100         __ASSUME_32BITUIDS.
101         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
102         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
103         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
104         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
105         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
106         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
108 2000-09-28  Martin Schwidefsksy  <schwidefsky@de.ibm.com>
110         * sysdeps/s390/atomicity.h: Fix compare_and_swap.
112         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h
113         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
115 2000-09-28  Denis Joseph Barrow  <djbarrow@de.ibm.com>
117         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
118         ucontext.h.
119         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
121 2000-09-27  Andreas Schwab  <schwab@suse.de>
123         * math/Makefile (distribute): Explicitly add the long double test
124         sources, to get them included even if long double is not supported.
126 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
128         * elf/soinit.c (struct object): Move definition to gccframe.h and
129         include it.  Problem identified by HJ Lu.
131         * sysdeps/ia64/gccframe.h: New file.  ia64 specific version of
132         struct object to be searched for frame unwind info.
133         * sysdeps/generic/gccframe.h: New file.  Generic version of
134         struct object to be searched for frame unwind info.
136 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
138         * manual/errno.texi: Correct error text for ENXIO.
139         Reported by Jörg Schilling <schilling@fokus.gmd.de>.
141 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
143         * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
144         exception status bits rather than the exception disable bits.
145         Don't include math.h.
147         * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
148         status of exceptions currently raised rather than which exceptions
149         are enabled.
151         * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
152         rather than unsigned long int.
154         * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
155         the exceptions actually requested by the caller and not just
156         disable all exceptions.
158         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
159         the ia64 are enabled by clearing the respective bits in the fpsr,
160         not setting them.
162         * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
163         unsigned long int rather than unsigned long to be consistent with
164         the coding conventions.
166 2000-09-20  H.J. Lu  <hjl@gnu.org>
168         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
169         unsigned long int.
170         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
172 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
174         * string/bits/string2.h: Unify #if usage.
176 2000-09-27  Jakub Jelinek  <jakub@redhat.com>
178         * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
179         and disabling underflow or overflow, disable inexact as well.
181 2000-09-26  Andreas Jaeger  <aj@suse.de>
183         * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
185         * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND.
187         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETLKW64,
188         F_GETLK64, F_SETLK64): Update from Linux-2.4.0-test9-pre4.
190         * elf/ldconfig.c (search_dir): Allow unlimited path length.
191         (create_links): Likewise.
193 2000-09-27  Ulrich Drepper  <drepper@redhat.com>
195         * posix/tst-dir.c: Test a few error cases of chdir.
197 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
199         * math/math_private.h: Don't add long double prototypes if
200         NO_LONG_DOUBLE is defined.
202         * sysdeps/unix/i386/i586/clock_nanosleep.c (CLOCK_P): Remove
203         CLOCK_MONOTONIC.
204         * sysdeps/unix/i386/i586/clock_gettime.c (EXTRA_CLOCK_CASES): Likewise.
205         * sysdeps/unix/i386/i586/clock_getres.c (EXTRA_CLOCK_CASES): Likewise.
207         * sysdeps/unix/sysv/linux/i386/bits/time.h: Remove CLOCK_MONOTONIC.
209 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
211         * sysdeps/sparc/sparc32/bits/endian.h: Remove.
212         * sysdeps/sparc/sparc32/ieee754.h: New.
213         * sysdeps/sparc/sparc64/bits/endian.h: Move...
214         * sysdeps/sparc/bits/endian.h: ...here.
215         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Optimize.
216         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Check
217         %o1, not %o0 to see if we're parent or child.  Optimize.
219 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
221         * sysdeps/unix/sysv/linux/ia64/fork.S: New file (based on code
222         by Hans Boehm).
223         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file (based on
224         code by Hans Boehm).
225         * sysdeps/unix/sysv/linux/ia64/fork.c: Deleted (obsoleted by fork.S).
227 2000-09-20  H.J. Lu  <hjl@gnu.org>
229         * sysdeps/ia64/fpu/printf_fphex.c: New file.
231         * sysdeps/ia64/fpu/libm-test-ulps: New file.
233 2000-09-17  H.J. Lu  <hjl@gnu.org>
235         * sysdeps/ia64/Makefile (long-double-fcts): New.  Defined as yes.
237         * sysdeps/ia64/fpu/s_isinfl.c: New file.  Include
238         sysdeps/i386/fpu/s_isinfl.c.
240         * sysdeps/ia64/fpu/s_isnanl.c: New file.  Include
241         sysdeps/i386/fpu/s_isnanl.c.
243         * sysdeps/ia64/fpu/s_nextafterl.c: New file.  Include
244         sysdeps/i386/fpu/s_nextafterl.c.
246         * sysdeps/ia64/fpu/bits/mathdef.h: New file.  Copied from
247         sysdeps/i386/fpu/bits/mathdef.h.
249 2000-09-16  H.J. Lu  <hjl@gnu.org>
251         * sysdeps/generic/ldsodefs.h (DL_UNMAP): New.  Defined if
252         DL_UNMAP_IS_SPECIAL is not defined.
254         * sysdeps/ia64/dl-lookupcfg.h (DL_UNMAP_IS_SPECIAL): Defined.
255         (_dl_unmap): New prototype.
256         (DL_UNMAP): New.  Defined as _dl_unmap.
258         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_unmap.
260         * elf/dl-close.c (_dl_close): Replace __munmap with DL_UNMAP.
262 2000-09-16  H.J. Lu  <hjl@gnu.org>
264         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_ADDRESS): New. Defined
265         if ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
267         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): New
268         prototype.
269         (DL_LOOKUP_ADDRESS): New. Defined as _dl_lookup_address.
271         * sysdeps/ia64/dl-fptr.c (_dl_lookup_address): New. Lookup
272         the memory location of a function from a function descriptor.
274         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_lookup_address.
276         * elf/dl-addr.c (_dl_addr): Use DL_LOOKUP_ADDRESS to get the
277         memory location.
279 2000-09-14  Jes Sorensen  <jes@linuxcare.com>
281         * sysdeps/ia64/bits/byteswap.h (__bswap_16): Don't mark output
282         variable as input argument.
283         (__bswap_32): Likewise.
285         * sysdeps/ia64/dl-machine.h: Add missing stop bit in RTLD_START()
286         - found by Jim Wilson <wilson@cygnus.com>
288 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
290         * string/strxfrm.c: Only require alignment on __alignof__ (int32_t)
291         instead of 4.
293 2000-09-26  Andreas Schwab  <schwab@suse.de>
295         * locale/programs/ld-collate.c (collate_output): Only require
296         alignment on __alignof__ (int32_t) instead of 4.
297         * locale/loadlocale.c (_nl_load_locale): Likewise.
298         * string/strcoll.c: Likewise.
300 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
302         * sysdeps/ieee754/ldbl-96/e_atan2l.c (__ieee754_atan2l): Add
303         parentheses around arithmetic used in | statement to kill compiler
304         warning.
306         * math/math_private.h: Add prototype for __finitel.
307         (__ilogbl): Likewise.
308         (__isinfl): Likewise.
309         (__isnanl): Likewise.
310         (__atanl): Likewise.
311         (__copysignl): Likewise.
312         (__expm1l): Likewise.
313         (__floorl): Likewise.
314         (__frexpl): Likewise.
315         (__ldexpl): Likewise.
316         (__log1pl): Likewise.
317         (__nanl): Likewise.
318         (__rintl): Likewise.
319         (__scalbnl): Likewise.
320         (__sqrtl): Likewise.
321         (fabsl): Likewise.
322         (__sincosl): Likewise.
324 2000-09-26  Andreas Schwab  <schwab@suse.de>
326         * sysdeps/m68k/fpu/libm-test-ulps: New file
328 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
330         * locale/langinfo.h (__nl_langinfo_l): Add prototype.
332 2000-09-26  Andreas Jaeger  <aj@suse.de>
334         * misc/mkstemp64.c: New file.
335         * misc/Makefile (routines): Add mkstemp64.
336         * stdlib/stdlib.h: Add prototype and redirection magic.
337         * misc/Versions: Add mkstemp64.
339 2000-09-26  Thorsten Kukuk  <kukuk@suse.de>
341         * nscd/dbg_log.c (dbg_log): Add missing format string.
343 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
345         * catgets/catgets.c (catopen): Use getenv instead of __secure_getenv
346         since we filter out the variable once.
347         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
348         * locale/newlocale.c (__newlocale): Likewise.
349         * locale/setlocale.c (setlocale): Likewise.
350         * malloc/malloc.c (ptmalloc_init): Likewise.
351         * resolv/res_hconf.c (_res_hconf_init): Likewise.
352         * resolv/res_init.c (__res_vinit): Likewise.
353         * time/tzfile.c (__tzfile_read): Likewise.
354         * sysdeps/generic/unsecvars.h: New file.
355         * elf/dl-support.c (non_dynamic_init): Use it here to remove variables.
356         * elf/rtld.c (process_envvars): Likewise.
357         * elf/Makefile (distribute): Add unsecvars.h.
359         * misc/daemon.c (daemon): Fail if !noclose and we cannot open the
360         real /dev/null device.
362         * sysdeps/generic/check_fds.c: Include device-nrs.h.
363         * sysdeps/generic/device-nrs.h: New file.
364         * sysdeps/unix/sysv/linux/device-nrs.h: New file.
365         * misc/Makefile (distribute): Add device-nrs.h.
367         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Use O_TRUNC to
368         remove possible garbage at the end of the file.
370 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
372         * stdio-common/tmpnam_r.c: Warn about insecure tmpnam_r.
373         * stdio-common/tmpnam.c: Warn about insecure tmpnam.
374         * stdio-common/tempnam.c: Warn about insecure tempnam.
375         * misc/mktemp.c: Warn about insecure mktemp.
377         * sysdeps/generic/check_fds.c: Check that file opened is really
378         /dev/null.
379         * posix/wordexp.c (exec_comm_child): Likewise.
381         * elf/rtld.c (process_envvars): Open debug output file with O_NOFOLLOW.
383         * locale/Makefile (routines): Add nl_langinfo_l.
384         * locale/Versions [libc] (GLIBC_2.2): Add __nl_langinfo_l.
385         * locale/nl_langinfo_l.c: New file.
386         * locale/nl_langinfo.c: Allow use of file for __nl_langinfo_l
387         definition.
389 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
391         * iconvdata/gbk.c (USE_PRIVATE_AREA): Define to 0.
392         (__gbk_to_ucs): Conditionalize private area mappings.
393         (__gbk_from_ucs4_tab9): Likewise.
394         (BODY for TO_LOOP): Likewise.
395         * iconvdata/testdata/GBK: Don't use characters not yet in Unicode.
396         * iconvdata/testdata/GBK..UTF-8: Likewise.
397         * iconvdata/tst-tables.sh: Enable GBK test.
399 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
401         * iconvdata/gbk.c (__gbk_to_ucs): Swap U+2014 and U+2015.
402         (__gbk_from_ucs4_tab4): Swap entries for U+2014 and U+2015.
403         (BODY for FROM_LOOP): Reject input > 0xFEA0, avoids out-of-bounds
404         array access.
405         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Map 0xA844 to 0xA1AA.
406         * iconvdata/testdata/GBK..UTF8: Swap U+2014 and U+2015.
408 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
410         * iconvdata/johab.c (final_to_ucs): Fix typos.
411         (jamo_from_ucs_table): Likewise.
412         (BODY for FROM_LOOP): Map 0x5c to U+20A9. Reject ranges
413         0xD9E6..0xD9FE and 0xDEF2..0xDEFE.
414         (BODY for TO_LOOP): Map U+20A9 to 0x5c. Don't produce values in
415         the range 0xD9E6..0xD9FE.
416         * iconvdata/tst-tables.sh: Enable JOHAB testing.
418 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
420         * iconv/gconv_conf.c (__gconv_get_path): Fix problem with relative
421         GCONV_PATH.
423 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
425         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
426         stream is in wide mode.
428         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
430 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
432         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
433         by 3, not 2.
434         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
436 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
438         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
439         reallocation logic for MALLOC (%as, %aS formats).
441 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
443         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
444         Add missing case in va_arg handling for numbers.
445         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
446         handling.
447         * stdio/tst-printf.sh: Adjust expected results.
448         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
450 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
452         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
453         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
454         characters.
455         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
456         as equivalent to uppercase hexadecimal digits.
458 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
460         * iconvdata/testdata/EUC-KR..UTF8: New file.
461         * iconvdata/testdata/EUC-TW: New file.
462         * iconvdata/testdata/EUC-TW..UTF8: New file.
463         * iconvdata/testdata/EUC-JP: New file.
464         * iconvdata/testdata/EUC-JP..UTF8: New file.
465         * iconvdata/testdata/ISO-2022-JP: New file.
466         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
467         * iconvdata/testdata/ISO-2022-JP-2: New file.
468         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
469         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
470         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
471         * iconvdata/testdata/ISO-2022-CN: New file.
472         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
473         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
474         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
475         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
476         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
478 2000-09-24  Andreas Jaeger  <aj@suse.de>
480         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
481         function add_single_dir.
482         (add_single_dir): New function.
483         (search_dir): Use add_single_dir instead of recursing.
485         * sysdeps/generic/dl-cache.h: Include stdint.h.
486         (struct file_entry_new): Use fixed sizes for interoperability
487         between 32bit and 64bit systems, add __unused to make alignment
488         explicit.
489         (CACHE_VERSION): Increment.
490         (struct cache_file_new): Use fixed sizes, add one more unused
491         entry to make alignment explicit.
493 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
495         * elf/ldconfig.c (search_dir): Make more use of d_type information.
497 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
499         * stdio-common/printf-parse.h (parse_one_spec): Clear
500         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
502 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
504         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
505         #undef since we don't have msync.
507         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
508         constant since that is what clock_t is.
509         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
511 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
513         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
514         multiply by LOAD_SCALE.
516 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
518         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
519         (crypt_r, setkey_r, encrypt_r): Likewise.
521 2000-09-22  Andreas Jaeger  <aj@suse.de>
523         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
524         array size.
526         * sysdeps/alpha/fpu/libm-test-ulps: New file.
527         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
529 2000-09-21  Andreas Jaeger  <aj@suse.de>
531         * math/libm-test.inc (atan_test): Test for existence of function.
532         (expm1_test): Likewise.
533         (acos_test): Likewise.
534         (asin_test): Likewise.
535         (exp_test): Likewise.
536         (log10_test): Likewise.
537         (log_test): Likewise.
538         (pow_test): Likewise.
539         (sqrt_test): Likewise.
540         (cos_test): Likewise.
541         (sin_test): Likewise.
542         (tan_test): Likewise.
543         (log1p_test): Likewise.
544         (log2_test): Likewise.
546         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
548         * libio/oldiofsetpos64.c: Fix alias names.
550 2000-09-21  Martin Buchholz  <martin@xemacs.org>
552         * manual/terminal.texi (Allocation): Sample code correction.
554 2000-09-20  Andreas Jaeger  <aj@suse.de>
556         * iconvdata/Makefile (generated): Add tst-tables.out.
558         * intl/Makefile (generated): Add test output.
560 2000-09-19  Andreas Jaeger  <aj@suse.de>
562         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
563         Reported by Jens-Uwe Mager <jum@helios.de>.
565 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
567         * version.h (VERSION): Bump to 2.1.94.
569         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
570         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
571         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
572         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
574         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
576 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
578         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
579         range 0xD800..0xDFFF.
580         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
581         (BODY for FROM_LOOP): Likewise.
582         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
583         (internal_ucs2_loop): Likewise.
584         (ucs2reverse_internal_loop): Likewise.
585         (internal_ucs2reverse_loop): Likewise.
587 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
589         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
590         names.
592 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
594         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
595         * iconvdata/tst-table-to.c (main): Likewise.
597 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
599         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
600         __isoir165_tab.
601         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
602         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
603         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
604         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
605         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
606         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
607         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
608         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
609         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
610         encodings when needed.  When outputting an announcement, don't clear
611         most other announcements.
613 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
615         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
616         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
618 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
620         * intl/Versions: Add bind_textdomain_codeset.
622 2000-09-16  Ralf Baechle  <ralf@gnu.org>
624         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
625         as function.
626         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
627         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
628         it will even work when not loaded to the standard address.
629         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
630         before the dynamic linker itself is relocated.
632 2000-09-18  Andreas Jaeger  <aj@suse.de>
634         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
635         __ASSUME_32BITUIDS for MIPS.
636         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
637         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
639 2000-09-17  H.J. Lu  <hjl@gnu.org>
641         * catgets/Makefile ($(objpfx)de/libc.cat): Use
642         $(make-target-directory) instead of mkdir.
644 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
646         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
647         __ASSUME_32BITUIDS for __powerpc__.
648         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
649         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
651 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
653         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
654         patch.
655         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
657 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
659         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
660         first.
661         * sysdeps/m68k/Implies: Likewise.
662         * sysdeps/sparc/sparc64/Implies: Likewise.
664 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
666         * elf/readlib.c (process_file): Don't error for stale .so links either.
668 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
670         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
671         __builtin_expect.
673         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
674         Patch by Thorsten Kukuk <kukuk@suse.de>.
676         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
677         (test): Add default.
678         (modules-names): Add defaultmod1 and defaultmod2.
679         Add rules to build test objects.
681 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
683         * wctype/wctype.h: Always include <bits/types.h>.
684         Reported by Jim Meyering <meyering@ascend.com>.
686         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
687         * elf/dl-support.c: Likewise.
689         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
690         st_blocks member in stat and stat64 structs.
691         Patch by Bill Nottingham <notting@redhat.com>.
693         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
694         take longer.
696         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
697         __extension__ to _Complex_I definition since gcc warns if -pedantic.
698         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
699         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
701         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
702         necessary.  Move includes of POSIX and Unix limits files to the end.
703         * stdlib/Makefile (tests): Add tst-limits.
704         * stdlib/tst-limits.h: New file.
706 2000-09-15  Andreas Jaeger  <aj@suse.de>
708         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
710         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
712 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
714         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
715         clobber.
716         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
717         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
719 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
721         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
722         (tests): Add next.
723         (modules-names): Add nextmod1 and nextmod2.
724         Add rules to build and run next.
725         * elf/next.c: New file.
726         * elf/nextmod1.c: New file.
727         * elf/nextmod2.c: New file.
729 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
731         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
733 2000-09-15  Andreas Jaeger  <aj@suse.de>
735         * sysdeps/mips/fpu/fenv_libc.h: New file.
736         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
737         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
738         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
740         * sysdeps/mips/fpu/feenablxcpt.c: New file.
741         * sysdeps/mips/fpu/fegetexcept.c: New file.
742         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
744 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
746         * intl/Makefile: Avoid unnecessary test reruns.
748         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
750         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
751         to not use sysctl().  Too many architectures have problems with it.
753 2000-09-14  Andreas Jaeger  <aj@suse.de>
755         * scripts/config.sub: New version from subversions.gnu.org.
757         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
758         long.
760 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
762         * posix/regex.c (compile_range): Cast collseq index to unsigned char
763         to avoid accessing data before collseq.
765         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
766         pasting strings together.
768 2000-09-14  Greg McGary  <greg@mcgary.org>
770         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
771         copyright notice.
772         * sysdeps/generic/bp-semctl.h: Likewise.
773         * sysdeps/generic/bp-start.h: Likewise.
774         * sysdeps/generic/bp-sym.h: Likewise.
775         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
776         rename prototype.
778 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
780         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
781         don't fail.
783         * elf/elf.h: Add missing official relocations.
785         * libio/stdio.h: Define __FILE if __need___FILE is defined.
786         * stdio/stdio.h: Likewise.
787         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
788         * include/stdio.h: Handle __need___FILE like __need_FILE.
789         * include/wchar.h: Use __FILE instead of FILE.
790         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
791         * libio/fwscanf.c: Likewise.
792         * libio/getwc.c: Likewise.
794         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
795         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
796         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
798         * assert/assert.h: Update comment header about ISO C section.
799         * math/complex.h: Likewise.
800         * ctype/ctype.h: Likewise.
801         * include/errno.h: Likewise.
802         * include/limits.h: Likewise.
803         * locale/locale.h: Likewise.
804         * math/math.h: Likewise.
805         * setjmp/setjmp.h: Likewise.
806         * signal/signal.h: Likewise.
807         * stdio/stdio.h: Likewise.
808         * libio/stdio.h: Likewise.
809         * stdlib/stdlib.h: Likewise.
810         * string/string.h: Likewise.
811         * time/time.h: Likewise.
812         * wcsmbs/wchar.h: Likewise.
813         * wctype/wctype.h: Likewise.
814         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
816 2000-09-13  Andreas Jaeger  <aj@suse.de>
818         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
819         for no more entries.
820         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
821         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
822         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
824 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
826         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
827         constant since this is what clock_t is.
828         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
829         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
830         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
831         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
833         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
834         definitions are requested.
836 2000-09-13  Andreas Jaeger  <aj@suse.de>
838         * shlib-versions: libBrokenLocale needs minimal version for ia64,
839         sparc64 and sh to synch with libc.
841 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
843         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
844         (distribute): Add iso-2022-cn-ext.c.
845         Add definitions to compile the new module.
846         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
847         * iconvdata/iso-2022-cn-ext.c: New file.
848         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
849         ucs4_from_isoir165.  Increment input pointer if successful.
851         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
853         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
855 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
857         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
858         __syscall_getdents64 wrapper.
860         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
862 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
864         * iconvdata/gb18030.c: Many many changes.  Make consistent with
865         charmap and with itself.
866         * iconvdata/tst-tables.sh: Test GB18030.
868 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
870         * iconv/skeleton.c: Fix last patch, add missing parameter to
871         unaligned function call.
873 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
875         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
876         of decimal ellipsis.
878 2000-09-11  Bruno Haible <haible@clisp.cons.org>
880         * locale/programs/ld-collate.c (collate_read): Always initialize
881         error_section.next.
883 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
885         * locale/programs/ld-collate.c (collate_finish): Upper bound for
886         ruleidx is 128, not 256.
888 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
890         * locale/programs/ld-collate.c (collate_read): Correct check for
891         already inserted entries.
893 2000-09-10  Bruno Haible <haible@clisp.cons.org>
895         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
896         second try as well.
898 2000-09-10  Bruno Haible <haible@clisp.cons.org>
900         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
901         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
903 2000-09-10  Bruno Haible <haible@clisp.cons.org>
905         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
906         SAVE_RESET_STATE.
908 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
910         * iconvdata/utf-7.c: New file.
911         * iconvdata/gconv-modules (UTF-7): New module entries.
912         * iconvdata/Makefile (modules): Add UTF-7.
913         (distribute): Add utf-7.c.
914         * iconvdata/testdata/UTF-7: New file.
915         * iconvdata/testdata/UTF-7..UTF8: New file.
916         * iconvdata/TESTS (UTF-7): New entry.
917         * iconvdata/run-iconv-test.sh: Fix confusing output.
919 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
921         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
923 2000-09-10  David S. Miller  <davem@redhat.com>
925         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
926         frame pointer offset for non-fast path.
928 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
930         * locale/programs/3level.h (*_init): Initialize level1, level2,
931         and level3 as well.
932         (*_add): Remove a few unnecessary conditionals.
934 2000-09-05  Wolfram Gloger  <wg@malloc.de>
936         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
937         ensure usability of mutex as an `in use' flag.
939 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
941         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
943         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
944         ugly GMON_WEAK_START hack.
945         Patch by Philip Blundell <philb@gnu.org>.
947         * sysdeps/i386/i486/bits/string.h: Pretty printing.
949 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
951         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
952         and PPC_ICBI asm for broken compilers.
953         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
955 2000-09-09  Andreas Jaeger  <aj@suse.de>
957         * manual/message.texi (Advanced gettext functions): Fix typo.
959         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
960         strncpy prototype.
962 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
964         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
965         warnings.
966         * sysdeps/ia64/memccpy.S: Likewise.
967         Patches by Jim Wilson <wilson@redhat.com>.
969         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
970         before trying to read /proc.
971         Patch by Matt Wilson <msw@redhat.com>.
972         * include/sys/utsname.h: Declare __uname.
973         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
974         * sysdeps/mach/hurd/uname.c: Likewise.
975         * sysdeps/unix/syscalls.list: Likewise.
977         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
978         unloading a bit.
980 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
982         * posix/getopt.c (_getopt_internal): When long_only is set always
983         recognize conflicts just like before.
985 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
987         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
989 2000-09-08  Greg McGary  <greg@mcgary.org>
991         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
992         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
993         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
995 2000-09-08  Andreas Jaeger  <aj@suse.de>
997         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
999         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
1001         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
1002         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1003         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
1005 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1007         * iconvdata/tst-tables.sh: Enable EUC-KR test.
1009         * elf/dl-load.c (lose): Decrement _nl_loaded.
1010         (_dl_map_object_from_fd): Don't try to dlopen executables.
1012         * iconvdata/tst-tables.sh: Actually return with an error if
1013         something goes wrong.
1014         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
1015         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
1017         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
1019         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
1020         * iconvdata/tst-table-from.c: Include <string.h>.
1021         (try): Correct cast in iconv call.
1023         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
1024         too.
1025         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
1026         (sysdep_routines): Remove dl-start.
1027         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1029         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
1031         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
1032         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
1034 2000-09-06  Andreas Schwab  <schwab@suse.de>
1036         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
1038 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1040         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
1042         * scripts/config.sub: Strip out -unknown for Linux targets.
1043         Patch by Scott Bambrough <scottb@netwinder.org>.
1045         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
1046         add one more test.
1048 2000-09-07  Andreas Jaeger  <aj@suse.de>
1050         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
1052         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
1053         syscalls.
1055         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
1057         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
1058         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
1060         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
1062         * stdlib/tst-bsearch.c (main): Add more test cases.
1064         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
1065         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1066         Reported by GOTO Masanori <gotom@debian.or.jp>.
1068 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1070         * posix/Makefile (tests): Add tst-dir.
1071         (tst-dir-ARGS): New variable.
1072         * posix/tst-dir.c: New file.
1074 2000-09-07  Andreas Jaeger  <aj@suse.de>
1076         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
1077         (SYS_fcntl64): New.
1079         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
1081 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
1083         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
1084         use the hack with tryopen_o_directory to determine at runtime
1085         whether it works.
1086         * sysdeps/unix/sysv/linux/opendir.c: New file.
1087         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1088         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
1090         * catgets/Depend: New file.  Add intl.
1091         * catgets/Makefile (tests): Add tst-catgets.
1092         (generated): Remove de.msg.
1093         (generated-dirs): Add de.
1094         Add dependency if tst-catgets output on de/libc.cat.
1095         * catgets/tst-catgets.c: New file.
1097         * po/ja.po: New file.
1098         * po/el.po: Update from translation team.
1100         * wcsmbs/Depend: New file.
1101         * wcsmbs/Makefile (tests): Add tst-btowc.
1102         (tst-btowc-ENV): Define.
1103         * wcsmbs/tst-btowc.c: New file.
1105         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
1106         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
1108         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
1110         * stdlib/Makefile (tests): Add tst-bsearch.
1111         * stdlib/tst-bsearch.c: New file.
1113         * posix/getopt.c (_getopt_internal): Don't recognize an option
1114         name as ambiguous if it's a prefix for more than one name but the
1115         other struct option values are identical.
1117         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
1118         Don't depend on visual inspection of the output file to recognize
1119         errors.
1120         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
1122 2000-09-06  Andreas Jaeger  <aj@suse.de>
1124         * sysdeps/alpha/soft-fp/Dist: New file.
1125         * sysdeps/i386/soft-fp/Dist: New file.
1126         * sysdeps/mips/mips64/soft-fp/Dist: New file.
1127         * sysdeps/mips/soft-fp/Dist: New file.
1128         * sysdeps/powerpc/soft-fp/Dist: New file.
1129         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
1130         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
1132         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
1133         Use sysdep_routines instead of routines to fix make dist failure.
1134         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
1135         out code).
1136         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
1138         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
1139         sysdep_headers instead of headers for make dist.
1141         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
1142         Likewise.
1144 2000-09-06  Andreas Schwab  <schwab@suse.de>
1146         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
1148 2000-09-06  Andreas Jaeger  <aj@suse.de>
1150         * soft-fp/Makefile (distribute): Remove ChangeLog.
1152         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
1153         sysdep_routines instead of routines for make dist.
1155 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1157         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
1158         compatibility check for old stream and call _IO_wide in doubt.
1159         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
1160         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
1161         needed tst for such an old structure and don't do anything.
1162         * libio/freopen.c: Remove declaration of _IO_stdin_used.
1164 2000-09-06  Andreas Jaeger  <aj@suse.de>
1166         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
1167         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1168         and dl-routines.
1170         * soft-fp/ChangeLog: Merged with this file.
1172 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
1174         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
1176         * soft-fp/Makefile (distribute): Add the math functions, too.
1178         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
1180 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
1182         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
1183         as a statement.
1185         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
1186         * soft-fp/sysdeps/powerpc/q_*: New files.
1188 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1190         * stdio-common/vfprintf.c (process_string_arg): Handle precision
1191         in wide char case correctly.  Don't allocate too long temporary
1192         strings with alloca.
1194         * stdio-common/Makefile (tests): Add tst-swprintf.
1195         (tst-swprintf-ENV): New variable.
1196         * stdio-common/tst-swprintf.c: New file.
1198 2000-09-05  Andreas Jaeger  <aj@suse.de>
1200         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
1201         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
1202         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1204 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1206         * configure.in: Strip out "unknown" from configuration names.
1208 2000-09-05  Andreas Jaeger  <aj@suse.de>
1210         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
1212         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
1213         * sysdeps/sparc/sparc32/Implies: Likewise.
1214         * sysdeps/powerpc/Implies: Likewise.
1216         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
1217         * libio/oldiofgetpos64.c: Likewise.
1219         * soft-fp/Makefile (distribute): Remove configure.
1221         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
1223         * soft-fp/configure: Remove.
1225         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1226         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1228         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
1229         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
1231         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
1232         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
1234         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
1235         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
1237         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1238         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1240         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
1241         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
1243         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
1244         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
1246         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
1247         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
1249         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
1250         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
1252         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
1253         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
1255         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
1256         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
1258         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
1259         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
1261         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
1262         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
1264         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
1265         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
1267         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
1268         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
1270         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
1271         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
1273         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
1274         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
1276         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
1277         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
1279         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
1280         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
1282         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
1283         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
1285         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
1286         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
1288         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
1289         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
1291         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
1292         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
1294         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
1295         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
1297         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
1298         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
1300         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
1301         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
1303         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
1304         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
1306         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
1307         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
1309         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
1310         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
1312         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
1313         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
1315         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
1316         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
1318         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
1319         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
1321         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
1322         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
1324         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
1325         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
1327         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
1328         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
1330         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
1331         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
1333         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
1334         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
1336         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
1337         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
1339         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
1340         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
1342         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
1343         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
1345         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
1346         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
1348         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
1349         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
1351         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
1352         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
1354         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
1355         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
1357         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
1358         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
1360         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
1361         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
1363         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
1364         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
1366         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
1367         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
1369         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
1370         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
1372         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
1373         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
1375         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
1376         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
1378         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
1379         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
1381         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
1382         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
1384         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
1385         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
1387         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
1388         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
1390         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
1391         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
1393         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
1394         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
1396         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
1397         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
1399         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
1400         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
1402         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
1403         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
1405         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
1406         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
1408         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
1409         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
1411         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
1412         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
1414         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
1415         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
1417         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
1418         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
1420         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
1421         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
1423         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
1424         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
1426         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
1427         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
1429         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
1430         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
1432         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
1433         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
1435         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
1436         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
1438         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
1439         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
1441         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1442         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1444         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1445         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1447         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1448         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1450         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1451         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1453         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1454         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1456         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1457         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1459         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1460         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1462         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1463         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1465         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1466         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1468         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1469         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1471         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1472         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1474         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1475         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1477         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1478         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1480         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1481         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1483         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1484         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1486         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1487         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1489         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1490         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1492         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1493         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1495         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1496         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1498         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1499         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1501         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1502         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1504         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1505         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1507         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1508         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1510         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1511         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1513         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1514         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1516         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1517         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1519         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1520         change symbol version.
1521         * libio/oldiofgetpos64.c: Likewise.
1522         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1524         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1525         typo.
1526         Reported by dyky@kondara.org, closes PR libc/1886.
1528         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1529         libc/1880.
1531 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1533         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1534         script when ^C is hit.
1536         * locale/programs/localedef.c (construct_output_path): Correct
1537         computation of endp after asprintf.
1538         * locale/programs/locfile.c (write_locale_data): Don't add extra
1539         slash in filename.
1541 2000-09-05  Andreas Jaeger  <aj@suse.de>
1543         * scripts/config.guess: New upstream version.
1544         * scripts/config.sub: Likewise.
1545         * manual/texinfo.tex: Likewise.
1547 2000-09-04  Andreas Schwab  <schwab@suse.de>
1549         * elf/Makefile (all-dl-routines): New variable.
1550         (elide-routines.os): Use it instead of $(dl-routines).
1551         (all-rtld-routines): New variable.
1552         (extra-objs): Use it instead of $(rtld-routines).
1553         ($(objpfx)dl-allobjs.os): Likewise.
1554         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1555         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1556         and dl-routines.
1558 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1560         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1561         Set fname to NULL if the module wasn't found.
1563 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1565         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1566         true if trans->name already ends in ".so".
1568 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1570         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1571         void.
1572         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1573         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1574         (__gconv_release_shlib): Change return type to void.
1575         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1576         step->__counter here.
1577         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1578         if the reference is zero.
1579         (release_step): New function.
1580         (gen_steps): Always initialize the __counter to 1. Use release_step.
1581         Don't call the destructor on the step whose initializer failed.
1582         (increment_counter): Use release_step. Don't normally run destructors
1583         here.
1584         (__gconv_close_transform): Use release_step.
1586 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1588         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1589         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1591 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1593         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1594         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1595         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1596         to check for incomplete input.
1597         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1598         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1599         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1600         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1601         0x9f9d..0x9fa5.
1602         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1603         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1604         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1605         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1606         upto index 0x0052.
1608 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1610         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1611         solution.
1613 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1615         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1616         are invalid.
1618 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1620         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1621         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1622         U+007E.
1624 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1626         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1628 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1630         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1632 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1634         * iconvdata/tst-tables.sh: New file.
1635         * iconvdata/tst-table.sh: New file.
1636         * iconvdata/tst-table-from.c: New file.
1637         * iconvdata/tst-table-to.c: New file.
1638         * iconvdata/tst-table-charmap.sh: New file.
1639         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1640         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1641         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1642         ISIRI-3342.irreversible, SJIS.irreversible.
1643         (tests): Add dependency on tst-tables.out.
1644         (tst-tables.out, tst-tables-clean): New rules.
1645         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1646         * iconvdata/ISIRI-3342.irreversible: New file.
1647         * iconvdata/EUC-JP.irreversible: New file.
1648         * iconvdata/SJIS.irreversible: New file.
1650 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1652         * manual/locale.texi (General Numeric): Update description of
1653         representation of the grouping information in the locale data.
1654         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1656 2000-09-04  Andreas Jaeger  <aj@suse.de>
1658         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1659         * iconv/iconv_prog.c (options): Fix typo.
1660         Reported by dyky@kondara.org, closes PR libc/1885.
1662 2000-09-04  Andreas Jaeger  <aj@suse.de>
1664         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1665         Reported by Rob Levin <lilo@transvirtual.com>.
1667 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1669         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1670         to the typedefs of __timezone_ptr_t.
1671         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1673 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1675         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1676         the loop.
1678 2000-09-01  H.J. Lu  <hjl@gnu.org>
1680         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1681         to run a binary if it is in $(tests-static).
1683         * Rules (binaries-static): Add $(tests-static).
1685 2000-09-02  Andreas Jaeger  <aj@suse.de>
1687         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1689         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1690         patch.
1692 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1694         * iconvdata/big5hkscs.c: Regenerated from charmap.
1695         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1696         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1698         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1699         statement.  General cleanup.
1701 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1703         * wctype/wcfuncs.c (iswblank): New function.
1704         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1705         * wctype/wcextra.c: Remove file.
1706         * wctype/wcextra_l.c: Remove file.
1707         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1709 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1711         * locale/programs/ld-collate.c (collate_output): Remove redundant
1712         assert call.
1713         * string/strcoll.c: Likewise.
1714         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1715         string/strcoll.c.
1717 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1719         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1720         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1721         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1722         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1723         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1724         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1725         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1726         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1727         _NL_CTYPE_GAP5/6 respectively.
1729         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1730         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1731         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1732         Don't initialize __ctype_names and __ctype_width.
1733         * wctype/cname-lookup.h: Remove file.
1734         * wctype/Makefile (distribute): Remove cname-lookup.h.
1735         * wctype/wchar-lookup.h: Include stdint.h.
1736         * wctype/wctype.c (__wctype): Assume new locale format.
1737         * wctype/wctype_l.c (__wctype_l): Likewise.
1738         * wctype/iswctype.c: Don't include cname-lookup.h.
1739         (__iswctype): Assume new locale format.
1740         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1741         (__iswctype_l): Assume new locale format.
1742         * wctype/wctrans.c: Don't include ctype.h.
1743         (wctrans): Assume new locale format.
1744         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1745         * wctype/towctrans.c: Don't include cname-lookup.h.
1746         (__towctrans): Assume new locale format.
1747         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1748         (__towctrans_l): Assume new locale format.
1749         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1750         localeinfo.h instead.
1751         (__NO_WCTYPE): Remove unused macro.
1752         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1753         declarations.
1754         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1755         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1756         (towlower, towupper): Likewise.
1757         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1758         localeinfo.h instead.
1759         (__NO_WCTYPE): Remove unused macro.
1760         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1761         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1762         __iswxdigit_l): Assume new locale format.
1763         (__towlower_l, __towupper_l): Likewise.
1764         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1765         (__ctype32_b): Remove declaration.
1766         (internal_wcwidth): Assume new locale format.
1767         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1768         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1769         to map32_b, rename width_3level to width.
1770         (ctype_output): Always create new locale format. Don't emit
1771         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1772         (allocate_arrays): Always create new locale format.
1774         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1775         * locale/weightwc.h (findidx): Assume new locale format.
1776         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1777         names.
1778         * string/strxfrm.c (wcsxfrm): Likewise.
1779         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1780         local variable collseq to 'const char *'.
1781         (SUFFIX): Don't use, don't undefine.
1782         * posix/fnmatch.c: Remove SUFFIX definition.
1783         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1784         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1785         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1786         (collate_finish): Always create new locale format. Remove local
1787         variables min_total, act_size.
1788         (collate_output): Always create new locale format. Remove local
1789         variables table_size, names, tablewc. Rename tablewc_3level to
1790         tablewc.
1792 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1794         * locale/programs/ld-collate.c (obstack_int32_grow,
1795         obstack_int32_grow_fast): New inline functions.
1796         (output_weightwc, collate_output): Use them where possible.
1798 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1800         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1801         patch (_mode -> _flags).
1803         * libio/Makefile (headers): Add stdio_ext.h.
1804         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1805         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1806         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1807         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1808         __fsetlocking, and _flushlbf.
1809         * libio/__fbufsize.c: New file.
1810         * libio/__flbf.c: New file.
1811         * libio/__fpending.c: New file.
1812         * libio/__fpurge.c: New file.
1813         * libio/__freadable.c: New file.
1814         * libio/__freading.c: New file.
1815         * libio/__fsetlocking.c: New file.
1816         * libio/__fwritable.c: New file.
1817         * libio/__fwriting.c: New file.
1818         * libio/stdio_ext.h: New file.
1819         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1820         * libio/libio.h (_IO_USER_LOCK): Define.
1821         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1822         test _IO_USER_LOCK flag first.
1824         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1825         malloc fails.
1827 2000-09-01  Andreas Jaeger  <aj@suse.de>
1829         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1831         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1833 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1835         * math/Makefile (tests): Add tst-defintions.
1836         * math/tst-definitions.c: New file.
1838         * stdlib/Makefile (headers): Add bits/wchar.h.
1839         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1840         * sysdeps/generic/bits/wchar.h: New file.
1841         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1842         file to define WCHAR_MIN and WCHAR_MAX.
1843         Change UINT*8_MAX and UIN*16_MAX value to type int.
1844         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1845         file to define WCHAR_MIN and WCHAR_MAX.
1846         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1847         int values.
1848         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1849         * sysdeps/generic/bits/mathdef.h: Likewise.
1850         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1851         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1852         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1853         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1854         * locale/locale.h (struct lconv): Add __ prefix to the new members
1855         if not C99.
1856         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1857         imaxdiv optimizations.
1858         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1859         * sysdeps/wordsize-64/ldiv.c: Likewise.
1860         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1861         const fenv_t*.
1862         * sysdeps/generic/bits/fenv.h: Likewise.
1863         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1864         * sysdeps/ia64/bits/fenv.h: Likewise.
1865         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1866         * sysdeps/mips/bits/fenv.h: Likewise.
1867         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1868         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1869         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1871         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1872         * inet/ruserpass.c: Likewise.
1873         * catgets/open_catalog.c: Likewise.
1874         * intl/loadmsgcat.c: Likewise.
1875         * io/getdirname.c: Likewise.
1876         * locale/loadlocale.c: Likewise.
1877         * misc/getusershell.c: Likewise.
1878         * stdlib/canonicalize.c: Likewise.
1879         * sysdeps/posix/euidaccess.c: Likewise.
1880         * sysdeps/posix/isfdtype.c: Likewise.
1881         * sysdeps/posix/posix_fallocate.c: Likewise.
1882         * sysdeps/posix/tempname.c: Likewise.
1883         * sysdeps/unix/grantpt.c: Likewise.
1884         * sysdeps/unix/opendir.c: Likewise.
1885         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1886         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1887         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1888         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1889         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1890         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1891         * sysvipc/ftok.c: Likewise.
1892         * time/getdate.c: Likewise.
1894         * time/getdate.c: Add extra access test.
1896 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1898         * version.h (VERSION): Bump to 2.1.93.
1900         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1901         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1903         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1904         Make this a new rule depending on tst-gettext.out and run mtrace.
1905         * intl/tst-gettext.c: Call mtrace.
1906         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1908         * elf/dl-reloc.c: Add a few more __builtin_expect.
1910         * configure.in: Remove --with-gettext option.
1912         * intl/dcigettext.c (free_mem): Correct freeing of
1913         _nl_domain_bindings list.
1915         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1916         allocated memory.
1918         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1920         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1922         * stdio-common/itoa-digits.c: Move upper digits to...
1923         * stdio-common/itoa-udigits.c: ...here.  New file.
1924         * stdio-common/Makefile (routines): Add itoa-udigits.
1926         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1927         relocate ld.so don't add supprt for relocations which should not
1928         appear in ld.so.
1930         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1931         __secure_getenv.  Instead test __libc_enable_secure once.
1933         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1935 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1937         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1938         whether the new record should be freed if it's a duplicate.
1939         (add_module): Adjust insert_module call.
1940         (__gconv_read_conf): Likewise.
1941         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1942         mtrace-tst-loading.
1943         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1945         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1946         _dl_all_init_dirs.
1947         * include/link.h (struct r_search_path_struct): New.
1948         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1949         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1950         _dl_all_init_dirs.
1951         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1952         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1953         added at startup time.
1954         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1955         contains element to remember fact that we can free memory.
1956         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1957         (_dl_init_all_dirs): New variable.
1958         (fillin_rpath): Save one malloc call.
1959         (decompose_rpath): Change interface.  New first parameter points to
1960         r_search_path_struct.
1961         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1962         deletable.  Set _dl_init_all_paths value.
1963         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1964         parameter replaced with r_search_path_struct *.  Information about
1965         freeing now contained in r_search_path_struct.
1966         (_dl_map_object): Adjust for above changes.
1968         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1970         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1971         when adding new entries.
1973         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1974         since the object being loaded can be unloaded.
1976         * iconvdata/Makefile (tests): Add tst-loading.
1977         * iconvdata/tst-loading.c: New file.
1979 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1981         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1982         When comparing a char with an int, always cast the char to
1983         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1984         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1986 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1988         * time/strftime.c (my_strftime): Add compatibility code for use
1989         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1991         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1992         return 0 for success but always < 0 on failure.
1994         * nss/getXXbyYY_r.c: Define result to *result before including
1995         digits_dots.c.
1997 2000-08-30  Andreas Jaeger  <aj@suse.de>
1999         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
2001 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2003         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
2004         official file.
2005         * iconvdata/TESTS: Add BIG5HKSCS entry.
2006         * iconvdata/testdata/BIG5HKSCS: New file.
2007         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
2009         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
2010         always true.
2012         * libio/iogetline.c: Set mode before the loop in case n==0.
2013         * libio/iogetwline.c: Likewise.
2015 2000-08-29  H.J. Lu  <hjl@gnu.org>
2017         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
2018         of fp->_mode < 0.
2019         (_IO_new_file_overflow): Likewise.
2020         * libio/genops.c (_IO_flush_all): Likewise.
2021         * libio/ioftell.c (_IO_ftell): Likewise.
2023 2000-08-29  Akira Higuchi  <a@kondara.org>
2025         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
2026         and __end_fct fields of struct __gconv_step.
2027         * iconv/Makefile (tests): Add iconv-bug2.
2028         * iconv/iconv-bug2.c: New file.
2030         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
2031         instead of 'inptr - inend' to ksc5601_to_ucs4.
2033         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
2035         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
2036         character or shift sequence is found at the end of the input
2037         string, return__GCONV_INCOMPLETE_INPUT instead of
2038         __GCONV_EMPTY_INPUT.
2039         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2040         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2042         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
2043         __GCONV_ILLEGAL_INPUT for 8bit characters.
2045 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2047         * signal/signal.h (sigpause): Move __THROW before __asm__.
2049         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
2050         names don't match don't return.
2051         Patch by Olaf Kirch <okir@flash.lst.de>.
2053 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2055         * time/strftime.c (my_strftime): Handle # flag for %b as well.
2057 2000-08-27  H.J. Lu  <hjl@gnu.org>
2059         * posix/Makefile (otherlibs): Add for building with static-nss
2060         for "make check".
2062 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2064         * libio/stdio.h: Add fmemopen prototype.
2066 2000-08-25  Andreas Jaeger  <aj@suse.de>
2068         * libio/Makefile (routines): Add fmemopen.
2069         (tests): Add test-fmemopen.
2070         * libio/Versions: Add fmemopen with version GLIBC_2.2.
2071         * libio/test-fmemopen.c: New file.
2072         * libio/fmemopen.c: New file.
2073         Patches by Hanno Mueller <kontakt@hanno.de>.
2075 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2077         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
2078         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
2080         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
2081         to avoid crashing statically linked applications.
2083 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2085         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
2086         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
2088         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
2089         If the result is fits in the buffer, copy only as many bytes as needed.
2091         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
2092         buffer after copying numbuf into it.
2093         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
2095 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2097         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
2098         the result.  When string_len < len, don't clear the rest of the buffer.
2100 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2102         Support for new LC_COLLATE format.
2103         * locale/coll-lookup.h: New file.
2104         * locale/weightwc.h (findidx): When size == 0, call
2105         collidx_table_lookup.
2106         * wcsmbs/wcscoll.c: Include coll-lookup.h.
2107         * wcsmbs/wcsxfrm.c: Likewise.
2108         * posix/fnmatch.c: Likewise.
2109         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
2110         collseq_table_lookup.
2111         * locale/programs/3level.h: New file.
2112         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
2113         by including "3level.h".
2114         * locale/programs/ld-collate.c (wchead_table, collidx_table,
2115         collseq_table): New types, defined by including "3level.h".
2116         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
2117         (encoding_mask, encoding_byte): Remove.
2118         (utf8_encode): Use simple shifts instead.
2119         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
2120         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
2121         (collate_output): New local variable tablewc_3level. When
2122         !oldstyle_tables, set table_size to 0 and names to NULL and fill
2123         tablewc_3level instead of tablewc. Change format of TABLEWC and
2124         COLLSEQWC entries written to the file.
2125         * locale/C-collate.c (collseqwc): Change format.
2126         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
2127         of COLLSEQWC.
2128         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
2130 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2132         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
2133         (locale_ctype_t): New charnames_idx field.
2134         (ctype_startup): Initialize charnames_idx field.
2135         (find_idx): Speed up dramatically by using charnames_idx inverse table.
2137 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2139         * locale/C-ctype.c: Switch to new locale format.
2140         (_nl_C_LC_CTYPE_names): Remove array.
2141         (STRUCT_CTYPE_CLASS): New macro.
2142         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2143         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2144         New three-level tables.
2145         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
2146         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
2147         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
2148         12 class tables and 2 map tables at the end.
2149         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
2150         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2151         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2152         New declarations.
2153         (b): Remove trailing semicolon.
2154         (__ctype_names, __ctype_width): Don't initialize.
2155         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
2157 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2159         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
2160         is guaranteed to be allocated with the same malloc() and may be
2161         passed to free().
2162         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
2163         been set to empty by an earlier open_path call, don't pass it again.
2165 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2167         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
2168         we are not optimizing.
2170         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
2171         inclusion.
2173         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
2174         really match EOF.
2175         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2177 2000-08-28  Andreas Jaeger  <aj@suse.de>
2179         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
2181 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
2183         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
2184         getpeername.  Use ISO C style function definition.
2185         (getpeername): Provide weak alias.
2186         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
2187         setrlimit.  Use ISO C style function definition.
2188         (setrlimit): Provide weak alias.
2190 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2192         * shlib-versions: Add a rule for S/390 to the libm version list.
2193         * sysdeps/s390/Versions: New file.
2194         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
2195         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
2196         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2197         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
2198         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
2199         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
2200         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
2201         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
2202         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
2203         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
2204         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
2205         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
2206         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
2207         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
2208         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
2209         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
2210         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
2211         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
2213 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2215         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
2216         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
2218         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
2219         * elf/dl-close.c (_dl_close): Print debug message if object is not
2220         unloaded.
2221         * elf/dl-open.c (dl_open_worked): Print message about opencount before
2222         returning to caller.
2224         * po/zh.po: Renamed to...
2225         * po/zh_TW.po: ...this.
2227 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
2229         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
2231         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
2232         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
2233         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
2234         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
2236 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
2238         * locale/programs/ld-collate.c (insert_weights): Also update
2239         backpointer of next element.
2240         (collate_read): Allow definition of new collation symbols in stage 2.
2241         Symbol after reorder-after can be UCS4 value.
2242         Allow reordering of collation symbols and elements.
2243         Do not only move reorder entry in new position.  Instead call
2244         insert_weight to do this and read the weights.
2246         * locale/findlocale.c (free_mem): Add cast to avoid warning.
2248         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
2249         to determine invalid locale name.
2250         * locale/findlocale.c (_nl_find_locale): Likewise.
2252         * posix/annexc.c: Correct test for unavailable feature.
2254         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
2255         __inline.
2257 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
2259         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
2260         syscall.
2262         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
2263         (sysdep_routines): Add oldgetrlimit64.
2265         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
2266         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
2267         (tests): Add unload, reldep, reldep2, and reldep3.
2268         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
2269         and reldepmod4.
2270         Add rules to build and run unload, reldep, reldep2, and reldep3.
2271         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
2272         Don't create relocation dependency if it is nonzero.
2273         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
2274         can never happen here.
2275         (_dl_lookup_versioned_symbol): Add new parameter explicit.
2276         Don't create relocation dependency if it is nonzero.
2277         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
2278         stuff.  This can never happen here.
2279         * sysdeps/generic/ldsodefs.h: Change prototypes.
2280         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
2281         _dl_lookup_up and _dl_lookup_versioned_symbol.
2282         (RESOLV): Likewise.
2283         * elf/dl-runtime.c (fixup): Likewise.
2284         (profile_fixup): Likewise.
2285         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
2286         _dl_lookup_symbol.
2287         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
2288         * elf/rtld.c (dl_main): Likewise.
2289         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
2290         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
2291         and pass down the caller map.
2292         (_dl_vsym): Likewise.
2293         * elf/reldep.c: New file.
2294         * elf/reldep2.c: New file.
2295         * elf/reldep3.c: New file.
2296         * elf/reldepmod1.c: New file.
2297         * elf/reldepmod2.c: New file.
2298         * elf/reldepmod3.c: New file.
2299         * elf/reldepmod4.c: New file.
2300         * elf/unload.c: New file.
2301         * elf/unloadmod.c: New file.
2303         * elf/do-lookup.h: Remove unused undef_name parameter.
2304         * elf/dl-lookup.c: Adjust callers.
2306 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2308         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
2309         irreversible in recursive call of conversion function to signal that
2310         no error handling is wanted.
2311         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
2312         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
2313         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
2314         recursive error handling call, otherwise to &lirreversible.  Use it
2315         for calls to conversion functions.
2316         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
2317         transliterating.
2318         (ucs4_internal_loop_unaligned): Likewise.
2319         (ucs4le_internal_loop): Likewise.
2320         (ucs4le_internal_loop_unaligned): Likewise.
2322 2000-08-25  Greg McGary  <greg@mcgary.org>
2324         * sysdeps/i386/memchr.S: Check high bound against chars
2325         actually scanned.
2326         * sysdeps/i386/memcmp.S: Likewise.
2327         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
2328         account for pointers that lie one beyond end-of-buffer.
2330 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2332         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
2333         * elf/nodelete.c (fini_ran): New global variable.
2334         (do_test): Before every dlclose call clear fini_ran and test
2335         afterwards that it is not set by the destructors.
2336         * elf/nodelmod1.c: Add destructor which sets fini_ran.
2337         * elf/nodelmod2.c: Likewise.
2338         * elf/nodelmod4.c: Likewise.
2340 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
2342         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
2343         getrlimit to the list.
2345 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
2347         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
2348         long double format so use ldbl-96 instead of ldbl-128.
2350 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2352         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
2353         even if bits 10 a 11 are non-zero.
2354         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
2356         * Makeconfig: Ensures the soversions.mk part of Makefile gets
2357         included before building gnu/lib-names.h
2358         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2360         * elf/dl-close.c (_dl_close): Don't run destructors of objects
2361         marked DF_1_NODELETE.
2363         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
2364         since we call sigaction in the child.
2366 2000-08-25  Andreas Jaeger  <aj@suse.de>
2368         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
2369         gconv-modules.
2371 2000-08-25  Andreas Jaeger  <aj@suse.de>
2373         * manual/arith.texi (Control Functions): Clarify possible
2374         arguments.  Closes PR libc/1856.
2376 2000-08-24  H.J. Lu  <hjl@gnu.org>
2378         * stdio-common/Makefile (tests): Don't do it for cross compiling.
2379         * malloc/Makefile (tests): Likewise.
2381 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2383         * iconvdata/unicode.c (gconv_init): Correct test for direction.
2385 2000-08-24  Andreas Jaeger  <aj@suse.de>
2387         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
2388         only if LIBGD is available.
2390 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2392         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
2393         problems with now restrict parameter types.
2394         (convaddr4to6): Likewise.
2396 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
2398         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
2399         * sysdeps/s390/fpu/feenablxcpt.c: New file.
2400         * sysdeps/s390/fpu/fegetexcept.c: New file.
2401         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
2402         FPC_VALID_MASK.
2404 2000-08-24  Andreas Jaeger  <aj@suse.de>
2406         * malloc/Makefile (extra-objs): Add memusagestat.o.
2407         (generated): Added memusage and memusagestat for make clean.
2409         * libio/tst_putwc.c (do_test): Delete temporary file.
2410         Move inclusion of test-skeleton to front to have prototype for
2411         add_temp_file.
2413         * posix/Makefile (generated): Add wordexp-tst.out.
2415 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2417         * resolv/res_hconf.c (free_mem): Remove not needed if.
2419         * time/tzset.c (free_mem): New function.
2420         * string/strsignal.c (free_mem): New function.
2421         * inet/inet_ntoa.c (free_mem): New function.
2422         * sunrpc/clnt_perr.c (free_mem): New function.
2424 2000-08-24  Andreas Jaeger  <aj@suse.de>
2426         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
2427         * sysdeps/unix/sysv/syscalls.list: Likewise.
2429         * posix/unistd.h: Move internal prototypes from here ...
2430         * include/unistd.h: ... to here.
2432         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
2434 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2436         * grp/initgroups.c (initgroups): Deallocate groups array.
2437         Reported by jani.raiha@sonera.com [PR libc/1868].
2439         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
2440         * sysdeps/alpha/Dist: Likewise.
2442 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2444         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2445         destructor).  Reported by Solar Designer <solar@false.com>.
2447         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2448         avoid adding double slashes.
2450 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2452         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2453         out of the __REDIRECT macro.
2455 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2457         * stdio-common/vfscanf.c: Add %F format support.
2459         * locale/programs/ld-ctype.c (ctype_output): Make sure
2460         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2461         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2462         (ctype_read): Enable returning of wide character strings for reading
2463         transliteration information.
2465 2000-08-23  Andreas Jaeger  <aj@suse.de>
2467         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2468         Use static __inline instead of _EXTERN_INLINE.
2470         * misc/sys/select.h: Move prototypes of __select from here ...
2471         * include/sys/select.h: ... to here.
2473         * socket/sys/socket.h: Move prototypes of __send and __connect
2474         from here....
2475         * include/sys/socket.h: ... to here.
2477         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2478         lr_error.
2480 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2482         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2483         __setrlimit as strong name. Takes only 2 arguments.
2485         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2486         takes only 2 arguments.
2488 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2490         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2492         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2494 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2496         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2497         default_missing character being specified, pick the first
2498         representable.
2500 2000-08-23  Andreas Jaeger  <aj@suse.de>
2502         * include/wchar.h: Add some pure attributes.
2504         * time/time.h: Add const attribute for dysize.
2506         * include/stdlib.h: Add malloc attribute to __posix memalign.
2508         * stdlib/stdlib.h: Add some pure and malloc attributes.
2509         * wcsmbs/wchar.h: Likewise.
2511         * dirent/dirent.h: Add some pure attributes.
2512         * include/dirent.h: Likewise.
2514 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2516         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2517         on 64bit arches.
2519 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2521         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2522         missing buffer size checks.
2524 2000-08-23  Andreas Jaeger  <aj@suse.de>
2526         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2527         strong name.
2528         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2530         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2531         otherwise __LINUX_KERNEL_VERSION might not be defined.
2532         (MIN): Define if not already defined.
2534 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2536         * stdio-common/vfprintf.c: Handle %F format.
2537         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2538         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2540         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2542         * po/zh.po: New file.
2544         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2545         enough room in target buffer.
2546         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2547         * iconvdata/bug-iconv1.c: New file.
2548         * iconvdata/Makefile (tests): Add bug-iconv1.
2550         * locale/iso-4217.def: Update entry for Nicaragua.
2552 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2554         * hurd/hurdsig.c: Rearrange headers a bit.
2555         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2556         when cthreads is being used.
2558 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2560         * elf/Makefile (distribute): Add dl-osinfo.h.
2561         * sysdeps/generic/dl-osinfo.h: New file.
2562         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2563         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2564         if defined.
2565         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2566         only for !SHARED case.  Get the code from dl-osinfo.h.
2568         * stdlib/random_r.c: Cleanups.
2569         * stdlib/tst-random.c: New file.
2570         * stdlib/Makefile (tests): Add tst-random.
2571         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2573 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2575         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2576         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2577         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2578         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2580 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2582         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2583         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2584         (__syscall__sysctl): Add.
2586 2000-08-21  Andreas Jaeger  <aj@suse.de>
2588         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2589         libc/1864).
2590         * stdlib/tst-strtoll.c: Likewise.
2592 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2594         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2595         correctly.
2596         (__initstate_r): Set errno on error.
2597         (__random_r): Likewise.
2598         (__setstate_r): Correct offset when computing
2599         new rptr and fptr.  Test for arg_state being NULL.
2600         Reported by Michael Fischer <fischer@cs.yale.edu>.
2602         * posix/regex.h: Add macro definitions to allow compiling outside
2603         glibc.
2605         * sysdeps/i370/Implies: Removed.
2606         * sysdeps/mvs/Implies: Removed.
2608         * catgets/catgets.c (catopen): Filter out env_var values with / if
2609         necessary.
2611         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2612         locale name after all getenvs.
2614         * configure.in: Allow sed versions like 3.02.8.
2615         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2617 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2619         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2621 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2623         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2624         of gethostbyname2_r call.
2626         * intl/locale.alias: Add aliases for Korean.
2628 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2630         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2631         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2632         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2633         * sysdeps/s390/fpu/fegetenv.c: New file.
2634         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2635         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2636         * sysdeps/s390/fpu/fenv_libc.h: New file.
2637         * sysdeps/s390/fpu/fesetenv.c: New file.
2638         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2639         * sysdeps/s390/fpu/feupdateenv.c: New file.
2640         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2641         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2642         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2643         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2644         * sysdeps/s390/fpu/ftestexcept.c: New file.
2645         * sysdeps/s390/fpu/libm-test-ulps: New file.
2646         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2647         * sysdeps/s390/initfini.c: New file.
2648         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2649         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2650         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2651         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2652         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2653         sys/procfs.h as proposed by Mark Kettenis.
2654         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2656 2000-08-21  Andreas Jaeger  <aj@suse.de>
2658         * include/poll.h: Include include/sys/poll.h to get __poll
2659         declaration.
2661         * io/sys/poll.h: Move __poll declaration from here...
2662         * include/sys/poll.h: ...to here.
2664         * include/sys/socket.h (__getpeername): Add declaration.
2666         * include/wchar.h (__vswprintf): Add declaration.
2668         * include/stdio.h (__flockfile): Add declaration.
2669         (__funlockfile): Likewise.
2671 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2673         * misc/sys/cdefs.h: Define __restrict_arr.
2674         * include/sys/time.h: Add restrict where required by AGd4.
2675         * inet/arpa/inet.h: Likewise.
2676         * io/sys/stat.h: Likewise.
2677         * io/sys/statvfs.h: Likewise.
2678         * misc/search.h: Likewise.
2679         * misc/sys/select.h: Likewise.
2680         * posix/glob.h: Likewise.
2681         * posix/regex.h: Likewise.
2682         * posix/spawn.h: Likewise.
2683         * posix/unistd.h: Likewise.
2684         * rt/aio.h: Likewise.
2685         * signal/signal.h: Likewise.
2686         * socket/sys/socket.h: Likewise.
2687         * stdlib/ucontext.h: Likewise.
2688         * streams/stropts.h: Likewise.
2689         * string/string.h: Likewise.
2690         * time/time.h: Likewise.
2691         * time/sys/time.h: Likewise.
2693         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2694         and posix_spawnattr_setscheparam.
2696         * libio/stdio.h: Make cuserid prototype again available for all
2697         XPG versions.
2699         * argp/argp-help.c: Unify use of function aliases to make more compact
2700         PLT.
2701         * include/libintl.h: Likewise.
2702         * inet/rcmd.c: Likewise.
2703         * intl/dcigettext.c: Likewise.
2704         * libio/iofputws.c: Likewise.
2705         * libio/iofputws_u.c: Likewise.
2706         * libio/iogetwline.c: Likewise.
2707         * libio/swprintf.c: Likewise.
2708         * malloc/malloc.c: Likewise.
2709         * nss/digits_dots.c: Likewise.
2710         * posix/fnmatch.c: Likewise.
2711         * posix/spawn_faction_addclose.c: Likewise.
2712         * posix/spawn_faction_adddup2.c: Likewise.
2713         * posix/spawn_faction_addopen.c: Likewise.
2714         * posix/spawni.c: Likewise.
2715         * posix/wordexp.c: Likewise.
2716         * posix/spawni.c: Likewise.
2717         * resolv/res_hconf.c: Likewise.
2718         * resolv/res_init.c: Likewise.
2719         * shadow/lckpwdf.c: Likewise.
2720         * signal/sighold.c: Likewise.
2721         * signal/sigrelse.c: Likewise.
2722         * stdio-common/printf-parse.h: Likewise.
2723         * stdio-common/printf-prs.c: Likewise.
2724         * stdio-common/printf_fp.c: Likewise.
2725         * stdio-common/vfprintf.c: Likewise.
2726         * stdio-common/vfscanf.c: Likewise.
2727         * stdlib/rpmatch.c: Likewise.
2728         * sunrpc/create_xid.c: Likewise.
2729         * sunrpc/key_call.c: Likewise.
2730         * sysdeps/generic/setrlimit64.c: Likewise.
2731         * sysdeps/generic/utmp_file.c: Likewise.
2732         * sysdeps/generic/vlimit.c: Likewise.
2733         * sysdeps/posix/posix_fallocate.c: Likewise.
2734         * sysdeps/posix/posix_fallocate64.c: Likewise.
2735         * sysdeps/posix/sigpause.c: Likewise.
2736         * sysdeps/posix/sigset.c: Likewise.
2737         * sysdeps/unix/grantpt.c: Likewise.
2738         * sysdeps/unix/bsd/ualarm.c: Likewise.
2739         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2740         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2741         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2742         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2743         * time/strftime.c: Likewise.
2744         * wcsmbs/wcscoll.c: Likewise.
2745         * wcsmbs/wcsxfrm.c: Likewise.
2747         * time/tst-getdate.c (main): Make error messages more human readable.
2749         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2750         postinc/predec instruction.
2751         (_FPU_SETCW): Likewise.
2752         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2754 2000-08-20  Andreas Jaeger  <aj@suse.de>
2756         * time/tst-getdate.c (main): Increase error in case of wrong
2757         conversion.
2758         Fix typo in test case.
2760 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2762         * ctype/ctype.h (isblank): Make available if ISO C99.
2763         * wctype/wctype.h (iswblank): Make available if ISO C99.
2764         * math/math.h (signgam): Don't make available if ISO C99.
2765         * math/tgmath.h (tgamma): Renamed from gamma.
2766         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2768         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2769         Pretty printing.
2770         * intl/plural.y (new_exp): Take number of optional parameters in
2771         second parameter.  Test for correct number of parameters and free
2772         correctly in case of failure.  Adjust all callers.
2773         (yylex): Allow ';' as terminator character.
2775 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2777         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2778         walt_digits.
2780         * locale/findlocale.c (free_mem): Also free here->filename.
2782         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2784         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2785         first test.
2786         (feexcp_nomask_test): Correct printf args.
2787         (feexcp_mask_test): Likewise.
2789 2000-08-19  Andreas Jaeger  <aj@suse.de>
2791         * inet/tst-gethnm.c: Include string.h to provide prototype for
2792         strcmp.
2794         * malloc/mtrace.pl (usage): Inform about --help.
2796 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2798         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2799         size HEAP_MAX_SIZE.
2801 2000-08-19  Andreas Jaeger  <aj@suse.de>
2803         * shlib-versions: Remove libnss_db, libdb and libdb1.
2805 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2807         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2808         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2809         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2810         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2811         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2812         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2813         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2814         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2815         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2816         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2817         getdents.
2818         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2819         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2821 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2823         * include/glob.h (__glob64): Add prototype.
2824         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2825         define glob and glob_in_dir.
2826         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2827         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2828         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2829         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2830         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2831         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2832         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2833         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2835 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2837         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2839 2000-08-17  Andreas Jaeger  <aj@suse.de>
2841         * math/test-fenv.c (fe_single_test): New function.
2842         (fe_env_tests): Use fe_single_test.
2843         (feenable_test): New tests for feenable/fedisable and
2844         fegetexcpetions.
2845         (feexcp_mask_test): New function.
2846         (feexcp_nomask_test): New function.
2848 2000-08-19  Richard Henderson  <rth@cygnus.com>
2850         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2851         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2852         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2853         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2854         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2855         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2856         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2857         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2858         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2859         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2860         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2861         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2862         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2863         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2864         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2865         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2866         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2868 2000-08-19  Andreas Jaeger  <aj@suse.de>
2870         * elf/constload1.c: Include <stdio.h> for puts prototype.
2872 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2874         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2875         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2876         a dynamically loaded object remove old l_initfini list.
2877         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2878         remove some dynamically allocated memory blocks in the dynamic
2879         loading data structures.
2880         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2881         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2882         Instead call _dl_check_map_versions only for the dependencies.
2883         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2884         information of initial objects as not free-able.
2885         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2886         element.
2888         * elf/filter.c: Call mtrace.
2889         * elf/restest1.c: Likewise.  Close the objects.
2890         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2891         debug information.
2893         * elf/constload1.c: Add comment explaining not freed memory.
2895 2000-08-18  Andreas Jaeger  <aj@suse.de>
2897         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2898         alignment for structs stat and stat64.
2899         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2901 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2903         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2904         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2906         * nss/Versions: Remove libnss_db information.
2908 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2910         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2911         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2912         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2913         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2915         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2916         to match Solaris.
2918 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2920         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2921         (_FPU_SETCW): Likewise.
2922         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2924         * stdio-common/printf_fp.c: Fix chars_needed computation.
2925         Patch by Greg McGary <greg@mcgary.org>.
2927 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2929         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2930         _dl_loaded are NULL.
2932 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2934         * manual/arith.texi (feholdexcept): Returns 0 on success.
2936 2000-08-17  Andreas Jaeger  <aj@suse.de>
2938         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2939         (ifr_newname): New.
2940         Reported by Andi Kleen <ak@suse.de>.
2942 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2944         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2945         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2946         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2948 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2950         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2951         of buf->st_ino and kbuf->st_ino, not __st_ino.
2952         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2953         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2954         directive so that only linux/getdents.c is used, not some
2955         architecture specific one.
2957 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2959         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2960         enabled, not disabled exceptions.
2961         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2962         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2964 2000-08-17  Greg McGary  <greg@mcgary.org>
2966         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2967         from test program name when constructing suffix for $(LDLIBS-*).
2968         (bounded-thread-library): New variable.
2969         * crypt/Makefile
2970         [build-shared, build-static] (libcrypt-dep): Remove variable.
2971         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2972         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2973         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2974         (librt-tests): Add variable.  (tests): Use it.
2975         [build-shared, build-static]
2976         ($(addprefix $(objpfx),$(tests)),
2977         $(addprefix $(objpfx),$(librt-tests))):
2978         Consolidate individual dependencies.
2979         [build-bounded]
2980         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2981         Add dependencies.
2982         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2983         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2984         * misc/Makefile
2985         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2986         * rt/Makefile
2987         [build-shared, build-static]
2988         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2989         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2991 2000-08-17  Greg McGary  <greg@mcgary.org>
2993         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2994         * sysdeps/unix/make-syscalls.sh: Likewise.
2995         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2996         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2997         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2998         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2999         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3001 2000-08-17  Greg McGary  <greg@mcgary.org>
3003         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
3004         Wrap extern symbols in BP_SYM ().
3005         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3006         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3007         * sysdeps/i386/fpu/s_remquo.S: Likewise.
3008         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3009         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3010         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3011         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3012         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3013         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3014         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3016 2000-08-16  Andreas Schwab  <schwab@suse.de>
3018         * sysdeps/m68k/fpu/fegetexcept.c: New file.
3019         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
3020         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
3022 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3024         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
3025         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
3026         * elf/dl-support.c: Define _nl_nloaded.
3027         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
3028         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
3029         object to global list.
3030         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
3031         from _dl_loaded list.
3032         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3033         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
3034         number here.
3036         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
3037         unmask, exceptions.
3038         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
3039         exceptions.
3040         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
3042 2000-08-16  Andreas Jaeger  <aj@suse.de>
3044         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
3046 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
3048         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
3050 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3052         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
3053         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
3054         (sysdep_routines): Add oldgetrlimit64.
3055         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
3056         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3058         * include/link.h: Undo last patches.  Hurd now has stat64.
3059         * elf/Makefile: Likewise.
3060         * elf/dl-load.c: Likewise.
3061         * elf/dl-misc.c: Likewise.
3062         * elf/dl-profile.c: Likewise.
3063         * sysdeps/generic/sysd-link.h: Removed.
3064         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
3066         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
3067         thread event callback function.
3068         (__aio_notify_only): Use function above.
3069         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
3071 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
3073         * sysdeps/mach/hurd/lseek64.c: New file.
3075 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3077         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
3078         Remove typedefs.
3079         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
3080         typedefs.
3081         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
3082         typedefs.
3083         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
3085 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3087         * sysdeps/mach/hurd/xstatconv.c: New file.
3088         * sysdeps/mach/hurd/fxstat64.c: New file.
3089         * sysdeps/mach/hurd/lxstat64.c: New file.
3090         * sysdeps/mach/hurd/xstat64.c: New file.
3091         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
3093 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3095         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
3096         Initialize, needed for change in common symbol handling in newer
3097         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
3099 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3101         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
3102         * elf/constload2.c: Add destructor to unload constload3.
3104         * include/link.h: Include sysd-link.h.
3105         * sysdeps/generic/sysd-link.h: New file.
3106         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
3107         * elf/Makefile (distribute): Add sysd-link.h.
3108         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
3109         types and functions directly.
3110         * elf/dl-misc.c: Likewise.
3111         * elf/dl-profile.c: Likewise.
3113         * elf/loadfail.c (main): Close all successfully loaded objects.
3115         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
3116         free wd.
3117         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
3118         there is already one.
3120         * elf/dl-close.c: Pretty print.
3122 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
3124         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
3125         global (with file scope).  Add __libc_subfreeres function to free the
3126         string.
3127         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
3128         in ttyname function.
3130         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
3132         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
3134         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
3135         mapping them to /x5c and /x7e respectively.
3137         * locale/programs/ld-ctype.c: Add support for more definitions after
3138         copy statement.
3140 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
3142         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
3143         * sysdeps/unix/sysv/linux/kernel-features.h
3144         (__ASSUME_GETDENTS64_SYSCALL): Define.
3145         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
3146         syscall if available to get d_type fields.
3147         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
3148         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
3149         __lxstat64): Export at GLIBC_2.2.
3150         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
3151         Likewise.
3152         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
3153         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
3154         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
3155         getdirentries64, versionsort64): Remove.
3156         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
3157         getdirentries64, versionsort64): Remove.
3159 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3161         * posix/Makefile: Remove rules to generate glob package.
3163         * posix/Makefile (tests): Add tst-regexloc.
3164         (tst-regexloc-ENV): Add LOCPATH.
3165         * posix/tst-regexloc.c: New file.
3167 2000-08-12  Andreas Jaeger  <aj@suse.de>
3169         * include/features.h (__STDC_ISO_10646__): Define.
3170         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
3172 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3174         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
3176         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
3177         for revision 6 and up).
3179         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
3180         including <time.h>.
3181         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
3182         to get definitions of just these types.
3184         * signal/signal.h: Define thread signal handling functions also for
3185         POSIX95.
3187         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
3188         POSIX95.
3189         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
3190         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
3191         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3192         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
3194         * sysvipc/sys/shm.h: Define pid_t for XPG.
3196         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
3197         they are not anymore required here.
3199         * wcsmbs/wchar.h: Make the various wide char string and stream
3200         functions available for the respective XPG versions.
3202         * nss/Makefile: Remove rules to build and distribute nss_db.
3204         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
3205         * sysdeps/generic/scandir64.c: Likewise.
3206         * sysdeps/generic/versionsort64.c: Likewise.
3208 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3209             Benjamin Koznik  <bkoz@redhat.com>
3211         * libio/fileops.c: Merge with libstdc++-v3.
3212         * libio/genops.c: Likewise.
3213         * libio/iofclose.c: Likewise.
3214         * libio/iofopen.c: Likewise.
3215         * libio/iofwide.c: Likewise.
3216         * libio/libio.h: Likewise.
3217         * libio/libioP.h: Likewise.
3218         * libio/stdfiles.c: Likewise.
3219         * libio/stdio.c: Likewise.
3220         * libio/wfileops.c: Likewise.
3221         * libio/wgenops.c: Likewise.
3223         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
3225 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3227         * locale/programs/localedef.c: Implement --prefix option to allow
3228         writing in standard places of alternative install directories.
3230         * posix/regex.c (compile_range): Implement collation sequence
3231         handling for glibc.  Use simple character ordering otherwise and
3232         not strcoll.
3234 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
3236         * sysdeps/generic/scandir64.c: Include <dirent.h>.
3238 2000-08-12  Andreas Jaeger  <aj@suse.de>
3240         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
3241         __USE_FILE_OFFSET64 correctly for locking.
3242         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3244 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
3246         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3247         Define for 2.4.1 on sparc as well.
3248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
3249         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3250         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
3251         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
3253 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3255         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
3256         defined.
3258 2000-08-12  Andreas Jaeger  <aj@suse.de>
3260         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
3261         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
3263         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
3264         mips2 for assembler.
3266         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
3267         if fnctl64 is not available for F_*LK*64.
3269         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
3271 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3273         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3274         Define for 2.4.1 on x86.
3275         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
3276         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
3277         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3279         * dirent/dirent.h: Define DT_WHT.
3281         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
3282         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
3283         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
3284         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
3285         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
3286         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
3288 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
3290         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
3291         lookup, pass pointer to array with NULL pointer [PR libc/1858].
3292         * inet/Makefile (tests): Add tst-gethnm.
3293         * inet/tst-gethnm.c: New file.
3295         * rt/aio_cancel.c: If canceling a specific request which is running
3296         *really* do nothing.
3297         * rt/aio_misc.h: Add `done' to states of a request.
3298         * rt/aio_misc.c: Add several tests for the correct state.
3299         Simplify request table memory handling.
3301 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
3303         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
3304         * dirent/scandir64.c: Move...
3305         * sysdeps/generic/scandir64.c: ...here.
3306         * dirent/alphasort64.c: Move...
3307         * sysdeps/generic/alphasort64.c: ...here.
3308         * dirent/versionsort64.c: Move...
3309         * sysdeps/generic/versionsort64.c: ...here.
3310         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
3311         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
3312         Export symbols at GLIBC_2.2.
3313         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
3314         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
3315         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
3316         __versionsort64): Add prototypes.
3317         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
3318         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
3319         unused prototype.
3320         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
3321         and GLIBC_2.2.
3322         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
3323         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
3324         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
3325         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
3326         __u_quad_t.
3327         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
3328         Adjust for kernel-2.4.0-test6 layout.
3329         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
3330         GLIBC_2.1 and GLIBC_2.2.
3331         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
3332         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
3333         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
3334         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
3335         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
3336         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
3337         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
3338         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
3339         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
3340         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
3341         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
3342         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
3343         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
3344         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
3345         __u_quad_t.
3346         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
3347         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
3348         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
3349         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
3350         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
3351         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
3352         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
3353         __u_quad_t.
3354         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
3355         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
3356         Define.
3357         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
3358         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
3359         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
3360         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
3361         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
3362         Define.
3363         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
3364         alpha/readdir.c.
3365         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
3366         alpha/readdir_r.c
3367         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
3368         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
3369         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
3370         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
3371         st_ino from __st_ino.
3372         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3373         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3374         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
3375         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
3376         set __st_ino in addition to st_ino.
3377         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
3378         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
3379         __old_getdents64 as well.
3380         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
3381         getdirentries64 and old_getdirentries64 as well.
3382         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
3383         __GETDENTS): Define.
3384         (GETDENTS64): Remove.
3385         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
3386         Define.
3387         (GETDENTS64): Remove.
3388         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
3389         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
3390         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
3391         as well.
3392         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
3393         __old_readdir64_r as well.
3394         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3395         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
3397 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
3399         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
3400         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
3401         define of the kernel.
3402         Add missing __SEG_PSTKOVF definition.
3403         Adjust the padding of struct siginfo and struct sigevent to
3404         match the fact that sigval_t is 64 bit.
3406 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
3408         * timezone/zic.c: Update from tzcode2000f.
3409         * timezone/australasia: Update from tzdata2000f.
3410         * timezone/europe: Likewise.
3411         * timezone/southamerica: Likewise.
3412         * timezone/yearistype: Likewise.
3414 2000-08-10  Andreas Jaeger  <aj@suse.de>
3416         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
3417         stat with current MIPS kernel.
3419 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
3421         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
3422         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
3423         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
3424         Remove the junk that's only relevant in the Linux kernel itself.
3425         Add a warning saying that this file is now obsolete, and include
3426         <sys/procfs.h>.
3427         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
3428         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
3429         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
3430         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
3431         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
3432         and add the notice that the file is primarily there for GDB.
3433         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
3435 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3437         * time/tzfile.c (__tzfile_compute): __tzstring zones
3438         from zone_names.
3440 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3442         * resolv/resolv.h (__res_state): Surround prototype with
3443         __BEGIN_DECLS/__END_DECLS.
3444         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3446 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3448         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3449         Make independant of asm/resource.h from the Linux kernel.
3451 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3453         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3455 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3457         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3458         * locale/Makefile (locale-CPPFLAGS): Likewise.
3460 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3462         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3463         for AMD processors.
3465 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3467         * misc/Versions (mincore): Export at GLIBC_2.2.
3469 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3471         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3473 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3475         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3476         socketpair.  Made socketpair a weak alias.
3477         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3478         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3479         conforming, but fall back on the old protocol if the socket server
3480         doesn't support it.
3481         * include/sys/socket.h: Add prototype for __socketpair.
3483 2000-08-09  Andreas Schwab  <schwab@suse.de>
3485         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3486         long long modifier is seen.
3488         * elf/nodelete.c (do_test): Remove reference to undefined member
3489         sa_restorer.
3490         * rt/tst-aio4.c (do_test): Likewise.
3492         * configure.in: Add `-lm' when checking for libgd.
3493         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3494         linking.
3496 2000-08-09  Andreas Jaeger  <aj@suse.de>
3498         * configure.in: Change required make versions.
3500         * manual/install.texi (Tools for Compilation): Document required
3501         make version.
3502         (Supported Configurations): Update list of supported
3503         configurations.
3505 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3507         * locale/linereader.c (get_string): Don't print an error is a string
3508         contains an unknown character.
3510 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3512         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3513         (new_symbol): Take new parameters with name of the symbol.
3514         Adjust callers.
3515         (handle_ellipsis): Don't only allow character symbols.
3516         (collate_read): Allow string of collating elements contain invalid
3517         characters; ignore entry in this case.
3518         Handle ellipsis of collating symbols before first order_start.
3519         Allow ellipsis in state 0.
3521 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3523         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3524         error message.
3525         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3527 2000-08-04  Greg McGary  <greg@mcgary.org>
3529         * posix/regex.c (SET_HIGH_BOUND): New macro.
3530         (MOVE_BUFFER_POINTER): Use it.
3531         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3532         (EXTEND_BUFFER): Use it.
3534 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3536         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3537         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3538         _wide_data but from _IO_FILE directly.
3539         * libio/iofclose.c: Likewise.
3540         * libio/wfileops.c: Likewise.
3542         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3543         * libio/libioP.h: Change prototypes.
3545 2000-08-03  Greg McGary  <greg@mcgary.org>
3547         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3548         frame pointer early so that we save caller's frame pointer.
3549         * sysdeps/i386/elf/setjmp.S: Likewise.
3551         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3552         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3554         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3555         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3556         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3558 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3560         * iconvdata/big5.c: Updated.
3561         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3563 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3565         * Makeconfig (all-subdirs): Add conform.
3566         * conform/Makefile: Include ../Rules.
3568         * Makefile (README): Add rules to generate here as well.
3570 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3572         * version.h (VERSION): Bump to 2.1.92.
3574         * sysdeps/ia64/Dist: Add _mcount.S.
3576         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3578         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3580         * elf/Makefile (distribute): Add missing modules.
3582         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3584         * posix/regex.c (compile_range): Translate range start and end
3585         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3587         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3588         asm/resource.h.
3590         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3592 2000-08-02  Andreas Jaeger  <aj@suse.de>
3594         * elf/elf.h (EM_S390): Added.
3595         (R_390_*): New relocs for S390.
3597         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3598         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3599         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3600         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3601         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3602         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3603         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3604         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3605         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3606         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3607         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3608         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3609         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3610         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3611         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3612         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3613         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3614         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3615         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3616         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3617         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3618         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3619         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3620         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3621         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3622         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3623         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3624         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3625         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3626         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3627         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3628         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3629         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3630         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3631         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3632         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3633         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3634         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3635         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3636         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3637         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3638         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3639         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3640         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3641         * sysdeps/s390/sysdep.h: New file.
3642         * sysdeps/s390/sys/ucontext.h: New file.
3643         * sysdeps/s390/sub_n.S: New file.
3644         * sysdeps/s390/strncpy.S: New file.
3645         * sysdeps/s390/strcpy.S: New file.
3646         * sysdeps/s390/stackinfo.h: New file.
3647         * sysdeps/s390/setjmp.S: New file.
3648         * sysdeps/s390/s390-mcount.S: New file.
3649         * sysdeps/s390/mul_1.S: New file.
3650         * sysdeps/s390/memusage.h: New file.
3651         * sysdeps/s390/memset.S: New file.
3652         * sysdeps/s390/memcpy.S: New file.
3653         * sysdeps/s390/memchr.S: New file.
3654         * sysdeps/s390/machine-gmon.h: New file.
3655         * sysdeps/s390/ldbl2mpn.c: New file.
3656         * sysdeps/s390/gmp-mparam.h: New file.
3657         * sysdeps/s390/fpu/fpu_control.h: New file.
3658         * sysdeps/s390/fpu/fesetround.c: New file.
3659         * sysdeps/s390/fpu/fegetround.c: New file.
3660         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3661         * sysdeps/s390/fpu/bits/fenv.h: New file.
3662         * sysdeps/s390/ffs.c: New file.
3663         * sysdeps/s390/elf/start.S: New file.
3664         * sysdeps/s390/elf/setjmp.S: New file.
3665         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3666         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3667         * sysdeps/s390/dl-machine.h: New file.
3668         * sysdeps/s390/bzero.S: New file.
3669         * sysdeps/s390/bsd-setjmp.S: New file.
3670         * sysdeps/s390/bsd-_setjmp.S: New file.
3671         * sysdeps/s390/bits/string.h: New file.
3672         * sysdeps/s390/bits/setjmp.h: New file.
3673         * sysdeps/s390/bits/huge_val.h: New file.
3674         * sysdeps/s390/bits/endian.h: New file.
3675         * sysdeps/s390/bits/byteswap.h: New file.
3676         * sysdeps/s390/bcopy.S: New file.
3677         * sysdeps/s390/backtrace.c: New file.
3678         * sysdeps/s390/atomicity.h: New file.
3679         * sysdeps/s390/asm-syntax.h: New file.
3680         * sysdeps/s390/addmul_1.S: New file.
3681         * sysdeps/s390/add_n.S: New file.
3682         * sysdeps/s390/abort-instr.h: New file.
3683         * sysdeps/s390/__longjmp.c: New file.
3684         * sysdeps/s390/Makefile: New file.
3685         * sysdeps/s390/Implies: New file.
3686         * sysdeps/s390/Dist: New file.
3687         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3689 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3691         Remove incompatible IPv6 extension of RPC.
3692         * sunrpc/Makefile: Undo changes.
3693         * sunrpc/rpc_main.c: Likewise.
3694         * sunrpc/rpc/clnt.h: Likewise.
3695         * sunrpc/rpc/svc.h: Likewise.
3696         * sunrpc/bindrsvprt6.c: Removed.
3697         * sunrpc/clnt_tcp6.c: Removed.
3698         * sunrpc/clnt_udp6.c: Removed.
3699         * sunrpc/svc_tcp6.c: Removed.
3700         * sunrpc/svc_udp6.c: Removed.
3702         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3703         dgettext, and dcgettetxt.
3705         * intl/locale.alias: Update japanese aliases.
3707         * sysdeps/ia64/bits/byteswap.h: New file.
3708         Patch by Dan Pop <Dan.Pop@cern.ch>.
3710         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3711         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3713 2000-07-13  H.J. Lu  <hjl@gnu.org>
3715         * posix/regex.c (re_max_failures): Set to 4000.
3717 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3719         * gnulib/Makefile (tests): Add tst-gcc.
3720         * gnulib/tst-gcc.c: New file.
3722         * assert/Makefile (routines): Add __assert.
3723         * assert/Versions: Export __assert for glibc 2.2.
3724         * assert/__assert.c: New file.
3725         * assert/assert.h: Declare __assert.
3727 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3729         * locale/localeinfo.h (_ISCTYPE): New macro.
3730         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3731         LC_CTYPE locale format.
3732         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3733         (ctype_output): Output class_b[nr] right before class_3level[nr].
3734         (allocate_arrays): Fill class_b, similarly to class_3level.
3736 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3737             Joseph S. Myers  <jsm28@cam.ac.uk>
3739         * math/tgmath.h: Make standard compliant.  Don't ask how.
3741 2000-07-04  H.J. Lu  <hjl@gnu.org>
3743         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3744         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3745         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3747 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3749         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3750         (__USE_LARGEFILE): Add an explanation.
3751         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3752         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3754 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3756         * libio/Makefile: Enable exception handling for genops, wgenops,
3757         fileops, and wfileops.
3759 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3761         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3762         acount that elf/rtld's main program might remove some varibales
3763         from the environment if we're trying to be secure.  Move the Hurd
3764         startup data if necessary, or, if we there is no startup data,
3765         make sure the magical convention that ARGV[0] is stored just after
3766         the environment list.
3768 2000-08-01  Philip Blundell  <philb@gnu.org>
3770         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3771         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3772         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3773         oldsetrlimit for GLIBC_2.0.
3775 2000-08-01  Andreas Jaeger  <aj@suse.de>
3777         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3778         (LINE_PARSER): Allow any number of spaces between ip address and
3779         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3781         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3783         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3784         constants in.
3786         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3787         _nss_nisplus_getipnodebyname_r.
3789         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3790         now, getipnodebyname is deprecated.
3791         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3792         Likewise.
3794         * inet/Makefile (routines): Don't build getipnodebyaddr and
3795         friends.
3797         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3799         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3801         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3803         * wctype/Makefile (distribute): Add wchar-lookup.h.
3805         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3807         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3809 2000-08-01  Andreas Schwab  <schwab@suse.de>
3811         * Make-dist (dist): Resolve `..' in file names.
3813 2000-08-01  Andreas Jaeger  <aj@suse.de>
3815         * stdio-common/Makefile (distribute): Remove removed files, add
3816         new files.
3818         * Makefile (distribute): Remove include/db_185.h and db.h.
3820         * include/db_185.h: Remove, it's not needed anymore.
3821         * include/db.h: Likewise.
3823 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3825         * inet/Makefile (tests): Remove tst-ipnode.
3826         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3827         now.
3829 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3831         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3832         endp statements have already been added.
3834 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3836         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3837         <sysdeps/ia64/sysdep.h>.
3839         * sysdeps/ia64/_mcount.S: New file.
3841         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3842         __gmon_start__.  Fix up extraneous whitespace.
3844 2000-01-12  H.J. Lu  <hjl@gnu.org>
3846         * sysdeps/ia64/elf/initfini.c: New file.
3848 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3850         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3851         dependency between branch and ar.pfs write.
3853 2000-07-31  H.J. Lu  <hjl@gnu.org>
3855         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3856         handle the wchar_t array.
3858 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3860         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3861         10646 which are not yet assigned.
3862         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3864 2000-07-31  Andreas Jaeger  <aj@suse.de>
3866         * inet/Versions: Remove getipnodebyaddr and friends from
3867         GLIBC_2.2.
3869         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3871 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3873         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3874         ch >= 0x81 && ch2 < 0x40 as invalid.
3876 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3878         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3879         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3881 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3883         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3884         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3886 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3888         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3889         0xb8.
3890         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3892 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3894         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3896 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3898         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3899         (from_ucs4): Change values of U+00A4 and U+00ED.
3900         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3902 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3904         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3905         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3907 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3909         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3910         * iconvdata/isiri-3342.h: New file.
3911         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3912         treat 0x80 as a gap.
3914 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3916         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3917         (utf8_encode): Use simple shifts instead.  Fix return value.
3919 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3921         * timezone/private.h: Update from tzcode2000e.
3922         * timezone/asia: Update from tzdata2000e.
3923         * timezone/australasia: Likewise.
3924         * timezone/europe: Likewise.
3925         * timezone/northamerica: Likewise.
3926         * timezone/zone-tab: Likewise.
3928 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3930         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3931         the order of struct sigaltstack members is different.
3933 2000-07-26  Philip Blundell  <philb@gnu.org>
3935         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3937 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3939         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3940         * locale/programs/ld-ctype.c: Adjust for this.
3942         * locale/programs/ld-collate.c: Add more alignment checks.
3943         * locale/string/strcoll.c: Likewise.
3945 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3947         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3948         outside USE_IN_LIBIO block.
3950 2000-07-26  Philip Blundell  <philb@gnu.org>
3952         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3953         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3955 2000-07-28  Philip Blundell  <philb@gnu.org>
3957         * math/test-fpucw.c: Ignore reserved bits in control word.
3959 2000-07-28  Philip Blundell  <philb@gnu.org>
3961         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3962         (ret): Redefine to PSEUDO_RET.
3963         (PSEUDO): Remove jump to syscall_error.
3965 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3967         * resolv/README: Add some information about using the resolver in
3968         multi-threaded code and with C++.  Spelling fixes.
3970 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3972         * resolv/resolv.h (struct __sockaddr_in): Remove.
3973         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3975 2000-07-29  Greg McGary  <greg@mcgary.org>
3977         * Rules (test-bp-inputs, make-test-out): New variables.
3978         ($(objpfx)%-bp.out): New rule.
3979         ($(objpfx)%.out): Rewrite in terms of new variables.
3981         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3982         internal function that uses vtable.
3983         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3984         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3986         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3987         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3988         (chunk_align): Likewise.
3990         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3991         in a way that conforms to decl, and avoids spurious bounds violation.
3993         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3994         * sysdeps/generic/frame.h: Likewise.
3995         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3996         around return value.
3997         (__backtrace): Qualify frame-pointer chain and return address
3998         pointers as __unbounded.  Wrap bounds around variable `current'.
3999         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
4000         around return value.
4001         (catch_segfault): Qualify frame-pointer chain and return address
4002         pointers as __unbounded.  Wrap bounds around variable `current'.
4003         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
4004         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
4005         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
4006         __unbounded.
4007         (__backtrace): Qualify frame-pointer chain and return address
4008         pointers as __unbounded.  Wrap bounds around variable `current'.
4010         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
4011         * sysdeps/i386/mul_1.S: Likewise.
4012         * sysdeps/i386/submul_1.S: Likewise.
4013         * sysdeps/i386/i586/addmul_1.S: Likewise.
4014         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
4015         * sysdeps/i386/i586/submul_1.S: Likewise.
4017 2000-07-27  Andreas Jaeger  <aj@suse.de>
4019         * libio/Depend: New file, libio needs localedata for tests.
4020         * posix/Depend: Likewise.
4022 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
4024         * stdio-common/_i18n_itoa.c: Removed.
4025         * stdio-common/_i18n_itoa.h: Removed.
4026         * stdio-common/_i18n_itowa.c: Removed.
4027         * stdio-common/_i18n_itowa.h: Removed.
4028         * stdio-common/_i18n_number.h: New file.
4029         * stdio-common/Depend: New file.
4030         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
4031         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
4032         printing.  Change printing of numbers with locale specific digits to
4033         use new code in _i18n_number.h.
4034         * stdio-common/Makefile (routines): Remove _i18n_itoa and
4035         _i18n_itowa.
4037         * stdio-common/bug13.c: Improve messages.
4039         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
4040         (set_class_defaults): Always search also for Uxxxx names.
4041         Detect insufficient number of outdigits.
4043         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
4045 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4047         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
4048         _NL_CTYPE_MAP_NAMES.
4049         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
4050         * wctype/wcfuncs.c (towlower, towupper): Use them.
4051         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
4052         * wctype/wctrans.c (wctrans): Likewise.
4053         * wctype/wctrans_l.c (__wctrans_l): Likewise.
4055 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4057         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
4058         Use the optimized version of this function outside glibc as well.
4060 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
4062         * locale/indigits.h (indigit_value): Correct.
4063         * locale/indigitswc.h (indigitwc_value): Correct.
4064         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
4065         conversion, add GROUP checking for it, fix GROUP number
4066         conversion with strlen(thousands) > 1.
4067         Honour width correctly in the presence of floating
4068         decimal points and thousands separators.
4069         * stdio-common/tst-sscanf.c: New test.
4070         * stdio-common/Makefile: Add it to tests.
4071         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
4072         thousands separators and group argument is non-zero.
4074 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4076         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
4077         starts at GLIBC_2.2.
4079 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4081         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
4082         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
4083         _test_and_set.
4084         (headers): Add sys/tas.h.
4085         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
4086         GLIBC_2.2 from libc.
4087         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
4088         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
4089         _test_and_set.
4091 2000-07-28  Andreas Jaeger  <aj@suse.de>
4093         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
4095         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
4096         ($(objpfx)tst-dladdr.out): new.
4097         (tests): Add tst-dladdr.
4098         ($(objpfx)glrefmain): Use libdl.
4100         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
4101         <vs@caldera.de>.
4103 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4105         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
4106         ftruncate(64) calls.
4108 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4110         * intl/tst-translit.c: Include string.h to get prototype for
4111         strcmp().
4113 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4115         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
4116         name and add weak alias for __fork.
4118         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
4119         & pwrite to use __libc_<name> as strong names instead of
4120         __syscall_<name>.
4122         * include/sched.h: Add clone2 prototype.
4124 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
4126         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
4127         procedure name twice.
4129 2000-07-27  Philip Blundell  <philb@gnu.org>
4131         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
4133 2000-07-27  Andreas Jaeger  <aj@suse.de>
4135         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
4136         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
4137         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4138         Reported by Andi Kleen <ak@suse.de>.
4140         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
4141         (do_wait): Test requests with aio_return64.
4142         (do_test): Change callers of do_wait.
4144 2000-07-26  Andreas Jaeger  <aj@suse.de>
4146         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
4147         (do_wait): Test requests with aio_return.
4148         (do_test): Change callers of do_wait.
4150 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
4152         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
4153         from request list.  Don't do the list handling here, call
4154         __aio_remove_request.
4155         * rt/aio_misc.h: Add prototype for __aio_remove_request.
4156         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
4157         request might already be processed.  Don't do the list handling
4158         here, call __aio_remove_request.
4160         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
4161         LIO_DSYNC.
4163         * rt/aio_misc.c: Add comment explaining why writer memory barriers
4164         are missing.
4166 2000-07-27  Greg McGary  <greg@mcgary.org>
4168         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
4169         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
4170         in union init.  Pass zero for ignored semnum arg to semctl.
4171         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
4173 2000-07-26  Greg McGary  <greg@mcgary.org>
4175         * sysdeps/gnu/bits/msq.h: Qualify kernel's
4176         data structure pointers as __unbounded.
4177         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
4178         * sysdeps/generic/bp-semctl.h: New file.
4179         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
4180         pointers as __unbounded.  Check bounds of syscall args.
4181         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4182         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
4183         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4184         * sysdeps/unix/sysv/linux/semop.c: Likewise.
4185         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
4186         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4187         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
4188         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4189         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4190         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4191         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
4192         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
4193         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
4194         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
4195         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
4196         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
4198 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4200         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
4201         by default.
4202         * locale/C-ctype.c: Likewise.
4203         * wcsmbs/wcsmbsload.c: Likewise.
4205 2000-07-26  Greg McGary  <greg@mcgary.org>
4207         * Makeconfig (+link-bounded, link-libc-bounded,
4208         link-extra-libs-bounded): New variables.
4209         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
4210         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
4211         * Rules (tests-bp.out): New variable.
4212         (tests): Conditionally add BP tests.
4213         (binaries-bounded): Add variable and associated rule.
4214         * csu/Makefile [build-bounded] (extra-objs, install-lib):
4215         Move conditional stuff after place where condition is defined.
4217         * malloc/malloc.c (bp-checks.h): Add #include.
4218         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
4219         (_bin_at): Add unbounded version of bin_at.
4220         (IAV, chunk_alloc): Use unbounded _bin_at.
4221         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
4222         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
4223         Wrap BOUNDED_N around return value.
4224         (chunk_realloc): Adjust oldsize once.
4226         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
4227         (__ubp_memchr): Add correct decl.
4228         (_CHECK_STRING): Use __ubp_memchr.
4229         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4230         New alias for unbounded-pointer __memchr.
4231         * sysdeps/i386/memchr.S: Likewise.
4232         * sysdeps/ia64/memchr.S: Likewise.
4233         * sysdeps/m68k/memchr.S: Likewise.
4234         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4235         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4236         * sysdeps/vax/memchr.s: Likewise.
4238         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
4239         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
4240         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
4241         * sysdeps/i386/i686/strtok.S: Likewise.
4242         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
4243         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
4245         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
4246         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
4248         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
4249         bounds of copy_result to mount_proc.
4251 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4253         * wctype/wctype.h (__wctrans_l): New declaration.
4254         * wctype/wctrans_l.c: New file.
4255         * wctype/Makefile (routines): Add wctrans_l.
4257 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4259         * posix/fnmatch_loop.c: Fixes for use outside glibc.
4260         Patch by MacGyver <macgyver@tos.net>.
4262 2000-07-26  Andreas Jaeger  <aj@suse.de>
4264         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
4265         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
4266         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
4268         * rt/tst-aio.c (test_file): Fix typo.
4269         * rt/tst-aio64.c (test_file): Likewise.
4271         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
4272         * rt/Makefile: Add rules to build and run tst-aio3.
4274         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
4275         it's not needed and confuses only.
4277 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4279         * resolv/res_init.c: Add support for nameserver communication with
4280         IPv6.
4281         * resolv/res_send.c: Likewise.
4282         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
4283         in nsaddrs field.
4284         Patch by <venaas@nvg.ntnu.no>.
4286 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4288         * locale/programs/ld-ctype.c (wctype_table_get): New function.
4289         (wcwidth_table_get): New function.
4290         (wcwidth_table_add): Call it.
4291         (wctrans_table_get): New function.
4292         (wctrans_table_add): Call it.
4294 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4296         * rt/lio_listio.c (lio_listio): Always disable individual
4297         notification.
4298         * rt/Makefile: Add rules to build and run tst-aio2.
4299         * rt/tst-aio2.c: New file.
4301         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
4302         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
4304 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4306         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
4307         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
4308         leading and trailing spaces from host, user and domain name.
4310 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
4312         * csu/defs.awk: Add support for need_endp.
4314 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4316         * resolv/resolv.h: Remove __P from res_send_qhook and
4317         res_send_rhook typedefs.
4319 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4321         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
4323 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4325         * iconv/gconv_builtin.h: Add WCHAR_T alias.
4327 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4329         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
4330         calling thread, set the cancellation flag and return success
4331         instead of EINTR.
4333 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4335         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
4336         * libio/tst-widetext.c: New file.
4337         * libio/tst-widetext.input: New file.
4339         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
4341         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
4342         empty external buffer correctly.
4344 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4346         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
4347         __STRING(entry) and not #entry.
4348         (_RTLD_EPILOGUE): Likewise.
4349         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4351 2000-07-25  Andreas Jaeger  <aj@suse.de>
4353         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
4354         according to changes in test program, run also with static only
4355         builds.
4356         ($(objpfx)tst-printf.out): Likewise.
4358         * stdio-common/tst-unbputc.sh: Likewise.
4359         * stdio-common/tst-printf.sh: Likewise.
4361 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4363         * libio/wfileops.c (_IO_wdo_write): Correct return value.
4365         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
4366         loop.
4368         * libio/fileops.c: Pretty print.
4370 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
4372         * wctype/wchar-lookup.h: New file.
4373         * wctype/iswctype.c: Include "wchar-lookup.h".
4374         (__iswctype): Support alternate locale format with 3-level tables.
4375         * wctype/iswctype_l.c (__iswctype_l): Likewise.
4376         * wctype/towctrans.c (__towctrans): Likewise.
4377         * wctype/towctrans_l.c (__towctrans_l): Likewise.
4378         * wctype/wcfuncs.c: Include "wchar-lookup.h".
4379         (__ctype32_wctype, __ctype32_wctrans): Declare external.
4380         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
4381         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
4382         __iswxdigit, towlower, towupper): Support alternate locale format
4383         with 3-level tables.
4384         * wctype/wcextra.c (iswblank): Likewise.
4385         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
4386         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4387         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4388         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
4389         format with 3-level tables.
4390         * wctype/wcextra_l.c (__iswblank_l): Likewise.
4391         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
4392         format, return a 3-level table pointer.
4393         * wctype/wctype_l.c (__wctype_l): Likewise.
4394         * wctype/wctrans.c (wctrans): Likewise.
4395         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
4396         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
4397         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
4398         (iswctype): Remove macro definition.
4399         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
4400         (internal_wcwidth): Support alternate locale format with 3-level
4401         tables.
4402         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4403         New nl_items.
4404         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4405         Define them as being type "word".
4406         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
4407         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
4408         __ctype32_width): New exported variables.
4409         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
4410         alternate locale format. Don't initialize __ctype_names and
4411         __ctype_width in the alternate locale format.
4412         * locale/programs/localedef.h (oldstyle_tables): New declaration.
4413         * locale/programs/localedef.c (oldstyle_tables): New variable.
4414         (OPT_OLDSTYLE): New macro.
4415         (options): Add --old-style option.
4416         (parse_opt): Handle --old-style option.
4417         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
4418         map_offset, class_3level, map_3level, width_3level members.
4419         (ctype_output): Support for alternate locale format: Computation of
4420         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
4421         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
4422         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
4423         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
4424         now contain both class and map tables.
4425         (struct wctype_table): New type.
4426         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
4427         functions.
4428         (struct wcwidth_table): New type.
4429         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
4430         functions.
4431         (struct wctrans_table): New type.
4432         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
4433         functions.
4434         (allocate_arrays): Support for alternate locale format: Set
4435         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
4436         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
4437         to the first 256 characters. Compute ctype->map_3level. Set
4438         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
4439         instead of ctype->width.
4441 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4443         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4444         string functions.
4446 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4448         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4449         in wide characters, not bytes.
4450         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4451         into file.
4453 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4455         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4456         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4457         LC_MEASUREMENT, LC_IDENTIFICATION.
4459         * locale/xlocale.h (struct __locale_struct): Increase size of
4460         __locales array.
4461         * locale/duplocale.c (__duplocale): Copy newly added categories as
4462         well.
4463         * locale/freelocale.c (__freelocale): Free newly added categories.
4464         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4465         If a base is given, use it, don't simply return it.
4467 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4469         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4470         variables, copied_key and copied_salt, instead of boolean variables.
4472 2000-07-24  Andreas Jaeger  <aj@suse.de>
4474         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4475         check for offset.
4477         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4478         initgroups_function, adopted prototype for change from 2000-07-23.
4479         (initgroups): Follow type change.
4481         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4482         & PAGE_MASK case, reformat.
4484         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4485         from stdin and setup environment.
4487 2000-07-24  Andreas Schwab  <schwab@suse.de>
4489         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4491 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4493         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4494         more.  Patch by scarlet@mit.edu [PR libc/1799].
4496         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4497         [PR libc/1792].
4499         * argp/argp-parse.c (parser_finalize): Reverse order in which
4500         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4502         * grp/initgroups.c (initgroups): Don't limit the possible number
4503         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4504         the setgroups call while the call fails and descrease the number
4505         of groups each round.
4506         The name of the initgroups function in the NSS modules changed.
4507         (compat_call): Adapt for dynamic resizing.
4508         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4509         Implement dynamic resizing.
4510         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4511         Likewise.
4512         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4513         * hesiod/Versions: Change exported interface name.
4514         * nis/Versions: Change exported interface name.
4516 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4518         * locale/iso-639.def: Some errors corrected.
4519         Patch by Keld Simonsen.
4521         * include/limits.h: Update non-gcc portion.
4522         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4524 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4526         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4527         program's data space, reallocate only the space that was just
4528         deallocated to release its backing space.
4530 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4532         * stdio-common/vfprintf.c (process_string_arg): For wide character
4533         version, handle precision also correctly.
4535         * nss/nss_files/files-hosts.c: Correct problem with three or more
4536         entries with the same name.
4538         * nss/nss_files/files-hosts.c: Implement multi handling.
4539         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4541 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4543         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4544         strcasecmp.
4546         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4547         * malloc/Makefile: Likewise.
4548         * malloc/tst-mtrace.sh: Likewise.
4549         * posix/Makefile: Likewise.
4550         * posix/globtest.sh: Likewise.
4551         * posix/wordexp-tst.sh: Likewise.
4552         * string/Makefile: Likewise.
4554 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4556         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4557         size instead of LC_ALL to take into account the new locale
4558         categories.
4560 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4562         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4563         remainders of hash table.
4564         * locale/categories.def: Remove remainders of transliteration
4565         hash table.
4566         * locale/langinfo.h: Likewise.
4567         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4568         transliteration tables.
4570         * locale/gen-translit.pl: New file.
4571         * locale/C-translit.h.in: New file.
4572         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4573         data pointers with data from this file.
4574         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4575         and gen-translit.pl.
4576         Add rule to generate C-translit.h.
4577         * intl/tst-translit.c (main): Update for now performed
4578         transliteration.
4580         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4581         (it's no input error).
4582         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4583         * stdio-common/scanf12.c: Correct expected result for first scanf.
4585         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4586         of multibyte character strings in %s format with precision.
4588 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4590         * locale/programs/ld-collate.c (collate_read): Allow collating
4591         symbols and elements be named in reorder-after instructions.
4592         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4594         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4595         duplication with generated name, not the name of the first
4596         character.
4597         Patch by Yong Li <yong.li@asu.edu>.
4599         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4600         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4602 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4604         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4605         allocations only if a non-main arena cannot be extended.
4607 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4609         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4610         in DF_1_NODEFLIB handling.
4612 2000-07-21  Andreas Jaeger  <aj@suse.de>
4614         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4615         own rule.
4617         * libio/fwide.c: Include <wchar.h> for prototype.
4619 2000-07-21  Greg McGary  <greg@mcgary.org>
4621         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4622         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4623         Define in terms of chunk_at_offset.
4624         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4625         (next_bin, prev_bin): offset by size of real array elements.
4626         (chunk_align): Make `m' a scalar, since that's how it's used.
4628 2000-07-21  Greg McGary  <greg@mcgary.org>
4630         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4631         UNCHECK_BOUNDS.
4632         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4633         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4634         Wrap bounds around argv & envp and each of their string members.
4635         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4636         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4637         symbol in BP_SYM ().  Discard bounds of address arg.
4638         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4639         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4640         Discard bounds on address arg, add bounds to return value.
4642 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4644         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4645         * elf/filter.c: New file.
4646         * elf/filtmod1.c: New file.
4647         * elf/filtmod2.c: New file.
4649         * elf/rtld.c: Define _dl_bind_not variable.
4650         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4651         * elf/dl-support.c: Likewise.
4652         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4653         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4654         _dl_bind_not.
4655         (profile_fixup): Likewise.
4657         * libio/Makefile (routines): Add fwide.
4658         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4659         fwide now.  Internal calls to _IO_fwide must do locking themselves
4660         or don't need locking.
4661         * libio/fwide.c: New file.
4663         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4665         * elf/Makefile: Add no modules for nodelete test.
4666         * elf/nodelmod3.c: New file.
4667         * elf/nodelmod4.c: New file.
4668         * elf/nodelete.c: Also test case where dependency of dlopen() object
4669         is marked nodelete.
4671         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4672         * elf/nodlopen.c: New file.
4673         * elf/nodlopenmod.c: New file.
4674         * include/dlfcn.h: Define __RTLD_DLOPEN.
4675         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4676         and this is a dlopen() call, do not load the binary.
4677         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4678         * dlfcn/dlopenold.c: Likewise.
4679         * configure.in: Add test for -z nodelete option.
4680         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4682 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4684         Make Hesiod NSS module thread-safe.
4686         * hesiod/README.hesiod: Update.
4688         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4689         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4690         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4691         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4692         hesiod-proto.
4693         * hesiod/nss_hesiod/hesiod-init.c: New file.
4694         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4695         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4696         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4697         * hesiod/nss_hesiod/hesiod-service.c
4698         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4699         looking up services by port number.
4700         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4702         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4703         * hesiod/hesiod.h: Likewise.
4704         * hesiod/hesiod_p.h: Likewise.
4706 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4708         Fix problems with `struct __res_state' getting too big.
4709         * resolv/resolv.h (struct __sockaddr_in): New definition.
4710         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4711         the private parts of the structure to save some space.
4712         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4713         (struct sockaddr_in *) in call to sock_eq.
4714         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4716 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4718         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4719         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4720         with nodelete.
4721         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4722         to _dl_map_object.  Return immediately if no object loaded.
4723         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4724         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4725         if it exists into l_flags_1 word.
4726         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4727         it to determine whether loading is wanted or not.
4728         (_dl_map_object): Likewise.
4729         Call _dl_map_object_from_fd with new parameter.
4730         * sysdeps/generic/ldsodefs.h: Update prototype.
4731         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4732         * elf/rtld.c: Likewise.
4733         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4734         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4735         * elf/noload.c: New file.
4736         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4737         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4738         * sysdeps/mips/bits/dlfcn.h: Likewise.
4739         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4740         (tests-nodelete-yes): Define.
4741         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4742         Add rules to build nodelete and modules.
4743         * elf/nodelete.c: New file.
4744         * elf/nodelmod1.c: New file.
4745         * elf/nodelmod2.c: New file.
4746         * configure.in: Add test for -z nodelete option.
4747         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4749         * libio/Makefile (tests): Add tst_wprintf2.
4750         (tst_wprintf2-ARGS): Define.
4751         * libio/tst_wprintf2.c: New file.
4752         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4754         * libio/wfiledoalloc.c: Only allocate external buffer if this
4755         hasn't happened yet.
4757         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4758         something in the buffer.  gconv call can write up to end of the
4759         buffer, not only _IO_write_end.
4760         (_IO_wfile_overflow): Allocate also external buffer.
4762 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4764         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4765         strings with precision in vfwprintf correctly.
4766         * stdio-common/vfprintf.c: Fix completely broken handling of
4767         unbuffered wide character streams.
4768         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4770         * resolv/Makefile (distribute): Add README.
4772         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4774 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4776         Update resolver code to BIND 8.2.3-T5B.
4778         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4779         __res_nclose.
4780         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4781         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4782         __res_search.
4783         * resolv/Banner: BIND-8.2.3-T5B.
4785         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4786         * resolv/herror.c: Likewise.
4787         * resolv/inet_addr.c: Likewise.
4788         * resolv/inet_net_ntop.c: Likewise.
4789         * resolv/inet_net_pton.c: Likewise.
4790         * resolv/inet_neta.c: Likewise.
4791         * resolv/inet_ntop.c: Likewise.
4792         * resolv/nsap_addr.c: Likewise.
4793         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4794         IPv6 addresses (ISC bug #520).
4796         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4797         * resolv/ns_parse.c: Likewise.
4798         * resolv/ns_netint.c: Likewise.
4799         * resolv/ns_samedomain.c: Likewise.
4800         * resolv/ns_ttl.c: Likewise.
4801         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4802         RCS ID in object file.
4804         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4805         * resolv/res_mkquery.c: Likewise.
4806         * resolv/res_query.c: Likewise.
4807         * resolv/res_init.c: Likewise.
4808         (res_setoptions): Mark internal.
4809         * resolv/res_send.c: Likewise.
4810         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4811         by using poll instead.
4812         * resolv/res_comp.c: Likewise.
4813         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4814         weak alias for __dn_expand.
4815         * resolv/res_data.c: Likewise.
4816         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4817         in _res.options.  Avoids a potential security risk by avoiding a
4818         close (0).
4819         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4820         res_mkquery, res_query, res_querydomain adn res_search weak
4821         aliases for __res_mkquery, __res_query, __res_querydomain and
4822         __res_search.
4823         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4824         instead to avoid close(0).
4825         (res_init): Always use the static resolver context.
4826         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4827         alias for __res_init.
4829         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4830         RES_SET_H_ERRNO and accompanying comment to...
4831         * include/resolv.h: ... here.
4833         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4834         * resolv/arpa/nameser_compat.h: Likewise.
4836 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4838         * nss/makedb.c (main): Compare result of load_db with
4839         NSS_STATUS_SUCCESS and not 0.
4840         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4842         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4844 2000-07-18  Greg McGary  <greg@mcgary.org>
4846         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4847         (EXTEND_BUFFER): Use it.
4849 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4851         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4852         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4853         __builtin_return_address.
4854         * dlfcn/dlopenold.c: Likewise.
4855         * dlfcn/dlsym.c: Likewise.
4856         * dlfcn/dlvsym.c: Likewise.
4857         * elf/dl-profstub.c: Likewise.
4858         * malloc/malloc.c: Likewise.
4859         * sysdeps/generic/machine-gmon.h: Likewise.
4860         Based on a patch by schwidefsky@de.ibm.com.
4862 2000-07-18  Andreas Jaeger  <aj@suse.de>
4864         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4865         NULL to elf_machine_fixup_plt t argument to silence GCC.
4867         * include/string.h: Add prototype for __memchr.
4869         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4871         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4872         instead of memrchr.
4874 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4876         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4878         * locale/C-ctype.c: Add initializers for gap elements.
4879         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4880         for gap elements.
4882 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4884         * nscd/nscd.c (print_version): Update copyright year.
4886 2000-07-17  Greg McGary  <greg@mcgary.org>
4888         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4889         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4890         signature argnames with angle-brackets for use as word delimiters,
4891         and to induce syntax errors for any args not handled.  Split
4892         multi-echo echoes and comment each stage.
4893         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4894         * sysdeps/unix/inet/syscalls.list: Likewise.
4895         * sysdeps/unix/mman/syscalls.list: Likewise.
4896         * sysdeps/unix/syscalls.list: Likewise.
4897         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4898         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4899         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4900         * sysdeps/unix/sysv/syscalls.list: Likewise.
4901         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4903         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4904         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4905         qualifiers.  Don't check NULL-terminator of argv & envp.
4906         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4907         unbounded pointer type in word-size assertion.
4908         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4909         cases to stifle warnings.
4911         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4912         _IO_file_attach.
4913         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4915         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4916         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4917         ptr as __unbouned.
4919         * Makerules (o-objects): Supplement with $(o-objects$o).
4920         * string/Makefile (o-objects.ob): Add variable to pull
4921         unbounded versions of memcpy, memset and memchr into libc_b.
4923         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4924         rather than non-existent __ubp_memchr.
4925         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4926         (_CHECK_STRING, _CHECK_N): New macros.
4927         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4928         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4929         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4930         Add weak alias "memchr".
4931         * sysdeps/generic/memchr.c: Likewise.
4932         * sysdeps/i386/memchr.S: Likewise.
4933         * sysdeps/ia64/memchr.S: Likewise.
4934         * sysdeps/m68k/memchr.S: Likewise.
4935         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4936         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4937         * sysdeps/vax/memchr.s: Likewise.
4939         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4941         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4942         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4943         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4944         __BOUNDED_POINTERS__.
4945         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4946         for __BOUNDED_POINTERS__.
4948 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4950         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4951         field of struct __gconv_trans_data differently.  Don't pass NULL to
4952         trans_init_fct.  Simplify list append operation.
4954 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4956         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4957         not only those having tsearch.
4959 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4961         * locale/langinfo.h: Add placeholder values in enum for removed
4962         LC_CTYPE entries.
4964 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4966         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4967         chain if the PHDR check fails.
4969 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4971         * nss/getent.c (print_hosts): Make sure we always print a space
4972         between numeric addresses and hostnames.
4974 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4976         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4977         i.e. if n_mmaps_max>0.
4979 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4981         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4982         values to remove possible clash with other AI_* constants.
4983         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4984         hexadecimal constants to stress the fact they're in fact
4985         bit flags.
4987 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4989         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4990         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4991         instead of res_init.
4993 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4995         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4996         parameters of memset calls to avoid warnings.
4998 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5000         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
5001         necessary.
5003         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
5004         Patch by Greg McGary <greg@mcgary.org>.
5006         * io/Makefile (tests): Add tst-getcwd.
5007         * io/tst-getcwd.c: New file.
5009         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
5011 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
5013         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
5014         structure.
5016 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
5018         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
5019         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
5021 2000-07-12  H.J. Lu  <hjl@gnu.org>
5023         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
5024         GLIBC_2.2.
5025         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
5026         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
5027         (sysdep-routines): Add clone2.
5028         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
5030 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
5032         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
5033         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
5035 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
5037         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
5038         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
5039         Change type of si_band from "int" to "long".
5040         (si_imm) [USE_GNU]: Define
5041         (si_isr) [USE_GNU]: Likewise.
5042         (ILL_BREAK) [USE_GNU]: Likewise.
5043         (FPE_DECOVF) [USE_GNU]: Likewise.
5044         (FPE_DECDIV) [USE_GNU]: Likewise.
5045         (FPE_DECERR) [USE_GNU]: Likewise.
5046         (FPE_INVASC) [USE_GNU]: Likewise.
5047         (FPE_INVDEC) [USE_GNU]: Likewise.
5048         (TRAP_BRANCH) [USE_GNU]: Likewise.
5049         (TRAP_HWBKPT) [USE_GNU]: Likewise.
5051 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
5053         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5054         bits/sigcontext as struct mcontext does not depend on it.
5056         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
5058 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
5060         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
5062 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
5064         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
5066 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5068         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
5070 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5072         * intl/Makefile (test-srcs): Add tst-translit.
5073         (tests): Likewise.
5074         Add rules to build and run tst-translit.
5075         * intl/tst-translit.c: New file.
5076         * intl/tst-translit.sh: New file.
5077         * intl/translit.po: New file.
5079 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5081         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
5082         transliteration function did its job, continue, don't stop.
5084         * iconvdata/iso646.c: Little optimizations in body for conversion
5085         from UCS4.
5087 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5089         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
5091 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5093         * configure.in: Check for pwd binary.
5094         * config.make.in: Add PWD_P to be subsituted.
5095         * Makerules: Use $(PWD_P) instead of /bin/pwd.
5097 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5099         * iconvdata/Makefile (modules): Add GB18030.
5100         (distribute): Add gb18030.c.
5101         * iconvdata/gconv-modules: Add entries for GB18030 module.
5102         * iconvdata/gb18030.c: New file.
5103         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
5104         and Wu Jian.
5106 2000-07-13  Andreas Jaeger  <aj@suse.de>
5108         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
5109         patch.
5111         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
5112         * inet/getnetgrent.c (free_mem): Likewise.
5113         * misc/mntent.c (free_mem): Likewise.
5114         * nss/getXXbyYY.c (free_mem): Likewise.
5115         * nss/getXXent.c (free_mem): Likewise.
5116         * pwd/fgetpwent.c (free_mem): Likewise.
5117         * shadow/fgetspent.c (free_mem): Likewise.
5119 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5121         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
5122         64-bit architecture correctly [PR libc/1794].
5124 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
5126         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
5127         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
5128         report that we are out of memory.
5129         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5130         * elf/dl-libc.c (dlerror_run): Likewise.
5131         * elf/dl-open.c (_dl_open): Likewise.
5132         * elf/rtld.c (dl_main): Likewise.
5133         * elf/dl-error.c: Define _dl_out_of_memory.
5134         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
5135         the error string.
5136         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
5137         [PR libc/1813].
5139         * dlfcn/dlerror.c (free_key_mem): Also free error string.
5141         * iconv/loop.c: Fix comment.
5143         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
5145 2000-07-13  Andreas Jaeger  <aj@suse.de>
5147         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
5148         getcwd (NULL, size) with size > 0.
5149         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
5151 2000-07-13  Andreas Jaeger  <aj@suse.de>
5153         * posix/Makefile: Remove build rules for libposix.
5155 2000-07-13  Andreas Schwab  <schwab@suse.de>
5157         * sysdeps/generic/glob.c (glob): Fix memory leak.
5158         [SHELL]: Remove reference to undefined variable `files'.
5159         Fixes PR libc/1782.
5161 2000-07-13  Andreas Jaeger  <aj@suse.de>
5163         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
5164         functions.
5166         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
5167         memory if it was allocated.
5169 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5171         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
5172         step.
5174         * iconv/gconv_open.c (__gconv_open): Reapply
5175         2000-07-12 Bruno Haible <haible@clisp.cons.org>
5177                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5179         * iconv/gconv_open.c: Undo last two changes for now.  They break
5180         everything.
5182 2000-07-12  Andreas Jaeger  <aj@suse.de>
5184         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
5185         compiler.
5186         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
5187         (CFLAGS-dl-cache.c): Likewise.
5188         (CFLAGS-ldconfig.c): Added, passes directory locations.
5190         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
5191         locate cache.
5192         * elf/ldconfig.c (LD_SO_CONF): Likewise.
5193         (main): Use configured LIBDIR and SLIBDIR.
5195 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
5197         * math/bits/cmathcalls.h (cimag): Add __THROW.
5198         (creal, conj): Likewise.
5199         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
5200         by negative value.
5202 2000-07-12  H.J. Lu  <hjl@gnu.org>
5204         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
5205         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
5207 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5209         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
5210         it is wrong.
5212 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5214         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5216 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5218         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
5219         __modname.
5221 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5223         * iconv/gconv_open.c (__gconv_open): Initialize
5224         result->__steps[cnt].__data.
5226 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
5228         * nss/getent.c (services_keys): Pass port number in network byte
5229         order in call to getservbyport.
5231 2000-07-11  Andreas Jaeger  <aj@suse.de>
5233         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
5234         source dir.
5235         * intl/Makefile (do-gettext-test): Likewise.
5236         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
5238 2000-07-11  Andreas Schwab  <schwab@suse.de>
5240         * Makeconfig (run-program-prefix): New rule.
5241         (built-program-cmd): Use run-program-prefix.
5243 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5245         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
5246         and NOEXPR unconditionally available.
5248 2000-07-12  Greg McGary  <greg@mcgary.org>
5250         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
5251         * sysdeps/posix/open64.c: Likewise.
5252         * sysdeps/generic/fegetenv.c: Likewise.
5253         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
5254         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
5255         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5256         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
5257         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
5258         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
5260 2000-07-11  Greg McGary  <greg@mcgary.org>
5262         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
5263         Add extra level of macro expansion.
5264         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
5265         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
5266         is available at the time `select' prototype is declared.
5267         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
5268         Collect non-versioned weak aliases.  Consider only non-versioned
5269         aliases for the user-visible systemcall name.  Do checks inline with
5270         call to primitive system call.
5271         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
5272         stand-alone bounds checks to suppress unused value warnings.
5273         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
5275 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
5277         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
5278         file descriptor checking in SUID programs for the Hurd.
5280         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
5281         res_hostalias instead of __hostalias for thread-safety.
5283 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
5285         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
5286         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
5288 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
5290         * include/features.h: Include ISO C99 features if the compiler used
5291         is an ISO C99 compiler.
5292         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
5294 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5296         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
5298 2000-07-10  Andreas Jaeger  <aj@suse.de>
5300         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
5301         it's overridden by libpthreads.
5302         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5303         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5304         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5305         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5306         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5308         * malloc/Makefile: Run tst-mtrace only with shared libs.
5310         * stdio-common/Makefile: Run unbputc and tst-printf tests only
5311         with shared libs.
5313 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5315         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
5316         that gpreg really points to the GOT section of the calling object.
5317         Scan all PT_LOAD segments of objects for stub_pc, instead of only
5318         checking a start address of first one.
5319         Fix typos.
5320         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
5321         Likewise.
5323         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
5325 2000-07-10  Andreas Jaeger  <aj@suse.de>
5327         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
5328         (string_alias->strong_alias).
5330 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5332         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
5334 2000-07-07  Greg McGary  <greg@mcgary.org>
5336         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
5337         have no names without leading underscores.
5339 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5341         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
5342         U007E.
5344         * stdio-common/Makefile (tests): Remove tst-printf here...
5345         (tests-srcs): ...and add it here.
5346         (distribute): Add tst-unbputc.sh and tst-printf.sh.
5347         Add rules to run tst-printf.sh.
5348         * stdio-common/tst-printf.c: Move code around so that there is really
5349         no further output where it's stated.
5350         * stdio-common/tst-printf.sh: New file.
5352 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
5354         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
5355         (do_write): Renamed from pwrite.
5356         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
5357         `struct _IO_cookie_file'.
5359 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5361         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
5362         detected.
5363         * malloc/tst-mtrace.sh: Run mtrace script.
5365 2000-07-07  Greg McGary  <greg@mcgary.org>
5367         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
5368         Move all three components of a bounded pointer.
5370 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5372         * locale/programs/locale.c (write_locales): Don't simply add all
5373         directories found in the subdir, test whether at least the
5374         LC_CTYPE file is in there.
5376 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
5378         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
5379         * iconvdata/euc-kr.c: Likewise.
5381         * stdio-common/vfprintf.c (process_string_arg): Check result of
5382         wcrtomb call and bail out if it failed.
5384         * malloc/Makefile (test-srcs): Add tst-mtrace.
5385         (distribute): Add tst-mtrace.sh.
5386         Add rule to run tst-mtrace.sh.
5387         * malloc/tst-mtrace.c: New file.
5388         * malloc/tst-mtrace.sh: New file.
5390         * include/signal.h: Declare __libc_sigaction.
5391         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
5392         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
5393         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5394         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5395         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5396         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5397         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5399         * configure.in: Fix CFLAGS-memprofstat.c definition after
5400         2000-06-19 change.
5401         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
5403 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
5405         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
5406         instead of NULL to elf_machine_fixup_plt t argument.
5407         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5408         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
5409         cast.
5411 2000-07-06  Andreas Jaeger  <aj@suse.de>
5413         * crypt/Makefile (LDLIBS-cert): Removed.
5414         (LDLIBS-md5c-test): Removed.
5415         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
5416         ($(objpfx)md5c-test): Likewise for md5c-test.out.
5418 2000-07-06  Andreas Jaeger  <aj@suse.de>
5420         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
5421         of the proc system is "proc".
5423         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
5424         thread library for static programs.
5426 2000-07-06  Greg McGary  <greg@mcgary.org>
5428         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
5429         New macros.
5430         * sysdeps/generic/strcpy.c: Add bounds checks.
5431         * sysdeps/unix/fxstat.c: Likewise.
5432         * sysdeps/unix/xstat.c: Likewise.
5433         * sysdeps/unix/common/lxstat.c: Likewise.
5434         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5435         * sysdeps/unix/sysv/linux/execve.c: Likewise.
5436         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5437         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5438         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5439         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5440         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5441         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5442         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5443         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5444         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5445         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5446         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5447         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5448         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5449         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5450         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5451         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5452         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5453         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5454         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5455         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5456         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5457         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5458         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5459         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5460         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5461         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5462         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5463         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5464         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5465         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5466         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5467         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5468         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5469         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5470         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5471         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5472         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5473         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5474         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5475         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5476         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5477         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5478         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5479         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5480         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5481         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5482         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5483         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5484         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5485         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5486         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5487         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5488         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5489         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5490         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5491         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5492         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5493         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5494         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5495         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5496         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5497         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5499         * string/endian.h (__LONG_LONG_PAIR): New macro.
5500         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5501         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5502         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5503         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5504         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5505         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5506         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5507         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5508         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5509         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5510         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5511         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5513         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5515 2000-07-06  Andreas Jaeger  <aj@suse.de>
5517         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5518         Initialize result.
5520         * math/test-fpucw.c: Include <stdio.h> for printf.
5522 2000-07-05  Greg McGary  <greg@mcgary.org>
5524         * sysdeps/generic/bp-checks.h: New file.
5525         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5526         with list of #include files.
5527         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5528         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5529         Don't generate BP thunk if `V' appears in signature.
5530         Generate thunks with complete bounds checks.
5531         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5532         * sysdeps/unix/inet/syscalls.list: Likewise.
5533         * sysdeps/unix/mman/syscalls.list: Likewise.
5534         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5535         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5536         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5537         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5539 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5541         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5542         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5543         If mount not in the file fall back on /proc.
5545         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5546         string got copied in.
5547         Patch by Solar Designer <solar@false.com>.
5549 2000-07-05  Andreas Jaeger  <aj@suse.de>
5551         * manual/install.texi (Installation): Update information about
5552         add-ons.
5553         (Configuring and compiling): Update for glibc 2.2.
5555 2000-07-04  Andreas Jaeger  <aj@suse.de>
5557         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5558         (_FPU_IEEE): Likewise.
5560         * math/Makefile (tests): Add test-fpucw.
5562         * math/test-fpucw.c (main): New file.
5564 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5566         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5568         * locale/programs/ld-collate.c (collate_output): Also write out the
5569         collation sequence values and the wide character string for the
5570         collation symbol table.
5572         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5573         * posix/fnmatch_loop.c: Implement collating symbol handling.
5574         * posix/tst-fnmatch.input: Add more tests, especially for collating
5575         symbol handling.
5577         * posix/regex.c: Fix comment.
5579 2000-07-05  Andreas Jaeger  <aj@suse.de>
5581         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5582         (_FPU_GETCW): Remove extra colon.
5583         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5585         * posix/fnmatch_loop.c (FCT): Only declare len if
5586         !WIDE_CHAR_VERSION to silence GCC.
5588         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5589         prototype.
5590         * sysdeps/generic/strchrnul.c: Likewise.
5591         * sysdeps/generic/strlen.c: Likewise.
5592         * sysdeps/generic/strchr.c: Likewise.
5593         * sysdeps/generic/memchr.c: Likewise.
5595 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5597         * posix/fnmatch_loop.c: Implement equivalence class handling.
5598         * posix/tst-fnmatch.input: Add tests for equivalence class
5599         handling.
5601         * posix/fnmatch_loop.c: Improve performance for single-byte
5602         character sets by not using btowc.
5604         * posix/tst-fnmatch.input: Add tests for locale dependent
5605         behaviour.
5606         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5608         * posix/tst-fnmatch.input: Add more test cases.
5610         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5611         are not aligned to alignof(md5_uint32) do it before calling
5612         __md5_process_bytes.
5613         * crypt/md5.c: Make sure buffers are aligned.
5614         * crypt/md5.h: Likewise.
5615         Reported by Solar Designer <solar@false.com>.
5617         * crypt/Makefile: Add dependencies for test programs.
5619         * Rules: Define LC_ALL=C in environments of all programs we run.
5621         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5623 2000-07-03  H.J. Lu  <hjl@gnu.org>
5625         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5626         is 2 + elem + offset, not 2 + elem + offset + 2.
5628 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5630         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5631         suite.
5632         * posix/Makefile (tests): Add tst-fnmatch.
5633         (tst-fnmatch-ENV): Define.
5634         * posix/tst-fnmatch.c: New file.
5635         * posix/tst-fnmatch.sh: New file.
5637 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5639         * locale/programs/charmap.c (charmap_read): Prepend
5640         the condition filename == NULL.
5642 2000-07-03  Greg McGary  <greg@mcgary.org>
5644         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5646         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5647         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5649         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5650         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5651         (FILEBUF_LITERAL): Add cast for CHAIN init.
5652         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5653         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5654         Revert type of `fp' to _IO_FILE*.
5655         (_IO_iter_file): Remove cast.
5656         (_IO_iter_next): Elide intermediate member reference.
5658         * sysdeps/powerpc/strchr.S:  Check bounds.
5659         Wrap extern symbols in BP_SYM ().
5661 2000-07-03  Andreas Jaeger  <aj@suse.de>
5663         * dlfcn/Makefile (generated): New.
5665 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5667         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5668         (__uflow): Likewise.
5669         (__underflow): Likewise.
5670         * libio/wgenops.c (__wunderflow): Likewise.
5671         * stdio-common/tst-unbputc.c: New file.
5672         * stdio-common/tst-unbputc.sh: New file.
5673         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5675         * po/en_GB.po: New file.
5676         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5678 2000-07-01  Andreas Jaeger  <aj@suse.de>
5680         * intl/Makefile (generated-dirs): New.
5682         * elf/Makefile (generated): trusted-dirs.h is always generated,
5683         move out of build-shared condition.
5684         (generated): Merge the two entries for build-shared.
5686 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5688         * debug/Makefile (distribute): Add xtrace.sh.
5690 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5692         * version.h (VERSION): Bump to 2.1.91.
5694         * configure.in: Update warning comment.  glibc should not be
5695         broken anymore.
5697         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5698         ioperm.c, sys/procfs.h, and sys/io.h.
5700         * sysdeps/powerpc/Dist: Add bp-asm.h.
5702         * assert/Depend: Add localedata.
5703         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5704         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5706         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5707         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5708         relocation address to prevent unaligned trap.
5709         Suggested by Richard Henderson <rth@cygnus.com>.
5711 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5713         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5714         if redirecting and either redirection is done using defines or
5715         not optimizing.
5717 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5719         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5720         generated expressions.
5721         Patch by Darren McClelland <dmcclell@zetec.com>.
5723         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5724         since zic uses setlocale and gettext but we cannot make it use the
5725         new locale data since zic calls a shell which might not use the
5726         new libc.
5728         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5729         handling the internation currency symbol.  POSIX says that the
5730         fourth character is used to separate the currency symbol from the
5731         value.  Therefore it does not have to be printed.  But we cannot
5732         remove the space if the currency symbol is printed before the
5733         number since this is what many locales expect.
5735         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5736         whether this information is available.
5738         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5739         buffers in case the translation is too large.  Remember allocated
5740         memory blocks in a list.
5741         (free_mem): Free memory for translations.
5743         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5745         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5746         information is available set the string length to zero.
5748         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5750 2000-06-30  Greg McGary  <greg@mcgary.org>
5752         * sysdeps/powerpc/bp-asm.h: New file.
5753         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5754         Wrap extern symbols in BP_SYM ().
5755         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5756         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5757         * sysdeps/powerpc/setjmp.S: Likewise.
5758         * sysdeps/powerpc/add_n.S: Likewise.
5759         * sysdeps/powerpc/addmul_1.S: Likewise.
5760         * sysdeps/powerpc/lshift.S: Likewise.
5761         * sysdeps/powerpc/rshift.S: Likewise.
5762         * sysdeps/powerpc/mul_1.S: Likewise.
5763         * sysdeps/powerpc/sub_n.S: Likewise.
5764         * sysdeps/powerpc/submul_1.S: Likewise.
5765         * sysdeps/powerpc/strlen.S: Likewise.
5766         * sysdeps/powerpc/memset.S: Likewise.
5767         * sysdeps/powerpc/stpcpy.S: Likewise.
5768         * sysdeps/powerpc/strcmp.S: Likewise.
5769         * sysdeps/powerpc/strcpy.S: Likewise.
5770         * sysdeps/powerpc/elf/bzero.S: Likewise.
5772         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5773         Line up operands column with tabs.
5775 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5777         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5779         * sysdeps/ia64/htonl.S: New file.
5780         * sysdeps/ia64/htons.S: New file.
5781         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5782         floating point registers.
5783         Patches by Dan Pop <Dan.Pop@cern.ch>.
5785 2000-06-30  Andreas Jaeger  <aj@suse.de>
5787         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5788         shared libraries.
5790         * io/Makefile (CFLAGS-test-lfs.c): New.
5791         (tests): Add test-lfs.
5793         * io/test-lfs.c: New file.
5795 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5797         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5798         instruction.
5800 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5802         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5804 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5806         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5807         alias to the fstatfs call.
5809         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5810         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5812         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5813         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5815         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5816         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5817         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5818         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5820         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5821         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5823         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5824         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5826         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5827         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5829         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5831 2000-06-29  Andreas Jaeger  <aj@suse.de>
5833         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5834         with syslog.
5835         (print_err_message): Likewise.
5836         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5838 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5840         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5841         used as words is properly aligned.
5843         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5844         data files.
5846 2000-06-29  Greg McGary  <greg@mcgary.org>
5848         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5849         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5850         length 7..9, just in case...
5851         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5853         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5854         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5855         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5856         (PUSH_SIGNAL_MASK): New macro.
5857         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5858         LEAVE is unnecessary.  Check bounds of jmp_buf.
5859         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5860         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5861         immediately before tail-call.
5862         * sysdeps/i386/setjmp.S: Likewise.
5863         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5864         * sysdeps/i386/bsd-setjmp.S: Likewise.
5866 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5868         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5869         versioned_symbol.
5870         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5871         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5872         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5873         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5874         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5875         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5876         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5877         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5879 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5881         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5882         we later need to calling free().
5883         Patch by Matt Wilson <msw@redhat.com>.
5885         * stdio-common/tst-printf.c: Add test for above problem.
5887 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5889         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5890         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5892 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5894         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5895         prototype for abs().
5896         * sysdeps/ieee754/flt-32/s_exp2f.c: Likewise.
5898 2000-06-23  Andreas Jaeger  <aj@suse.de>
5900         * config.h.in: Don't use regparm with bounded pointers.
5902 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5904         * stdlib/grouping.h: Correctly handle multibyte thousands
5905         separator and decimal point.
5906         * stdlib/stdtod.c: Likewise.
5907         * sysdeps/generic/strtol.c: Likewise.
5909         * locale/categories.def: Add entries for wide character decimal point
5910         and thousands separator in numeric and monetary category.
5912 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5914         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5915         second definition and initialization of decimal.
5917 2000-06-28  Greg McGary  <greg@mcgary.org>
5919         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5920         out.
5921         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5922         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5923         in.
5924         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5925         (struct _IO_FILE_plus *).
5926         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5927         THIS, since _IO_JUMPS no longer does it implicitly.
5928         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5929         arg type as (struct _IO_FILE_plus *).
5930         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5931         arg as (_IO_strfile *).
5932         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5933         Declare 1st arg as (_IO_strfile *).
5934         * libio/fileops.c (_IO_new_file_init): Declare
5935         arg type as (struct _IO_FILE_plus *).
5936         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5937         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5938         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5939         Declare iteration pointer as (struct _IO_FILE_plus *).
5940         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5941                 (struct _IO_FILE_plus *).
5942         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5943         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5944         (_IO_check_libio): Set user-visible handles to
5945         (struct _IO_FILE_plus *).
5946         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5947         to (struct _IO_FILE_plus *).
5949         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5950         whose high bound includes vtable to all functions that will use
5951         vtable.  For streambufs, pass pointer whose bounds include struct
5952         _IO_strfile.
5953         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5954         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5955         * libio/iofopen.c (_IO_new_fopen): Likewise.
5956         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5957         * libio/iofopen64.c (_IO_fopen64): Likewise.
5958         * libio/iopopen.c (_IO_new_popen): Likewise.
5959         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5960         * libio/memstream.c (open_memstream): Likewise.
5961         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5962         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5963         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5964         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5965         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5966         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5967         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5968         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5969         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5970         * stdlib/strfmon.c (__strfmon_l): Likewise.
5971         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5972         (vfprintf): Qualify computed-goto targets as unbounded.
5974 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5976         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5977         thousands separator correctly.
5979         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5980         * stdio-common/vfwscanf.c: Likewise.
5982 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5984         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5985         count into signatures for most calls.
5987 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5989         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5990         the generic parser now.
5992 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5994         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5995         table entries are 32 bit on the ia64 (as specified by the ABI),
5996         not 64 bit as on the Alpha.
5998         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5999         change of objects to use 32 bit hash table indices (see above).
6001 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6003         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
6004         prototype for abs().
6006 2000-06-28  Wolfram Gloger  <wg@malloc.de>
6008         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
6009         fails, try mmap_chunk() as a last resort even though n_mmaps_max
6010         may have been reached.
6012 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6014         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
6015         symbols in multi-character weights correctly.
6017         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
6018         depending on whether the input string is empty or not.
6020         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
6021         given state and not avoiding this by modifying a local object.
6022         * wcsmbs/wcrtomb.c: Likewise.
6024         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
6025         object since some incomplete characters might be in there.
6027         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
6028         sequences with first byte 0x8e correctly.
6030         * iconvdata/jis0208.h: Remove redundant test.
6032 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
6034         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
6035         Add it where it is needed now.
6037         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
6038         the input charset into account when generating the hash table.
6039         (allocate_arrays): Correct setting default width.  Not all empty slots
6040         in the table are filled, only those not covert explicitly by the
6041         locale description and in the charset.
6043         * wctype/towctrans.c (__towctrans): Be graceful and accept error
6044         return values from the wctrans function.
6046         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
6047         wide character version.
6048         For %C handling, test correct pointer variable for NULL.
6050         * wcsmbs/wctob.c: Handle WEOF special.
6052         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
6054         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
6055         always-true test to avoid warning.
6057 2000-06-27  Greg McGary  <greg@mcgary.org>
6059         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
6060         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
6061         (symbol_version, default_symbol_version): Factor redundant
6062         definitions out of conditional.
6064 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
6066         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
6067         not obstack_blank.
6069 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6071         * include/libc-symbols.h (symbol_version): Add extra level of
6072         macro expansion.
6073         (default_symbol_version): Likewise.
6075 2000-06-26  Greg McGary  <greg@mcgary.org>
6077         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
6078         for BP return value & push implicit struct-return pointer to
6079         __errno_location.
6080         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6081         (SYSCALL_ERROR_HANDLER): Likewise.
6082         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6083         (SYSCALL_ERROR_HANDLER): Likewise.
6085         * Makeconfig: Add missing comment.
6086         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
6087         BP-flavored startup object.
6088         ($(objpfx)b$(start-installed-name)): New rule.
6089         * include/libc-symbols.h (symbol_set_declare): Change type
6090         of `__start_##set' and `__stop_##set' to pointer-to-function.
6091         (symbol_set_declare): Change type of `set' to array of
6092         pointer-to-function.
6093         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
6094         pointer-to-function.
6096         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
6098         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
6099         Remove clock_* and timer_* entries.
6100         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
6101         arg-count with signatures.
6103         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
6104         Check bounds of arguments.
6105         * sysdeps/i386/addmul_1.S: Likewise.
6106         * sysdeps/i386/lshift.S: Likewise.
6107         * sysdeps/i386/mul_1.S: Likewise.
6108         * sysdeps/i386/rshift.S: Likewise.
6109         * sysdeps/i386/sub_n.S: Likewise.
6110         * sysdeps/i386/submul_1.S: Likewise.
6111         * sysdeps/i386/i586/add_n.S: Likewise.
6112         * sysdeps/i386/i586/addmul_1.S: Likewise.
6113         * sysdeps/i386/i586/lshift.S: Likewise.
6114         * sysdeps/i386/i586/rshift.S: Likewise.
6115         * sysdeps/i386/i586/sub_n.S: Likewise.
6116         * sysdeps/i386/i686/add_n.S: Likewise.
6118         * sysdeps/i386/memchr.S: Likewise.
6119         * sysdeps/i386/memcmp.S: Likewise.
6120         * sysdeps/i386/rawmemchr.S: Likewise.
6121         * sysdeps/i386/i586/bzero.S: Likewise.
6122         * sysdeps/i386/i586/memcpy.S: Likewise.
6123         * sysdeps/i386/i586/mempcpy.S: Likewise.
6124         * sysdeps/i386/i586/memset.S: Likewise.
6125         * sysdeps/i386/i686/bzero.S: Likewise.
6126         * sysdeps/i386/i686/memcpy.S: Likewise.
6127         * sysdeps/i386/i686/mempcpy.S: Likewise.
6128         * sysdeps/i386/i686/memset.S: Likewise.
6130         * sysdeps/i386/stpcpy.S: Likewise.
6131         * sysdeps/i386/stpncpy.S: Likewise.
6132         * sysdeps/i386/strchr.S: Likewise.
6133         * sysdeps/i386/strchrnul.S: Likewise.
6134         * sysdeps/i386/strcspn.S: Likewise.
6135         * sysdeps/i386/strpbrk.S: Likewise.
6136         * sysdeps/i386/strrchr.S: Likewise.
6137         * sysdeps/i386/strspn.S: Likewise.
6138         * sysdeps/i386/strtok.S: Likewise.
6139         * sysdeps/i386/strtok_r.S: Likewise.
6140         * sysdeps/i386/i486/strcat.S: Likewise.
6141         * sysdeps/i386/i486/strlen.S: Likewise.
6142         * sysdeps/i386/i586/strchr.S: Likewise.
6143         * sysdeps/i386/i586/strcpy.S: Likewise.
6144         * sysdeps/i386/i586/strlen.S: Likewise.
6145         * sysdeps/i386/i686/strcmp.S: Likewise.
6146         * sysdeps/i386/i686/strtok.S: Likewise.
6147         * sysdeps/i386/i686/strtok_r.S: Likewise.
6149         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
6150         * sysdeps/i386/fpu/fesetenv.c: Likewise.
6151         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
6152         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
6153         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
6155         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
6156         * sysdeps/i386/mul_1.S: Likewise.
6157         * sysdeps/i386/submul_1.S: Likewise.
6158         * sysdeps/i386/i586/add_n.S: Likewise.
6159         * sysdeps/i386/i586/addmul_1.S: Likewise.
6160         * sysdeps/i386/i586/lshift.S: Likewise.
6161         * sysdeps/i386/i586/mul_1.S: Likewise.
6162         * sysdeps/i386/i586/rshift.S: Likewise.
6163         * sysdeps/i386/i586/sub_n.S: Likewise.
6164         * sysdeps/i386/i586/submul_1.S: Likewise.
6166 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6168         * rt/Makefile (librt-routines): Add clock_nanosleep.
6169         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
6170         * sysdeps/generic/clock_nanosleep.c: New file.
6171         * sysdeps/unix/clock_nanosleep.c: New file.
6172         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
6173         * time/time.h: Declare clock_nanosleep.
6175 2000-06-26  Greg McGary  <greg@mcgary.org>
6177         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
6178         INSN1, INSN2, TEXT, GLOBL): Remove macros.
6179         (ALIGN): Cleanup surrounding conditionals.
6181         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
6182         Call ENTER/LEAVE macros.
6183         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
6184         * sysdeps/i386/submul_1.S: Likewise.
6186         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
6187         syntax.  Define & use symbolic argument stack offsets.  Call
6188         ENTER/LEAVE macros.
6189         * sysdeps/i386/i586/mul_1.S: Likewise.
6190         * sysdeps/i386/i586/submul_1.S: Likewise.
6192 2000-06-25  Greg McGary  <greg@mcgary.org>
6194         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
6195         not as bcopy.
6197 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
6199         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
6200         * iconvdata/gen-8bit-gap.sh: Likewise.
6201         * iconvdata/gen-8bit.sh: Likewise.
6203         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
6205         * locale/programs/ld-collate.c (collate_read): Don't actually read
6206         the copy locale if we are ignoring the content.
6208         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
6209         unknown character.
6211         * locale/programs/ld-collate.c: Correct handling of different
6212         collation sections.
6213         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
6214         as extra parameter from which to copy category information.
6215         Change all callers.
6216         (load_locale): Likewise.
6217         * locale/programs/localedef.h: Update prototypes of add_to_readlist
6218         and load_locale.
6219         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
6220         * locale/programs/locfile.h: Likewise.
6221         * locale/programs/locfile-kw.gperf: Add entry for script.
6222         * locale/programs/locfile-token.h: Add tok_script.
6224         * locale/programs/locale.c: Update copyright year.
6225         * locale/programs/localedef.c: Likewise.
6227 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
6229         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
6230         Jens Moeller <jens.moeller@waii.com>.
6232 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
6234         * locale/programs/ld-name.c (name_finish): Add missing format
6235         specifier to test for name_fmt.
6237         * locale/programs/ld-address.c (iso639): Correct length of string
6238         elements.
6239         (iso3166): Likewise.
6241         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
6243         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
6244         Define.
6246         * elf/elf.h (NT_PRFPXREG): Define.
6248 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
6250         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
6251         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
6253 2000-06-23  Andreas Schwab  <schwab@suse.de>
6255         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
6256         with signatures.
6258 2000-06-23  Andreas Jaeger  <aj@suse.de>
6260         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
6262         * io/test-stat.c: Add copyright header, mention Maciej.
6264         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
6265         SYS_mincore, SYS_madvise): Added.
6267         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
6268         execve.
6270 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6272         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
6273         (CFLAGS-tst_putwc.c): New definition.
6274         * libio/tst_getwc.c: New file.
6275         * libio/tst_getwc.input: New file.
6276         * libio/tst_putwc.c: New file.
6278         * include/string.h: Add prototype for __strdup.
6280 2000-06-22  Greg McGary  <greg@mcgary.org>
6282         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
6283         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
6284         Fix signatures.
6286 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
6288         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
6290 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6292         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
6294 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6296         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
6297         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
6299 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6301         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
6302         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
6303         and __S_TYPEISSHM.
6304         * sysdeps/mach/hurd/bits/stat.h: Likewise.
6305         * sysdeps/unix/bsd/bits/stat.h: Likewise.
6306         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
6307         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6308         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
6309         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
6310         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6311         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6312         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6313         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
6314         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
6315         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
6316         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
6317         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
6318         S_TYPEISSHM.
6320 2000-06-22  Andreas Jaeger  <aj@suse.de>
6322         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
6323         with signatures.
6325         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
6327         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
6329 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6331         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
6332         ahead.
6334 2000-06-21  Greg McGary  <greg@mcgary.org>
6336         * Makerules (elide-routines.*, elide-bp-thunks):
6337         Define unconditionally.
6339 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6341         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6343 2000-06-21  Andreas Jaeger  <aj@suse.de>
6345         * io/Makefile (tests): Add test-stat.
6346         (CFLAGS-test-stat.c): New.
6348         * io/test-stat.c: New file from Maciej W. Rozycki
6349         <macro@ds2.pg.gda.pl>.
6351 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6353         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
6354         in __rlimit_resource to make them match the kernel order.
6355         rlim_t is always 64 bit, use __rlim64_t to declare it
6356         unconditionally.
6358 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
6360         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
6361         RLIM_INFINITY before defining it to avoid clash with kernel header
6363 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
6365         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
6367 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6369         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
6371 2000-06-21  Andreas Jaeger  <aj@suse.de>
6373         * stdio-common/temptest.c: Include <stdlib.h>.
6374         * stdio-common/tst-fileno.c: Likewise.
6375         * stdio-common/scanf4.c: Likewise.
6376         * stdio-common/scanf5.c: Likewise.
6377         * time/clocktest.c: Likewise.
6378         * posix/test-vfork.c: Likewise.
6379         * posix/globtest.c: Likewise.
6380         * io/test-utime.c: Likewise.
6381         * wctype/test_wcfuncs.c: Likewise.
6382         * crypt/cert.c: Likewise.
6384         * stdio-common/tst-printfsz.c: Include <string.h>.
6385         * libio/tst_swscanf.c: Likewise.
6386         * libio/tst_wscanf.c: Likewise.
6387         * posix/runtests.c: Likewise.
6388         * posix/tst-getaddrinfo.c: Likewise.
6389         * posix/wordexp-test.c: Likewise.
6390         * misc/tst-efgcvt.c: Likewise.
6392         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
6393         * nss/test-netdb.c: Likewise.
6395         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
6396         supported kernel for MIPS.
6398         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
6399         * rt/aio_suspend.c: Likewise.
6401 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6403         * math/libm-test.inc: Include <string.h>.
6405 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6407         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
6409 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6411         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
6412         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
6414 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
6416         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
6418 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6420         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
6422 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6424         * locale/programs/ld-collate.c (insert_value): Now take string and
6425         length instead of struct token* parameter.  Adjust use of token.
6426         (handle_ellipsis): Likewise.
6427         (collate_read): Allow <Uxxxx> names and transform them into names
6428         to be passed to insert_value and handle_ellipsis.
6430         * locale/programs/ld-ctype.c (uninames): New array with names of
6431         digits in <Uxxxxxxxx> format.
6432         (ctype_finish): Correct search for space character value.  Likewise
6433         for default outdigits values.
6435 2000-06-20  Greg McGary  <greg@mcgary.org>
6437         * Makerules (objects): Add BP thunks.
6439 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6441         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6442         in width definitions.
6444 2000-06-20  Andreas Jaeger  <aj@suse.de>
6446         * sysdeps/mips/fpu/libm-test-ulps: New file.
6448         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6449         first.
6451         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6453         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6455 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6457         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6458         change in gconv_builtin.h.
6460         * malloc/Makefile: Change all references to memprof into memusage.
6461         * malloc/memprof.c: Rename to...
6462         * malloc/memusage.c: ...this.  New file.
6463         * malloc/memprof.sh: Rename to...
6464         * malloc/memusage.sh: ...this.  New file.
6465         * malloc/memprofstat.c: Rename to...
6466         * malloc/memusagestat.c: ...this.  New file.
6467         * sysdeps/alpha/memprof.h: Rename to..
6468         * sysdeps/alpha/memusage.h: ...this.  New file.
6469         * sysdeps/arm/memprof.h: Rename to..
6470         * sysdeps/arm/memusage.h: ...this.  New file.
6471         * sysdeps/generic/memprof.h: Rename to..
6472         * sysdeps/generic/memusage.h: ...this.  New file.
6473         * sysdeps/i386/memprof.h: Rename to..
6474         * sysdeps/i386/memusage.h: ...this.  New file.
6475         * sysdeps/ia64/memprof.h: Rename to..
6476         * sysdeps/ia64/memusage.h: ...this.  New file.
6477         * sysdeps/m68k/memprof.h: Rename to..
6478         * sysdeps/m68k/memusage.h: ...this.  New file.
6479         * sysdeps/mips/memprof.h: Rename to..
6480         * sysdeps/mips/memusage.h: ...this.  New file.
6481         * sysdeps/powerpc/memprof.h: Rename to..
6482         * sysdeps/powerpc/memusage.h: ...this.  New file.
6483         * sysdeps/sparc/memprof.h: Rename to..
6484         * sysdeps/sparc/memusage.h: ...this.  New file.
6485         * sysdeps/sh/memprof.h: Rename to..
6486         * sysdeps/sh/memusage.h: ...this.  New file.
6488         * elf/sprof.c (print_version): Update year.
6490         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6491         table entry values.  Use D_PTR.
6492         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6493         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6495 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6497         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6498         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6499         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6500         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6502 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6504         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6506 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6508         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6509         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6510         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6512         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6514         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6515         kernel change.
6517         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6518         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6519         structure.
6520         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6521         implementation.
6523 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6525         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6527 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6529         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6531 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6533         * iconv/gconv_int.h (strict gconv_module): Remove all members
6534         associated with regular expressions.  Use a simple string as the
6535         from name.
6536         * iconv/gconv_db.c: Remove code handling regular expressions.
6537         * iconv/gconv_conf.c: Likewise.
6538         * iconv/iconv_prog.c: Likewise.
6539         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6541         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6542         General namespace cleanup.
6543         (struct __gconv_trans_data): Add next field.
6544         (struct __gconv_step_data): Make __trans a pointer.
6545         * iconv/gconv_conf.c: Split out code to find gconv directories from
6546         __gconv_read_conf in new functions.
6547         * iconv/gconv_int.h: Define new data structure and declare new
6548         functions for handling of gconv directory list.
6549         * iconv/gconv_open.c: Allow more than one error handling step being
6550         used.  Call function to load error handling module if it is none
6551         of the builtin transformations.
6552         * iconv/gconv_close.c: Add code to free transliteration data.
6553         * iconv/gconv_trans.c: Add functions to load and unload modules
6554         implementing transliteration etc.
6555         * iconv/skeleton.c: Call all context functions now that more than
6556         one module is allowed.
6557         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6558         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6559         where the full error handling using transliteration is needed.
6560         * iconvdata/8bit-gap.c: Likewise.
6561         * iconvdata/8bit-generic.c: Likewise.
6562         * iconvdata/ansi_x3.110.c: Likewise.
6563         * iconvdata/big5.c: Likewise.
6564         * iconvdata/big5hkscs.c: Likewise.
6565         * iconvdata/euc-cn.c: Likewise.
6566         * iconvdata/euc-jp.c: Likewise.
6567         * iconvdata/euc-kr.c: Likewise.
6568         * iconvdata/euc-tw.c: Likewise.
6569         * iconvdata/gbgbk.c: Likewise.
6570         * iconvdata/gbk.c: Likewise.
6571         * iconvdata/iso-2022-cn.c: Likewise.
6572         * iconvdata/iso-2022-jp.c: Likewise.
6573         * iconvdata/iso-2022-kr.c: Likewise.
6574         * iconvdata/iso646.c: Likewise.
6575         * iconvdata/iso8859-1.c: Likewise.
6576         * iconvdata/iso_6937-2.c: Likewise.
6577         * iconvdata/iso_6937.c: Likewise.
6578         * iconvdata/johab.c: Likewise.
6579         * iconvdata/sjis.c: Likewise.
6580         * iconvdata/t.61.c: Likewise.
6581         * iconvdata/uhc.c: Likewise.
6582         * iconvdata/unicode.c: Likewise.
6583         * iconvdata/utf-16.c: Likewise.
6584         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6585         structure correctly after last change.
6586         * wcsmbs/btowc.c: Likewise.
6587         * wcsmbs/mbrtowc.c: Likewise.
6588         * wcsmbs/mbsnrtowcs.c: Likewise.
6589         * wcsmbs/mbsrtowcs.c: Likewise.
6590         * wcsmbs/wcrtomb.c: Likewise.
6591         * wcsmbs/wcsnrtombs.c: Likewise.
6592         * wcsmbs/wcsrtombs.c: Likewise.
6593         * wcsmbs/wctob.c: Likewise.
6595         * localedata/Makefile: Set -Wno-format for some files since gcc does
6596         not know all the format specifiers.
6598 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6600         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6601         unneeded code.
6602         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6604 2000-06-18  Andreas Jaeger  <aj@suse.de>
6606         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6607         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6609 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6611         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6612         LINUX_LINK_MAX.
6613         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6615         * locale/programs/ld-ctype.c (ctype_output): Really write out
6616         mboutdigits information.
6617         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6618         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6619         * localedata/tests/trans.def: Add outdigit information.
6621         * localedata/tst-mbswcs3.c: Remove comment.
6623         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6624         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6625         * libio/tst_wprintf.c (main): Add test for I flag.
6627         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6628         * locale/langinfo.h: Add entries for translit_ignore information.
6629         * locale/categories.def: Add entries for new LC_CTYPE elements.
6630         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6631         pointer instead of "" where possible.
6632         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6633         * intl/Depend: Add localedata.
6634         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6635         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6637 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6639         * locale/langinfo.h: Add entries for default_missing information.
6640         * locale/C-ctype.c: Add initializers for new fields.
6641         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6642         information.
6643         * locale/categories.h: Add entries for all LC_CTYPE values.
6644         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6645         information.
6647         * localedata/tst-trans.c: Write out an error message if class is
6648         not found.
6650         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6651         * iconv/gconv_open.c: Remove error handling specification from `from'
6652         character set name.
6653         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6654         new parameter to always enable transliteration.
6655         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6656         change.
6657         (struct locale_data): Add new members use_translit and options.
6658         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6659         character set name contained modifier TRANSLIT.
6660         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6661         and options fields.
6662         (_nl_unload_locale): Free options string if necessary.
6663         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6664         the locale names suggested this.
6665         * locale/C-address.c: Add two new initialilzers to adjust data
6666         structure for new format.
6667         * locale/C-collate.c: Likewise.
6668         * locale/C-ctype.c: Likewise.
6669         * locale/C-identification.c: Likewise.
6670         * locale/C-measurement.c: Likewise.
6671         * locale/C-messages.c: Likewise.
6672         * locale/C-monetary.c: Likewise.
6673         * locale/C-name.c: Likewise.
6674         * locale/C-numeric.c: Likewise.
6675         * locale/C-paper.c: Likewise.
6676         * locale/C-telephone.c: Likewise.
6677         * locale/C-time.c: Likewise.
6679         * locale/setlocale.c: Add some more __builtin_expect.
6681 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6683         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6684         unsigned char **.
6685         (__gconv_init_fct): Remove two parameters.
6686         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6687         gconv_transliterate.  Remove two parameters.
6688         Change prototypes of builtin functions according to __gconv_fct change.
6689         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6690         != NULL only during error handling.  Stop in this case after the
6691         conversion.
6692         * iconv/gconv_trans.c: Replace with real implementation for
6693         __gconv_transliterate.
6694         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6695         * iconv/gconv.c: Change calls to downstream functions once again.
6696         Use NULL for the fifth parameter instead of pointer to output buffer.
6697         * libio/iofwide.c: Likewise.
6698         * wcsmbs/btowc.c: Likewise.
6699         * wcsmbs/mbrtowc.c: Likewise.
6700         * wcsmbs/mbsnrtowcs.c: Likewise.
6701         * wcsmbs/mbsrtowcs.c: Likewise.
6702         * wcsmbs/wcrtomb.c: Likewise.
6703         * wcsmbs/wcsnrtombs.c: Likewise.
6704         * wcsmbs/wcsrtombs.c: Likewise.
6705         * wcsmbs/wctob.c: Likewise.
6706         * iconv/gconv_simple.c: Remove two parameters from error handling
6707         function call.
6708         * iconvdata/8bit-gap.c: Likewise.
6709         * iconvdata/8bit-generic.c: Likewise.
6710         * iconvdata/ansi_x3.110.c: Likewise.
6711         * iconvdata/big5.c: Likewise.
6712         * iconvdata/big5hkscs.c: Likewise.
6713         * iconvdata/euc-cn.c: Likewise.
6714         * iconvdata/euc-jp.c: Likewise.
6715         * iconvdata/euc-kr.c: Likewise.
6716         * iconvdata/euc-tw.c: Likewise.
6717         * iconvdata/gbgbk.c: Likewise.
6718         * iconvdata/gbk.c: Likewise.
6719         * iconvdata/iso-2022-cn.c: Likewise.
6720         * iconvdata/iso-2022-jp.c: Likewise.
6721         * iconvdata/iso-2022-kr.c: Likewise.
6722         * iconvdata/iso646.c: Likewise.
6723         * iconvdata/iso8859-1.c: Likewise.
6724         * iconvdata/iso_6937-2.c: Likewise.
6725         * iconvdata/iso_6937.c: Likewise.
6726         * iconvdata/johab.c: Likewise.
6727         * iconvdata/sjis.c: Likewise.
6728         * iconvdata/t.61.c: Likewise.
6729         * iconvdata/uhc.c: Likewise.
6730         * iconvdata/unicode.c: Likewise.
6731         * iconvdata/utf-16.c: Likewise.
6733 2000-06-15  Greg McGary  <greg@mcgary.org>
6735         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6736         of callnum assignment.  Tolerate callnum expressions containing
6737         parens.
6739 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6741         * login/Makefile (utmpd): Remove rule to build utmpd.
6743         * csu/Versions: Move libgcc frame handling functions from here...
6744         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6745         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6746         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6747         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6748         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6749         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6750         New file.
6751         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6753         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6755         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6757 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6759         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6760         compatibility.
6761         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6762         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6763         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6764         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6766 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6768         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6769         defined, terminate quotes and read them after the comment char.
6770         * configure.in (HAVE_SECTION_QUOTES): Test whether
6771         __attribute__((section ("x"))) puts quotes around x or not.
6772         * config.h.in (HAVE_SECTION_QUOTES): Add.
6773         * configure: Rebuilt.
6775 2000-06-14  Andreas Jaeger  <aj@suse.de>
6777         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6778         depending on the configure option --sysconfdir.
6779         Closes PR libc/1762.
6780         Patch by Andreas Schwab <schwab@suse.de>.
6782         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6783         entry point.
6784         Reported by Jim Pick <jim@jimpick.com>.
6786 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6788         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6789         crashing the application.  Emit some simple error message.
6790         Reported by mju@panasas.com [PR libc/1769].
6792 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6794         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6796         * crypt/Makefile (distribute): Add md5.h.
6798         * Makefile (distribute): Add include/shlib-compat.h.
6800         * Make-dist: Search for tests also in sysdeps hierachy.
6802         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6803         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6805         * sysdeps/sparc/Subdirs: New file.
6807         * locale/Makefile (distribute): Add weightwc.h and
6808         programs/localedef.h.
6810         * time/Makefile (distribute): Add datemsk.
6812         * sysdeps/ia64/Dist: Add softpipe.h.
6814         * sysdeps/unix/sysv/aix/Dist: New file.
6816         * posix/setpgrp.c: Moved to...
6817         * sysdeps/generic/setpgrp.c: ...here.  New file.
6818         * io/mknod.c: Moved to...
6819         * sysdeps/generic/mknod.c: ...here.  New file.
6821         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6823         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6825         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6827         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6828         gprsave0.S, gprrest1.S, and gprrest0.S.
6830         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6832         * posix/Makefile (routines): Add spawnattr_getsigmask,
6833         spawnattr_getschedpolicy, spawnattr_getschedparam,
6834         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6835         spawnattr_setschedparam.
6836         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6837         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6838         posix_spawnattr_setschedparam.
6840         * posix/spawnattr_setschedparam.c: Fix typo.
6842         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6843         Correct typo.
6845         * login/programs/utmpd.c: Removed.
6846         * login/programs/utmpd.h: Removed.
6847         * login/programs/utmpd-private.h: Removed.
6849         * Makefile (distribute): Add include/db_185.h and include/db.h.
6851         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6852         iso-ir-165.h.
6854         * elf/Makefile (distribute): Add missing files.
6856         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6857         * elf/eval.c: Moved to...
6858         * dlfcn/eval.c: ...here.  New file.
6860         * Makefile (distribute): Also distribute ChangeLog.1?.
6862         * Make-dist (+tsrcs): Remove .args handling here as well.
6864         * rt/Makefile (tests): Add tst-timer.
6865         * sysdeps/generic/tst-timer.c: New file.
6867         * Makerules (sources): Don't add BP sources here.
6869         * login/Makefile (distribute): Remove xtmp.h.
6871         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6872         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6874 2000-06-13  Andreas Jaeger  <aj@suse.de>
6876         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6877         Patch by Ralf Baechle <ralf@gnu.org>.
6879 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6881         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6882         for mincore syscall.
6884         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6885         __BOUNDED_POINTERS__ is not defined.
6887 2000-06-07  Greg McGary  <greg@mcgary.org>
6889         * sysdeps/generic/bp-sym.h: New file.
6890         * sysdeps/generic/bp-start.h: New file.
6891         * sysdeps/i386/elf/start.S: Designate BP symbols.
6892         * sysdeps/generic/libc-start.c: Wrap bounds around
6893         argv & envp and each of their string members.
6895 2000-06-07  Greg McGary  <greg@mcgary.org>
6897         * sysdeps/unix/make-syscalls.sh: Add comments to
6898         output that aid debugging & comprehension.
6899         Map simple syscall signatures to number of args.
6900         Generate BP syscall thunk definitions.
6901         * sysdeps/generic/bp-thunks.h: New file.
6902         * sysdeps/unix/syscalls.list: Replace arg-count with
6903         simple return+arg signature.
6904         * sysdeps/unix/common/syscalls.list: Likewise.
6905         * sysdeps/unix/inet/syscalls.list: Likewise.
6906         * sysdeps/unix/mman/syscalls.list: Likewise.
6907         * sysdeps/unix/sysv/syscalls.list: Likewise.
6908         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6909         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6911 2000-06-07  Greg McGary  <greg@mcgary.org>
6913         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6914         for all files *.[cS].
6915         (CFLAGS-.ob): Don't optimize sibling calls.
6916         (bppfx): New variable.
6917         * Makerules (elide-bp-thunks): New variable.
6918         (elide-routines.*): Elide BP-* files for all but *.ob.
6919         (sources): Include bp-thunks.
6921 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6923         * iconv/gconv_simple.c: Remove unnecessary prototype.
6925         * iconv/gconv_trans.c: Pretty print.
6927         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6929         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6930         minimal kernel versions.  Add information about IA-64 kernel.
6932         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6933         specific minimal supported kernel versions to be specified.
6935         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6936         step data structure.
6937         * wcsmbs/btowc.c: Likewise.
6938         * wcsmbs/mbrtowc.c: Likewise.
6939         * wcsmbs/mbsnrtowcs.c: Likewise.
6940         * wcsmbs/mbsrtowcs.c: Likewise.
6941         * wcsmbs/wcrtomb.c: Likewise.
6942         * wcsmbs/wcsnrtombs.c: Likewise.
6943         * wcsmbs/wcsrtombs.c: Likewise.
6944         * wcsmbs/wctob.c: Likewise.
6946         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6947         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6949         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6951         * misc/sys/cdefs.h: Remove one more __P.
6953         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6954         Reported by HJ Lu.
6956         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6957         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6958         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6960 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6961             Yutaka Niibe  <gniibe@chroot.org>
6963         * configure.in: Add machine sh3, sh4.
6964         * elf/elf.h: Add SH specific declarations of relocations.
6965         * shlib-versions: Add sh*-*-linux* cases.
6967 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6969         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6970         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6971         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6972         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6973         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6974         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6976         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6977         instead of KERNEL_MATH_EMULATION.
6978         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6979         KERNEL_MATH_EMULATION.
6981         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6982         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6983         * sysdeps/sh/dl-machine.h: ...here.  New file.
6984         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6985         and include generic SH version.
6986         * sysdeps/sh/sh3/bits/endian.h: Move to...
6987         * sysdeps/sh/bits/endian.h: ...here.  New file.
6988         * sysdeps/sh/sh4/bits/endian.h: Removed.
6989         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6990         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6991         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6993         * include/libc-symbols.h (link_warning): Work around a change in
6994         GAS which warns about changing section attributes.
6995         Proposed by Nick Clifton <nickc@redhat.com>.
6997 2000-06-12  H.J. Lu  <hjl@gnu.org>
6999         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
7001 2000-06-11  H.J. Lu  <hjl@gnu.org>
7003         * sysdeps/i386/fpu/Versions: New file.
7005 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7007         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
7008         parameters.
7009         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
7010         exists.
7012 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
7014         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7015         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
7016         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
7018         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
7019         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
7020         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
7022 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7023             Yutaka Niibe  <gniibe@chroot.org>
7025         * sysdeps/sh/Dist: New file.
7026         * sysdeps/sh/Implies: New file.
7027         * sysdeps/sh/elf/initfini.c: New file.
7028         * sysdeps/sh/gmp-mparam.h: New file.
7029         * sysdeps/sh/init-first.c: New file.
7030         * sysdeps/sh/machine-gmon.h: New file.
7031         * sysdeps/sh/memcpy.S: New file.
7032         * sysdeps/sh/memprof.h: New file.
7033         * sysdeps/sh/memset.S: New file.
7034         * sysdeps/sh/sh3/__longjmp.S: New file.
7035         * sysdeps/sh/sh3/bits/endian.h: New file.
7036         * sysdeps/sh/sh3/bits/huge_val.h: New file.
7037         * sysdeps/sh/sh3/bits/setjmp.h: New file.
7038         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
7039         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
7040         * sysdeps/sh/sh3/dl-machine.h: New file.
7041         * sysdeps/sh/sh3/setjmp.S: New file.
7042         * sysdeps/sh/sh4/__longjmp.S: New file.
7043         * sysdeps/sh/sh4/bits/endian.h: New file.
7044         * sysdeps/sh/sh4/bits/huge_val.h: New file.
7045         * sysdeps/sh/sh4/bits/setjmp.h: New file.
7046         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
7047         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
7048         * sysdeps/sh/sh4/dl-machine.h: New file.
7049         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
7050         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
7051         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
7052         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
7053         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
7054         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
7055         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
7056         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
7057         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
7058         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
7059         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
7060         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
7061         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
7062         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
7063         * sysdeps/sh/sh4/setjmp.S: New file.
7064         * sysdeps/sh/elf/start.S: New file.
7065         * sysdeps/sh/sys/ucontext.h: New file.
7066         * sysdeps/sh/strlen.S: New file.
7067         * sysdeps/sh/sysdep.h: New file.
7068         * sysdeps/unix/sh/sysdep.S: New file.
7069         * sysdeps/unix/sh/sysdep.h: New file.
7070         * sysdeps/unix/sysv/linux/sh/Dist: New file.
7071         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
7072         * sysdeps/unix/sysv/linux/sh/Versions: New file.
7073         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
7074         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
7075         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
7076         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
7077         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
7078         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
7079         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
7080         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
7081         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
7082         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
7083         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
7084         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
7085         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
7086         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
7087         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
7088         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
7089         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
7090         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
7091         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
7092         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
7093         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
7094         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
7095         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
7096         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
7097         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
7098         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
7099         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
7100         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
7101         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
7102         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
7103         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
7104         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
7105         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
7106         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
7107         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
7108         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
7109         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
7110         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
7111         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
7112         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
7113         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
7114         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
7115         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
7116         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
7117         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
7118         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
7119         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
7121 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7123         * Rules (%.out): Define GCONV_PATH in the environment.
7124         * assert/Depend: New file.
7125         * iconvdata/Depend: New file.
7126         * intl/Depend: New file.
7127         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
7128         * intl/tst-gettext.sh: Likewise.
7129         * iconv/Makefile (routines): Add gconv_trans.
7130         * iconv/gconv_trans.c: New file.
7131         * iconv/gconv.h (struct __gconv_trans_data): New type.
7132         (__gconv_fct): New parameter with starting position in output buffer.
7133         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
7134         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
7135         (struct __gconv_step): Add new member __trans.
7136         * iconv/gconv_int.h: Pretty print prototypes.
7137         (gconv_transliterate): New prototype.
7138         (__BUILTIN_TRANS): Update for new conversion function interface.
7139         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
7140         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
7141         in names, find appropriate function, and install in the conversion
7142         steps it can be used.
7143         * iconv/skeleton.c: Add additional parameter for beginning of output
7144         buffer.  Change calls of downstream functions.
7145         * iconv/loop.c: Change loop function interface completely.  Pass in
7146         step and step_data structure.  Remove optimization for BODY with
7147         NEED_LENGTH_TEST == 0.
7148         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
7149         appropriate error handling code to use transliteration steps.  Remove
7150         optimization for BODY with NEED_LENGTH_TEST == 0.
7151         * iconvdata/8bit-gap.c: Likewise.
7152         * iconvdata/8bit-generic.c: Likewise.
7153         * iconvdata/ansi_x3.110.c: Likewise.
7154         * iconvdata/big5.c: Likewise.
7155         * iconvdata/big5hkscs.c: Likewise.
7156         * iconvdata/euc-cn.c: Likewise.
7157         * iconvdata/euc-jp.c: Likewise.
7158         * iconvdata/euc-kr.c: Likewise.
7159         * iconvdata/euc-tw.c: Likewise.
7160         * iconvdata/gbgbk.c: Likewise.
7161         * iconvdata/gbk.c: Likewise.
7162         * iconvdata/iso-2022-cn.c: Likewise.
7163         * iconvdata/iso-2022-jp.c: Likewise.
7164         * iconvdata/iso-2022-kr.c: Likewise.
7165         * iconvdata/iso646.c: Likewise.
7166         * iconvdata/iso8859-1.c: Likewise.
7167         * iconvdata/iso_6937-2.c: Likewise.
7168         * iconvdata/iso_6937.c: Likewise.
7169         * iconvdata/johab.c: Likewise.
7170         * iconvdata/sjis.c: Likewise.
7171         * iconvdata/t.61.c: Likewise.
7172         * iconvdata/uhc.c: Likewise.
7173         * iconvdata/unicode.c: Likewise.
7174         * iconvdata/utf-16.c: Likewise.
7175         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
7176         DL_CALL_FCT.
7177         * wcsmbs/btowc.c: Likewise.
7178         * wcsmbs/mbrtowc.c: Likewise.
7179         * wcsmbs/mbsnrtowcs.c: Likewise.
7180         * wcsmbs/mbsrtowcs.c: Likewise.
7181         * wcsmbs/wcrtomb.c: Likewise.
7182         * wcsmbs/wcsnrtombs.c: Likewise.
7183         * wcsmbs/wcsrtombs.c: Likewise.
7184         * wcsmbs/wctob.c: Likewise.
7186 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7188         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
7189         other header files.  Mention about 128-byte cache line sizes.
7190         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
7191         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
7192         for current calling sequence.
7193         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
7195         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
7196         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7198         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
7199         and setrlimit syscalls for backwards compatibility.
7201 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7203         * iconv/skeleton.c:  Rename converted written to correcter name
7204         irreversible.
7205         * iconv/gconv.c: Rename converted variable to correcter name
7206         irreversible.
7207         * iconv/gconv_int.h: Likewise.
7208         * iconv/gconv_simple.c: Likewise.
7209         * iconv/iconv.c: Likewise.
7210         * iconv/loop.c: Likewise.
7211         * iconvdata/8bit-gap.c: Likewise.
7212         * iconvdata/8bit-generic.c: Likewise.
7213         * iconvdata/ansi_x3.110.c: Likewise.
7214         * iconvdata/big5.c: Likewise.
7215         * iconvdata/big5hkscs.c: Likewise.
7216         * iconvdata/euc-cn.c: Likewise.
7217         * iconvdata/euc-jp.c: Likewise.
7218         * iconvdata/euc-kr.c: Likewise.
7219         * iconvdata/gbgbk.c: Likewise.
7220         * iconvdata/gbk.c: Likewise.
7221         * iconvdata/iso-2022-cn.c: Likewise.
7222         * iconvdata/iso-2022-jp.c: Likewise.
7223         * iconvdata/iso-2022-kr.c: Likewise.
7224         * iconvdata/iso646.c: Likewise.
7225         * iconvdata/iso8859-1.c: Likewise.
7226         * iconvdata/iso_6937-2.c: Likewise.
7227         * iconvdata/iso_6937.c: Likewise.
7228         * iconvdata/johab.c: Likewise.
7229         * iconvdata/sjis.c: Likewise.
7230         * iconvdata/t.61.c: Likewise.
7231         * iconvdata/uhc.c: Likewise.
7232         * iconvdata/unicode.c: Likewise.
7233         * iconvdata/utf-16.c: Likewise.
7235         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
7236         __cmsg_data field with __extension__.
7238 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
7240         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
7242 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7244         * iconv/gconv_simple.c: Fix various small bugs in several
7245         functions.
7247         * iconv/loop.c: Fix comment.
7249 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
7251         * elf/link.h: Remove libc internal declarations.
7252         * include/link.h: Move them here.
7254 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7256         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
7257         Patch by Dan Pop <Dan.Pop@cern.ch>.
7259         Rewrite error message handling.
7260         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
7261         _dl_catch_error.
7262         * elf/dl-error (struct catch): Add objname member.
7263         (_dl_signal_error): Take new parameter with object name.  When
7264         passing message on simply store object name and duplicate error
7265         message.
7266         (_dl_catch_error): Take new parameter.  Store object name in the
7267         place pointed to.
7268         * include/dlfcn.h: Adjust _dl_catch_error prototype.
7269         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
7270         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
7271         (dlerror): Add objname to asprintf() parameters.
7272         (_dl_error_run): Pass new parameter to _dl_catch_error.
7273         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
7274         * elf/dl-open.c (_dl_open): Likewise.
7275         * elf/rtld.c (dl_main): Likewise.
7276         * elf/dl-close.c: Mark error messages with N_().
7277         * elf/dl-deps.c: Likewise.
7278         * elf/dl-error.c: Likewise.
7279         * elf/dl-load.c: Likewise.
7280         * elf/dl-open.c: Likewise.
7281         * elf/dl-reloc.c: Likewise.
7282         * elf/dl-support.c: Likewise.
7283         * elf/dl-sym.c: Likewise.
7284         * elf/dl-version.c: Likewise.
7285         * elf/dl-lookup.c: Add comments about problems with error message
7286         translations.
7287         * elf/dl-reloc.c: Likewise.
7288         * elf/dl-version.c: Likewise.
7290 2000-06-09  H.J. Lu  <hjl@gnu.org>
7292         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
7293         after freeing it.
7295         * dlfcn/Makefile (distribute): Add failtestmod.c.
7296         (tests): Add failtest.
7297         Add rules to build and run failtest.
7298         * dlfcn/failtest.c: New file.
7299         * dlfcn/failtestmod.c: New file.
7301 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
7303         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
7304         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
7305         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
7306         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
7307         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
7309 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7311         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
7312         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
7314 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7315             Ulrich Drepper  <drepper@redhat.com>
7317         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
7318         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
7319         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
7320         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
7321         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
7322         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
7324 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7326         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
7327         to find correct mount point despite wrong information from the
7328         kernel.
7330 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7332         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
7333         the address of a symbol so function pointers are handled properly.
7335 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7337         * sysdeps/i386/Dist: Add bp-asm.h.
7339         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
7340         defaultdir variable instead of "/var/shm" everywhere.
7341         (defaultdir): Change to /dev/shm/.
7343 2000-06-08  Greg McGary  <greg@mcgary.org>
7345         * sysdeps/i386/bp-asm.h: New file.
7346         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
7347         offsets.  Add ENTER/LEAVE macros for optionally maintaining
7348         frame-pointer chain when debugging.
7349         * sysdeps/i386/add_n.S: Likewise.
7350         * sysdeps/i386/addmul_1.S: Likewise.
7351         * sysdeps/i386/lshift.S: Likewise.
7352         * sysdeps/i386/memchr.S: Likewise.
7353         * sysdeps/i386/memcmp.S: Likewise.
7354         * sysdeps/i386/mul_1.S: Likewise.
7355         * sysdeps/i386/rawmemchr.S: Likewise.
7356         * sysdeps/i386/rshift.S: Likewise.
7357         * sysdeps/i386/stpcpy.S: Likewise.
7358         * sysdeps/i386/stpncpy.S: Likewise.
7359         * sysdeps/i386/strchr.S: Likewise.
7360         * sysdeps/i386/strchrnul.S: Likewise.
7361         * sysdeps/i386/strcspn.S: Likewise.
7362         * sysdeps/i386/strpbrk.S: Likewise.
7363         * sysdeps/i386/strrchr.S: Likewise.
7364         * sysdeps/i386/strspn.S: Likewise.
7365         * sysdeps/i386/strtok.S: Likewise.
7366         * sysdeps/i386/sub_n.S: Likewise.
7367         * sysdeps/i386/submul_1.S: Likewise.
7368         * sysdeps/i386/elf/setjmp.S: Likewise.
7369         * sysdeps/i386/i486/strcat.S: Likewise.
7370         * sysdeps/i386/i486/strlen.S: Likewise.
7371         * sysdeps/i386/i586/add_n.S: Likewise.
7372         * sysdeps/i386/i586/lshift.S: Likewise.
7373         * sysdeps/i386/i586/memcpy.S: Likewise.
7374         * sysdeps/i386/i586/memset.S: Likewise.
7375         * sysdeps/i386/i586/rshift.S: Likewise.
7376         * sysdeps/i386/i586/strchr.S: Likewise.
7377         * sysdeps/i386/i586/strcpy.S: Likewise.
7378         * sysdeps/i386/i586/strlen.S: Likewise.
7379         * sysdeps/i386/i586/sub_n.S: Likewise.
7380         * sysdeps/i386/i686/add_n.S: Likewise.
7381         * sysdeps/i386/i686/memcpy.S: Likewise.
7382         * sysdeps/i386/i686/mempcpy.S: Likewise.
7383         * sysdeps/i386/i686/memset.S: Likewise.
7384         * sysdeps/i386/i686/strcmp.S: Likewise.
7386 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7388         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
7390         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
7391         256 and don't use OPEN_MAX.
7393         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
7394         use it instead of LINK_MAX.
7395         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7397 2000-06-08  Andreas Jaeger  <aj@suse.de>
7399         * libio/genops.c (_IO_list_lock): Only compile body if we're
7400         thread safe.
7401         (_IO_list_unlock): Likewise.
7402         (_IO_list_resetlock): Likewise.
7404 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7406         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
7407         unless user defined it.
7409         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
7410         if not defined by the user.
7412         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
7413         * libio/iofwrite.c (_IO_fwrite): Likewise.
7415         * time/time.h: Add missing __THROW for clock_getcpuclockid
7416         prototype.
7418         * elf/Makefile (distribute): Add dl-dtprocnum.h.
7419         * include/elf.h: Include also <dl-dtprocnum.h>.
7420         * elf/dl-deps.c: Likewise.
7421         * elf/dl-lookup.c: Likewise.
7422         * elf/dl-runtime.c: Likewise.
7423         * elf/dl-version.c: Likewise.
7424         * elf/do-rel.h: Likewise.
7425         * elf/dynamic-link.h: Likewise.
7426         * elf/link.h: Likewise.
7427         * elf/rtld.c: Likewise.
7428         * sysdeps/generic/dl-dtprocnum.h: New file.
7429         * sysdeps/ia64/dl-dtprocnum.h: New file.
7430         * sysdeps/mips/dl-dtprocnum.h: New file.
7431         * sysdeps/sparc/dl-dtprocnum.h: New file.
7433         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
7435         * elf/do-lookup.h: Add some __builtin_expect.
7437         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
7439         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
7440         (_dl_dynamic_weak): New variable.
7441         * elf/dl-support.c: Likewise.
7442         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7443         * elf/do-lookup.h: If we find a weak definition treat it like a
7444         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7445         case treat it like before.
7447         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7448         is in main program.
7449         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7451         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7452         using l_map_start and l_map_end.
7454         * elf/dl-version.c: Add __builtin_expect in many places.
7456         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7457         Update.
7459 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7461         Lock for stdio stream list becomes global, for use in LinuxThreads.
7463         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7464         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7465         _IO_list_resetlock): New interface for iterating global list of
7466         streams without accessing the _IO_list_all global variable,
7467         and for manipulating the lock which protects this list.
7468         * libio/libioP.h: Likewise.
7469         * libio/Version: Add entries for the new functions.
7471         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7472         pointer to _IO_FILE.
7474 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7476         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7477         BIT() must actually be BITw().
7479         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7481         * locale/programs/charmap.c: Allow string arguments for
7482         code_set_name and repertoiremap.
7484 2000-06-07  Andreas Jaeger  <aj@suse.de>
7486         * elf/Makefile: Build ldconfig only when building shared libraries.
7488 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7490         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7491         __USE_ISOC99.
7492         (fdimf, __fdim, fdim): Likewise.
7494 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7496         * locale/findlocale.c: Add __builtin_expect in many places.
7497         * locale/loadlocale.c: Likewise.
7499 2000-06-06  Greg McGary  <greg@mcgary.org>
7501         * sysdeps/mips/elf/start.S: Trim redundant code.
7503         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7504         Use C comments throughout.  Line up operands column with tabs.
7505         * sysdeps/powerpc/strchr.S: Likewise.
7506         * sysdeps/powerpc/strcmp.S: Likewise.
7507         * sysdeps/powerpc/strcpy.S: Likewise.
7508         * sysdeps/powerpc/strlen.S: Likewise.
7510         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7511         Get low part of &__curbrk with @l.
7513 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7515         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7516         * iconvdata/unicode.c: Likewise.
7517         * iconvdata/uhc.c: Likewise.
7518         * iconvdata/t.61.c: Likewise.
7519         * iconvdata/sjis.c: Likewise.
7520         * iconvdata/johab.c: Likewise.
7521         * iconvdata/iso_6937.c: Likewise.
7522         * iconvdata/iso_6937-2.c: Likewise.
7523         * iconvdata/iso8859-1.c: Likewise.
7524         * iconvdata/iso646.c: Likewise.
7525         * iconvdata/iso-2022-kr.c: Likewise.
7526         * iconvdata/iso-2022-jp.c: Likewise.
7527         * iconvdata/iso-2022-cn.c: Likewise.
7528         * iconvdata/gbgbk.c: Likewise.
7529         * iconvdata/gbk.c: Likewise.
7530         * iconvdata/euc-kr.c: Likewise.
7531         * iconvdata/euc-jp.c: Likewise.
7532         * iconvdata/euc-cn.c: Likewise.
7534 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7536         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7537         * iconvdata/big5.c: Likewise.
7538         * iconvdata/ansi_x3.110.c: Likewise.
7539         * iconvdata/8bit-generic.c: Likewise.
7540         * iconvdata/8bit-gap.c: Likewise.
7541         * iconv/loop.c: Likewise.
7542         * iconv/gconv_db.c: Likewise.
7543         * iconv/gconv_dl.c: Likewise.
7544         * iconv/gconv_simple.c: Likewise.
7545         * iconv/skeleton.c: Likewise.
7547         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7548         (struct __gconv_step_data): Rename __is_last to __flags.
7549         * iconv/gconv_close.c: Change all uses of __is_last.
7550         * iconv/skeleton.c: Likewise.
7551         * iconvdata/iso-2022-cn.c: Likewise.
7552         * iconvdata/iso-2022-jp.c: Likewise.
7553         * iconvdata/iso-2022-kr.c: Likewise.
7554         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7555         Recognize IGNORE error handling, set flag, and remove from name.
7556         * iconv/loop.c (ignore_errors_p): Define.
7557         Add flags parameter to both functions.
7558         * iconv/skeleton.c: Pass flags to all conversion functions.
7559         * iconv/gconv_simple.c: Add flags parameter to all functions.
7560         Don't return error for invald error if ignore flag is set.
7561         (ucs4_internal_loop_single): Add missing pointer increment.
7562         (internal_ucs4le_loop_single): Likewise.
7563         * iconv/iconv_prog.c: Implement handling of -c parameter.
7564         * iconvdata/8bit-gap.c: Don't return error for invald error if
7565         ignore flag is set.
7566         * iconvdata/8bit-generic.c: Likewise.
7567         * iconvdata/ansi_x3.110.c: Likewise.
7568         * iconvdata/big5.c: Likewise.
7569         * iconvdata/big5hkscs.c: Likewise.
7570         * iconvdata/euc-cn.c: Likewise.
7571         * iconvdata/euc-jp.c: Likewise.
7572         * iconvdata/euc-kr.c: Likewise.
7573         * iconvdata/gbgbk.c: Likewise.
7574         * iconvdata/gbk.c: Likewise.
7575         * iconvdata/iso-2022-cn.c: Likewise.
7576         * iconvdata/iso-2022-jp.c: Likewise.
7577         * iconvdata/iso-2022-kr.c: Likewise.
7578         * iconvdata/iso646.c: Likewise.
7579         * iconvdata/iso8859-1.c: Likewise.
7580         * iconvdata/iso_6937-2.c: Likewise.
7581         * iconvdata/iso_6937.c: Likewise.
7582         * iconvdata/johab.c: Likewise.
7583         * iconvdata/sjis.c: Likewise.
7584         * iconvdata/t.61.c: Likewise.
7585         * iconvdata/uhc.c: Likewise.
7586         * iconvdata/unicode.c: Likewise.
7587         * iconvdata/utf-16.c: Likewise.
7588         * libio/fileops.c: Likewise.
7589         * libio/iofwide.c: Likewise.
7590         * wcsmbs/btowc.c: Likewise.
7591         * wcsmbs/mbrtowc.c: Likewise.
7592         * wcsmbs/mbsnrtowcs.c: Likewise.
7593         * wcsmbs/mbsrtowcs.c: Likewise.
7594         * wcsmbs/wcrtomb.c: Likewise.
7595         * wcsmbs/wcsnrtombs.c: Likewise.
7596         * wcsmbs/wcsrtombs.c: Likewise.
7597         * wcsmbs/wctob.c: Likewise.
7599         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7600         an error.
7602 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7604         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7605         counter for the object we are releasing, just decrement it.
7606         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7608 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7610         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7611         if -ffast-math.
7613 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7615         * iconvdata/big5hkscs.c: New file.
7616         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7618         * iconvdata/gconv-modules: Add entry for new module.
7619         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7620         (distribute): Add big5hkscs.c.
7622 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7624         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7625         inlines to match prototypes in mathcalls.h.
7626         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7627         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7628         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7629         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7631 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7633         * elf/elf.h (SHT_SUNW_move): Define.
7635         * elf/elf.h: Add more Solaris compatiblity definitions.
7637 2000-06-03  Andreas Jaeger  <aj@suse.de>
7639         * sysdeps/powerpc/dl-start.S: Close open comment.
7641 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7643         * inet/Versions: Fix typo in rresvport_af export.
7645 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7647         * math/tgmath.h: Pretty print.
7649 2000-06-02  Andreas Jaeger  <aj@suse.de>
7651         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7652         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7654 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7656         * elf/rtld.c (process_envvars): Test for = after variable name.
7658 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7660         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7661         have extra call to __gmon_start__, use the pointer we already have.
7663         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7664         shifting.
7666         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7667         binutils.  gas now emits a jump through the PLT instead of a
7668         relative jump if the jump target is an exported symbol.
7670 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7672         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7674 2000-05-31  Andreas Jaeger  <aj@suse.de>
7676         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7677         gregset_t.
7679         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7680         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7682         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7683         syscall.
7684         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7686 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7688         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7690         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7691         * locale/localeconv.c: Make function versioned (with same definition).
7693         * elf/Makefile (modules-names): Strip before using it.
7695 2000-05-30  Andreas Jaeger  <aj@suse.de>
7697         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7698         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7699         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7700         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7701         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7702         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7704 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7706         * Makefile: Add GNU make magic.
7708         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7709         Removed.
7710         * inet/rcmd.c: Remove __P.  Remove unused variables.
7711         (iruserfopen): Make first parameter const.
7712         (ruserok_sa): Return result of ruserok2_sa.
7713         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7714         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7715         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7716         (ruserpass): Check results of memory allocation.
7717         * include/netdb.h: Add prototype for ruserpass.
7719 2000-05-29  Andreas Jaeger  <aj@suse.de>
7721         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7722         for all platforms.
7724 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7726         * inet/rcmd.c (rresvport_af): Use correct port number.
7728 2000-05-26  Andreas Schwab  <schwab@suse.de>
7730         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7731         entries in all-sonames.
7732         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7733         preserving the old name if different for compatibility.
7735 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7737         * posix/Makefile (tests): Add tst-spawn.
7738         (tst-spawn-ARGS): New variable.
7739         * posix/tst-spawn.c: New file.
7741         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7742         * posix/spawn_faction_adddup2.c: Likewise.
7743         * posix/spawn_faction_addopen.c: Likewise.
7744         * posix/spawni.c: Correctly test for success of dup2 calls.
7746         * posix/tst-preadwrite.c: Check success of malloc call.
7748 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7750         * posix/Makefile (tests): Add tst-exec.
7751         (tst-exec-ARGS): New variable.
7752         * posix/tst-exec.c: New file.
7754         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7756 2000-05-04  Andreas Jaeger  <aj@suse.de>
7758         * string/string.h: Remove __strdup prototype, it's not needed in
7759         this file anymore.
7761 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7763         * posix/Makefile (tests): Add tst-fork.
7764         * posix/tst-fork.c: New file.
7766         * resolv/inet_pton.c: Loose __P.
7768 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7770         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7771         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7772         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7773         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7774         _IO_CHECK_WIDE fails.
7776 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7778         * po/da.po: New file.
7780         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7781         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7783         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7784         (Other iconv Implementations): Fix typo.
7785         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7787 2000-05-27  Andreas Jaeger  <aj@suse.de>
7789         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7790         normal version now.
7791         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7792         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7793         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7794         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7795         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7796         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7798         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7799         endianness to decide how to pass arguments.
7800         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7802         * elf/vismain.c: Use test-skeleton interface.
7803         (TEST_FUNCTION): New macro.
7804         (do_test): Renamed from main.
7806 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7808         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7809         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7811         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7812         handling of AI_V4MAPPED flag.
7814         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7815         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7816         perform lookup for T_A type and tell getanswer_r to convert the
7817         result with new argument.
7818         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7819         Don't convert addresses from IPv4 to IPv6 here.
7820         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7821         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7822         IPv4 mapping has to be done.  Perform mappings if required by the
7823         caller and not if RES_USE_INET6 bit in _res.options is set.
7824         Add several __builtin_expect.
7826 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7828         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7830         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7831         NULL.
7833         * posix/tst-preadwrite.c: Allow parallel execution of
7834         tst-preadwrite and tst-preadwrite64.
7836         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7837         * posix/tst-truncate.c: New file.
7838         * posix/tst-truncate64.c: New file.
7840         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7841         was switched.
7843         * posix/Makefile (tests): Add tst-preadwrite64.
7844         * posix/tst-preadwrite.c: Alloc file being used also for testing
7845         pread64 and pwrite64.
7846         * posix/tst-preadwrite64.c: New file.
7848 2000-05-26  Andreas Jaeger  <aj@suse.de>
7850         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7851         of arguments dependend on endianness.
7852         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7854         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7855         normal version now.
7856         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7857         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7858         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7859         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7861         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7862         endianness to check how to pass argument.
7863         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7865         * elf/ldconfig.h: Update parameter list for process_elf_file.
7867         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7868         Add parameter file_length and pass it ot process_elf*file.
7870         * sysdeps/generic/readelflib.c (check_ptr): New.
7871         (process_elf_file): Use check_ptr to check all accesses to the
7872         mmapped file. Add parameter file_length.
7874         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7875         library names.
7877         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7878         Closes PR libc/1573, reported by Bradley White
7879         <bww@laurelnetworks.com>.
7881 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7883         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7884         __FAST_MATH__ is defined.
7886 2000-05-22  Andreas Jaeger  <aj@suse.de>
7888         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7889         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7891         * manual/math.texi (FP Function Optimizations): Document gcc
7892         -ffast-math behaviour with mathinlines.
7894         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7895         functions unless -ffast-math is given to gcc.
7897 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7899         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7900         __sincosl): Guard with __USE_GNU.
7902 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7904         * csu/Makefile (routines): Add check_fds.
7905         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7906         binaries.  Add various __builtin_expect.
7907         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7908         * sysdeps/generic/check_fds.c: ...here.  New file.
7910         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7911         binaries if file /etc/suid-debug is available.
7913         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7914         and wcseqorder members.
7915         (struct locale_collate_t): Likewise.
7916         (collate_finish): Assign collation sequence value to each character.
7917         Create tables for output.
7918         (collate_output): Write out tables with collation sequence information.
7919         * locale/C-collate.c: Provide C locale data for collation sequence
7920         table.
7921         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7922         _NL_COLLATE_COLLSEQWC.
7923         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7924         _NL_COLLATE_COLLSEQWC.
7925         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7926         include fnmatch_loop.c.
7927         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7928         character is matched by range expression.  Use collation sequence
7929         table.  Outside glibc fall back on simple character value comparison.
7931 2000-05-24  Andreas Jaeger  <aj@suse.de>
7933         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7934         words.
7936         * intl/Makefile: Run gettext-test only if msgfmt is available.
7938         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7939         Define it for newer kernels.
7941 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7943         * elf/dl-sym.c: Minor cleanups.
7945         * configure.in: Add test for .protected.
7946         * config.make.in: Add have-protected variable.
7947         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7948         (tests-vis-yes): Add vismain.
7949         (modules-names): Add $(modules-vis-$(have-protected)).
7950         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7951         Add rules to generate and run vismain.
7952         * elf/vismain.c: New file.
7953         * elf/vismod1.c: New file.
7954         * elf/vismod2.c: New file.
7955         * elf/vismod3.c: New file.
7957 2000-05-23  Andreas Jaeger  <aj@suse.de>
7959         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7961         * manual/search.texi (Array Sort Function): Document that qsort is
7962         not necessarily in-place.
7964         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7965         Closes PR libc/1731.
7967         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7968         * dirent/scandir64.c: Likewise.
7969         * pwd/getpw.c: Likewise.
7970         * stdlib/bsearch.c (bsearch): Likewise.
7971         * stdlib/tst-strtoll.c: Likewise.
7972         * localedata/collate-test.c: Likewise.
7973         * localedata/xfrm-test.c: Likewise.
7974         * posix/bsd-getpgrp.c: Likewise.
7975         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7976         * sysdeps/generic/bits/siginfo.h: Likewise.
7977         * sysdeps/generic/bits/sockaddr.h: Likewise.
7978         * sysdeps/generic/sys/swap.h: Likewise.
7979         * sysdeps/generic/sys/sysinfo.h: Likewise.
7980         * sysdeps/generic/vfork.c: Likewise.
7981         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7982         * sysdeps/mach/hurd/fdopen.c: Likewise.
7983         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7984         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7985         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7986         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7987         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7988         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7989         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7991         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7992         * shadow/lckpwdf.c: Likewise.
7993         * stdlib/tst-strtol.c: Likewise.
7994         * sysdeps/generic/tcsetattr.c: Likewise.
7995         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7996         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7998 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
8000         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
8001         free it and set to (void *) -1.
8003 2000-05-22  Jakub Jelinek <jakub@redhat.com>
8005         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
8006         not the second character in the range.
8007         * stdio-common/tstscanf.c (main): Add testcase for the above.
8008         Reported by jik@kamens.brookline.ma.us.
8010 2000-05-21  H.J. Lu  <hjl@gnu.org>
8012         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
8013         with noexec and noplt parameter.
8014         (do_lookup): Likewise.
8016         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
8017         do_lookup.  Support STV_PROTECTED.
8018         (_dl_lookup_symbol_skip): Likewise.
8019         (_dl_lookup_versioned_symbol): Likewise.
8020         (_dl_lookup_versioned_symbol_skip): Likewise.
8022         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
8024         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
8026 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8028         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
8029         * sysdeps/i386/bits/huge_val.h: Likewise.
8030         * sysdeps/ieee754/bits/huge_val.h: Likewise.
8031         * sysdeps/m68k/bits/huge_val.h: Likewise.
8032         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
8033         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
8035 2000-05-22  Andreas Jaeger  <aj@suse.de>
8037         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
8038         change in iconv.h.
8040 2000-05-19  Andreas Jaeger  <aj@suse.de>
8042         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
8043         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
8044         breaks compilation without linuxthreads.
8046 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8048         * sysdeps/ia64/memccpy.S: New file.
8049         * sysdeps/ia64/memchr.S: New file.
8050         * sysdeps/ia64/memcmp.S: New file.
8051         * sysdeps/ia64/memcpy.S: New file.
8052         * sysdeps/ia64/memmove.S: New file.
8053         * sysdeps/ia64/memset.S: New file.
8054         * sysdeps/ia64/strcat.S: New file.
8055         * sysdeps/ia64/strchr.S: New file.
8056         * sysdeps/ia64/strcmp.S: New file.
8057         * sysdeps/ia64/strcpy.S: New file.
8058         * sysdeps/ia64/strlen.S: New file.
8059         * sysdeps/ia64/strncmp.S: New file.
8060         * sysdeps/ia64/strncpy.S: New file.
8061         * sysdeps/ia64/softpipe.h: New file.
8062         Patches by Dan Pop <Dan.Pop@cern.ch>.
8064         * manual/memory.texi: Document memory handling functions (mlock,
8065         munlock, mlockall, munlockall, brk, and sbrk)
8066         * manual/time.texi: Document timespec and friends.
8067         * manual/conf.texi: Fix references.
8068         * manual/ctype.texi: Likewise.
8069         * manual/errno.texi: Likewise.
8070         * manual/intro.texi: Likewise.
8071         * manual/locale.texi: Likewise.
8072         * manual/sysinfo.texi: Likewise.
8073         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8075 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
8077         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
8078         * sysdeps/ia64/dl-lookupcfg.h: ...here.
8080 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8082         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
8083         dxfer_direction.
8085 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8087         * locale/locale.h (struct lconv): Add new elements from ISO C99.
8088         * locale/localeconv.c: Initialize new elements from ISO C99.
8089         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
8090         new standard elements.
8091         * locale/categories.def: Adjust accordingly.
8093         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
8094         * iconv/iconv.c: Likewise.
8095         * conform/data/iconv.h-data: Likewise.
8096         * iconv/iconv_prog.c (process_block): Remove const from second
8097         parameter.
8098         (main): Remove const from addr definition.
8099         * manual/charset.texi (Generic Conversion Interface): Remove from
8100         inbuf parameter of iconv.
8102         * intl/dcigettext.c: Fix typo in comment.
8104 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
8106         * resolv/res_libc.c (_res): Initialize _sock to -1.
8108 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
8110         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
8111         (fopencookie@@GLIBC_2.2): New.
8112         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
8113         (fopencookie@GLIBC_2.0): New.
8114         * libio/Versions: Add fopencookie to GLIBC_2.2.
8116 2000-05-18  Andreas Jaeger  <aj@suse.de>
8118         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8119         Closes PR libc/1731.
8121         * manual/arith.texi (Parsing of Integers): Fix typo.
8122         Closes PR libc/1744, reported by blp@gnu.org.
8124 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8126         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
8127         __extension__ to hexadecimal floating constant notation.
8128         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8129         Likewise.
8130         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
8131         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8132         Likewise.
8133         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8134         HUGE_VALL): Likewise.
8135         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8136         HUGE_VALL): Likewise.
8137         (HUGE_VALL): Set to HUGE_VAL on sparc32.
8139 2000-05-17  Andreas Jaeger  <aj@suse.de>
8141         * string/envz.h: Add pure attributes if possible.
8143         * string/argz.h: argz_count is a pure function.
8145         * string/strings.h: Add pure and const attributes if possible.
8147         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
8148         possibly searching through the whole memory.
8149         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
8151 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8153         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
8154         not yet defined.
8155         (_dl_cache_check_flags): Likewise.
8156         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
8157         dl-cache.h.
8159 2000-05-17  Andreas Jaeger  <aj@suse.de>
8161         * manual/creature.texi (Feature Test Macros): Remove paragraph
8162         since the description is wrong.
8163         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
8165         * scripts/config.sub: New version.
8166         * scripts/config.guess: Likewise.
8167         * manual/texinfo.tex: Likewise.
8169         * time/test_time.args: Removed.
8170         * time/Makefile (test_time-ARGS): Added contents here instead.
8172         * posix/tstgetopt.args: Removed.
8173         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
8175         * Rules: Allow arguments for test files to be specified in
8176         Makefile with testname-ARGS; remove rules with .args in it.
8178         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
8179         remove old bogus rule for opendir-tst1.args.
8181         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
8183         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
8184         into objdir.  This allows a readonly sourcetree.
8185         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
8187 2000-05-16  Andreas Jaeger  <aj@suse.de>,
8188             David Huggins-Daines <dhd@linuxcare.com>
8190         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
8191         cache_data in case of only new cache format correctly.
8193         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
8194         cache_file_new.
8196         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
8197         struct cache_file_new.
8199         * elf/cache.c (save_cache): Fix str_offset if only new cache is
8200         present.
8202         * elf/cache.c (save_cache): Align struct new_file_cache.
8203         (print_cache): Likewise.
8205 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
8207         * elf/soinit.c (__libc_global_ctors): Move
8208         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
8209         * resolv/resolv.h (__res_state): Added __attribute__((const)).
8210         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
8211         variable, don't define it to __res_state call.
8213 2000-05-13  Andreas Jaeger  <aj@suse.de>
8215         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
8216         Linux 2.3.99pre7.
8217         (AF_PPPOX): Likewise.
8218         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
8219         (AF_PPPOX): Likewise.
8221 2000-05-12  Andreas Jaeger  <aj@suse.de>
8223         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
8224         Reported by tmoestl@gmx.net, closes PR libc/1732.
8226 2000-05-11  Jan Hubicka  <jh@suse.cz>
8228         * misc/sys/cdefs.h: Add support for pure attribute.
8230         * include/string.h: Add __attribute_pure__ to various functions.
8231         * string/string.h: Likewise.
8233 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8235         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
8236         argument.
8237         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8238         R_SPARC_UA64.
8239         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
8241 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8243         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
8244         at proper place.  Compute the high nibble correctly.
8246 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
8248         * elf/ldconfig.c: Include elf.h.
8250         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
8251         (_dl_vsym): Likewise.
8252         Reported by Owen Taylor <otaylor@redhat.com>.
8254         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
8255         always.
8257 2000-05-08  Andreas Jaeger  <aj@suse.de>
8259         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
8261         * intl/bindtextdom.c (set_binding_values): Add prototype.
8263 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8265         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
8266         call to elf_machine_fixup_plt.
8267         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8268         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8270 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8272         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
8273         they are not dlclose'd from underneath us.
8275 2000-05-08  Andreas Schwab  <schwab@suse.de>
8277         * posix/execle.c: Fix size parameter of memcpy.
8279 2000-05-08  Andreas Schwab  <schwab@suse.de>
8281         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
8282         getpagesize syscall if available.
8284 2000-05-08  Andreas Jaeger  <aj@suse.de>
8286         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
8287         set errno.
8289 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8291         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
8292         sizeof(struct link_map *) chunks, not in bytes.
8294 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8296         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
8297         only needed for locale.
8298         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
8299         It's only needed for catgets.
8300         Patches by Greg McGary <gkm@eng.ascend.com>.
8302 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
8304         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
8305         Remove duplicate <errno.h> include.  Remove inclusion of
8306         <libintl.h> and "nsswitch.h".
8307         (set_cloexec_flag): New function, broken out of dbopen.
8308         (dbopen): Changed return type to `enum
8309         nss_status'.  Mostly rewritten to make sure that we do not report
8310         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
8311         (internal_setent): Change return type to nss_status.
8312         Document, and make sure that the function
8313         behaves accordingly.  Make dynamically loading the database
8314         library really thread-safe and return NSS_STATUS_UNAVAIL if it
8315         failed.
8316         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
8317         unecessary casts.
8318         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
8319         documentation.
8320         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
8321         c_get function member.
8322         * nss/nss_db/nss_db.h: Add and tweak some comments.
8323         (DBT): Move typedef before NSS_DBC typedef.
8324         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
8326 2000-05-07  H.J. Lu  <hjl@gnu.org>
8328         * csu/initfini.c: Moved to ....
8329         * sysdeps/generic/initfini.c: ...here.
8331         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
8333 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8335         * manual/resource.texi: Document POSIX scheduling functions.
8336         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8338         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
8339         reading anything.  Reported by Andries.Brouwer@cwi.nl.
8341         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
8342         for x since promotion in comparison might leads to unexpected
8343         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
8345         * iconv/Makefile (tests): Add tst-iconv1.
8346         * iconv/tst-iconv1.c: New file.
8347         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
8348         empty input buffer over full output buffer.
8349         (ucs4_internal_loop): Likewise.
8350         (ucs4_internal_loop_unaligned): Likewise.
8351         (internal_ucs4le_loop): Likewise.
8352         (internal_ucs4le_loop_unaligned): Likewise.
8353         (ucs4le_internal_loop): Likewise.
8354         (ucs4le_internal_loop_unaligned): Likewise.
8355         Reported by yaoz@nih.gov.
8357 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8359         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
8360         returned != __GCONV_OK, there is nothing to clean up.
8362 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8364         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
8365         OUTPUT_CHARSET environment variables.
8367 2000-05-06  Andreas Jaeger  <aj@suse.de>
8369         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
8370         (struct cache_file_new): New.
8371         (struct file_entry): New (moved from cache.c).
8372         (struct cache_file): New (moved from cache.c).
8374         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
8375         from _dl_load_cache_lookup.
8376         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
8377         the different cache formats.
8378         New variable cache_new for new format.
8380         * elf/ldconfig.h: Change according to changes in cache.c and
8381         ldconfig.c; remove cache_libcmp; add opt_format.
8383         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
8384         stuff that's defined in those headers.
8385         Add hwcap to struct lib_entry.
8386         (opt_format): New variable to select cache format.
8387         (options): Add format parameter.
8388         (is_hwcap): New function.
8389         (path_hwcap): New function.
8390         (parse_opt): Handle new format parameter.
8391         (search_dir): Handle hwcap, search also subdirectories with hwcap.
8393         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
8394         ldconfig is part of glibc.
8395         Include dl-cache.h and remove stuff that's defined there.
8396         (struct cache_entry): Add new member hwcap.
8397         (print_entry): Print hwcap, cleanup a bit.
8398         (print_cache): Print new and old formats.
8399         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
8400         (save_cache): Save new and old formats.
8401         (add_to_cache): Handle hwcap.
8403         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
8404         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
8405         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
8406         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
8407         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
8408         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
8410 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8412         * intl/dcigettext.c (alignof): New macro.
8413         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
8414         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
8415         freemem_size to 0.
8417 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8419         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
8420         return value.
8422 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8424         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
8425         (mempcpy): Correct typo is parameter list.
8427 2000-05-06  Andreas Jaeger  <aj@suse.de>
8429         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
8430         functions unless -ffast-math is given to gcc.
8432 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8434         * po/ko.po: Update from translation team.
8436 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8438         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
8439         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
8440         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
8441         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8442         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8443         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8445         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8446         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8447         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8449         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8450         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8451         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8452         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8454         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8455         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8457 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8459         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8460         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8462         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8463         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8465         * sysdeps/ia64/Implies: New file.
8466         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8467         * sysdeps/ia64/Makefile: New file.
8468         * sysdeps/ia64/gmp-mparam.h: New file,
8470         * sysdeps/ia64/elf/start.S: New file.
8472         * sysdeps/ia64/bits/fenv.h: New file.
8474 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8476         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8478 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8480         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8481         ia64 has 64 bit .hash entries just as the Alpha.
8483 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8485         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8487 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8489         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8490         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8491         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8492         * sysdeps/ia64/fpu/fegetenv.c: New file.
8493         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8494         * sysdeps/ia64/fpu/fegetround.c: New file.
8495         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8496         * sysdeps/ia64/fpu/fesetenv.c: New file.
8497         * sysdeps/ia64/fpu/fesetround.c: New file.
8498         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8499         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8500         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8501         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8502         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8504 2000-05-05  Andreas Jaeger  <aj@suse.de>
8506         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8508         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8509         (_dl_string_hwcap): New, does nothing.
8511         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8512         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8513         (_dl_string_hwcap): New function, converts from string to hwcap
8514         encoding.
8515         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
8516         (_DL_HWCAP_COUNT): New.
8517         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8518         (_dl_string_hwcap): New function, converts from string to hwcap
8519         encoding.
8520         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8521         (_DL_HWCAP_COUNT): New.
8522         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8523         (_dl_string_hwcap): New function, converts from string to hwcap
8524         encoding.
8526 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8528         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8529         * sysdeps/ia64/Dist: New file.
8531         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8532         parameter to mprotect and for variable assignments.
8534 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8536         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8537         validity of map before dereferencing it.
8539         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8541 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8543         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8544         lookup to the arguments to elf_machine_fixup_plt().
8546         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8547         of the symbol being resolved to input argument list and make the
8548         function return the pointer to the reloc.
8550         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8551         return valuie to lookup_t and return the value.
8552         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8553         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8554         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8555         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8556         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8557         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8559         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8560         Make it an inline function returning value after calling
8561         __elf_machine_fixup_plt().
8563         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8564         symbol address.
8566         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8567         obtain the symbol address.
8569         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8570         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8572         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8573         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8574         inline on non ia64.
8576 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8578         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8579         symbol address of an object.
8581         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8582         the symbol address of an object.
8584         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8585         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8586         (_dl_lookup_symbol_skip): Likewise.
8587         (_dl_lookup_versioned_symbol): Likewise.
8588         (_dl_lookup_versioned_symbol_skip): Likewise.
8590 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8592         * elf/rtld.c (_dl_start): Get the function pointer return address
8593         via _dl_start_address for architectures that need a function
8594         pointer descriptor rather than just a pointer (ia64).
8596         * sysdeps/generic/dl-lookupcfg.h: New file.
8597         * sysdeps/ia64/dl-lookupcfg.h: New file.
8598         * sysdeps/ia64/dl-machine.h: New file.
8599         * sysdeps/ia64/dl-symaddr.c: New file.
8600         * sysdeps/ia64/dl-fptr.c: New file.
8602         * elf/elf.h: Add IA-64 specific definitions.
8604 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8606         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8607         end of enum.
8609 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8611         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8612         happy.
8614 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8616         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8617         symbol.  Call _dl_init rather than the old way.
8619 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8621         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8622         test for pointer in range of DSO address space.
8624 2000-05-04  Andreas Jaeger  <aj@suse.de>
8626         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8628 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8630         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8631         calls of _nl_make_l10nflist.
8633         * libio/stdio.h: Make fseeko and ftello prototypes available is
8634         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8636         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8637         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8639 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8641         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8642         before calling tfind.
8644 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8646         * resolv/resolv.h (res_querydomain): Remove redefinition to
8647         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8649 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8651         * po/gl.po: Update from translation team.
8653         * manual/intro.texi (Program Basics): Change section title.
8654         * manual/process.texi: Fix reference.
8655         (Executing a File): Add reference exec in other section.
8656         * manual/signal.texi: Fix reference.
8657         * manual/startup.texi: Document syscall function.
8658         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8660 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8662         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8663         * intl/bindtextdom.c (set_binding_values): New function.
8664         (bindtextdomain): Call it.
8665         (bind_textdomain_codeset): New function.
8666         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8667         (free_mem): Free each binding's codeset.
8668         * intl/gettextP.h (struct binding): Add codeset field.
8669         (_nl_find_domain): Add domainbinding argument.
8670         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8671         Pass it to _nl_make_l10nflist.
8672         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8673         (_nl_make_l10nflist): Add domainbinding argument.
8674         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8675         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8676         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8677         locale_charset().
8678         * manual/message.texi: New node "Charset conversion in gettext".
8680 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8682         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8683         appropriate.  Handle possible __read error.
8685 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8687         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8688         compiler builtin.
8689         * intl/loadinfo.h (__builtin_expect): Likewise.
8690         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8691         __builtin_expect where appropriate.
8692         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8693         * intl/localealias.c (extend_alias_table): Return an error indicator.
8694         (read_alias_file): Bail out if extend_alias_table fails.
8696 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8698         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8699         * intl/localealias.c: Likewise.
8701 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8703         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8704         Initialize domain->plural and domain->nplurals even if there is no
8705         nullentry.
8707 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8709         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8710         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8711         In case of failure, goto converted.
8713 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8715         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8716         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8717         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8718         __gconv_open.
8720 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8722         * intl/dcigettext.c (transcmp): Compare the domains as well.
8723         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8724         not before.
8725         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8726         <errno.h>.
8728 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8730         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8731         Reported by Bruno Haible.
8733 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8735         * manual/arith.texi: Remove @w from @itemize.
8737 2000-05-02  Andreas Jaeger  <aj@suse.de>
8739         * conform/data/tar.h-data: Add some checks for specific values.
8741         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8742         and RAND_MAX.
8744         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8745         FOPEN_MAX.
8747         * conform/data/netinet/in.h-data: Add exact checks for the values
8748         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8750         * conform/data/float.h-data: Add some minimal values.
8752         * conform/conformtest.pl: Test for macros with string constants,
8753         check for minimum and maximum values.
8754         Add limits.h to headers.
8756         * conform/data/cpio.h-data: Test for value of MAGIC.
8758         * conform/data/limits.h-data: New file.
8760 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8762         * math/Makefile (headers): Add bits/fenvinline.h.
8764 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8766         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8767         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8769         * posix/Versions: Change posix_spawnattr_getdefault and
8770         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8771         and posix_spawnattr_setsigdefault respectively.
8772         * posix/spawn.h: Likewise.
8773         * posix/spawnattr_getdefault.h: Likewise.
8774         * posix/spawnattr_setdefault.h: Likewise.
8775         * conform/data/spawn.h-data: Likewise.
8777 2000-05-01  Andreas Jaeger  <aj@suse.de>
8779         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8781 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8783         * manual/sysinfo.texi: Document getdomainname, setdomainname
8784         and sysctl.
8785         * manual/string.texi: Fix typo.
8786         * manual/terminal.texi: Document gtty and stty.
8787         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8789 2000-04-30  Andreas Jaeger  <aj@suse.de>
8791         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8792         accordance with Austin Draft.
8794 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8796         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8797         to recognize second character in comment line.
8799         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8800         ENOBUFS if we are out of memory.
8802         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8803         available if __USE_XOPEN2K.
8804         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8805         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8806         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8807         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8808         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8809         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8810         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8811         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8813 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8815         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8816         Recognize option -s, -c, and -l.
8818 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8820         * nscd/nscd.c: Start new session for nscd, drop privilegs
8821         to configured user if requested and no -S parameter are used.
8822         * nscd/nscd.conf: Add new option "server-user".
8823         * nscd/nscd_conf.c: Add support for new "server-user" option.
8824         * nscd/nscd.h: Add declaration for server_user variable.
8825         Based on patch by Chris Wing <wingc@engin.umich.edu>
8827 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8829         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8830         that changing the __restore and __restore_rt signal return code
8831         will break GDB.
8833 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8835         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8836         <sys/user.h>.
8838 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8840         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8842 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8844         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8845         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8846         arpa/inet.h.
8847         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8848         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8849         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8850         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8851         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8852         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8853         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8854         posix_fallocate, and posix_madvise.
8855         * conform/data/netdb.h-data: New file.
8856         * conform/data/pthread.h-data: Add pthread_barrier_t,
8857         pthread_barrierattr_t, pthread_barrier_destroy,
8858         pthread_barrier_init, pthread_barrier_wait,
8859         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8860         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8861         pthread_condattr_getclock, pthread_condattr_setclock,
8862         pthread_getcpuclockid, pthread_mutex_timedlock,
8863         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8864         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8865         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8866         * conform/data/sched.h-data: Add sched_ss_low_priority,
8867         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8868         SCHED_SPORADIC.
8869         * conform/data/semaphore.h-data: Add sem_timedwait.
8870         * conform/data/signal.h-data: Add SIGIO.
8871         * conform/data/spawn.h-data: New file.
8872         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8873         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8874         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8875         Fix typo in gmtime_r definition.
8876         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8877         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8878         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8879         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8880         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8881         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8882         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8883         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8884         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8885         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8886         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8887         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8888         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8889         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8890         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8891         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8892         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8893         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8894         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8895         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8896         typo in off_t definition.
8897         * conform/data/net/if.h-data: New file.
8898         * conform/data/netinet/in.h-data: New file.
8899         * conform/data/netinet/tcp.h-data: New file.
8900         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8901         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8902         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8903         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8904         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8905         and posix_typed_mem_open.
8906         * conform/data/sys/socket.h-data: New file.
8907         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8908         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8909         pthread_barrierattr_t, and pthread_spinlock_t.
8910         * conform/data/sys/un.h-data: New file.
8911         * conform/data/sys/utsname.h-data: New file.
8913         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8914         parameter.
8915         * inet/gethstbyad.c (gethostbyname): Likewise.
8916         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8917         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8918         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8919         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8920         Likewise.
8921         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8922         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8923         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8924         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8925         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8926         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8927         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8928         and second parameter.
8930         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8931         == NULL.
8933 2000-04-29  Andreas Jaeger  <aj@suse.de>
8935         * conform/data/arpa/inet.h-data: New file.
8937 2000-04-28  Geoff Clare <gwc@unisoft.com>
8939         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8940         path passed to ftw() or nftw() is an empty string.
8941         Closes PR libc/1710.
8943 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8945         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8946         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8947         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8948         * localedata/tst-mbswcs4.c: New file.
8949         * localedata/tst-mbswcs5.c: New file.
8951         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8952         == NULL.  Little optimization.
8954         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8955         DT_PREINIT_ARRAYSZ).
8956         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8958         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8959         overflows in conversion from ASCII.
8961 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8963         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8964         * Makerules (full_config_sysdirs): Likewise.
8965         * MakeTAGS (full_config_sysdirs): Likewise.
8967 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8969         * .cvsignore: Remove linuxthreads.
8970         * po/.cvsignore: Remove *.pot.
8971         * posix/glob/.cvsignore: Removed.
8972         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8974 2000-04-25  Andreas Jaeger  <aj@suse.de>
8976         * conform/Makefile (distribute): Also distribute contents of
8977         subdirectories.
8979         * Makerules (no_deps): Remove abi-versions.h.
8981         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8983 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8985         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8986         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8987         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8988         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8989         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8990         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8991         objects.
8993 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8995         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8997 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8999         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
9000         * intl/l10nflist.c: Likewise.
9002 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9004         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
9005         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
9006         * intl/textdomain.c [!_LIBC]: Likewise.
9007         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
9008         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
9009         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
9010         syntax error.
9012 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9014         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
9015         character set conversion also in the case the translation was found
9016         after a hash collision or through binary search.  Store the maximum
9017         index together with the converted message.  Use iconv() when available.
9018         In case of out of memory during conversion, return the unconverted
9019         translated string, not NULL.
9021 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
9023         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
9024         to avoid name clashes with the ia32 linker.
9026 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9028         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
9029         handling.
9031 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9033         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
9034         strtoumax, strfry, and memfrob.
9035         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
9036         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9038         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
9039         if this function is available.
9041         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
9042         all values.
9044 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
9046         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
9048 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9050         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
9051         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
9052         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
9053         * localedata/tst-mbswcs3.c: New file.
9055 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
9057         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
9058         characters.  Don't handle incomplete characters as errors.
9059         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
9060         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
9061         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
9062         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
9063         * localedata/tst-mbswcs2.c: New file.
9065         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
9066         stored character in state in UNPACK_BYTES macro.
9067         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
9068         test for available characters, handle result of BODY code correctly.
9069         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
9070         (distribute): Add tst-mbswcs.sh.
9071         Add rule to run tst-mbswcs.sh.
9072         * localedata/tst-mbswcs.sh: New file.
9073         * localedata/tst-mbswcs1.c: New file.
9075 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9077         * nis/nis_callback.c (__nis_create_callback): Do failed memory
9078         allocation fixups centrally, fix __builtin_expect call, return NULL
9079         on failure, not NIS_NOMEMORY.
9081 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
9083         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
9085         * intl/loadinfo.h (internal_function): Define if not already defined.
9087 2000-04-27  Andreas Jaeger  <aj@suse.de>
9089         * intl/libintl.h: Fix typo, reported by Bruno Haible
9090         <haible@clisp.cons.org>.
9092 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
9094         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
9095         setting the state to GMON_PROF_BUSY.
9097 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
9099         * elf/dl-profile.c (_dl_start_profile): define all variables which
9100         do not have to be global as local variables.
9102         * nis/nis_callback.c (__nis_create_callback): Partially undo last
9103         patch.  Keep needed tests for failed memory allocation.
9105         * elf/dl-reloc.c (_dl_relocate_object): Add one more
9106         __builtin_expect saying that we don't normally expect to profile.
9108         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
9109         __builtin_expect where desirable.
9111 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9113         * manual/Makefile (chapters): Add syslog.
9114         * manual/syslog.texi: New file.
9115         * manual/math.texi: Fix references.
9116         * manual/terminal.texi: Likewise.
9117         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9119 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
9121         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
9122         stdlib.h was not included or __USE_XOPEN not defined.
9124 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9126         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
9127         Patch by Zack Weinberg <zack@wolery.cumb.org>.
9129 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
9131         * manual/examples/subopt.c (mount_opts): Add missing terminating
9132         entry.
9133         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
9135         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
9136         * libio/ftello.c: Likewise.
9137         * libio/ftello64.c: Likewise.
9138         * libio/ioftell.c: Likewise.
9139         * sysdeps/generic/memrchr.c: Likewise.
9140         * sysdeps/posix/libc_fatal.c: Likewise.
9141         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9142         * misc/fstab.c: Include <string.h> for strcmp prototype.
9143         * sysdeps/generic/ldsodefs.h: Likewise.
9144         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9145         Patch by Kurt Roeckx <Q@ping.be>.
9147         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
9148         Remove db-open.  Change all uses.
9149         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
9151 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9153         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
9154         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
9155         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
9156         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
9157         with .set noat/at to shut up warnings.
9158         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
9159         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
9160         compilation if __NR_pciconfig_iobase is not defined.
9161         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
9162         Add alias.
9164 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9166         * manual/sysinfo.texi: Fix typo.
9167         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
9168         Replace "high precision time" with "high accuracy clock".
9169         Fix language.
9170         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
9172         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
9173         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
9174         instead of malloc.
9175         * nis/nis_subr.c: Use __builtin_expect.
9176         * nis/ypclnt.c: Likewise.
9177         * nis/nis_getservlist.c: Likewise.
9178         * nis/nis_creategroup.c: Likewise.
9180         * nis/nis_callback.c (__nis_create_callback): Check result of
9181         memory allocation.  Fix memory leaks.  Use __builtin_expect.
9182         (__nis_destroy_callback): Fix memory leaks.
9184 2000-04-21  Andreas Jaeger  <aj@suse.de>
9186         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
9187         * sysdeps/mips/mips64/add_n.S: Likewise.
9188         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9189         * sysdeps/mips/mips64/lshift.S: Likewise.
9190         * sysdeps/mips/mips64/mul_1.S: Likewise.
9191         * sysdeps/mips/mips64/rshift.S: Likewise.
9192         * sysdeps/mips/mips64/setjmp.S: Likewise.
9193         * sysdeps/mips/mips64/sub_n.S: Likewise.
9194         * sysdeps/mips/mips64/submul_1.S: Likewise
9195         * sysdeps/unix/mips/sysdep.S: Likewise.
9197         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
9198         and update comment.  The strtab from _dl_relocate_object can be
9199         used.
9201 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9203         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
9204         * iconv/iconv_close.c (iconv_close): Likewise.
9205         * iconv/iconv_open.c (iconv_open): Likewise.
9207         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
9208         __builtin_expect where useful.
9210         * grp/initgroups.c (initgroups): Test for result of memory
9211         allocation and punt if it fails.
9213         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
9214         * grp/fgetgrent.c (fgetfrent): Likewise.
9215         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
9217 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9219         * libio/vasprintf.c: Include string.h to get memcpy prototype.
9221 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9223         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
9224         don't search for NUL byte to decrement counter.
9225         Reported by Ulrich.Brink@sap.com.
9227         * iconv/gconv_simple.c: Define separate functions to convert from
9228         UCS4/UCS4-LE to the internal encoding.
9229         * iconv/gconv_builtin.h: Use separate functions to convert from
9230         UCS4/UCS4-LE to the internal encoding.
9231         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
9232         __gconv_transform_ucs4le_internal.
9234         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
9235         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
9237         * iconv/skeleton.c: Add some more __builtin_expect.
9238         * iconv/loop.c: Likewise.
9240 2000-03-08  H.J. Lu  <hjl@gnu.org>
9242         * posix/regex.c (regex_compile): Correctly handle "\{" when
9243         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
9245 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9247         * manual/stdio.texi: Give advise about handling error when using
9248         stream functions.
9249         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
9251 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
9253         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
9254         field to nelems * sizeof (uint32_t).
9255         * locale/programs/ld-address.c (address_output): Align word fields
9256         properly.
9257         * locale/programs/ld-monetary.c (monetary_output): Likewise.
9258         Don't restart idx pointers to idx end at the duo_int_curr_symbol
9259         field.
9260         Avoid giving arbitrary garbage in the crncystr field.
9261         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
9262         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
9263         fields.
9264         * locale/programs/ld-numeric.c (numeric_output): Likewise.
9265         Don't restart idx pointers to idx end at the decimal_point_wc field.
9266         * locale/programs/ld-time.c (time_output): week_1stday should be
9267         word, not byte.  Align it properly.
9269 2000-04-19  H.J. Lu  <hjl@gnu.org>
9271         * csu/gmon-start.c (_start): Declared as "extern void".
9272         (etext): Likewise.
9274 2000-04-18  Andreas Jaeger  <aj@suse.de>
9276         * manual/install.texi (Running make install): Don't mention utmpd
9277         anymore.
9279 2000-04-18  Andreas Jaeger  <aj@suse.de>
9281         * linuxthreads/Versions: Use ld instead of ld.so.
9283         * elf/Makefile (ld-map): Use ld.map.
9285         * Versions.def: Use ld instead of ld.so.
9286         * elf/Versions: Likewise.
9287         * sysdeps/mach/hurd/Versions: Likewise.
9289 2000-04-20  Andreas Jaeger  <aj@suse.de>
9291         * elf/rtld.c (print_statistics): Move ifndef further up.
9292         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
9293         (dl_main): Likewise.
9295 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9297         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
9298         * gmon/Versions: Move moncontrol to GLIBC_2.2.
9300         * po/cs.po: Update from translation team.
9302         * sysdeps/generic/updwtmp.c: Remove daemon support.
9304         * login/Makefile (routines): Remove utmp_daemon.
9306         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
9307         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
9308         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
9309         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
9311         * elf/rtld.c: Display statitics option also if hp timing is not
9312         available.
9314         * login/programs/connection.c: Removed.
9315         * login/programs/database.c Removed.
9316         * login/programs/error.c: Removed.
9317         * login/programs/request.c: Removed.
9318         * login/programs/xtmp.c: Removed.
9319         * login/programs/xtmp.h: Removed.
9320         * login/Makefile: Remove rules for utmpd.
9321         * login/README.utmpd: Removed.
9322         * login/utmp_daemon.c: Removed.
9323         * login/getutent_r.c: Remove references to daemon functions.
9324         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
9325         declaration.
9327 2000-04-18  Andreas Jaeger  <aj@suse.de>
9329         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9330         2.2 for libnsl, libresolv, librt, libnss_*.
9332         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
9334         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
9336 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9338         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
9339         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
9340         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
9341         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
9342         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
9343         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
9344         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
9345         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
9346         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
9347         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
9348         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
9349         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
9350         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
9351         it here.
9352         * sysdeps/unix/sysv/aix/msync.c: New file.
9353         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
9354         * sysdeps/unix/sysv/aix/net/if.h: New file.
9355         * sysdeps/unix/sysv/aix/pipe.c: New file.
9356         * sysdeps/unix/sysv/aix/poll.c: New file.
9357         * sysdeps/unix/sysv/aix/rename.c: New file.
9358         * sysdeps/unix/sysv/aix/rmdir.c: New file.
9359         * sysdeps/unix/sysv/aix/select.c: New file.
9360         * sysdeps/unix/sysv/aix/semctl.c: New file.
9361         * sysdeps/unix/sysv/aix/semget.c: New file.
9362         * sysdeps/unix/sysv/aix/semop.c: New file.
9363         * sysdeps/unix/sysv/aix/sendto.c: New file.
9364         * sysdeps/unix/sysv/aix/setgroups.c: New file.
9365         * sysdeps/unix/sysv/aix/setpgid.c: New file.
9366         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
9367         * sysdeps/unix/sysv/aix/setpriority.c: New file.
9368         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
9369         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
9370         * sysdeps/unix/sysv/aix/setsid.c: New file.
9371         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
9372         * sysdeps/unix/sysv/aix/shmat.c: New file.
9373         * sysdeps/unix/sysv/aix/shmctl.c: New file.
9374         * sysdeps/unix/sysv/aix/shmdt.c: New file.
9375         * sysdeps/unix/sysv/aix/shmget.c: New file.
9376         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
9377         * sysdeps/unix/sysv/aix/sigstack.c: New file.
9378         * sysdeps/unix/sysv/aix/socket.c: New file.
9379         * sysdeps/unix/sysv/aix/socketpair.c: New file.
9380         * sysdeps/unix/sysv/aix/speed.c: New file.
9381         * sysdeps/unix/sysv/aix/symlink.c: New file.
9382         * sysdeps/unix/sysv/aix/sync.c: New file.
9383         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
9384         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
9385         * sysdeps/unix/sysv/aix/times.c: New file.
9386         * sysdeps/unix/sysv/aix/ulimit.c: New file.
9387         * sysdeps/unix/sysv/aix/umask.c: New file.
9388         * sysdeps/unix/sysv/aix/unlink.c: New file.
9389         * sysdeps/unix/sysv/aix/ustat.c: New file.
9390         * sysdeps/unix/sysv/aix/utimes.c: New file.
9392 2000-04-18  Andreas Jaeger  <aj@suse.de>
9394         * manual/startup.texi (Environment Access): Fix putenv prototype
9395         according to recent changes.
9396         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
9397         PR libc/1692.
9399         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
9400         needed.
9402 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9404         * posix/Makefile (tests): Add tst-getaddrinfo.
9405         * posix/tst-getaddrinfo.c: New file.
9407 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9409         * manual/sysinfo.texi: Document that umount2 is not widely available.
9411         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
9412         signal timing is not really implemented.
9414 2000-04-17  Andreas Jaeger  <aj@suse.de>
9416         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
9418 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9420         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
9421         and inst_libdir.
9423 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9425         * manual/intro.texi: Change reference from System Information to
9426         System Management.
9427         * manual/users.texi: Likewise.
9428         * manual/conf.texi: Likewise.
9429         * manual/sysinfo.texi: Document mount, umount, and umount2.
9430         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9432 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9434         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
9435         Create wnumstr as well as numstr to support wide character output
9436         correctly.
9438 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
9440         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
9441         modification and move it...
9442         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9443         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9444         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9445         switch to $(LD) on sparc-linux.
9447 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9449         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9450         and setresuid from sysdep_routines.
9452 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9454         * manual/Makefile (chapters): Add resource.
9456         * manual/time.texi: Move section on resources to...
9457         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9458         and vtimes.
9459         * manual/setjmp.texi: Adjust back reference.
9460         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9462         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9463         definition.
9464         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9465         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9466         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9467         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9468         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9469         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9470         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9471         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9472         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9473         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9474         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9475         * sysdeps/unix/sysv/aix/Implies: New file.
9476         * sysdeps/unix/sysv/aix/Versions: New file.
9477         * sysdeps/unix/sysv/aix/bind.c: New file.
9478         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9479         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9480         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9481         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9482         * sysdeps/unix/sysv/aix/chdir.c: New file.
9483         * sysdeps/unix/sysv/aix/chmod.c: New file.
9484         * sysdeps/unix/sysv/aix/chroot.c: New file.
9485         * sysdeps/unix/sysv/aix/creat.c: New file.
9486         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9487         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9488         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9489         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9490         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9491         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9492         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9493         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9494         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9495         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9496         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9497         * sysdeps/unix/sysv/aix/link.c: New file.
9498         * sysdeps/unix/sysv/aix/madvise.c: New file.
9499         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9500         * sysdeps/unix/sysv/aix/mknod.c: New file.
9501         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9502         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9503         * sysdeps/unix/sysv/aix/msgget.c: New file.
9504         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9506 2000-04-17  Andreas Jaeger  <aj@suse.de>
9508         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9509         as suggested by Ulrich Drepper.
9510         (__dl_runtime_resolve): Remove unused variable, initialize sym
9511         directly.
9512         (RTLD_START): Document OFFSET_GP_GOT.
9513         (OFFSET_GP_GOT): New magic value.
9514         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9515         (elf_machine_got_rel): Only declare strtab if needed.
9516         (elf_machine_relplt): Removed, it's not needed.
9517         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9519         * sysdeps/mips/add_n.S: Add newline at EOF.
9520         * sysdeps/mips/rshift.S: Likewise.
9521         * sysdeps/mips/mul_1.S: Likewise.
9522         * sysdeps/mips/lshift.S: Likewise.
9523         * sysdeps/mips/addmul_1.S: Likewise.
9525 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9527         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9529         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9530         * elf/dl-lookup.c: Likewise.
9531         * elf/dl-init.c (_dl_init): Likewise.
9532         * elf/dl-fini.c (_dl_fini): Likewise.
9533         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9534         * elf/dl-close.c (_dl_close): Likewise.
9535         * elf/rtld.c (_dl_start_final): Likewise.
9537         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9539 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9541         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9542         only fall back on using Linux.
9544         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9545         Before testing versions check that we actually loaded the object
9546         and whether we are in trace mode.  If not loaded during tracing don't
9547         test versions in this object.
9548         (_dl_check_all_versions): Take new parameter and pass to
9549         _dl_check_map_versions.
9550         * sysdeps/generic/ldsodefs.h: Update prototypes for
9551         _dl_check_all_versions and _dl_check_map_versions.
9552         * elf/rtld.c (struct version_check_args): Add dotrace.
9553         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9554         (dl_main): Pass info about trace mode to version_check_doit.
9555         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9556         _dl_check_all_versions.
9558         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9559         and getutmpx.
9560         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9562         * manual/argp.texi: Document index parameter of argp_parse.
9563         Fix typo.
9564         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9566 2000-04-14  Andreas Jaeger  <aj@suse.de>
9568         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9569         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9571         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9573 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9575         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9576         compat_symbol call for old adjtime.
9578         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9579         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9581         * posix/Makefile (headers): Add spawn.h.
9582         (distribute): Add spawn_int.h.
9583         (routines): Add spawn_faction_init, spawn_faction_destroy,
9584         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9585         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9586         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9587         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9588         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9589         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9590         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9591         posix_spawnattr_init, posix_spawnattr_destroy,
9592         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9593         posix_spawnattr_getflags, posix_spawnattr_setflags,
9594         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9595         and posix_spawnp.
9596         * posix/spawn.c: New file.
9597         * posix/spawn.h: New file.
9598         * posix/spawn_faction_addclose.c: New file.
9599         * posix/spawn_faction_adddup2.c: New file.
9600         * posix/spawn_faction_addopen.c: New file.
9601         * posix/spawn_faction_destroy.c: New file.
9602         * posix/spawn_faction_init.c: New file.
9603         * posix/spawn_int.h: New file.
9604         * posix/spawnattr_destroy.c: New file.
9605         * posix/spawnattr_getdefault.c: New file.
9606         * posix/spawnattr_getflags.c: New file.
9607         * posix/spawnattr_getpgroup.c: New file.
9608         * posix/spawnattr_getschedparam.c: New file.
9609         * posix/spawnattr_getschedpolicy.c: New file.
9610         * posix/spawnattr_getsigmask.c: New file.
9611         * posix/spawnattr_init.c: New file.
9612         * posix/spawnattr_setdefault.c: New file.
9613         * posix/spawnattr_setflags.c: New file.
9614         * posix/spawnattr_setpgroup.c: New file.
9615         * posix/spawnattr_setschedparam.c: New file.
9616         * posix/spawnattr_setschedpolicy.c: New file.
9617         * posix/spawnattr_setsigmask.c: New file.
9618         * posix/spawni.c: New file.
9619         * posix/spawnp.c: New file.
9621         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9622         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9624 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9626         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9627         * malloc/malloc.c: Implement posix_memalign for glibc.
9628         * include/stdlib.h: Add prototype for __posix_memalign.
9629         * stdlib/stdlib.h: Add prototype for posix_memalign.
9631 2000-04-14  Andreas Jaeger  <aj@suse.de>
9633         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9634         symidx correctly.
9635         (elf_machine_got_rel): Cast sym correctly.
9637         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9638         * sysdeps/mips/addmul_1.S: Likewise.
9639         * sysdeps/mips/lshift.S: Likewise.
9640         * sysdeps/mips/mul_1.S: Likewise.
9641         * sysdeps/mips/rshift.S: Likewise.
9642         * sysdeps/mips/sub_n.S: Likewise.
9643         * sysdeps/mips/submul_1.S: Likewise.
9645         * stdlib/stdlib.h: Fix typo in comment.
9647         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9648         2.2 for libdl, ld and libm.
9650         * sysdeps/generic/madvise.c: Fix typos.
9652         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9654         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9656         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9657         warnings.
9659 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9661         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9662         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9663         Make old name weak alias.
9664         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9665         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9666         Make old name weak alias.
9667         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9669         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9670         posix_fallocate, and posix_fallocate64.
9671         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9672         posix_fallocate, and posix_fallocate64.
9673         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9674         posix_fallocate, and posix_fallocate64.
9675         * sysdeps/generic/fadvise.c: New file.
9676         * sysdeps/generic/fadvise64.c: New file.
9677         * sysdeps/generic/fallocate.c: New file.
9678         * sysdeps/generic/fallocate64.c: New file.
9679         * sysdeps/posix/fallocate.c: New file.
9680         * sysdeps/posix/fallocate64.c: New file.
9681         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9682         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9683         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9684         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9685         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9686         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9687         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9688         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9691         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9692         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9694 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9696         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9697         * misc/sys/mman.h (posix_madvise): Add prototype.
9698         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9699         old name and posix_madvise weak aliases.
9700         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9701         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9702         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9703         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9704         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9705         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9706         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9708 2000-04-13  Andreas Jaeger  <aj@suse.de>
9710         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9711         versioning.
9712         (elf_machine_got_rel): Only add runtime display if needed.
9713         (elf_machine_got_rel): Handle symbol versioning.
9715 2000-04-13  Andreas Jaeger  <aj@suse.de>
9717         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9719         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9720         default.
9722         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9723         with some applications.
9724         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9726         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9727         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9728         * sysdeps/mips/setjmp.S: Likewise.
9730         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9732 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9734         * posix/globtest.sh: Work around inconsistency with expanding ~/
9735         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9737 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9739         * posix/getconf.c: Add support for many more POSIX options.
9740         * sysdeps/posix/sysconf.c: Likewise.
9741         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9742         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9743         _POSIX_SHELL.
9744         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9745         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9746         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9747         CLOCK_THREAD_CPUTIME_ID.
9748         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9749         CLOCK_PROCESS_CPUTIME_ID.
9750         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9751         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9752         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9753         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9755         * malloc/Makefile (tests): Add tst-calloc.
9756         * malloc/tst-calloc.c: New file.
9758         * sysdeps/arm/libm-test-ulps: New file.
9760         * malloc/malloc.c: Undo all of today's changes.
9762         * locale/programs/locale.c (show_info): Don't try to look into
9763         data for LC_ALL (there is none).
9765         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9766         avoid writing over boundary.
9767         Patch by Greg McGary <gkm@eng.ascend.com>.
9769         * sysdeps/arm/memprof.h: New file.
9771 2000-04-12  Andreas Jaeger  <aj@suse.de>
9773         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9775         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9776         for memmem declaration.
9778 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9780         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9781         to -1.
9782         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9784         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9785         mode is invalid.
9786         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9787         Patch by Bart Veer <bartv@redhat.com>.
9789         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9790         function interface.
9792 2000-04-11  Andreas Jaeger  <aj@suse.de>
9794         * sysdeps/mips/dl-machine.h: Update some comments.
9795         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9797 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9799         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9800         _POSIX_SHARED_MEMORY_OBJECTS.
9802         * rt/Makefile (tests): Add tst-shm.
9803         Add rules to generate tst-shm.
9804         * rt/tst-shm.c: New file.
9806         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9807         for descriptor.
9809         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9810         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9811         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9812         * sysdeps/generic/shm_open.c: New file.
9813         * sysdeps/generic/shm_unlink.c: New file.
9814         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9815         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9816         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9817          __endmntent, __getmntent_r, __setmntent, and __statfs.
9819         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9820         fragmentation by allocating new memory at the end instead of
9821         reallocating.
9823         * posix/globtest.sh: Fix last change.
9825 2000-04-10  Philip Blundell  <philb@gnu.org>
9827         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9828         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9829         IPV6_DROP_MEMBERSHIP.
9830         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9831         Likewise.
9833 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9835         * elf/readlib (process_file): Close streams in case of an error.
9837 2000-04-09  Andreas Jaeger  <aj@suse.de>
9839         * elf/readlib.c (process_file): Check if file is big enough to
9840         contain aout and ELF headers.
9841         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9843 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9845         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9847 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9849         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9850         stream unbuffered.
9851         * rt/Makefile (tests): Add tst-clock.
9852         Add rules to build tst-clock.
9853         * rt/tst-clock.c: New file.
9854         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9855         about initialization of nsec.
9856         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9857         about initialization of freq.  Set retval to zero if successful.
9858         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9860 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9862         * Versions.def (librt): Add GLIBC_2.2.
9863         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9864         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9865         timer_getoverr, timer_gettime, and timer_settime.
9866         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9867         clock_settime, timer_create, timer_delete, timer_getoverrun,
9868         timer_gettime, and timer_settime.
9869         * sysdeps/generic/clock_getcpuclockid.c: New file.
9870         * sysdeps/generic/get_clockfreq.c: New file.
9871         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9872         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9873         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9874         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9875         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9876         * sysdeps/unix/i386/i686/Implies: New file.
9877         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9878         * time/Makefile (routines): Move clock_getres, clock_gettime,
9879         clock_settime, timer_create, timer_delete, timer_getoverr,
9880         timer_gettime, and timer_settime to rt/Makefile.
9881         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9882         clock_settime, timer_create, timer_delete, timer_getoverrun,
9883         timer_gettime, and timer_settime.
9884         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9886         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9887         and not const as attribute name.
9889 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9891         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9893 2000-04-10  Andreas Schwab  <schwab@suse.de>
9895         * posix/globtest.sh: Skip tests that depend on unreadable
9896         directories if run as root.
9898 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9900         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9901         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9903 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9905         * sysdeps/unix/clock_gettime.c: New file.
9906         * sysdeps/unix/clock_settime.c: New file.
9907         * sysdeps/posix/clock_getres.c: New file.
9909         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9911         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9912         lseek call be passing in a buffer which never allow a successful
9913         first getdents syscall if not at leas the initial entry can be
9914         stored in the user buffer.
9916         * localedata/Makefile: Add rules to clean up directories created by
9917         new strfmon tests.
9919 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9921         * localedata/tst-fmon.data: Added new tests for strfmon()
9922         using test locales with all combinations of cs_precedes,
9923         sign_posn and sep_by_space.
9924         * localedata/tst-fmon.sh: Updated to support the new tests.
9925         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9926         the localedef source for the new strfmon() test locale.
9927         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9928         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9929         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9930         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9931         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9932         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9933         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9934         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9935         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9936         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9937         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9938         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9939         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9940         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9942         * stdlib/strfmon.c: Correct problems with missing or extra
9943         spaces for unusual combinations of sign_posn and sep_by_space.
9944         Improved left-precision alignment code.
9946 2000-04-07  Andreas Jaeger  <aj@suse.de>
9948         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9950 2000-04-10  Andreas Jaeger  <aj@suse.de>
9952         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9954 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9956         Implement handling of restartable conversion functions according to
9957         ISO C.
9958         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9959         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9960         * iconv/gconv.c: Pass additional parameter to conversion function.
9961         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9962         (internal_ucs4le_loop_single): New function.
9963         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9964         (__gconv_transform_internal_ascii): Likewise.
9965         (__gconv_transform_internal_utf8): Likewise.
9966         (__gconv_transform_utf8_internal): Likewise.
9967         (__gconv_transform_ucs2_internal): Likewise.
9968         (__gconv_transform_internal_ucs2): Likewise.
9969         (__gconv_transform_ucs2reverse_internal): Likewise.
9970         (__gconv_transform_internal_ucs2reverse): Likewise.
9971         (internal_ucs4le_loop_unaligned): Before return
9972         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9973         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9974         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9975         * iconv/loop.c: Fit in definition of function to convert one character
9976         for processing of left-over bytes from the state object.
9977         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9978         inend to match names in loop functions.
9979         (RESET_INPUT_BUFFER): Change apprpriately.
9980         (gconv): If needed, call function to process bytes from the state
9981         object.  Similar at the end: store left over bytes if input is
9982         incomplete.
9983         Take extra argument and add new argument to all calls of the
9984         conversion function.
9985         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9986         information in the state object to not conflict with length count.
9987         * iconvdata/iso-2022-jp.c: Likewise.
9988         * iconvdata/iso-2022-kr.c: Likewise.
9989         * iconvdata/unicode.c: Adjust for change change in parameters of
9990         skeleton function.
9991         * iconvdata/utf-16.c: Likewise.
9992         * libio/iofwide.c: Add new parameter to all calls of conversion
9993         function.
9994         * wcsmbs/btowc.c: Likewise.
9995         * wcsmbs/mbrtowc.c: Likewise.
9996         * wcsmbs/mbsnrtowcs.c: Likewise.
9997         * wcsmbs/mbsrtowcs.c: Likewise.
9998         * wcsmbs/wcrtomb.c: Likewise.
9999         * wcsmbs/wcsnrtombs.c: Likewise.
10000         * wcsmbs/wcsrtombs.c: Likewise.
10001         * wcsmbs/wctob.c: Likewise.
10003         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
10004         MAX_NEEDED_INPUT.
10006 2000-04-07  Andreas Jaeger  <aj@suse.de>
10008         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
10009         newer kernels.
10011 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
10013         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
10014         element a union to allow byte access.
10015         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
10016         mbstate_t.
10017         * iconvdata/iso-2022-jp.c: Likewise.
10018         * iconvdata/iso-2022-kr.c: Likewise.
10019         * wcsmbs/mbsinit.c: Likewise.
10020         * stdlib/mblen.c: Likewise.
10021         * stdio-common/printf-parse.h: Likewise.
10023 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10025         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
10026         kernel does not allow relative seeks on descriptors associated
10027         with directories.  Go back to get the position in the directory
10028         every time we enter the function.  Return -1 and set errno if one
10029         entry could be read from the kernel but does not fit into the
10030         buffer passed in by the user.
10032         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
10033         Support ..(2).. ellipsis.
10034         (parse_charmap): Recognize ..(2).. etc and pass step down.
10035         Correctly generate names for UCS4 characters.
10037         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
10038         (ctype_finish): We know the wide character value for <SP>,
10039         don't search.
10040         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
10041         (charclass_ucs4_ellipsis): Likewise.
10042         (read_translit_ignore_entry): Store ellipsis step.
10043         (ctype_read): Recognize ..(2).. etc and pass step down.
10045         * locale/programs/linereader.c (lr_token): When seeing comment
10046         character ignore only rest of line in sources but stop at escaped
10047         newline.
10048         Recognize ..(2).. and ....(2).....
10050         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
10051         and tok_ellipsis4_2.
10053 2000-04-06  Andreas Jaeger  <aj@suse.de>
10055         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
10056         removed, remove it here also.
10057         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10058         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
10059         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
10060         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
10062 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
10064         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
10065         include bits/sigcontext.h.
10066         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10068 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10070         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
10071         collation symbol definition.  Value in quivalence definition must
10072         be defined, don't check that it is not.
10074         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
10075         values as character names.
10077         * locale/programs/ld-ctype.c (get_character): Handle missing
10078         repertoire map correctly.
10080 2000-04-05  Cristian Gafton  <gafton@redhat.com>
10082         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
10083         because it is used in generic code.
10084         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
10085         * wcsmbs/wcwidth.h: Declare __ctype32_b.
10086         * intl/gettext.c: Include <locale.h>.
10087         * intl/ngettext.c: Likewise.
10089 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
10091         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
10092         socklen_t type for size.
10093         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
10094         init function interface.
10095         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10096         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
10097         sys/ucontext.h.
10098         (__jmp_buf): Declare the whole type structure here, don't use
10099         ucontext.
10101 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
10103         * iconv/skeleton.c (put16u): Fix typo.
10104         Reported by Bruno Haible <haible@ilog.fr>.
10106         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
10107         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
10108         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
10109         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
10110         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
10111         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
10113         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
10114         * Makefile (distribute): Add abi-versions.awk and
10115         firstversions.awk.
10116         Patches by Torsten Duwe <duwe@caldera.de>.
10118 2000-04-05  Andreas Schwab  <schwab@suse.de>
10120         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
10122 2000-04-05  Andreas Schwab  <schwab@suse.de>
10124         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
10125         entry point, used on Hurd.
10127 2000-04-04  Andreas Jaeger  <aj@suse.de>
10129         * intl/Makefile: Only run the gettext test with shared libraries.
10131 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10133         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10134         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10136 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
10138         * Makeconfig: Undo last change.
10139         * configure.in: If --disable-shared was given, don't set VERSIONING,
10140         don't define DO_VERSIONING, and don't give scare warning for no
10141         versioning.
10142         * configure: Regenerated.
10144 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
10146         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
10148 2000-04-04  Andreas Jaeger  <aj@suse.de>
10150         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
10152 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
10154         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
10155         STV_HIDDEN and STV_INTERNAL during lookup.
10156         (profile_fixup): Likewise.
10157         * elf/dl-reloc.c (RESOLVE): Likewise.
10159         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
10160         unaligned so that it compiles for system which need unaligned
10161         access handling.
10163 2000-04-04  Andreas Schwab  <schwab@suse.de>
10165         * elf/cache.c (print_entry): Only look at the type field when
10166         printing the type.
10168 2000-04-04  Andreas Schwab  <schwab@suse.de>
10170         * iconvdata/big5.c (BODY): Fix typo.
10172 2000-04-04  Andreas Schwab  <schwab@suse.de>
10174         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
10175         function interface.  Remove unused _dl_start_user entry point.
10177 2000-04-03  Andreas Jaeger  <aj@suse.de>
10179         * include/arpa/inet.h (__inet_aton): Add protoype.
10181 2000-04-01  Andreas Jaeger  <aj@suse.de>
10183         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
10185         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
10186         * sysdeps/mach/mips/thread_state.h: Likewise.
10188         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
10189         * sysdeps/generic/fegetenv.c: Likewise.
10190         * sysdeps/generic/fesetenv.c: Likewise.
10191         * sysdeps/generic/feupdateenv.c: Likewise.
10192         * sysdeps/generic/fraiseexcpt.c: Likewise.
10193         * sysdeps/generic/fsetexcptflg.c: Likewise.
10194         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
10195         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10196         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10197         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10199 2000-04-02  H.J. Lu  <hjl@gnu.org>
10201         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
10203 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10205         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
10206         (add_name_to_object): Add cast in malloc call.
10207         (fillin_rpath): Optimize loop to initialize ->status a bit.
10209         * sysdeps/i386/dl-machine.h: Undo last change.
10210         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
10211         Restore %edx register after call here.
10213         * sysdeps/arm/atomicity.h: New file.
10214         Contributed by Jesper Skov <jskov@redhat.com>.
10216 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
10218         * Makeconfig (preprocess-versions): Undo last change.
10219         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
10221         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
10222         here, before we might move the stack.
10223         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
10224         (init1): And not here.
10226         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
10227         change, to restore argc value in call-clobbered register after
10228         RTLD_START_SPECIAL_INIT, which will contain a call.
10230         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
10231         allocating and initializing L->l_initfini.
10233         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
10235 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10237         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
10238         RUNPATH, RPATH, and LD_LIBRARY_PATH.
10239         (open_path): Change type of fourth parameter.  Make pointer to array
10240         of pointers.  Create variable dirs with original type.
10241         Track whether any directory for the object exists and if not,
10242         change *DIRSP to (void*) -1 to signal there is no such search path.
10243         (_dl_map_object): Change all calls of open_path.
10244         Rewrite decompose_rpath calls.
10246 2000-03-31  Andreas Schwab  <schwab@suse.de>
10248         * string/strfry.c: Declare STATE as array of char instead of int
10249         and do not initialize it (done by initstate_r).  Pass correct
10250         size.
10252 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10254         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
10256         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
10257         instruction out of the code.
10259 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10261         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
10262         element at this position.
10264         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
10265         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
10266         l_reldeps elements.
10267         * elf/dl-lookup.c (add_dependency): New function.
10268         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
10269         dynamically loaded object.
10270         (_dl_lookup_symbol_skip): Likewise.
10271         (_dl_lookup_versioned_symbol): Likewise.
10272         (_dl_lookup_versioned_symbol_skip): Likewise.
10273         * elf/dl-open.c: Don't define _dl_load_lock here...
10274         * elf/rtld.c: ...but here...
10275         * elf/dl-support.c: ...and here.
10276         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
10277         through relocation.
10278         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
10279         relocations.
10280         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
10281         anymore.
10282         * dlfcn/glrefmain.c: Add one more debug message.
10284         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
10285         command line.
10286         * Makerules (sysd-versions): Use ( ) instead of { }.
10288         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
10289         optimize for the non-debugging case.
10290         * elf/dl-lookup.c: Likewise.
10291         * sysdeps/generic/libc-start.c: Likewise.
10293 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
10295         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
10296         (init1): Don't initialize __environ here, since init already does it.
10297         (first_init): New function, broken out of _init.
10298         (_hurd_stack_setup): Use it.
10299         [SHARED] (_dl_init_first): New function, renamed from old _init.
10300         (init1) [SHARED]: Don't call posixland_init here.
10301         (posixland_init): Take ENVP arg, so signature is usual for initializer.
10302         [SHARED] (_init): Define as alias for posixland_init.
10303         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
10304         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
10305         RTLD_START_SPECIAL_INIT before calling initializers.
10306         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
10307         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
10308         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
10309         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
10311         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
10312         since we define the function with the name `tmpfile'.
10314         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
10315         * hurd/Versions: Likewise.
10317 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10319         * elf/dl-runtime.c (fixup): Fix typo in comment.
10321         * resolv/netdb.h (getnameinfo): All length parameters are of type
10322         socklen_t.
10323         * inet/getnameinfo.c: Likewise.
10325 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
10327         * posix/unistd.h (socklen_t): Define if it has not yet happened.
10328         (gethostname): Change type of second parameter to socklen_t.
10329         * include/unistd.h (__gethostname): Change type of second
10330         parameter to socklen_t.
10331         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
10332         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
10333         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
10334         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
10335         Likewise.
10336         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
10337         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
10338         Allow definition elsewhere.
10339         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10340         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10341         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10342         * sysdeps/generic/bits/types.h: Define __socklen_t.
10343         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
10344         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
10345         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
10346         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10347         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
10348         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
10349         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
10351         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
10352         (inet_lnaof): Likewise.
10353         (inet_netof): Likewise.
10354         (inet_network): Likewise.
10355         (inet_aton): Likewise.
10356         (inet_makeaddr): Change parameter types to in_addr_t.
10357         (inet_neta): Likewise.
10358         (inet_ntop): Change type of last parameter to socklen_t.
10359         (inet_aton): Only make available if __USE_MISC.
10360         (inet_neta): Likewise.
10361         (inet_net_ntop): Likewise.
10362         (inet_net_pton): Likewise.
10363         (inet_nsap_ntoa): Likewise.
10365         * inet/in.h: Define in_port_t type.
10366         Define in_addr_t type.
10367         (struct in_addr): Use in_addr_t in definition.
10368         (IN_CLASSA): Use cast to in_addr_t.
10369         (IN_CLASSB): Likewise.
10370         (IN_CLASSC): Likewise.
10371         (IN_CLASSD): Likewise.
10372         (IN_EXPERIMENTAL): Likewise.
10373         (IN_BADCLASS): Likewise.
10374         (INADDR_ANY): Likewise.
10375         (INADDR_BROADCAST): Likewise.
10376         (INADDR_NONE): Likewise.
10377         (INADDR_LOOPBACK): Likewise.
10378         (INADDR_UNSPEC_GROUP): Likewise.
10379         (INADDR_ALLHOSTS_GROUP): Likewise.
10380         (INADDR_ALLRTRS_GROUP): Likewise.
10381         (INADDR_MAX_LOCAL_GROUP): Likewise.
10382         (struct sockaddr_in): Use in_port_t for sin_port element.
10383         (struct sockaddr_in6): Use in_port_t for sin6_port element.
10384         Use uint8_t instead of u_int8_t.
10386         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
10387         Call __inet_aton instead of inet_aton.
10388         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
10390         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
10391         (innetgr): Likewise.
10392         (struct addrinfo): Use socklen_t for ai_addrlen element.
10394         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
10395         IPV6_RECVERR): New defines.
10397         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
10398         * inet/getnetbyad.c: Likewise.
10399         * inet/getnetbyad_r.c: Likewise.
10400         * nis/nss_nis/nis-network.c: Likewise.
10401         * nis/nssplus_nis/nisplus-network.c: Likewise.
10402         * nss/nss_files/files-network.c: Likewise.
10403         * resolv/netdb.h: Define uint32_t if not already happened.
10404         Include bits/netdb.h.  Remove definition of struct netent.
10405         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
10406         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
10407         * sysdeps/generic/bits/netdb.h: New file.
10408         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
10410         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
10411         (tests): Add glrefmain.
10412         Add rules to build modules and run tests.  Ignore result of glrefmain
10413         for now since it fails.
10414         * dlfcn/glrefmain.c: New file.
10415         * dlfcn/glreflib1.c: New file.
10416         * dlfcn/glreflib2.c: New file.
10418         * test-skeleton.c: Include <string.h> for strsignal prototype.
10420         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
10421         to be missing.
10423         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
10424         former init-first.h.  Initialize __libc_multiple_libcs.
10426 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10428         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
10429         #if expression for use of unaligned function to the one used in
10430         the definition of these functions.
10431         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
10432         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
10433         (internal_ucs4le_loop_unaligned): New function.
10435         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
10436         (tests): Add order.
10437         (module-names): Add dep1, dep2, dep3, and dep4.
10438         Add dependencies for dep* modules and order.
10439         Define rule for order.out which checks the result.
10440         * elf/dep1.c: New file.
10441         * elf/dep2.c: New file.
10442         * elf/dep3.c: New file.
10443         * elf/dep4.c: New file.
10444         * elf/order.c: New file.
10446         * elf/dl-init.c: Fix typo in comment.
10448 2000-03-31  Andreas Jaeger  <aj@suse.de>
10450         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10451         init function interface.
10452         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10454 2000-03-31  Andreas Jaeger  <aj@suse.de>
10456         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10457         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10458         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10459         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10460         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10462         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10463         anymore, update comment.
10465         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10467         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10468         SHLIB_COMPAT - the struct is always needed.
10470 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10472         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10473         * elf/dl-support.c: Define _dl_starting_up.
10475 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10477         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10478         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10480         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10482         * elf/Makefile (dl-routines): Remove preinit.
10483         * elf/Versions: Remove _dl_preinit.
10484         * elf/dl-preinit.c: Removed.  Move content into...
10485         * elf/dl-init.c: ...here.
10486         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10488         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10489         elements.
10491 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10493         * stdlib/strfmon.c: Corrected problems with the code that
10494         sets default values for [np]_sep_by_space and
10495         [np]_sign_posn; also the new positive/negative alignment
10496         code from the previous patch was not quite right for
10497         [np]_sign_posn = 0.
10499         * localedata/tst-fmon.data: Changes corresponding to the
10500         two sets of fixes made to stdlib/strfmon.c.
10502 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10504         * malloc/malloc.c: Declare bit flags UL so that they will not
10505         default to int size when being inverted.
10507 2000-03-29  Andreas Jaeger  <aj@suse.de>
10509         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10510         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10512 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10513             Ralf Baechle <ralf@uni-koblenz.de>
10515         * Makeconfig: Introduce new variable SHARED to mark code used in
10516         the shared library.
10517         * elf/dl-close.c: Use it instead of PIC.
10518         * elf/dl-load.c: Likewise.
10519         * elf/dl-open.c: Likewise.
10520         * hurd/geteuids.c: Likewise.
10521         * include/libc-symbols.h: Likewise.
10522         * include/shlib-compat.h: Likewise.
10523         * libio/freopen.c: Likewise.
10524         * linuxthreads/cancel.c: Likewise.
10525         * linuxthreads/pthread.c: Likewise.
10526         * linuxthreads/wrapsyscall.c: Likewise.
10527         * nss/nsswitch.c: Likewise.
10528         * stdio-common/vfprintf.c: Likewise.
10529         * sysdeps/arm/init-first.c: Likewise.
10530         * sysdeps/i386/init-first.c: Likewise
10531         * sysdeps/generic/init-first.c: Likewise.
10532         * sysdeps/generic/libc-start.c: Likewise.
10533         * sysdeps/mips/init-first.c: Likewise.
10534         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10535         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10536         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10537         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10538         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10540         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10542 2000-03-29  Andreas Jaeger  <aj@suse.de>
10544         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10545         Use D_PTR to access relocated entries in l_info.
10546         (elf_machine_rela): Likewise.
10548         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10549         Likewise.
10550         (elf_machine_rela): Likewise.
10552         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10553         Likewise.
10554         (__elf_machine_fixup_plt): Likewise.
10555         (__process_machine_rela): Likewise.
10557         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10558         (elf_machine_rela): Likewise.
10560         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10561         (elf_machine_rel): Likewise.
10563         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10564         (elf_machine_fixup_plt): Likewise.
10565         (elf_machine_rela): Likewise.
10567 2000-03-29  Andreas Jaeger  <aj@suse.de>
10569         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10570         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10571         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10572         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10573         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10574         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10575         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10576         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10577         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10578         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10579         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10580         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10581         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10582         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10583         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10585         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10586         macros, remove K&R prototypes.
10588 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10590         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10591         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10592         (PR libc/1677).
10594 2000-03-30  Andreas Jaeger  <aj@suse.de>
10596         * misc/sys/cdefs.h: Remove K&R support.
10598 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10600         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10601         more cases.
10602         * iconv/loop.c: Likewise.
10604 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10606         * iconv/loop.c (put16): Remove __const. Fix access index.
10607         (put32): Remove __const. Use uint32_t instead of uint16_t.
10608         * iconv/skeleton.c: Likewise.
10610 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10612         * mach/Versions (libc: GLIBC_2.0)
10613         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10614         __vm_allocate on this.
10615         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10616         mutex- and spinlock-related symbols on this.
10617         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10618         New version set.  Lock-related symbols go here instead in this case.
10619         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10620         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10621         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10622         * hurd/Versions
10623         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10624         Put them here instead.
10625         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10626         New version set.  Those cthreads symbols go here instead in this case.
10627         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10629 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10631         * elf/dl-init.c (_dl_init): We don't need to call constructors
10632         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10634         Implement dynamic determination of constructor/destructor order in
10635         the dynamic linker.
10636         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10637         (GLIBC_2.2): Add _dl_init.
10638         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10639         r_duplist is not anymore allocated separately.  l_initfini is and
10640         therefore free it if necessary.
10641         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10642         malloc block.  Otherwise allocate l_initfini list only.
10643         Put dependencies for the object in l_initfini list.
10644         Sort dependencies for the object to be loaded topologically.
10645         * elf/dl-fini.c: Before running the destructors sort the topologically.
10646         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10647         call constructors instead of iterating over the pointers.  Get list of
10648         objects for which to run constructors from l_initfini element. Accept
10649         argc, argv, and env as parameters and pass them to the constructors.
10650         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10651         with size of dynamic section.
10652         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10653         _dl_init_next and calling constructors ourself.
10654         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10655         Take argc, argv, and env as parameters and pass them to the
10656         constructors.  Rewrite to call all constructors and not iterate over
10657         the pointers.
10658         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10659         precompute l_initcount and l_preinitcount.
10660         * elf/link.h (struct link_map): Add l_ldnum member.
10661         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10662         l_initcount, and l_preinitcount.  Add l_initfini.
10663         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10664         one for _dl_init.
10665         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10666         function interface.
10667         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10668         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10669         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10670         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10671         conventions now match.
10673         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10674         effect for shared objects.  Don't emit message and call only for
10675         static library.
10677 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10679         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10680         CSA_Z243.4-1985-1..UCS2.
10681         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10682         ISO-8859-10..UCS2.
10684 2000-03-29  Andreas Jaeger  <aj@suse.de>
10686         * include/unistd.h: Remove duplicate entry for __rmdir.
10687         Remove declaration of __mkdir since __mkdir is declared in
10688         sys/stat.h.
10690         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10691         by Michael Deutschmann <michael@talamasca.ocis.net>.
10693         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10694         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10695         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10696         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10697         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10699 2000-03-28  Andreas Jaeger  <aj@suse.de>
10701         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10702         declaration, the prototype is defined via bits/mathcalls.h.
10703         (__sincosf): Likewise.
10704         (__sincosl): Likewise.
10705         (ldexp): Likewise.
10706         (ldexpf): Likewise.
10707         (ldexpl): Likewise.
10708         (__finite): Likewise.
10709         (__inline_mathcodeNP): New macro without prototype
10710         declarations.
10711         (__inline_mathcodeNP2): Likewise.
10712         (__inline_mathcodeNP3): Likewise.
10713         (__inline_mathcodeNP_): Likewise.
10714         (__inline_mathcodeNP2_): Likewise.
10715         (__inline_mathcodeNP3_): Likewise.
10716         (__inline_mathopNP): Likewise.
10717         (__inline_mathop_declNP): Likewise.
10718         (__inline_mathop_declNP_): Likewise.
10719         (__inline_mathcode_): Use __inline_mathcodeNP_.
10720         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10721         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10722         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10723         (__expm1l): Don't define prototype, the prototype is defined via
10724         bits/mathcalls.h.
10725         (exp): Likewise.
10726         (__expl): Likewise.
10727         (tan): Likewise.
10728         (atan2): Likewise.
10729         (__atan2l): Likewise.
10730         (fmod): Likewise.
10731         (pow): Likewise.
10732         (fabsf): Likewise.
10733         (fabsl): Likewise.
10734         (__fabsl): Likewise.
10735         (asin): Likewise.
10736         (acos): Likewise.
10737         (sinh): Likewise.
10738         (cosh): Likewise.
10739         (tanh): Likewise.
10740         (floor): Likewise.
10741         (ceil): Likewise.
10742         (expm1): Likewise.
10743         (log1p): Likewise.
10744         (asinh): Likewise.
10745         (acosh): Likewise.
10746         (atanh): Likewise.
10747         (hypot): Likewise.
10748         (logb): Likewise.
10749         (fma): Likewise.
10750         (drem): Likewise.
10751         (sqrt): Likewise.
10752         (__sqrtl): Likewise.
10753         (sin): Likewise.
10754         (cos): Likewise.
10755         (atan): Likewise.
10756         (log): Likewise.
10757         (log10): Likewise.
10758         (asinh): Likewise.
10759         (log2): Likewise.
10760         (rint): Likewise.
10762 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10764         * Makerules: If make variable md5 is defined to yes after
10765         generating dependencies generate MD5 sum for the object.
10767         * iconv/gconv_builtin.h: Fix length in transformation definition
10768         for UNICODEBIG.
10770         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10772         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10773         allow as well reading from/writing to unaligned addresses on machines
10774         which don't support this in hardware.  Use FCTNAME macro to define
10775         function name.  Include the file a second time for platforms which
10776         need special unaligned handling.
10777         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10778         to access potentially unaligned addresses.  These macros are intended
10779         to be used only outside the loops.
10780         (unaligned): New definition.  In case the machine can handle unaligned
10781         access define as zero.  Otherwise as a variable which is initialized
10782         as nonzero in case the buffer passed in at runtime is unaligned with
10783         respect to the character set encoding involved.
10784         Call aligned or unaligned looop functions according to unaligned
10785         variable.
10786         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10787         of direct casting pointer to potentially handle unaligned memory
10788         accesses.
10789         * iconvdata/8bit-generic.c: Likewise.
10790         * iconvdata/ansi_x3.110.c: Likewise.
10791         * iconvdata/big5.c: Likewise.
10792         * iconvdata/euc-cn.c: Likewise.
10793         * iconvdata/euc-jp.c: Likewise.
10794         * iconvdata/euc-kr.c: Likewise.
10795         * iconvdata/euc-tw.c: Likewise.
10796         * iconvdata/gbk.c: Likewise.
10797         * iconvdata/iso-2022-cn.c: Likewise.
10798         * iconvdata/iso-2022-jp.c: Likewise.
10799         * iconvdata/iso-2022-kr.c: Likewise.
10800         * iconvdata/iso646.c: Likewise.
10801         * iconvdata/iso_6937-2.c: Likewise.
10802         * iconvdata/iso_6937.c: Likewise.
10803         * iconvdata/johab.c: Likewise.
10804         * iconvdata/sjis.c: Likewise.
10805         * iconvdata/t.61.c: Likewise.
10806         * iconvdata/uhc.c: Likewise.
10807         * iconvdata/unicode.c: Likewise.
10808         * iconvdata/utf-16.c: Likewise.
10810         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10811         prototypes.
10813         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10814         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10815         public.
10816         * malloc/mcheck.h (mcheck_check_all): Declare.
10818         * stdio-common/Makefile (tests): Add tst-obprintf.
10820 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10822         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10823         Declare pthread_sigmask.
10825         * csu/version.c: Add 2000 to copyright years.
10826         Remove Emacs local variables section.
10828 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10830         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10831         __gconv_transform_internal_ucs2little): Remove declarations.
10832         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10833         __gconv_transform_internal_ucs2): Never need to bswap_16.
10834         (__gconv_transform_ucs2reverse_internal,
10835         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10837 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10839         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10840         obsoleting version not being defined at all, in which case the
10841         result is always true.
10843         * Makeconfig (preprocess-versions): New canned sequence for running
10844         cpp on shlib-versions and the like.
10845         (soversions.i): Use it.
10846         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10847         Versions.def and Versions files.
10849 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10851         * stdio-common/tst-obprintf.c (main): Add another check to see
10852         obstack_printf handling all possible beginnings of the block
10853         inside an obstack chunk.
10855         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10856         install mcheck handler.
10858         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10859         handling problem.
10861 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10863         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10865         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10866         on [HAVE_ELF && DO_VERSIONING].
10868 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10870         * stdio-common/tst-obprintf.c: New file.
10872 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10874         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10875         _IO_OVERFLOW directly instead through __overflow.
10877         * locale/programs/localedef.c (construct_output_path): If path
10878         contains a / compute the end of the directory name correctly.
10880         * include/features.h: Undef and document __USE_XOPEN2K.
10882         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10883         whenever a function is called.  Initiated by calling mcheck_pedantic
10884         instead of mcheck.
10885         * malloc/mcheck.h: Declare mcheck_pedantic.
10886         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10887         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10888         for now.
10890 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10892         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10893         * dlfcn/dlopenold.c: Likewise.
10894         * nss/getXXbyYY_r.c: Likewise.
10895         * nss/getXXent_r.c: Likewise.
10896         * hurd/hurdinit.c: Likewise.
10897         * hurd/compat-20.c: Likewise.
10898         * libio/oldiofopen.c: Likewise.
10899         * libio/oldiofclose.c: Likewise.
10900         * libio/oldiofdopen.c: Likewise.
10901         * libio/oldfileops.c: Likewise.
10902         * libio/oldstdfiles.c: Likewise.
10903         * libio/oldiofsetpos.c: Likewise.
10904         * libio/oldiofgetpos.c: Likewise.
10905         * libio/oldiofgetpos64.c: Likewise.
10906         * libio/oldiofsetpos64.c: Likewise.
10907         * libio/oldiopopen.c: Likewise.
10908         * libio/oldpclose.c: Likewise.
10909         * libio/oldtmpfile.c: Likewise.
10910         * libio/freopen.c (freopen): Likewise.
10911         * libio/iofclose.c (_IO_new_fclose): Likewise.
10913         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10914         (reboot): Declare it.
10916         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10918         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10920         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10922         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10923         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10924         We need this for the sbrk decl, which can be included without Unix98.
10926 2000-03-20  Richard Henderson  <rth@cygnus.com>
10928         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10929         argument to yperr2nss is an int, not size_t.
10930         * posix/regex.c (print_partial_compiled_pattern): Cast all
10931         ptrdiff_t to long for printing.
10932         (print_compiled_pattern): Use Z for printing size_t.
10933         * posix/testfnm.c (tests): Avoid trigraphs.
10934         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10935         Use a C comment, not an assembly comment.
10937         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10938         of __ASSUME_32BITUIDS.
10940 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10942         * libio/iofopncook.c: Remove K&R prototypes.
10944 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10946         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10947         an initial value of 1024 instead of RLIM_INFINITY.
10949         * Versions.def (libmachuser, libhurduser): Remove these sections,
10950         since these libraries do not presently use symbol versions.
10952         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10953         is RLIM_INFINITY, return -1 instead.
10955 2000-03-24  Andreas Jaeger  <aj@suse.de>
10957         * Makefile (postclean): Added soversions.i.
10959 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10961         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10962         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10963         and _FPU_IEEE.  Change _FPU_RESERVED.
10965 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10967         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10969 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10971         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10972         (gaih_inet): Remove unused duplicate variable.
10974         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10975         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10976         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10977         only flavors supported by this function anyway.
10979 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10981         * stdlib/strfmon.c: Corrected problems with missing signs and
10982         missing or extra spaces; allow for sign strings longer than
10983         one character; add padding to ensure positive and negative
10984         formats are aligned when a left precision is used.
10986 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10988         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10989         Patch by John Mizel <John.Mizel@msdw.com>.
10991 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10993         * manual/install.texi: Remove references to crypt add-on.
10995 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10997         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10998         section while taking the _hurd_rlimit_lock.
10999         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
11001 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11003         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
11004         using $(LN_S).
11006         * sysdeps/mach/hurd/if_index.c: New file.
11008         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
11009         * sysdeps/gnu/net/if.h: here.
11010         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
11011         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
11012         * sysdeps/generic/net/if.h: New file.  Declares just the standard
11013         functions and `struct if_nameindex' type.
11014         * socket/Makefile (headers): Add net/if.h here.
11015         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
11016         * sysdeps/mach/hurd/Dist: Remove it here.
11017         * sysdeps/unix/sysv/linux/Dist: And here.
11018         * sysdeps/generic/if_index.c: Include <net/if.h>.
11020 2000-03-24  Andreas Jaeger  <aj@suse.de>
11022         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
11023         access relocated entries in l_info.
11024         (elf_machine_got_rel): Likewise.
11025         (elf_machine_runtime_setup): Likewise.
11026         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
11027         (elf_machine_runtime_setup): Likewise.
11028         (__dl_runtime_resolve): Likewise.
11030 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
11032         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
11033         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
11034         according to RFC 2553.
11035         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
11036         * inet/getnameinfo.c: Likewise.
11037         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11039 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11041         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
11042         Remove no-op pointer increment.
11044 2000-03-23  Andreas Jaeger  <aj@suse.de>
11046         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
11047         follow change for libio.h from 2000-03-10.
11049 2000-03-23  Andreas Jaeger  <aj@suse.de>
11051         * elf/dl-addr.c: Adjust include paths for ldsodefs location
11052         change.
11053         * elf/dl-debug.c: Likewise.
11054         * elf/dl-deps.c: Likewise.
11055         * elf/dl-error.c: Likewise.
11056         * elf/dl-fini.c: Likewise.
11057         * elf/dl-init.c: Likewise.
11058         * elf/dl-load.c: Likewise.
11059         * elf/dl-lookup.c: Likewise.
11060         * elf/dl-minimal.c: Likewise.
11061         * elf/dl-object.c: Likewise.
11062         * elf/dl-open.c: Likewise.
11063         * elf/dl-preinit.c: Likewise.
11064         * elf/dl-profile.c: Likewise.
11065         * elf/dl-profstub.c: Likewise.
11066         * elf/dl-reloc.c: Likewise.
11067         * elf/dl-runtime.c: Likewise.
11068         * elf/dl-support.c: Likewise.
11069         * elf/dl-symbol.c: Likewise.
11070         * elf/dl-version.c: Likewise.
11071         * elf/rtld.c: Likewise.
11072         * elf/sprof.c: Likewise.
11073         * sysdeps/generic/dl-cache.c: Likewise.
11074         * sysdeps/generic/dl-origin.c: Likewise.
11075         * sysdeps/generic/dl-sysdep.c: Likewise.
11076         * sysdeps/generic/elf/backtracesyms.c: Likewise.
11077         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11078         * sysdeps/generic/libc-start.c: Likewise.
11079         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11080         * sysdeps/powerpc/dl-machine.c: Likewise.
11081         * sysdeps/powerpc/elf/libc-start.c: Likewise.
11082         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11083         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11084         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
11086         * elf/ldsodefs.h: Move file to ...
11087         * sysdeps/generic/ldsodefs.h: ... here.
11089         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
11091         * sysdeps/mips/elf/ldsodefs.h: New file.
11093         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
11094         entries in l_info.
11095         (_dl_check_map_versions): Likewise.
11096         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11097         * elf/dl-load.c (_dl_init_paths): Likewise.
11098         (_dl_map_object): Likewise.
11099         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
11100         (elf_get_dynamic_info): Likewise.
11101         * elf/do-lookup.h (FCT): Likewise.
11102         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
11103         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
11104         * elf/dl-addr.c (_dl_addr): Likewise.
11105         * elf/dl-runtime.c (profile_fixup): Likewise.
11106         (fixup): Likewise.
11107         * elf/dl-init.c (_dl_init_next): Likewise.
11108         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
11109         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
11110         (DISTINGUISH_LIB_VERSIONS): Likewise.
11111         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
11112         (elf_machine_rel): Likewise.
11114         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
11115         for writable dynamic section.
11117 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
11119         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
11120         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11122 2000-03-22  Andreas Jaeger  <aj@suse.de>
11124         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
11125         from latest Linux kernel.
11127 2000-03-21  Andreas Jaeger  <aj@suse.de>
11129         * Versions.def: Add version 2.1.4.
11131 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11133         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
11134         * libio/oldiofopen.c: Likewise.
11135         * libio/oldiofclose.c: Likewise.
11136         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11138 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
11140         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
11141         indicating the first version set to obsolete the conditionalized code.
11142         (compat_symbol): New macro.
11143         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
11144         rhs be the ABI_* macro for the subsuming version.  Assign increasing
11145         integer values to the ABI_* macros for supported versions.
11146         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
11147         compat_symbol macro.
11149 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11151         * nscd/connections.c (nscd_run): Pretty print.
11152         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
11154         * manual/charset.texi: Fix typos.  Rephrase.
11155         * manual/process.texi: Likewise.
11156         * manual/signal.texi: Likewise.
11157         Patches by Mike Coleman <mkc@kc.net>.
11159         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
11160         versions.
11161         * libio/iofdopen.c: Likewise.
11162         * libio/iofgetpos.c: Likewise.
11163         * libio/iofgetpos64.c: Likewise.
11164         * libio/iofopen.c: Likewise.
11165         * libio/iofsetpos.c: Likewise.
11166         * libio/iofsetpos64.c: Likewise.
11167         * libio/iopopen.c: Likewise.
11168         * libio/oldiofopen.c: Likewise.
11169         * libio/pclose.c: Likewise.
11170         * sysdeps/gnu/siglist.c: Likewise.
11171         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11173         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
11174         chance to expand VERSION_##lib##_##version.
11176         * libio/fileops.c: Use new macros from shlib-compat.h to define
11177         versions.
11178         * libio/iofclose.c: Likewise.
11179         * libio/oldiofclose.c: Likewise.
11180         Patch by Roland McGrath <roland@frob.com>.
11182 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
11184         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
11185         Lay out struct sigcontext according to what really gets passed on
11186         the stack.
11187         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
11188         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
11189         (prgregset_t, prfpregset_t): Define to elf_* types.
11190         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
11191         Define to correct value.
11192         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
11193         sigcontext.
11194         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
11196 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
11198         * scripts/firstversions.awk: Allow multiple version sets in the
11199         "earliest version" specification, meaning that version sets in the
11200         gaps between listed versions should be folded into the earliest later
11201         version that is explicitly listed.
11202         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
11203         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
11205 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11207         * iconv/gconv_builtin.c: Include <endian.h>.
11208         * iconv/gconv_builtin.h: Add UCS-BE aliases.
11209         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
11210         according to current platform.
11211         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
11212         __gconv_transform_internal_ucs2reverse, and
11213         __gconv_transform_internal_ucs4le.
11214         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
11215         __gconv_transform_ucs2reverse_internal and
11216         __gconv_transform_internal_ucs2reverse.
11217         * iconvdata/Makefile (modules): Add UNICODE.
11218         (distribute): Add unicode.c.
11219         * iconvdata/gconv-modules: Add definitions for UNICODE module.
11220         * iconvdata/unicode.c: New file.
11222         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
11223         determine byte order of input and convert accordingly.
11225         * iconvdata/utf-16.c (gconv_init): Fix typo.
11227 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11229         * iconvdata/gconv-modules: Fix typo.
11231         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
11232         more messages.
11234         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
11236 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11238         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
11240 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11242         * misc/Makefile (routines): Add mincore.
11244 2000-03-20  Andreas Jaeger  <aj@suse.de>
11246         * sysdeps/generic/mincore.c: New stub file.
11248         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
11249         from latest Linux kernel.
11251 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11253         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
11254         _SC_GETPW_R_SIZE_MAX.
11256 2000-03-20  Richard Henderson  <rth@cygnus.com>
11258         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
11259         in GLIBC_2.1.4.
11261 2000-03-20  Richard Henderson  <rth@cygnus.com>
11263         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
11264         of arithmetic instructions.
11266         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
11267         with the fpcr.  Protect from INV exception.
11268         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11269         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
11270         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11272         * sysdeps/alpha/fpu/s_copysign.c: New.
11273         * sysdeps/alpha/fpu/s_copysignf.c: New.
11274         * sysdeps/alpha/fpu/s_fabs.c: New.
11275         * sysdeps/alpha/fpu/s_fabsf.c: New.
11276         * sysdeps/alpha/fpu/s_rint.c: New.
11277         * sysdeps/alpha/fpu/s_rintf.c: New.
11279         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
11281         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
11282         Kill sethae.
11283         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
11284         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
11285         Use physical addresses not KSEG addresses.
11286         (io_system): Add PYXIS.
11287         (io): Remove hae.reg, sys, hae_shift.
11288         (stb_mb, stw_mb, stl_mb, __sethae): New.
11289         (inline_outb, inline_outw, inline_outl): Don't set hae.
11290         (inline_inb, inline_inw, inline_inl): Likewise.
11291         (dense_sethae): New null function.
11292         (struct cpuinfo_data): New.
11293         (process_cpuinfo): Use local and stack variables, not static.
11294         Move readlink check here from init_iosys.
11295         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
11296         (_iopl): Simplify.
11297         (_hae_shift): Calculate it here.
11298         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
11299         add pciconfig_iobase.
11301 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
11303         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
11304         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
11306         * scripts/versions.awk: Fixed version renaming code to distinguish
11307         libraries properly.
11309 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11311         * include/stdlib.h: Add prototype for __cxa_atexit.
11313         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
11314         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
11316 2000-03-17  Cristian Gafton  <gafton@redhat.com>
11318         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
11319         existing rtld-installed-name.
11320         ($(rtld-installed-name)): Request libc-$(version) be installed too.
11321         replace existing rtld-installed-name using $(symbolic-link-prog).
11323 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11325         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
11326         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
11327         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
11328         but not the former.
11330 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11332         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
11333         glob64.  Since there is no glob64 in the LFS proposal applications
11334         can assume that glob handles LFS situations.  glob64 is only needed
11335         if alternative filesystem functions are used.
11337 2000-03-19  Geoff Clare  <gwc@unisoft.com>
11339         * sysdeps/generic/glob.c: Correct gl_pathc value returned
11340         when GLOB_DOOFFS is set; correct handling of patterns
11341         containing escaped wildcards (and no unescaped ones);
11342         GLOB_ERR flag was being ignored in some situations.
11344         * posix/globtest.c, posix/globtest.sh: Updated to include
11345         tests for the problems fixed by the above changes to glob.c.
11347         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
11349 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
11351         * Makeconfig (soversion.i): Use only first match for each lib.
11353         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
11355         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
11356         rather than $(sysd-dirs-done) to protect these rules.
11358         * Makerules (version-renames.def): Target removed.
11359         (Versions.all): Depend on soversions.i directly and parse it.
11361         * Makeconfig (soversions.i): New target, input-reading parts of
11362         soversions.mk generation moved here; result is a canonicalized
11363         list "LIB VERSION [SET]" for this configuration.
11364         (soversions.mk): Use that as input.  Don't emit map-firstversions.
11365         * Makerules (version-renames.def): New target, generated from
11366         soversions.i with contents that was in $(map-firstversions).
11367         (Versions.all): Don't depend on soversions.mk, depend on
11368         version-renames.def instead; just cat it into the input.
11370         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
11371         for $(map-firstversions), which better handles it being empty.
11373         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
11374         supported version for libc 0.2.90.libio to GLIBC_2.2.
11376         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
11377         and use it to emit new variable `map-firstversions'.
11378         * scripts/firstversions.awk: New file.
11379         * Makerules (Versions.all): Use scripts/firstversions.awk and
11380         the $(map-firstversions) value to generate a modified versions list
11381         that includes renames in "A = B" syntax for each version set earlier
11382         than the "earliest symbol version" named in shlib-versions.
11383         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
11384         rename version set A to B in the output to the intermediate file.
11385         * scripts/abi-versions.awk: New file.
11386         * Makerules (abi-versions.h): New target, generated by that script.
11387         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
11388         * include/shlib-compat.h: New file, uses that generated header.
11390 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
11392         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
11393         after stripping # comments, and then run it through cpp.
11394         This allows things like "%ifdef FOO" based on config.h settings.
11395         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
11397         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
11398         and other errors that indicate a pseudo-receive happened, grok through
11399         the message buffer for port rights that need references fixed up.
11401 2000-03-16  Andreas Jaeger  <aj@suse.de>
11403         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
11405         * sysdeps/unix/sysv/linux/madvise.c: Remove.
11407         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
11408         from latest Linux kernel.
11409         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
11411         * misc/sys/mman.h: Add prototype for mincore.
11413 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
11415         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
11416         entry for GLIBC_2.0 version of setrlimit.
11417         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11419 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11421         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
11422         * nis/nss_compat/compat-initgroups.c: Likewise.
11423         * nis/nss_nis/nis-initgroups.c: Likewise.
11424         * nis/nss_nis/nis-netgrp.c: Likewise.
11425         * nis/nss_nis/nis-proto.c: Likewise.
11426         * nis/nss_nis/nis-rpc.c: Likewise.
11427         * nis/nss_nis/nis-service.c: Likewise.
11428         * nis/ypclnt.c: Likewise.
11430 2000-03-16  Andreas Jaeger  <aj@suse.de>
11432         * manual/Makefile: MAKEINFO is set to `:' from configure if it
11433         doesn't exist, correct checks.  Fixes PR libc/1649.
11435 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11437         * nscd/hstcache.c: Restore correct UID.
11438         * nscd/pwdcache.c: Likewise.
11439         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
11441 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11443         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11444         macros for register names, in line with 2000-03-14 linux change.
11446         * sysdeps/mach/sched_yield.c: New file.
11448 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11450         * sysdeps/generic/lockfile.c: Include <stdio.h>
11451         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11452         case <libio.h> defined them.
11453         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11454         from __internal_*.
11455         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11456         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11458         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11459         for more pleasing parse error.
11461 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11463         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11464         memory for eras.
11465         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11467         * elf/Makefile: Add rules to compile and run constload1 test.
11468         * elf/constload1.c: New file.
11469         * elf/constload2.c: New file.
11470         * elf/constload3.c: New file.
11472 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11474         * sysdeps/posix/open64.c: Make __open64 weak alias.
11475         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11476         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11477         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11478         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11479         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11480         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11481         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11482         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11483         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11484         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11486 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11488         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11489         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11491 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11493         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11494         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11496 2000-03-08  Andreas Jaeger  <aj@suse.de>
11498         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11500 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11502         * timezone/africa: Update from tzdata2000d.
11503         * timezone/asia: Likewise.
11504         * timezone/australasia: Likewise.
11505         * timezone/europe: Likewise.
11506         * timezone/northamerica: Likewise.
11507         * timezone/southamerica: Likewise.
11509         * po/fr.po: Update from translation team.
11510         * po/de.po: Likewise.
11512         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11513         last parameter.  Move code to add map to global scope from here...
11514         * elf/dl-open.c (dl_open_worker): ...here.
11515         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11516         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11518         * locale/programs/ld-collate.c (collate_read): Fix warning.
11520         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11521         values and macros for register names.
11523         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11524         returned by seek cookie function is -1.
11526 2000-03-14  Andreas Jaeger  <aj@suse.de>
11528         * locale/localeconv.c (localeconv): Fix typo.
11529         Reported by Andre Charbonneau <andrec@corel.com>.
11531 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11533         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11534         since modules depend on it counting the number of times the conversion
11535         function got called.
11537         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11539         * iconv/gconv.h: Pretty print.
11541 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11543         * posix/wordexp-test.c: Correct one of the tests added in the last
11544         change.  Really get the root passwd entry to check again ~root.
11546 2000-03-10  Andreas Jaeger  <aj@suse.de>
11548         * manual/filesys.texi (Working Directory): Fix last patch.
11549         Patch by Martin Buchholz  <martin@xemacs.org>.
11551 2000-03-10  Andreas Jaeger  <aj@suse.de>
11553         * manual/creature.texi (Feature Test Macros): Fix language.
11555 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11557         * mach/devstream.c (devstream_write, devstream_read): New functions.
11558         (input, output): Functions removed.
11559         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11560         using only the vanilla fopencookie interface.
11562         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11563         as macro for __io_functions.
11564         (funcsio): Use cookie_io_functions_t type name.
11565         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11567         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11568         fopencookie.
11569         (fopencookie): Use it.
11570         * libio/libio.h: Declare _IO_cookie_init.
11571         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11572         _IO_cookie_init.
11574         * libio/libio.h (__io_seek_fn): Fix second argument type
11575         to be a pointer, in line with the manual and the old stdio.
11576         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11578         * sysdeps/generic/bits/stdio-lock.h: New file.
11579         This is a stub with #error, but that's better than no file at all.
11581 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11583         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11584         * manual/message.texi (Using gettextized software): Doc Fixes.
11585         * manual/message.texi (Message Translation): Doc Fixes.
11586         * manual/filesys.texi (File Size): Doc Fixes.
11587         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11588         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11589         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11590         * manual/install.texi: Doc Fixes.
11591         * manual/search.texi (Hash Search Function): Doc Fixes.
11592         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11593         * FAQ.in: Doc Fixes.
11594         * config.h.in: Doc Fixes.
11595         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11596         Doc Fixes.  `allows to' is not correct English.
11598         * elf/rtld.c: Doc fixes.
11599         * manual/creature.texi (Feature Test Macros): Doc fixes.
11600         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11602         * manual/filesys.texi (Working Directory): Check for ERANGE to
11603         avoid infloop.
11605 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11607         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11608         conditions so as not to clobber the final '\0' when there is only one
11609         element in the vector.
11611 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11613         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11614         broken by 2000-02-27 change.
11616         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11618 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11620         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11621         argument type, for 2000-02-22 change in signal/signal.h declaration.
11623 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11625         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11626         to getdirentries64 (no __), since the Linux implementation
11627         has no __ name, and there is no declaration for the __ name.
11629         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11631         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11632         sed regexp so as not to break directory names including /../ within.
11634         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11635         The sysdeps/generic file is right for BSD.  This file was in fact the
11636         Hurd file, but the only difference was the WNOREAP flag that was never
11637         actually implemented or used anywhere.
11639         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11640         since AC_PATH_PROG already does it for us.
11641         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11642         correctness and sh portability.  I replaced the broken check
11643         with a more sensible implementation of the apparently intended
11644         semantics, which might still be questionable.  Using expr causes
11645         a non-numeric value for `perl -V:apiversion` to be accepted,
11646         refusing to use only a perl that reports a number less than 5;
11647         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11648         * configure: Regenerated.
11650 2000-03-08  Andreas Jaeger  <aj@suse.de>
11652         * manual/crypt.texi: Fix paths.
11654 2000-03-07  Andreas Jaeger  <aj@suse.de>
11656         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11657         were swapped.
11658         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11659         libc/1636.
11661 2000-03-06  Andreas Jaeger  <aj@suse.de>
11663         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11664         in __sgn1l, otherwise g++ fails to parse this.
11665         Reported by Sean Chen <sean.chen@turbolinux.com>.
11667 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11669         * configure.in: Compute sizeof-long-double.
11670         * configure: Regenerated.
11671         * config.make.in: Make sizeof-long-double available to sub-makes.
11673 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11675         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11676         call.
11678 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11680         * Makeconfig (rpath-dirs): Add crypt.
11681         (all-subdirs): Remove md5crypt.
11682         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11683         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11684         * sysdeps/generic/crypt-entry.c: Delete.
11685         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11686         * sysdeps/generic/crypt.h: Delete.
11687         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11688         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11689         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11690         * sysdeps/generic/des_impl.c: Delete.
11691         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11692         * crypt/sysdeps: Delete.
11693         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11694         * md5-crypt/Versions: Move to crypt/.
11695         * md5-crypt/md5-crypt.c: Move to crypt/.
11696         * md5-crypt/md5.c: Move to crypt/.
11697         * md5-crypt/md5c-test.c: Move to crypt/.
11698         * md5-crypt/md5test.c: Move to crypt/.
11699         * md5-crypt: Delete.
11700         * crypt/Makefile: Adjust for new structure.
11702 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11704         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11705         define to 1 if not defined.
11707 2000-03-03  Andreas Jaeger  <aj@suse.de>
11709         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11711 2000-03-03  Andreas Jaeger  <aj@suse.de>
11713         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11714         cases.
11715         (xdr_int64_t): Correctly handle lower half.
11716         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11718 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11720         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11721         call.
11723 2000-03-02  Andreas Jaeger  <aj@suse.de>
11725         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11726         2.3.43.
11728 2000-03-02  Andreas Jaeger  <aj@suse.de>
11730         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11732 2000-03-01  Andreas Jaeger  <aj@suse.de>
11734         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11735         (tests): Added tst-getdate.
11737         * time/tst-getdate.c: New file.
11739         * time/datemsk: New file, needed for tst-getdate.
11741 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11743         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11745 2000-02-17  H.J. Lu  <hjl@gnu.org>
11747         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11749         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11750         available.
11751         (svcudp_recv): Set up message with the new "xp_pad" field for
11752         IP_PKTINFO.
11753         (svcudp_reply): Support IP_PKTINFO if available.
11755 2000-03-01  Andreas Jaeger  <aj@suse.de>
11757         * time/getdate.c (check_mday): Fix check for february.
11758         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11759         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11761 2000-03-02  Andreas Jaeger  <aj@suse.de>
11763         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11764         g++ fails to parse this.
11765         Reported by Sean Chen <sean.chen@turbolinux.com>.
11767 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11769         * io/creat.c: Moved to...
11770         * sysdeps/generic/creat.c: ...here.
11771         * io/creat64.c: Moved to...
11772         * sysdeps/generic/creat64.c: ...here.
11773         * io/lockf.c: Moved to...
11774         * sysdeps/generic/lockf.c: ...here.
11776         * crypt/crypt.texi: Moved to...
11777         * manual/crypt.texi: ...here.
11778         * crypt/examples/genpass.c: Moved to...
11779         * manual/examples/genpass.c: ...here.
11780         * crypt/examples/mygenpass.c: Moved to...
11781         * manual/examples/mygenpass.c: ...here.
11782         * crypt/examples/testpass.c: Moved to...
11783         * manual/examples/testpass.c: ...here.
11785         * manual/Makefile (chapters): Add crypt.
11786         * manual/conf.texi: Add usual header for not-last chapter.
11787         * manual/crypt.texi: Add special header for last chapter.
11789 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11791         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11792         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11793         complain if there is no crypt add-on.
11794         * crypt/configure: Removed.
11796         * crypt/crypt.texi: Update documentation of US export restrictions
11797         to match the 14 Jan 2000 regulations.
11799 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11801         * crypt: New subdirectory, merged in from the crypt add-on.
11803 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11805         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11808 See ChangeLog.10 for earlier changes.