platform/upstream/glibc.git
23 years agoUpdate.
Ulrich Drepper [Mon, 30 Oct 2000 04:08:58 +0000 (04:08 +0000)]
Update.

* string/bits/string2.h (strspn): Evaluate first argument if
second is "".
(strpbrk): Likewise.
* sysdeps/i386/i486/bits/string.h: Likewise.
* string/Makefile (tests): Add bug-strspn1 and bug-strpbrk1.
* string/bug-strspn1.c: New file.
* string/bug-strpbrk1.c: New file.
Test cases by Joseph S. Myers <jsm28@cam.ac.uk>.

* string/bits/string2.h (strncat): Terminate string correctly.
* sysdeps/i386/i486/bits/string.h (strncat): Likewise.
* string/Makefile (tests): Add bug-strncat1.
* string/bug-strncat1.c: New file.
Test case by Joseph S. Myers <jsm28@cam.ac.uk>.

2000-10-27  Ben Collins  <bcollins@debian.org>

* sysdeps/generic/lockf.c (lockf): Set l_type to F_RDLCK before
calling for F_GETLK.

2000-10-29  Ulrich Drepper  <drepper@redhat.com>

23 years agoUpdate.
Ulrich Drepper [Mon, 30 Oct 2000 03:21:39 +0000 (03:21 +0000)]
Update.

* elf/dl-load.c (open_path): Don't exit loop early if we didn't
use a directory at all.

23 years agoUpdate.
Ulrich Drepper [Mon, 30 Oct 2000 00:13:29 +0000 (00:13 +0000)]
Update.

* elf/Makefile: Add rules to build and run tst-pathopt.
* elf/tst-pathopt.c: New file.
* elf/tst-pathopt.sh: New file.
* elf/pathoptobj.c: New file.

23 years agoUpdate.
Ulrich Drepper [Sun, 29 Oct 2000 17:30:30 +0000 (17:30 +0000)]
Update.

2000-10-29  Ulrich Drepper  <drepper@redhat.com>

* elf/elf.h (SHN_XINDEX): Define.

23 years agoUpdate.
Ulrich Drepper [Sun, 29 Oct 2000 02:17:56 +0000 (02:17 +0000)]
Update.

* io/Makefile (tests): Add test-stat2.
(test-stat2-ARS): New variable.
* io/test-stat2.c: New file.

23 years agoUpdate.
Ulrich Drepper [Sat, 28 Oct 2000 20:20:17 +0000 (20:20 +0000)]
Update.

* Makeconfig (ETAGS): Remove -T flag.

23 years agoUpdate.
Ulrich Drepper [Sat, 28 Oct 2000 09:16:32 +0000 (09:16 +0000)]
Update.

2000-10-28  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-load.c (open_verify): Only try to load ET_DYN and ET_EXEC
objects.  Reject all other types.
(_dl_map_object_from_fd): Optimize a bit.

23 years agoUpdate.
Ulrich Drepper [Sat, 28 Oct 2000 06:52:11 +0000 (06:52 +0000)]
Update.

* nscd/gethstbynm2_r.c (__inet_aton): Define as inet_aton since
the former is not exported.

23 years agoUpdate.
Ulrich Drepper [Sat, 28 Oct 2000 05:51:07 +0000 (05:51 +0000)]
Update.

* stdio-common/Makefile (tests): Add tst-fseek.
* stdio-common/tst-fseek.c: New file.

23 years agoUpdate.
Ulrich Drepper [Sat, 28 Oct 2000 00:45:40 +0000 (00:45 +0000)]
Update.

* posix/regex.c (gettext): Use correct translation domain for glibc.

* argp/argp-parse.c: Use __dcgettext instead of dcgettext for glibc.
* argp/argp-help.c: Likewise.
* inet/getnameinfo.c (getnameinfo): Use __snprintf instead of snprintf.
* inet/rexec.c (rexec_af): Use __snprintf instead of snprintf.
* misc/regexp.c (__step): Use __regexec instead of regexec.
(__advance): Likewise.
* nss/digits_dots.c: Use __inet_aton instead of inet_aton.
* misc/daemon.c (daemon): Use __fork instead of fork.

23 years agoUpdate.
Ulrich Drepper [Fri, 27 Oct 2000 23:37:52 +0000 (23:37 +0000)]
Update.

* stdlib/fmtmsg.c (fmtmsg): Change output format slightly to make
it look better and bring it closer to SysV behavior.
* stdlib/Makefile (distribute): Add tst-fmtmsg.sh.
(test-srcs): Add tst-fmtmsg.
(tests): Add $(objpfx)tst-fmtmsg.out.  Add rule to generate it.
* stdlib/tst-fmtmsg.sh: New file.
* stdlib/tst-fmtmsg.c: New file.

23 years agoUpdate.
Ulrich Drepper [Fri, 27 Oct 2000 21:07:08 +0000 (21:07 +0000)]
Update.

2000-10-27  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/Makefile (modules): Add VISCII.
(gen-8bit-modules): Add viscii.
* iconvdata/viscii.c: New file.
* iconvdata/gconv-modules: Add entries for VISCII.
* iconvdata/tst-tables.sh: Add VISCII.

23 years agoUpdate.
Ulrich Drepper [Fri, 27 Oct 2000 19:35:07 +0000 (19:35 +0000)]
Update.

2000-10-27  Bruno Haible  <haible@clisp.cons.org>

* locales/sr_YU@cyrillic: New file. Based on a locale file by
Anton Zinoviev <anton@lml.bas.bg>.
* SUPPORTED: Add sr_YU@cyrillic.

2000-10-27  Bruno Haible  <haible@clisp.cons.org>

* locales/ar_SA: Use Unicode aware LC_CTYPE information from "i18n".
* locales/be_BY: Likewise.
* locales/bg_BG: Likewise.
* locales/el_GR: Likewise.
* locales/ja_JP: Likewise.
* locales/ko_KR: Likewise.
* locales/mk_MK: Likewise.
* locales/ru_RU: Likewise.
* locales/ru_UA: Likewise.
* locales/th_TH: Likewise.
* locales/tr_TR: Likewise.
* locales/uk_UA: Likewise.
* locales/zh_CN: Likewise.
* tests-mbwc/dat_iswalnum.c: Update for changed character properties
in the ja_JP.EUC-JP locale.
* tests-mbwc/dat_iswalpha.c: Likewise.
* tests-mbwc/dat_iswctype.c: Likewise.
* tests-mbwc/dat_iswgraph.c: Likewise.
* tests-mbwc/dat_iswprint.c: Likewise.
* tests-mbwc/dat_iswpunct.c: Likewise.

23 years agoUse Unicode aware LC_CTYPE information from "i18n".
Ulrich Drepper [Fri, 27 Oct 2000 19:31:45 +0000 (19:31 +0000)]
Use Unicode aware LC_CTYPE information from "i18n".

23 years ago* sysdeps/m68k/fpu/libm-test-ulps: Add some more ulps.
Andreas Schwab [Fri, 27 Oct 2000 16:23:12 +0000 (16:23 +0000)]
* sysdeps/m68k/fpu/libm-test-ulps: Add some more ulps.

23 years agoAdd some more ulps.
Andreas Schwab [Fri, 27 Oct 2000 16:22:44 +0000 (16:22 +0000)]
Add some more ulps.

23 years agoUpdate. cvs/glibc-2_1_96 glibc-2.1.96
Ulrich Drepper [Fri, 27 Oct 2000 06:51:12 +0000 (06:51 +0000)]
Update.

* inet/getipnodebyad.c: Removed.
* inet/getipnodebynm.c: Removed.
* inet/tst-ipnode.c: Removed.
* inet/freehostent.c: Removed.

* sysdeps/unix/bsd/osf/=dirstream.h: Removed.

* sysdeps/unix/sysv/linux/Dist: Add bits/initspin.h.

* elf/Makefile (distribute): Add neededobj4.c.

* iconvdata/Makefile (distribute): Add BIG5HKSCS.irreversible.

* sysdeps/hppa/Dist: New file.
* sysdeps/unix/sysv/linux/hppa/Dist: New file.

23 years agoUpdate.
Ulrich Drepper [Fri, 27 Oct 2000 06:01:32 +0000 (06:01 +0000)]
Update.

* version.h (VERSION): Bump to 2.1.96.

23 years agoUpdate.
Ulrich Drepper [Fri, 27 Oct 2000 02:55:22 +0000 (02:55 +0000)]
Update.

* posix/tst-chmod.c (do_test): Account for people running the
tests as root.

23 years agoUpdate.
Ulrich Drepper [Fri, 27 Oct 2000 00:02:26 +0000 (00:02 +0000)]
Update.

* locale/langinfo.h (THOUSEP): Define this and don't duplicate
definition of THOUSANDS_SEP.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 23:41:17 +0000 (23:41 +0000)]
Update.

* locale/C-monetary.c: Set mon_decimal to empty string.
Add missing entry _NL_MONETARY_CRNCYSTR.
* stdio-common/printf_fp.c: If MON_DECIAL_POINT is not provided use
DECIMAL_POINT information.
* locale/C-numeric.c: Set mon_grouping entry to empty string.
* locale/C-time.c: Add date_fmt entries.  Remove two wrong entries.
Correct value for number of entries.
* locale/localeconv.c: Normalize result passed back in .grouping.
Fix assignment to .int_* entries.

* locale/Makefile (tests): Add tst-C-locale.
* locale/tst-C-locale.c: New file.

* locale/setlocale.c: Use LOCALEDIR and not LOCALE_PATH to locate
locale files.
* locale/newlocale.c: Likewise.

2000-10-26  GOTO Masanori  <gotom@debian.or.jp>

* locale/langinfo.h: Define _DATE_FMT and _NL_W_DATE_FMT.
* locale/categories.def: New support for date_fmt.
* locale/programs/ld-time.c: Likewise.
* locale/programs/locfile-kw.gperf: Likewise.
* locale/programs/locfile-kw.h: Likewise.
* locale/programs/locfile-token.h: Likewise.

2000-10-26  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/ieee754/ldbl-128/e_hypotl.c: New.

* math/libm-test.inc (cabs_test, cexp_test, csqrt_test, hypot_test):
Increase precision of constants.
* sysdeps/alpha/fpu/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/ia64/fpu/libm-test-ulps: Update.
* sysdeps/m68k/fpu/libm-test-ulps: Update.
* sysdeps/mips/fpu/libm-test-ulps: Update.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
* sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
* sysdeps/s390/fpu/libm-test-ulps: Update.

2000-10-26  Ulrich Drepper  <drepper@redhat.com>

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 17:17:13 +0000 (17:17 +0000)]
Update.

2000-10-26  Ulrich Drepper  <drepper@redhat.com>

* locales/fa_IR: Fix many problems and change to use UTF-8.
Patch by Roozbeh Pournader <roozbeh@sharif.edu>.
* SUPPORTED: Add fa_IR.UTF-8.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 09:14:02 +0000 (09:14 +0000)]
Update.

* io/Makefile (tests): Add tst-fcntl.
* io/tst-fcntl.c: New file.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 08:11:19 +0000 (08:11 +0000)]
Update.

2000-10-26  Ulrich Drepper  <drepper@redhat.com>

* posix/Makefile (tests): Add tst-chmod.
(tst-chmod-ARGS): Define.
* posix/tst-chmod.c: New file.

* test-skeleton.c: Before calling user-defined function remove
parameters from argument list.
* posix/tst-exec.c: Adjust to this change.
* posix/tst-spawn.c: Likewise.

* sysdeps/unix/opendir.c (__opendir): Optimize a bit.  Add
__builtin_expect.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 02:58:22 +0000 (02:58 +0000)]
Update.

2000-10-25  Ulrich Drepper  <drepper@redhat.com>

* intl/Makefile (tests): Add tst-ngettext.
* intl/tst-ngettext.c: New file.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 02:37:46 +0000 (02:37 +0000)]
Update.

2000-10-25  Bruno Haible  <haible@clisp.cons.org>

* manual/charset.texi: Fix spelling of __GCONV_FULL_OUTPUT.
* manual/message.texi (Translation with gettext): Remove paragraph
about macros contained in libintl.h.
(bind_textdomain_codeset): Describe codeset argument.
(Using gettextized software): Add setlocale call to sample code.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 02:34:17 +0000 (02:34 +0000)]
Update.

2000-10-26  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
    Yutaka Niibe  <gniibe@chroot.org>

* sysdeps/sh/dl-machine.h (elf_machine_rela): Handle in place
relocation which is generated by new ld.
* sysdeps/sh/elf/initfini.c (_init): Preseted __fpscr_values.
(_fini): Delete an obsolete register prefix.
* sysdeps/unix/sysv/linux/sh/Versions: Add __xstat64, __fxstat64,
__lxstat64, alphasort64, glob64, readdir64, readdir64_r, scandir64
and versionsort64 as the 2.2-versioned symbols.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: New file.
* sysdeps/unix/sysv/linux/sh/brk.c: Changes for the new system call
calling convention of the kernel.
* sysdeps/unix/sysv/linux/sh/pipe.S: Likewise.
* sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
* sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
* sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sh/fcntl.c: New file.
* sysdeps/unix/sysv/linux/sh/lockf64.c: New file.
* sysdeps/unix/sysv/linux/sh/sys/user.h: Include the kernel header
file and delete the definitions of struct user and user_fp.
* sysdeps/unix/sysv/linux/sh/syscall.S: New file.
* sysdeps/unix/sysv/linux/sh/syscalls.list: Remove entries for
s_ioctl, s_ipc, s_llseek, s_chown, s_fchown, s_lchown, s_execve,
rt_sigaction, rt_sigpending, rt_sigprocmask, rt_sigqueueinfo,
rt_sigsuspend, rt_sigtimedwait, s_getcwd, s_getdents, s_getgroups,
s_getpriority, s_getegid, s_geteuid, s_getuid, getresgid, getresuid,
s_getrlimit, s_poll, s_pread64, s_ptrace, s_pwrite64, s_reboot,
s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
s_setfsgid, s_setfsuid, s_setgid, s_setgroups, s_setregid,
s_setresgid, s_setresuid, s_setreuid, s_setuid, s_sysctl,
s_ugetrlimit, s_ustat, sys_fstat, sys_lstat, sys_mknod, sys_readv,
sys_stat, sys_writev and syscall.

23 years agoUpdate.
Ulrich Drepper [Thu, 26 Oct 2000 02:24:09 +0000 (02:24 +0000)]
Update.

* io/test-lfs.c (do_prepare): Rewrite so it doesn't fail on systems
without LFS support.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 22:17:16 +0000 (22:17 +0000)]
Update.

2000-10-25  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/ieee754/dbl-64/e_jn.c: Use __ieee754_sqrt instead of __sqrt.
* sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
* sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
* sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
* sysdeps/ieee754/flt-32/e_j0f.c: Likewise.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 20:29:30 +0000 (20:29 +0000)]
Update.

2000-10-25  David Mosberger  <davidm@hpl.hp.com>

* sysdeps/unix/sysv/linux/ia64/profil-counter.h: Multiply slot
number by four to use bins of width 4 to get accurate
instruction-level profiling.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 17:54:46 +0000 (17:54 +0000)]
Update.

2000-10-25  Andreas Jaeger  <aj@suse.de>

* sysdeps/generic/dl-cache.h (CACHEMAGIC_VERSION_NEW): Correct string.

23 years ago(CACHEMAGIC_VERSION_NEW): Correct cut and paste error.
Ulrich Drepper [Wed, 25 Oct 2000 17:52:54 +0000 (17:52 +0000)]
(CACHEMAGIC_VERSION_NEW): Correct cut and paste error.

23 years agoRegenerated.
Andreas Jaeger [Wed, 25 Oct 2000 17:31:00 +0000 (17:31 +0000)]
Regenerated.

23 years agoMention that gcc -traditional is not supported.
Andreas Jaeger [Wed, 25 Oct 2000 17:30:55 +0000 (17:30 +0000)]
Mention that gcc -traditional is not supported.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 17:19:53 +0000 (17:19 +0000)]
Update.

2000-10-25  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): When
converting struct flock64 to struct flock and back, use fcntl commands
which work on struct flock.

2000-10-25  Jakub Jelinek  <jakub@redhat.com>

* math/test-misc.c (main): Only check modfl if NO_LONG_DOUBLE is not
defined.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 16:58:14 +0000 (16:58 +0000)]
Update.

* sysdeps/arm/libm-test-ulps: Updated.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 16:16:23 +0000 (16:16 +0000)]
Update.

2000-10-25  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-cache.h (CACHEMAGIC_VERSION_NEW): New value.

23 years ago(CACHEMAGIC_VERSION_NEW): New value.
Ulrich Drepper [Wed, 25 Oct 2000 16:05:16 +0000 (16:05 +0000)]
(CACHEMAGIC_VERSION_NEW): New value.

23 years agoUpdate.
Andreas Jaeger [Wed, 25 Oct 2000 14:12:14 +0000 (14:12 +0000)]
Update.

2000-10-25  Andreas Jaeger  <aj@suse.de>

* elf/dl-load.c (_dl_map_object_from_fd): Remove unused variable.
(_dl_map_object): Likewise.

23 years ago(_dl_map_object_from_fd): Remove unused variable. (_dl_map_object): Likewise.
Andreas Jaeger [Wed, 25 Oct 2000 14:11:27 +0000 (14:11 +0000)]
(_dl_map_object_from_fd): Remove unused variable. (_dl_map_object): Likewise.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 08:23:00 +0000 (08:23 +0000)]
Update.

2000-10-24  Paul Eggert  <eggert@twinsun.com>

* time/strftime.c (my_strftime macro)
[!defined _LIBC && HAVE_TZNAME && HAVE_TZSET]:
When redefining, do it without args, so that it works even if
emacs is defined and an extra argument is passed to my_stftime.
(my_strftime function): When evaluating a subformat, pass
ut_argument as well.

2000-10-24  Andreas Schwab  <schwab@suse.de>

* sysdeps/unix/sysv/linux/ia64/Versions: Add pciconfig_read and
pciconfig_write.

* sysdeps/generic/dl-cache.c (_dl_cache_verify_ptr): Correct test
for files with new cache format.
(_dl_load_cache_lookup): Add variable cache_data_size for size of the
data.  Correctly report error if neither old not new signature is
found. Little optimizations.
Mostly based on a patch by Denis Zaitsev <zzz@cd-club.ru>.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 07:06:03 +0000 (07:06 +0000)]
Update.

2000-10-25  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Optimize a bit by optimizing out the
nsearchlist variable.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 04:00:08 +0000 (04:00 +0000)]
Update.

* elf/dl-lookup.c (add_dependency): Fix test to check whether
dependency already exists.
* elf/Makefile: Add testobj1 and testobj2 as dependencies of testobj6.
* elf/loadtest.c (main): Add test at the end that everything is
unloaded.

* elf/dl-open.c (dl_open_worker): Fix typo in comment.

23 years agoUpdate.
Ulrich Drepper [Wed, 25 Oct 2000 00:19:27 +0000 (00:19 +0000)]
Update.

2000-10-24  Ulrich Drepper  <drepper@redhat.com>

* elf/elf.h: Add even more IA-64 relocations.

23 years agoAdd even more IA-64 relocations.
Ulrich Drepper [Wed, 25 Oct 2000 00:16:25 +0000 (00:16 +0000)]
Add even more IA-64 relocations.

23 years ago* io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
Geoff Keating [Tue, 24 Oct 2000 21:12:01 +0000 (21:12 +0000)]
* io/test-lfs.c (do_prepare): Call setrlimit64, in case the user

has a limit set---for instance, a limit of 2^31 bytes, which can't
easily be reset by non-LFS-aware shells.
2000-10-24  Geoffrey Keating  <geoffk@cygnus.com>

* io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
has a limit set---for instance, a limit of 2^31 bytes, which can't
easily be reset by non-LFS-aware shells.

23 years ago* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT
Geoff Keating [Tue, 24 Oct 2000 21:09:50 +0000 (21:09 +0000)]
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT

explicitly rather than getting it from <asm/page.h>.
2000-10-21  Geoffrey Keating  <geoffk@cygnus.com>

* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT
explicitly rather than getting it from <asm/page.h>.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 20:20:37 +0000 (20:20 +0000)]
Update.

* elf/dl-close.c (_dl_close): Handle relocation dependencies of
the dependencies of the object currently unloaded.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 19:31:51 +0000 (19:31 +0000)]
Update.

* elf/dl-close.c (_dl_close): Don't free memory for global scope
list immediately when empty.  Move code to...
(free_mem): ...here.  Called as part of __libc_subfreeres list.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 19:18:25 +0000 (19:18 +0000)]
Update.

* elf/dl-deps.c (_dl_map_object_deps): Put l_initfini array before
r_list array in allocated memory.
* elf/dl-close.c (_dl_close): Optimize access to l_initfini list
and remove use of r_list.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 17:04:14 +0000 (17:04 +0000)]
Update.

2000-10-24  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Use correct list (l_initfini) when
computing new opencounts.
* elf/Makefile: Add rules to build and run neededtest3.
* neededtest3.c: New file.
* neededobj4.c: New file.

* elf/neededtest.c (main): Correct tests for failing dlopen.

23 years agoObject for unload testing.
Ulrich Drepper [Tue, 24 Oct 2000 16:59:10 +0000 (16:59 +0000)]
Object for unload testing.

23 years agoRegenerated.
Andreas Jaeger [Tue, 24 Oct 2000 15:42:04 +0000 (15:42 +0000)]
Regenerated.

23 years agoMention glibc 2.2 caveats.
Andreas Jaeger [Tue, 24 Oct 2000 15:36:52 +0000 (15:36 +0000)]
Mention glibc 2.2 caveats.

23 years ago(main): Correct tests for failing dlopen.
Ulrich Drepper [Tue, 24 Oct 2000 15:25:53 +0000 (15:25 +0000)]
(main): Correct tests  for failing dlopen.

23 years agoUpdate.
Andreas Jaeger [Tue, 24 Oct 2000 11:17:58 +0000 (11:17 +0000)]
Update.

2000-10-24  Andreas Jaeger  <aj@suse.de>

* elf/dl-lookup.c (add_dependency): Remove unused variable j.

23 years ago(add_dependency): Remove unused variable j.
Andreas Jaeger [Tue, 24 Oct 2000 11:17:45 +0000 (11:17 +0000)]
(add_dependency): Remove unused variable j.

23 years ago(main): Run tests for different alignments.
Ulrich Drepper [Tue, 24 Oct 2000 08:30:36 +0000 (08:30 +0000)]
(main): Run tests for different alignments.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 08:25:05 +0000 (08:25 +0000)]
Update.

* malloc/Makefile (tests): Add tst-obstack.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 08:23:06 +0000 (08:23 +0000)]
Update.

* malloc/obstack.c (_obstack_newchunk): Correctly align first returned
block.
* malloc/tst-obstack.c: New file.
Patch and test case by Alexandre Duret-Lutz <duret_g@epita.fr>.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 07:36:55 +0000 (07:36 +0000)]
Update.

2000-10-24  Ulrich Drepper  <drepper@redhat.com>

Complete revamp of the reference counter handling.
* include/link.h (struct link_map): Add l_idx field.
* elf/dl-close.c: Handle decrementing of reference counters more
correctly. If necessary decrement reference counters of dependencies
of dependencies.
* elf/dl-lookup.c (add_dependency): Only increment reference counter
of the object itself and not also its dependencies.
* elf/dl-open.c: Increment reference counters here.
* elf/dl-deps.c: Remove reference counter handling here.
* elf/dl-load.c: Likewise.
* elf/rtld.c: Adjust for _dl_map_deps not handling reference counters.

* elf/loadtest.c: Print loaded objects at the beginning.

23 years ago(struct link_map): Add l_idx field.
Ulrich Drepper [Tue, 24 Oct 2000 07:24:28 +0000 (07:24 +0000)]
(struct link_map): Add l_idx field.

23 years agoUpdate.
Andreas Jaeger [Tue, 24 Oct 2000 07:02:35 +0000 (07:02 +0000)]
Update.

2000-10-24  Andreas Jaeger  <aj@suse.de>

* sysdeps/mips/dl-machine.h: Partly revert patch from 2000-10-18.

23 years agoPartly revert patch from 2000-10-18.
Andreas Jaeger [Tue, 24 Oct 2000 07:01:37 +0000 (07:01 +0000)]
Partly revert patch from 2000-10-18.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 01:02:15 +0000 (01:02 +0000)]
Update.

* include/link.h (struct link_map): New bit field l_faked.
* elf/dl-deps.c: Use l_faked field in struct link_map instead of
the magic l_opencount==0.
* elf/dl-load.c: Likewise.
* elf/dl-version.c: Likewise.
* elf/rtld.c: Likewise.

23 years agoUpdate.
Ulrich Drepper [Tue, 24 Oct 2000 00:03:37 +0000 (00:03 +0000)]
Update.

2000-10-23  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Add a few more __builtin_expect.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 23:19:40 +0000 (23:19 +0000)]
Update.

2000-10-23  Jim Meyering  <meyering@ascend.com>

Allow this code to be used outside of glibc.
* sysdeps/generic/memrchr.c: Undef __memrchr, too.
[!weak_alias]: Define __memrchr to memrchr.
Guard weak_alias use with `#ifdef weak_alias'.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 22:58:40 +0000 (22:58 +0000)]
Update.

* elf/unload.c: Generate more debugging output.

* elf/neededtest.c: Make it more complicated.
* elf/neededtest2.c: New file.
* elf/Makefile: Add rules to build and run neededtest2.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 21:40:57 +0000 (21:40 +0000)]
Update.

* elf/dl-sym.c (_dl_sym): Use exact check for caller PC in range
of DSO address space.
(_dl_vsym): Likewise.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 20:02:38 +0000 (20:02 +0000)]
Update.

2000-10-23  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-sym.c (_dl_sym): For RTLD_DEFAULT, search in objects
global scope if we can determine it.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 19:38:30 +0000 (19:38 +0000)]
Update.

* sysdeps/unix/sysv/linux/ia64/bits/resource.h (RLIMIT_LOCKS): Added.
(RLIMIT_NLIMITS): Sync with kernel definition.
(PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros.

2000-10-23  Andreas Schwab  <schwab@suse.de>

23 years ago(RLIMIT_LOCKS): Added. (RLIMIT_NLIMITS): Sync with kernel definition. (PRIO_PROCESS...
Ulrich Drepper [Mon, 23 Oct 2000 19:36:18 +0000 (19:36 +0000)]
(RLIMIT_LOCKS): Added. (RLIMIT_NLIMITS): Sync with kernel definition. (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros.

23 years ago* sysdeps/m68k/fpu/libm-test-ulps: Updated.
Andreas Schwab [Mon, 23 Oct 2000 19:15:24 +0000 (19:15 +0000)]
* sysdeps/m68k/fpu/libm-test-ulps: Updated.

23 years agoUpdated.
Andreas Schwab [Mon, 23 Oct 2000 19:14:22 +0000 (19:14 +0000)]
Updated.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 18:51:39 +0000 (18:51 +0000)]
Update.

2000-10-23  Ulrich Drepper  <drepper@redhat.com>

* elf/elf.h (R_IA64_GPREL32MSB, R_IA64_GPREL32LSB): New definitions.

23 years agoUpdate.
Ulrich Drepper [Mon, 23 Oct 2000 17:11:35 +0000 (17:11 +0000)]
Update.

2000-10-22  Bruno Haible  <haible@clisp.cons.org>

* iconvdata/big5hkscs.c (big5hkscs_to_ucs): Add irreversible mappings
for 0x8BF8, 0xA27E..0xA2A7.
* iconvdata/BIG5HKSCS.irreversible: New file.

2000-10-23  Jakub Jelinek  <jakub@redhat.com>

* timezone/zdump.c (main): setlocale LC_CTYPE as well as LC_MESSAGES.
* timezone/zic.c (main): Likewise.

2000-10-23  Thorsten Kukuk  <kukuk@suse.de>

* nscd/connections.c (invalidate_cache): Don't invalidate a cache
if it is not enabled.

23 years ago(TIMEOUT): Override default timeout.
Ulrich Drepper [Mon, 23 Oct 2000 16:53:00 +0000 (16:53 +0000)]
(TIMEOUT): Override default timeout.

23 years agoUpdate.
Andreas Jaeger [Mon, 23 Oct 2000 13:19:05 +0000 (13:19 +0000)]
Update.

* sysdeps/s390/fpu/libm-test-ulps: New ulps.

23 years agoUpdate.
Andreas Jaeger [Mon, 23 Oct 2000 06:27:03 +0000 (06:27 +0000)]
Update.

2000-10-23  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/mips/syscalls.list: Add fcntl64.
Patch by Ralf Baechle <ralf@gnu.org>.

23 years agoUpdate MIPS entry.
Andreas Jaeger [Sun, 22 Oct 2000 06:18:44 +0000 (06:18 +0000)]
Update MIPS entry.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 17:08:18 +0000 (17:08 +0000)]
Update.

* elf/dl-load.c (_dl_map_object_from_fd): Split out ELF file
verification in open_verify.
(open_verify): New function.  Called instead of open.  Ignores valid
files for other architectures.
(open_path): Call open_verify instead of open.
(_dl_map_object): Likewise.
Somewhat based on a patch by Don Dugger <n0ano@valinux.com>.

* io/pwd.c (main): The output was missing a newline.

23 years ago(main): The output was missing a newline.
Ulrich Drepper [Sat, 21 Oct 2000 17:03:01 +0000 (17:03 +0000)]
(main): The output was missing a newline.

23 years agoAdd MIPS information.
Andreas Jaeger [Sat, 21 Oct 2000 11:04:04 +0000 (11:04 +0000)]
Add MIPS information.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 07:30:28 +0000 (07:30 +0000)]
Update.

* posix/fnmatch_loop.c: Make FNM_LEADING_DIR behave as GNU tar
expects it.  Patch by Colin Watson <riva.ucam.org>.
* posix/tst-fnmatch.input: Add test cases for FNM_LEADING_DIR.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 07:16:18 +0000 (07:16 +0000)]
Update.

2000-10-21  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-open.c (add_to_global): New function.  Split out from
dl_open_worker.
(dl_open_worker): Call add_to_global not only for new objects, also for
previously loaded objects when (mode & RTLD_GLOBAL) and the object
was not yet in the global scope.
* elf/Makefile: Add rules to build and run lateglobal.
* elf/lateglobal.c: New file.
* elf/ltglobmod1.c: New file.
* elf/ltglobmod2.c: New file.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 06:32:16 +0000 (06:32 +0000)]
Update.

* include/link.h (struct link_map): Add l_soname_added bitfield.
* elf/dl-load.c (_dl_map_object): Remember when we added the
SONAME to the l_libname list and don't try it again.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 06:02:49 +0000 (06:02 +0000)]
Update.

* elf/dl-close.c: Decrement opencount for all dependencies which can
be removed even if the object is not yet unloaded.
* elf/dl-deps.c (_dl_map_object_deps): If dependency is already in
the list decrement opencount of all dependencies.
* elf/dl-load.c (_dl_map_object_from_fd): Increment object of object
and all dependencies.
(_dl_map_object): Likewise.
* elf/dl-lookup.c (add_dependency): Likewise.

* elf/loadtest.c: Add debug when with more output.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 02:07:22 +0000 (02:07 +0000)]
Update.

* elf/Makefile: Add rules to build and run unload2.
* elf/unload2.c: New file.
* elf/unload2mod.c: New file.
* elf/unload2dep.c: New file.

* intl/libintl.h (ngettext macro): Add missing parameter.
(dngettext macro): Likewise.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 02:03:09 +0000 (02:03 +0000)]
Update.

2000-10-20  Ulrich Drepper  <drepper@redhat.com>

* intl/libintl.h (ngettext): Add missing parameter.
(dngettext): Likewise.

23 years agoUpdate.
Ulrich Drepper [Sat, 21 Oct 2000 00:02:39 +0000 (00:02 +0000)]
Update.

2000-10-19  H.J. Lu  <hjl@gnu.org>

* elf/Makefile (distribute): Add neededtest.c, neededobj1.c,
neededobj2.c and neededobj3.c.
(tests): Add neededtest.
(modules-names): Add neededobj1, neededobj2 and neededobj3.
($(objpfx)neededobj1.so): New target.
($(objpfx)neededobj2.so): Likewise.
($(objpfx)neededobj3.so): Likewise.
($(objpfx)neededtest): Likewise.
($(objpfx)neededtest.out): Likewise.
* elf/neededtest.c: New. Based on the bug report from
Allen Bauer <kylix_rd@hotmail.com>.
* elf/neededobj1.c: Likewise.
* elf/neededobj2.c: Likewise.
* elf/neededobj3.c: Likewise.

2000-10-20  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Decrement reference counter for all
dependencies even if the DSO does not get unloaded.

* elf/dl-load.c (_dl_map_object_from_fd): Pass pointer to ELF header
to elf_machine_matches_host.
* sysdeps/alpha/dl-machine.h (elf_machine_matches_host): Parameter
is now pointer to ELF header.
* sysdeps/arm/dl-machine.h: Likewise.
* sysdeps/generic/dl-machine.h: Likewise.
* sysdeps/hppa/dl-machine.h: Likewise.
* sysdeps/i386/dl-machine.h: Likewise.
* sysdeps/ia64/dl-machine.h: Likewise.
* sysdeps/m68k/dl-machine.h: Likewise.
* sysdeps/mips/dl-machine.h: Likewise.
* sysdeps/mips/mips64/dl-machine.h: Likewise.
* sysdeps/powerpc/dl-machine.h: Likewise.
* sysdeps/s390/dl-machine.h: Likewise.
* sysdeps/sh/dl-machine.h: Likewise.
* sysdeps/sparc/sparc32/dl-machine.h: Likewise.
* sysdeps/sparc/sparc64/dl-machine.h: Likewise.
Patch by Martin Schwidefsksy <schwidefsky@de.ibm.com>.

2000-10-20  Jakub Jelinek  <jakub@redhat.com>

* include/limits.h: Include bits/wordsize.h, use #if __WORDSIZE == 64
check instead of #ifdef __alpha__.
* include/bits/xopen_lim.h (WORD_BIT, LONG_BIT): Don't count on
INT_MAX, __INT_MAX__, LONG_MAX or __LONG_MAX__ being defined when
this is included.

* posix/wordexp-tst.sh (testout): Place output file in build
directory.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.

23 years agoUpdate.
Ulrich Drepper [Fri, 20 Oct 2000 07:34:48 +0000 (07:34 +0000)]
Update.

2000-10-20  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/powerpc/fpu/bits/mathinline.h: Pretty print.

2000-10-19  Ulrich Drepper  <drepper@redhat.com>

* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
Correctly handle numeric group member information.
Patch by tomasw@cs.huji.ac.il.

* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
Complete test for strtol overflow.

2000-10-19  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Pass union
semun as 4th argument to semctl syscall, not address of it.

2000-10-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl64() syscall.

2000-10-17  Andreas Schwab  <schwab@suse.de>

* string/string.h: Remove declaration of __strcasecmp and __strcasestr.
* include/string.h: Declare them here.

23 years agoPretty print.
Ulrich Drepper [Fri, 20 Oct 2000 07:31:42 +0000 (07:31 +0000)]
Pretty print.

23 years agoUpdate.
Andreas Jaeger [Fri, 20 Oct 2000 07:03:02 +0000 (07:03 +0000)]
Update.

2000-10-18  Ralf Baechle  <ralf@gnu.org>

* sysdeps/unix/sysv/linux/mips/sys/syscall.h: Include <asm/unistd.h>.

23 years agoInclude <asm/unistd.h>.
Andreas Jaeger [Fri, 20 Oct 2000 07:02:12 +0000 (07:02 +0000)]
Include <asm/unistd.h>.

23 years ago(_nss_hesiod_initgroups_dyn): Correctly handle numeric group member information....
Ulrich Drepper [Fri, 20 Oct 2000 06:33:30 +0000 (06:33 +0000)]
(_nss_hesiod_initgroups_dyn): Correctly handle numeric group member information. Complete test for strtol overflow.

23 years agoUpdate.
Ulrich Drepper [Fri, 20 Oct 2000 06:16:38 +0000 (06:16 +0000)]
Update.

2000-10-19  Ulrich Drepper  <drepper@redhat.com>

* locales/iso14651_t1: Handle Macedonian correctly.
Patch by Damjan <arhiv@freemail.org.mk>.

23 years agoRemove declaration of __strcasecmp and __strcasestr.
Ulrich Drepper [Fri, 20 Oct 2000 05:59:51 +0000 (05:59 +0000)]
Remove declaration of __strcasecmp and __strcasestr.

23 years ago* sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
Geoff Keating [Thu, 19 Oct 2000 08:15:41 +0000 (08:15 +0000)]
* sysdeps/powerpc/fpu/bits/mathinline.h: Add versions

of the unordered comparison functions that use the GCC builtins.
2000-10-19  Geoffrey Keating  <geoffk@cygnus.com>

23 years ago* sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.
Geoff Keating [Thu, 19 Oct 2000 08:15:09 +0000 (08:15 +0000)]
* sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.

(__process_machine_rela): Print the address of an overflowing
reloc.
2000-10-17  Geoffrey Keating  <geoffk@cygnus.com>

* sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
of the unordered comparison functions that use the GCC builtins.

* sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.
(__process_machine_rela): Print the address of an overflowing
reloc.

23 years agoUpdate.
Ulrich Drepper [Wed, 18 Oct 2000 20:50:51 +0000 (20:50 +0000)]
Update.

2000-10-18  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/shm_open.c: Correct default mount point
in comments.
(freeit): Remove unnecessary test.