Commit Graph

5639 Commits

Author SHA1 Message Date
Andreas Jaeger 4791a9303c Update.
* sysdeps/unix/sysv/linux/sparc/bits/poll.h (NPOLLFILE): Removed.
	* sysdeps/unix/sysv/linux/mips/bits/poll.h (NPOLLFILE): Removed.
	* sysdeps/unix/sysv/linux/m68k/bits/poll.h (NPOLLFILE): Removed.
	* sysdeps/unix/sysv/linux/bits/poll.h (NPOLLFILE): Removed.
	* sysdeps/generic/bits/poll.h (NPOLLFILE): Removed.
2001-07-31 07:46:22 +00:00
Andreas Jaeger c1a7e21dbd Update.
2001-07-31  Andreas Jaeger  <aj@suse.de>

	* libio/genops.c (flush_cleanup): Guard list_all_lock to allow
	compilation without threads.
2001-07-31 06:43:57 +00:00
Ulrich Drepper cd4fa66a28 Update.
2001-07-30  Ulrich Drepper  <drepper@redhat.com>

	* po/fr.po: Update from translation team.
2001-07-30 16:22:48 +00:00
Andreas Jaeger dd98116c60 Update.
* sysdeps/ieee754/ldbl-128/e_atanhl.c: New file, contributed by
	Stephen L Moshier.
2001-07-30 09:08:38 +00:00
Andreas Jaeger 47da6f7128 Update.
2001-07-30  Andreas Jaeger  <aj@suse.de>

	* posix/regex.c: Declare wcs functions only if compiling with
	MBS_SUPPORT.
	Don't use #elif for traditional C.
2001-07-30 07:51:34 +00:00
Mark Kettenis 5301af2d6d * sysdeps/mach/hurd/recvmsg.c: New file. * sysdeps/mach/hurd/sendmsg.c: New file.
2001-07-29  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/recvmsg.c: New file.
	* sysdeps/mach/hurd/sendmsg.c: New file.
2001-07-29 12:26:40 +00:00
Ulrich Drepper 7748f4b5d5 Update.
* sysdeps/mips/Dist: Remove non-existing files.
	* sysdeps/mips/mips64/Dist: Likewise.
	* sysdeps/mips/mipsel/Dist: Removed.
	* iconv/Makefile (distribute): Add strtab.c and iconvconfig.h.
	* sysdeps/generic/Dist: Add bits/link.h.
	* sysdeps/unix/sysv/linux/m68k/Dist: Add sys/procfs.h.
	* sysdeps/unix/sysv/aix/Dist: Add dl-support.c, dl-addr.c, and
	dl-error.c.
	* sysdeps/ia64/Dist: Add bits/link.h.
2001-07-28 06:10:44 +00:00
Ulrich Drepper 9923cc7e8e Update.
* version.h (VERSION): Bump to 2.2.4.
2001-07-28 05:50:21 +00:00
Ulrich Drepper 519ba0a378 Update.
* libio/vasprintf.c (_IO_vasprintf): Don't copy uninitialized byte
	from stream buffer to result buffer.
	Reported by Michael Meeks <michael@ximian.com>.
2001-07-27 19:09:19 +00:00
Ulrich Drepper 277f8cdf98 Update.
* libio/Makefile: Add rules to check output of tst-fopenloc and
	for memory leaks.
	* libio/tst-fopenloc.c: New file.
2001-07-27 18:09:56 +00:00
Ulrich Drepper 8e567f5cfa Update.
* locale/findlocale.c (_nl_find_locale): Use __gconv_compare_alias
2001-07-27 17:38:40 +00:00
Ulrich Drepper 9a018f6c44 Update.
2001-07-27  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_cache.c (__gconv_compare_alias_cache): New function.
	* iconv/gconv_int.h: Add prototype for __gconv_compare_alias_cache.
	* iconv/gconv_charset.h: Replace __gconv_lookup_alias prototype with
	__gconv_compare_alias prototype.
	* iconv/gconv_db.c (__gconv_lookup_alias): Removed.
	(__gconv_compare_alias): New function.
	* locale/findlocale.c (_nl_find_locale): Ise __gconv_compare_alias
	instead of calling __gconv_lookup_alias twice and compare here.
2001-07-27 17:34:53 +00:00
Mark Kettenis ac61ed310d * hurd/hurdsig.c (_hurd_internal_post_signal): Fix handling of SA_RESETHAND and SA_NODEFER.
2001-07-26  Mark Kettenis  <kettenis@gnu.org>

	* hurd/hurdsig.c (_hurd_internal_post_signal): Fix handling of
	SA_RESETHAND and SA_NODEFER.
2001-07-27 08:50:55 +00:00
Ulrich Drepper 129d706d77 Update.
* libio/fileops.c (_IO_new_file_fopen): Correctly locate ccs=
	substring.  Don't handle ccs= if no descriptor was allocated.
	Normalize codeset name before calling __wcsmbs_named_conv.
	Initialize transliteration elements.  Free step data structure.
	* libio/iofclose.c (_IO_new_fclose): Correct freeing of the step data.
	* libio/iofwide.c (__libio_translit): Renamed from libio_translit
	and made public.  Various little cleanup changes.
	* wcsmbs/wcsmbsload.h (struct gconv_fcts): Add towc_nsteps and
	tomb_nsteps member.
	* wcsmbs/wcsmbsload.c: Add some casts to avoid warnings.
	(__wcsmbs_gconv_fcts): Initialize towc_nsteps and tomb_nsteps member.
	(getfct): Take additional parameter with pointer to variable where the
	number of steps is stored in.  Disable code which allows to use more
	than one step for now.  Adjust all callers.
	(free_mem): New function.  Frees data associated with currently
	selected converters.
2001-07-27 08:29:06 +00:00
Ulrich Drepper 6a904bbfc6 Update.
2001-07-27  Ulrich Drepper  <drepper@redhat.com>

	* malloc/mtrace.pl: Extract addresses from DSOs.

2001-07-26  Ulrich Drepper  <drepper@redhat.com>

	* malloc/mcheck.c (checkhdr): Disable mcheck before reporting an
	error.  Don't run any tests if mcheck is disabled.

	* elf/dl-support.c (_dl_important_hwcaps): Avoid using malloc
	early in the program.

>>>>>>> 1.5525
2001-07-27 07:33:58 +00:00
Andreas Jaeger 52d38e0e40 Update.
2001-07-27  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_GPRS): Fix
	value following change from 2001-05-30.

	* sysdeps/s390/s390-64/bits/setjmp.h (_JMPBUF_UNWINDS): Follow
	rename change from 2001-07-12 for __jmp_buf.
	Patches by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2001-07-27 04:36:09 +00:00
Roland McGrath e19ca4d272 * sysdeps/generic/bits/termios.h (EXTA, EXTB): Make these conditional
on __USE_MISC rather than __USE_BSD.
	(B57600, B115200, B230400, B460800, B500000, B576000, B921600,
	B1000000, B1152000, B1500000, B2000000, B2500000, B3000000,
	B3500000, B4000000): New macros.
	* sysdeps/generic/tcsetattr.c (bad_speed): Accept those values.
	* termios/cfsetspeed.c (speeds): Likewise.

	* csu/gmon-start.c: Use ENTRY_POINT_DECL if defined instead of a
2001-07-26 21:27:36 +00:00
Ulrich Drepper 9fa278f9c2 Formatting.
* COPYING: Fix Y2k bug in sample copyright notices.
	* manual/lesser.texi: Renamed from manual/lgpl.texinfo,
	as fsf.org uses the name "lesser.texi".
2001-07-26 01:41:39 +00:00
Ulrich Drepper 045fcd2621 Update.
2001-07-26  kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/sh/dl-machine.h (elf_machine_load_address): Don't use
	multi-line strings.
	(FUN_ADDR, FGR_SAVE, ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
	(elf_machine_rela): Handle unaligned relocation.
2001-07-26 01:39:53 +00:00
Ulrich Drepper 370f00c3a7 Update.
2001-06-07  David Mosberger  <davidm@hpl.hp.com>

	* sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Update call to
	__ia64_make_fptr() for new interface.
	(_dl_function_address): Remove.

	* sysdeps/ia64/dl-machine.h (IA64_BOOT_FPTR_TABLE_LEN): Rename
	from IA64_BOOT_FPTR_SIZE and reduce its value from 256 to 200.
	(struct ia64_fdesc): Rename from struct ia64_fptr and drop "next"
	pointer.  Rename member "func" to "ip".
	(struct ia64_fdesc_table): New type.
	(__ia64_make_fptr): Change prototype.
	(__ia64_init_bootstrap_fdesc_table): New function.
	(ELF_MACHINE_BEFORE_RTLD_RELOC): New macro.
	(__boot_ldso_fptr): Removed.
	(__fptr_next): Removed.
	(__fptr_root): Removed.
	(__fptr_count): Removed.
	(TRAMPOLINE_TEMPLATE): Fix typo in comment.  Don't use multi-line
	strings to avoid warning from gcc3.
	(RTLD_START): Don't use multi-line strings.
	(ELF_MACHINE_START_ADDRESS): Use DL_STATIC_FUNCTION_ADDRESS.
	(elf_machine_fixup_plt): Update the code entry point in the
	function descriptor through a "volatile" pointer to ensure proper
	write ordering.
	(elf_machine_rela): Simplify handling of FPTR relocs: always call
	__ia64_make_fptr().

	* sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): New macro.
	(DL_STATIC_FUNCTION_ADDRESS): Likewise.
	(DL_DT_INIT_ADDRESS): Use DL_AUTO_FUNCTION_ADDRESS.
	(DL_DT_FINI_ADDRESS): Likewise.

	* sysdeps/ia64/dl-fptr.c: Rewrite for better scalability and to
	avoid deadlocks.

	* include/link.h: Add member machine specific "l_mach" member to
	link_map.

	* sysdeps/generic/bits/link.h: New file.
	* sysdeps/ia64/bits/link.h: Likewise.

	* elf/rtld.c (_dl_start): Fix typo in comment.
	(_dl_start_final): Copy new "l_mach" member from temporary to
	final bootstrap map.
2001-07-26 00:27:15 +00:00
Ulrich Drepper ca13ce66be Update.
2001-07-25  Ulrich Drepper  <drepper@redhat.com>

	* csu/gmon-start.c: Use ENTRY_POINT_DECL is defined instead of a
	declaration using ENTRY_POINT.
	* sysdeps/ia64/elf/entry.h (ENTRY_POINT_DECL): New definition.

2001-07-25  H.J. Lu  <hjl@gnu.org>

	* csu/gmon-start.c: Include <entry.h>
	(_start): Replaced with ENTRY_POINT.
2001-07-25 22:15:17 +00:00
Mark Kettenis ff1099a9ee * sysdeps/unix/bsd/bsd4.4/bits/socket.h: New file.
2001-07-25  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/unix/bsd/bsd4.4/bits/socket.h: New file.
2001-07-25 21:42:24 +00:00
Ulrich Drepper 9fcddc2b42 Update.
(write_output): Don't overwrite old cache file until we know we
	have a new one.
	* iconv/Makefile (install-sbin): Add iconvconfig.
	* iconv/gconv_int.h: Add prototype for __gconv_release_cache.
2001-07-25 21:30:39 +00:00
Ulrich Drepper ba915a3807 Update.
* iconv/iconvconfig.c (main): Don't write an output file if we
	have seen an error.
2001-07-25 21:00:58 +00:00
Ulrich Drepper a2cb734f5d Update.
2001-07-25  Ulrich Drepper  <drepper@redhat.com>

	* iconv/Makefile (install-bin): Add iconvconfig.
2001-07-25 20:53:07 +00:00
Ulrich Drepper 48ab1c2ff5 Update.
2001-07-25  Jakub Jelinek  <jakub@redhat.com>

	* elf/Makefile (routines): Add dl-iteratephdr and
	dl-iteratephdr-static.
	(elide-routines.os): Add dl-iteratephdr-static.
	* elf/dl-iteratephdr.c: New file.
	* elf/link.h (struct dl_phdr_info): New definition.
	(dl_iterate_phdr): New prototype.
	* elf/Versions (dl_iterate_phdr): Add at GLIBC_2.2.4.
	* include/link.h (struct dl_phdr_info): New definition.
	(dl_iterate_phdr, __dl_iterate_phdr): New prototypes.
	* sysdeps/generic/dl-iteratephdr-static.c: New file.
	* sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: New file.

	* hurd/hurdsig.c (_hurdsig_init): Fix incorrect initialization
	of pending signals.
2001-07-25 20:47:02 +00:00
Roland McGrath 4113baba44 2001-07-24 Igor Khavkine <i_khavki@alcor.concordia.ca>
* hurd/hurdsig.c (_hurdsig_init): Fix incorrect initialization
        of pending signals.
2001-07-25 08:37:28 +00:00
Andreas Jaeger 303d568fde Update.
2001-06-22  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/dl-machine.c (__elf_preferred_address): Prefer
	gaps below main executable.
2001-07-25 06:37:13 +00:00
Ulrich Drepper f369623d6d Update.
2001-07-22  Bruno Haible  <haible@clisp.cons.org>

	* intl/libintl.h (ngettext, dngettext, dcngettext): Use both msgid1
	and msgid2 for printf format argument checking.
2001-07-24 22:16:09 +00:00
Ulrich Drepper 0db597422f Update.
* iconv/gconv_cache.c (find_module): Don't allocate room for the
	filename.  Use alloca, we don't need it beyond this function.
	(__gconv_release_cache): New function.
	* iconv/gconv_db.c (__gconv_close_transform): Call
	__gconv_release_cache after the steps are handled.
	* iconv/gconv_dl.c (__gconv_find_shlib): Allocate file name in the
	record as well.
	* iconv/gconv_int.h: Add prototype fpr __gconv_release_cache.
2001-07-24 21:30:18 +00:00
Ulrich Drepper 2a28c52993 Update.
2001-07-24  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_cache.c (__gconv_lookup_cache): Catch one more
	boundary case and reject it.

	* manual/examples/longopt.c (main): Fix which options take arguments.
2001-07-24 18:51:59 +00:00
Andreas Jaeger 73de87b622 Update.
2001-07-24  Andreas Jaeger  <aj@suse.de>

	* manual/examples/longopt.c (main): Fix which options take
	arguments.
2001-07-24 16:29:28 +00:00
Ulrich Drepper faf90ba91c Update.
2001-07-24  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/Makefile: Add dependencies for tst-loading test.

	* sunrpc/svc_tcp.c (svctcp_rendezvous_abort): New function.
	* sunrpc/svc_unix.c (svcunix_rendezvous_abort): New function.
2001-07-24 08:10:29 +00:00
Ulrich Drepper 3c7375268b Update. 2001-07-24 07:56:20 +00:00
Andreas Jaeger 0a45baaf4f Update.
2001-07-24  Andreas Jaeger  <aj@suse.de>

	* iconv/iconvconfig.c (name_insert): Make static to avoid warning.

	* iconv/gconv_cache.c: Include stdio.h for puts declaration.
2001-07-24 07:28:54 +00:00
Ulrich Drepper 06b5289f83 Update.
* locale/programs/locale.c (write_locales): Disable implicit
	locking for the stream.  Use feof_unlocked instead of feof.
2001-07-24 07:01:51 +00:00
Ulrich Drepper 63825a6125 Update.
* sysdeps/unix/sysv/linux/i386/makecontext.S: Initialize %fs, %gs,
	and floating-point status as well.
2001-07-24 06:50:41 +00:00
Ulrich Drepper beafb7521f Update.
* libio/iofclose.c (_IO_new_fclose): Unlink descriptor first to
	avoid deadlock.
	* libio/oldiofclose.c (_IO_old_fclose): Likewise.
	* libio/genops.c (_IO_un_link): Get stream lock since it's not
	always done in the caller.
	(_IO_link_in): Likewise.
2001-07-24 04:22:05 +00:00
Ulrich Drepper 3afd949152 Update.
* libio/genops.c (_IO_list_all_stamp): New variable.
	(_IO_un_link): Bump _IO_list_all_stamp after removing from list.
	(_IO_link): Likewise for insertion.
	(flush_cleanup): New function.
	(_IO_flush_all): Get list_all_lock and all individual locks for the
	streams.  Detect and handle changes to the _IO_list_all list.
	(_IO_flush_all_linebuffered): Likewise.
	* sysdeps/generic/bits/stdio-lock.h: Define
	_IO_cleanup_region_start_noarg.
	* sysdeps/mach/hurd/bits/stdio-lock.c: Likewise.
2001-07-24 01:33:57 +00:00
Ulrich Drepper d060ab1437 Update.
* stdio-common/printf.h: Fix typo in comment.
2001-07-23 23:45:03 +00:00
Ulrich Drepper b2e3d177ab Update.
2001-07-23  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_cache.c (__gconv_lookup_cache): Handle encoding from
	and to INTERNAL.
	* iconv/iconvconfig.c: Create a special record for the INTERNAL
	encoding name in the output file.
2001-07-23 23:01:08 +00:00
Ulrich Drepper 4b9afc4372 Update.
2001-07-23  Jakub Jelinek  <jakub@redhat.com>

	* sunrpc/svc_tcp.c (svctcp_rendezvous_abort): New.
	(svctcp_rendezvous_op): Use it.
	* sunrpc/svc_unix.c (svcunix_rendezvous_abort): New.
	(svcunix_rendezvous_op): Use it.

2001-07-23  Andreas Schwab  <schwab@suse.de>

	* math/Makefile (CPPFLAGS-test-ifloat.c, CPPFLAGS-test-idouble.c,
	CPPFLAGS-test-ildoubl.c): Renamed from CFLAGS-*.
	(math-CPPFLAGS): Set this instead of CPPFLAGS.
2001-07-23 18:14:55 +00:00
Ulrich Drepper 30566afbfc Update.
2001-07-23  Ulrich Drepper  <drepper@redhat.com>

	* elf/elf.h: Add more definitions from Sun's latest version.

2001-07-23  Stephen L Moshier  <moshier@mediaone.net>
2001-07-23 17:14:27 +00:00
Andreas Jaeger bdce812bdb Update.
2001-07-23  Stephen L Moshier <moshier@mediaone.net>

	* sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Return proper
	sign for 0 input and set divide by zero exception for -1 input.
	Return argument if NaN or infinity.
2001-07-23 13:23:30 +00:00
Andreas Jaeger dacbc9832b Update.
2001-07-23  Andreas Jaeger  <aj@suse.de>

	* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Add some deltas.
2001-07-23 09:19:11 +00:00
Ulrich Drepper 01b65304db Update.
2001-07-23  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_cache.c (__gconv_lookup_cache): Select correct
	module for conversion direction.

2001-07-23  Stephen L Moshier  <moshier@mediaone.net>
2001-07-23 09:11:23 +00:00
Andreas Jaeger 514abd20fe Update.
2001-07-23  Stephen L Moshier <moshier@mediaone.net>

	* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Return proper
	sign for 0 input.  Return NaN with no exception for NaN input.
2001-07-23 08:54:31 +00:00
Andreas Jaeger 1a9cbbbf75 Update.
Add prototypes to avoid warnings.
2001-07-23 08:40:22 +00:00
Ulrich Drepper 4f9f00653d Update.
2001-07-23  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_builtin.h: ISO-106464/UTF-8/ transformation must
	really be an alias.
2001-07-23 08:31:12 +00:00
Andreas Jaeger 9782710aef Update.
2001-07-23  Andreas Jaeger  <aj@suse.de>

	* iconv/iconvconfig.c: Include <sys/cdefs.h> and use
	__attribute_malloc__ for older GCC versions.
	* iconv/strtab.c: Likewise.
2001-07-23 07:55:20 +00:00
Roland McGrath 42240ec16e Must flee the whitespace police.
and SA_NODEFER options.	 Spurred to action by Igor Khavkine.
	* sysdeps/generic/bits/sigaction.h (struct sigaction): Use a union
2001-07-23 07:36:52 +00:00
Roland McGrath 393aec5244 * hurd/hurdsig.c (_hurd_internal_post_signal): Support SA_RESETHAND
and SA_NODEFER options.  Spurred to action by Igor Khavkine.

	* sysdeps/generic/bits/sigaction.h [__USE_UNIX98 || __USE_MISC]
	(SA_NODEFER, SA_RESETHAND): New macros, same bit values as FreeBSD.
	[__USE_MISC] (SA_INTERRUPT): New macro, value 0.
	[__USE_MISC] (SA_NOMASK, SA_ONESHOT, SA_STACK): New macros, aliases
	as in other sysdeps versions of this file.

        * sysdeps/generic/bits/sigaction.h (struct sigaction): Use a union
	and provide sa_handler and sa_sigaction member names as macros, as
	done in other sysdeps versions of this file.
	Suggested by Igor Khavkine <i_khavki@alcor.concordia.ca>.
2001-07-23 07:20:28 +00:00
Ulrich Drepper a9d61e2988 Update.
2001-07-23  Ulrich Drepper  <drepper@redhat.com>

	* posix/regex.c: Revamp memory allocation for WCHAR functions to
	not use too much stack.
2001-07-23 07:07:11 +00:00
Ulrich Drepper bbdf828564 Update.
* iconv/iconvconfig.c (write_output): Update comment explaining
	output format.
2001-07-23 04:11:06 +00:00
Ulrich Drepper 32463b1aa6 Update.
* elf/dl-load.c (_dl_dst_count): In SUID binaries expand $ORIGIN
	if it is alone.
	(_dl_dst_substitute): Likewise.
2001-07-23 01:13:01 +00:00
Ulrich Drepper 47bd306e41 Update.
* iconv/iconvconfig.c: Remove --verbose option.  Comment out
	mcheck_verbose call.
2001-07-22 22:07:20 +00:00
Ulrich Drepper 61c037249f Update.
2001-07-22  Ulrich Drepper  <drepper@redhat.com>

	* iconv/strtab.c (morememory): Fix little memory handling problem.
2001-07-22 21:48:51 +00:00
Andreas Schwab 5bb17da079 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Don't
mark asm input operand as clobbered.
	* sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
2001-07-22 18:18:58 +00:00
Ulrich Drepper 6b98979fc9 Update.
2001-07-22  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_builtin.c (struct builtin_map): Remove init and end
	elements.
	(BUILTIN_TRANSFORMATION): Remove Init and End parameters.
	(__gconv_get_builtin_trans): Initialize __init_fct and __end_fct to
	NULL.
	* iconv/gconv_builtin.h: Remove NULL parameters for Init and End in
	all BUILTIN_TRANSFORMATION calls.
	* iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Remove Init and End
	parameters.
	* iconv/gconv_simple.c: Likewise.
	* iconv/gconv_db.c (gen_steps): Internal converters don't have
	initializers, move the code accordingly.

	* iconv/gconv_conf.c (__gconv_read_conf): Don't read configuration
	file if STATIC_GCONV is defined.

	* iconv/gconv_conf.c (__gconv_path_envvar): New global variable.
	(__gconv_get_path): Use it instead of call getenv.
	(__gconv_read_conf): First see whether cache can be used.  If yes,
	don't do any work here.
	* iconv/gconv_db.c (__gconv_release_step): Renamed from release_step
	and exported.  Change callers.
	(__gconv_find_transform): First call __gconv_lookup_cache and only
	continue if it signals no cache available.  Remove some unnecessary
	tests.
	* iconv/gconv_int.h: Declare __gconv_path_envvar, __gconv_lookup_cache,
	__gconv_release_step, and __gconv_loaded_cache.
	* iconv/gconv_cache.c: New file.
	* iconv/iconvconfig.c: New file.
	* iconv/iconvconfig.h: New file.
	* iconv/strtab.c: New file.
	* iconv/Makefile: Add rules to build new files and programs.
2001-07-22 17:47:08 +00:00
Roland McGrath 11c0b1e39b * sysdeps/generic/device-nrs.h (DEV_TTY_P): Change argument type
from `dev_t' (st_rdev value) `const struct stat *'.
	* sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Likewise.
	* libio/filedoalloc.c (_IO_file_doallocate): Change caller.
	* sysdeps/mach/hurd/device-nrs.h: New file.
2001-07-21 05:13:40 +00:00
Roland McGrath d3ab710cbc * libio/stdio_ext.h: Moved to ...
* stdio-common/stdio_ext.h: ... here.
	* libio/Makefile (headers): Move stdio_ext.h from here ...
	* stdio-common/Makefile (headers): ... to here.
	* include/stdio_ext.h: New file.
	* stdio/Makefile (routines): Add the stdio_ext.h functions here.
	* stdio/Versions (GLIBC_2.2.4): Export the stdio_ext.h functions.
	* stdio/__flbf.c: New file.
	* stdio/__fbufsize.c: New file.
	* stdio/__fpending.c: New file.
	* stdio/__fpurge.c: New file.
	* stdio/__freadable.c: New file.
	* stdio/__freading.c: New file.
	* stdio/__fsetlocking.c: New file.
	* stdio/__fwritable.c: New file.
	* stdio/__fwriting.c: New file.
2001-07-21 05:10:24 +00:00
Ulrich Drepper 5cd915d7ba Update.
2001-07-20  Ulrich Drepper  <drepper@redhat.com>
	    Andreas Jaeger  <aj@suse.de>

	* elf/ldconfig.c (search_dir): Avoid use of uninitialized memory.
	Add a few __builtin_expect to mark unlikely error cases.
2001-07-20 18:02:01 +00:00
Andreas Jaeger bab889aa27 Update.
2001-07-20  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Synch with kernel.
	Patch by Daniel Jacobowitz <dan@debian.org>.
2001-07-20 06:05:49 +00:00
Ulrich Drepper fcacd1271e Update.
* intl/localealias.c: Remove unnecessary prototype.
2001-07-19 21:09:22 +00:00
Ulrich Drepper fef0b717d0 Update.
2001-07-19  Ulrich Drepper  <drepper@redhat.com>

	* Makefile: Add html goal.
	* manual/Makefile: Likewise.
2001-07-19 07:25:49 +00:00
Ulrich Drepper 91099cf415 Update.
2001-07-18  Ulrich Drepper  <drepper@redhat.com>

	* libio/filedoalloc.c (_IO_file_doallocate): A few more minor
	cleanups and improvements.

2001-07-18  Andreas Schwab  <schwab@suse.de>

	* posix/regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
	underscore character.

2001-07-18  Jakub Jelinek  <jakub@redhat.com>

	* malloc/malloc (new_heap): Don't call munmap for zero length.

2001-07-18  Ulrich Drepper  <drepper@redhat.com>

	* libio/filedoalloc.c (_IO_file_doallocate): Use DEV_TTY_P if
	available to determine whether descriptor is for tty before
	calling isatty.

	* sysdeps/unix/sysv/linux/device-nrs.h: Define DEV_TTY_P.
	* sysdeps/generic/device-nrs.h: Likewise.
2001-07-18 21:22:57 +00:00
Andreas Jaeger adb2a70d23 Update.
2001-07-18  Andreas Jaeger  <aj@suse.de>

	* time/Makefile (tst-getdate-ENV): Add TZDIR to environment.

	* time/Depend: New, add dependency on timezone.

	* time/tst-getdate.c: Add testcase for bug report by Hendrik
	Uhlmann <HUhlmann@stn-atlas.de>.
	* time/datemsk: Likewise.
2001-07-18 09:44:00 +00:00
Ulrich Drepper c96873d780 Update.
2001-07-17  Ulrich Drepper  <drepper@redhat.com>

	* elf/ldconfig.c (parse_conf): Disable implicit locking for the
	stream.  Remove some unnecessary initializers.
2001-07-17 21:56:59 +00:00
Ulrich Drepper 0cfbb8c6ed Update.
2001-07-17  Andreas Jaeger  <aj@suse.de>

	* elf/ldconfig.c: Add new variable hwcap_mask to honour LD_HWCAP_MASK.
	(is_hwcap_platform): Use it.
	(set_hwcap): New function to set hwcap_mask.
	(main): Call set_hwcap.

2001-07-17  Jakub Jelinek  <jakub@redhat.com>

	* time/getdate.c (__getdate_r): Initialize tm_isdst, tm_gmtoff and
	tm_zone before calling strptime.
2001-07-17 19:47:50 +00:00
Andreas Schwab 8081cd9cd3 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Fix last change. 2001-07-17 17:12:38 +00:00
Ulrich Drepper 2706ee3823 Update.
2001-07-17  Ulrich Drepper  <drepper@redhat.com>

	* inet/rcmd.c (iruserfopen): Disable implicit locking for the stream.
	* inet/ruserpass.c (ruserpass): Likewise.
	* nss/nsswitch.c (nss_parse_file): Likewise.
	* resolv/res_hconf.c (_res_hconf_init): Likewise.
	* resolv/res_init.c (__res_vinit): Likewise.
	* gmon/bb_exit_func.c (__bb_exit_func): Likewise.
	* misc/getpass.c (getpass): Likewise.
	* misc/getusershell.c (initshells): Likewise.
	* misc/getttyent.c (setttyent): Likewise.
	* misc/mntent_r.c (__setmntent): Likewise.
	* time/getdate.c (__getdate_r): Likewise.
	* time/tzfile.c (__tzfile_read): Likewise.
	* iconv/gconv_conf.c (read_conf_file): Likewise.
	* intl/localealias.c (read_alias_file): Disable implicit locking
	for the stream.  Use _unlocked functions for glibc.
	* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Disable
	implicit locking for the stream.
	(__get_nprocs_conf): Likewise.
	(phys_pages_info): Likewise.
2001-07-17 08:32:35 +00:00
Ulrich Drepper 2370003639 Update.
only if debug_level > 0.  Add little performance improvements.
	Use TEMP_FAILURE_RETRY around write calls.
2001-07-17 02:38:34 +00:00
Ulrich Drepper 98e75a1c9c Update.
2001-07-16  Ulrich Drepper  <drepper@redhat.com>

	* nscd/connections.c: Print messages caused by user application
	only if debug_level > 0.
	* nscd/grpcache.c: Likewise.
	* nscd/hstcache.c: Likewise.
	* nscd/pwdcache.c: Likewise.
2001-07-17 01:37:42 +00:00
Ulrich Drepper 774a8fe8b4 Update.
2001-07-13  H.J. Lu  <hjl@gnu.org>

	* sysdeps/mips/dl-machine.h (MAP_BASE_ADDR): Removed.
	(elf_machine_got_rel): Defined only if RTLD_BOOTSTRAP is not defined.
	(RESOLVE_GOTSYM): Rewrite to use RESOLVE.

	* sysdeps/mips/rtld-ldscript.in: Removed.
	* sysdeps/mips/rtld-parms: Likewise.
	* sysdeps/mips/mips64/rtld-parms: Likewise.
	* sysdeps/mips/mipsel/rtld-parms: Likewise.
2001-07-16 22:33:08 +00:00
Ulrich Drepper a68edba551 Update.
2001-07-16  Ulrich Drepper  <drepper@redhat.com>

	* catgets/test-gencat.sh: Use <<"EOF" instead of <<EOF to prevent
	substitution in here document.
2001-07-16 22:19:00 +00:00
Ulrich Drepper ba3752d532 Update.
2001-07-16  Andreas Schwab  <schwab@suse.de>

	* sysdeps/posix/spawni.c: Fix typo when iterating over signal numbers.

2001-07-16  Andreas Schwab  <schwab@suse.de>

	* math/libm-test.inc (check_float_internal): Fix sign bit test of
	infinities.

2001-07-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/e_expl.c (__ieee754_expl): Make it PIC friendly.
2001-07-16 21:31:43 +00:00
Ulrich Drepper 778e0ef71d Update.
2001-07-15  Ulrich Drepper  <drepper@redhat.com>

	* malloc/obstack.c: Define __attribute__ for non-gcc compilers.
	Patch by Jim Meyering <jim@meyering.net>.

2001-07-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Reorder
	fields in the sigaction struct to match the definition in the kernel.

2001-07-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Correct the
	test for ENOSYS.

2001-07-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/s390/s390-32/bits/setjmp.h: Add leading underscores
	to the entries in the __jmp_buf structure.
	* sysdeps/s390/s390-64/bits/setjmp.h: Likewise.

2001-07-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/s390/s390-32/bcopy.S: Use mvcle for big blocks
	(> 64K) and a mvc loop for small blocks.
	* sysdeps/s390/s390-32/memcpy.S: Likewise.
	* sysdeps/s390/s390-64/bcopy.S: Likewise.
	* sysdeps/s390/s390-64/memcpy.S: Likewise.
2001-07-16 07:32:48 +00:00
Andreas Schwab a6d214835f * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: New file.
* sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: New file.
2001-07-15 15:31:34 +00:00
Andreas Schwab b20895bd7f * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Check _dl_pagesize
first.  Default to 4096, not EXEC_PAGESIZE.
2001-07-15 15:25:23 +00:00
Andreas Schwab 09e57bdf01 * iconv/loop.c (put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]:
Fix index.
2001-07-15 15:18:51 +00:00
Andreas Jaeger 567f6a473a Update.
2001-07-09  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Name entry for xmm2.

	* sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Add HWCAP_I386_XMM,
	HWCAP_I386_XMM2 to enum.
2001-07-14 08:03:37 +00:00
Andreas Jaeger 57cda26834 Update.
2001-07-13  Andreas Jaeger  <aj@suse.de>

	* libio/fileops.c: Include unistd.h for lseek64 prototype.  Closes
	PR libc/2372.
2001-07-13 13:20:51 +00:00
Ulrich Drepper 0a3b7e6a27 Update.
2001-07-12  Ulrich Drepper  <drepper@redhat.com>

	* Makeconfig: Add some more changes to handle AIX linker better.
2001-07-13 06:40:25 +00:00
Ulrich Drepper 96b58136e3 Update.
2001-07-12  H.J. Lu  <hjl@gnu.org>

	* sysdeps/generic/segfault.c: Include <errno.h>.
2001-07-12 18:30:11 +00:00
Ulrich Drepper 8c35c0da02 Update.
2001-07-01  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk): Remove duplicate
	sbrk.  Closes PR libc/2312.

2001-07-01  Andreas Jaeger  <aj@suse.de>

	* sysdeps/generic/segfault.c (install_handler): Handle case that
	the output file does not exists.  Closes PR libc/2345.

2001-07-11  Ulrich Drepper  <drepper@redhat.com>

	* intl/locale.alias: Use he language code for hebrew, not il
	[PR libc/2382].

2001-07-11  Jakub Jelinek  <jakub@redhat.com>

	* iconv/gconv_int.h: Fix comment typo.

	* hurd/hurdsig.c (_hurdsig_init): Remove a useless line of code.
	backwards conditional in test for x == 1.0.
2001-07-12 06:32:02 +00:00
Roland McGrath 958c2666c6 2001-07-11 Igor Khavkine <i_khavki@alcor.concordia.ca>
* hurd/hurdsig.c (_hurdsig_init): Remove a useless line of code.

2001-07-07  Roland McGrath  <roland@frob.com>

	* hurd/hurdsig.c (_hurd_thread_sigstate): Use MACH_PORT_NULL, not 0.
2001-07-11 21:16:48 +00:00
Andreas Jaeger 0e2bd6fdac Update.
2001-07-10  Stephen L Moshier  <moshier@mediaone.net>

	* sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl):  Fix
          backwards conditional in test for x == 1.0.
2001-07-11 07:30:36 +00:00
Andreas Jaeger 0eeba576ea Update.
2001-07-10  Andreas Jaeger  <aj@suse.de>

	* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Add ulps for tanh
	(-0.7).
2001-07-10 08:28:10 +00:00
Andreas Jaeger 772596083f * sysdeps/unix/sysv/linux/configure.in: Revert patch from
2001-07-05 for sysconfdir handling. 
* config.make.in (sysconfdir): Likewise. 
* configure.in: Likewise.
	* configure.in: Always assign libc_cv_sysconfdir.
2001-07-09  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/configure.in: Revert patch from
	2001-07-05 for sysconfdir handling.
	* config.make.in (sysconfdir): Likewise.
	* configure.in: Likewise.

	* configure.in: Always assign libc_cv_sysconfdir.
2001-07-09 11:51:53 +00:00
Ulrich Drepper 994431ed53 Update.
* Makerules [AIX] (build-shlib-helper): Precede linker options
	with -Wl.

	* Makeconfig (config-LDFLAGS): Add ld.so only for ELF.
2001-07-08 15:07:16 +00:00
Ulrich Drepper 5f6b4f1db0 Update.
* sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to
	what we define in <stdio.h>.
2001-07-08 09:47:01 +00:00
Ulrich Drepper d3f8be6d13 Update.
* iconv/iconv_prog.c (main): Don't unconditionally define
	variables only use if _POSIX_MAPPED_FILES is defined.
2001-07-08 07:32:45 +00:00
Ulrich Drepper 73c342ebcc Update.
2001-07-08  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/aix/sendmsg.c (sendmsg): Fix return type.
	* sysdeps/unix/sysv/aix/recvmsg.c (recvmsg): Likewise.

	* sysdeps/unix/sysv/aix/recv.c: New file.

	* sysdeps/unix/sysv/aix/recvfrom.c: Fix various types.

	* sysdeps/generic/recv.c: Fix return type.

	* sysdeps/unix/sysv/aix/dl-libc.c (__libc_dlclose): Fix typo.

	* sysdeps/unix/sysv/aix/gettimeofday.c (__gettimeofday): Add
	declarations for asm functions.
2001-07-08 07:17:00 +00:00
Ulrich Drepper a2a89dd6ce Update.
* include/libc-symbols.h: Provide more dummy definitions for the
	case if GNU ld isn't used.
2001-07-08 06:23:55 +00:00
Ulrich Drepper 1a35b7fd42 Update.
* libio/freopen.c: Include <stdlib.h> for free declaration.
	* libio/freopen64.c: Likewise.
2001-07-08 06:18:45 +00:00
Ulrich Drepper 9f2bedd02f Update.
2001-07-07  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/alpha/fpu/libm-test-ulps: Add deltas for tanh(-0.7).
2001-07-08 05:57:47 +00:00
Ulrich Drepper 4dbb64174c Update.
2001-07-06  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sigaction.c (RESTORE2): Put asm
	explicitly into .text section.

2001-04-16  Jes Sorensen  <jes@linuxcare.com>

	* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
	Add 16 longwords reserved for future use to match changes in the
	kernel.

2001-07-03  Jes Sorensen  <jes@trained-monkey.org>

	* sysdeps/ia64/strncpy.S: Call strnlen() when determining the
	string length rather than strlen(). Solves the performance problem
	of doing strlen on a 5MB string when strncpy was called with a
	length argument of 5 bytes.

2001-07-02  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
	R_SPARC_UA16 and R_SPARC_UA32.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.

2001-07-01  Stephen L Moshier  <moshier@mediaone.net>

	* sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl):
	acosh(x) = ln(2x) if x > 2^30.
	* sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
	acosh(x) = ln(2x) if x > 2^54.

	* sysdeps/hppa/dl-machine.h (elf_machine_rela): Handle relocs
2001-07-07 22:59:32 +00:00
Mark Kettenis 43c6b44414 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Generate SIGSEGV instead of SIGBUS for KERN_INVALID_ADDRESS and KERN_WRITE_PROTECTION_FAILURE.
2001-07-07  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal):
	Generate SIGSEGV instead of SIGBUS for KERN_INVALID_ADDRESS and
	KERN_WRITE_PROTECTION_FAILURE.
2001-07-07 20:34:28 +00:00
Ulrich Drepper 22af13de45 Update.
* posix/regex.c: Limit string length printed in debug messages to
	100 chars.
2001-07-07 19:24:57 +00:00
Ulrich Drepper 6cab95babf Update.
2001-07-07  Ulrich Drepper  <drepper@redhat.com>

	* configure.in: Don't warn about versioning if not on ELF system.
2001-07-07 19:06:33 +00:00
Andreas Jaeger 084909e80d Update.
2001-07-07  Andreas Jaeger  <aj@suse.de>

	* sysdeps/*: Put files from GNU MP Library under LGPL v2.1.
2001-07-07 10:39:52 +00:00
Ulrich Drepper 96f06a9b43 Update.
2001-07-06  Ulrich Drepper  <drepper@redhat.com>

	* po/gl.po: Update from translation team.
2001-07-06 16:46:27 +00:00
Andreas Jaeger 05d9898010 Update.
* sysdeps/unix/sysv/linux/configure.in: Fix handling of
	sysconfdir.
2001-07-06 16:14:46 +00:00
Andreas Jaeger 7f2826c836 Update.
* manual/libc-texinfo.sh: Add note for the FDL.

	* manual/argp.texi (Argp Example 4): Fix texinfo warning.

	* manual/libc.texinfo: Regenerated.

	* manual/fdl.texi: Fix node.
2001-07-06 09:21:36 +00:00
Andreas Jaeger 513eb02f81 Update.
* config.make.in (sysconfdir): Replace correctly.
	Closes PR libc/2369, reported by Peter Simons <simons@cryp.to>.

	* sysdeps/unix/sysv/linux/alpha/configure.in: Removed, it's no
	longer needed.

	* sysdeps/unix/sysv/linux/configure.in (libc_cv_linuxVER): Add
	case for alpha.
	Rework handling of missing linuxthreads add-on.

	* configure.in: Remove unused sysconfdir substitution.
2001-07-06 07:16:51 +00:00
Andreas Jaeger e2cb5c1d3f Update.
2001-07-06  Andreas Jaeger  <aj@suse.de>

	* manual/Makefile (texis): Add fdl.texi.
	* manual/fdl.texi: New.
	* manual/socket.texi (Host Names): Improve grammar, fix overflow hbox.
	* manual/libc.texinfo: Add fdl, update titlepage.
	Patches by Brian Youmans <3diff@gnu.org>.

	* sysdeps/unix/make_errlist.c (main): Print LGPL v2.1 for
	generated file.
2001-07-06 06:58:28 +00:00
Andreas Jaeger a1b36134f6 * COPYING: Fix Y2k bug in sample copyright notices.
* manual/lesser.texi: Renamed from manual/lgpl.texinfo,
        as fsf.org uses the name "lesser.texi".
	* manual/Makefile (texis): Follow rename.
2001-07-06 05:37:16 +00:00
Andreas Jaeger 41bdb6e20c Update to LGPL v2.1.
2001-07-06  Paul Eggert  <eggert@twinsun.com>

	* manual/argp.texi: Remove ignored LGPL copyright notice; it's
	not appropriate for documentation anyway.
	* manual/libc-texinfo.sh: "Library General Public License" ->
	"Lesser General Public License".

2001-07-06  Andreas Jaeger  <aj@suse.de>

	* All files under GPL/LGPL version 2: Place under LGPL version
	2.1.
2001-07-06 04:58:11 +00:00
Andreas Jaeger e2008c38b4 Update.
Synch with Linux 2.4.6:
2001-07-05 08:48:49 +00:00
Andreas Jaeger 752a1deb39 Update.
2001-07-05  Andreas Jaeger  <aj@suse.de>

	Synch with Linux 2.4.5:
	* sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_BLUETOOTH):
	New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h
	(PF_BLUETOOTH): New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/mips/bits/socket.h (AF_BLUETOOTH): New.
	(PF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/ia64/bits/socket.h (AF_BLUETOOTH): New.
	(PF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/alpha/bits/socket.h (PF_BLUETOOTH): New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/bits/socket.h (PF_BLUETOOTH): New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_IEEE80211): New.

	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h (N_HCI): New.

	* sysdeps/unix/sysv/linux/mips/bits/ioctl-types.h (N_HCI): New.

	* sysdeps/unix/sysv/linux/bits/ioctl-types.h (N_HCI): New.
2001-07-05 08:47:15 +00:00
Roland McGrath 90f9eba7d2 * hurd/hurdsig.c (_hurd_internal_post_signal): For SS->suspended
wakeup message, use MACH_MSG_TYPE_MAKE_SEND for the receiver port
	rather than doing a mach_port_insert_right call first.
2001-07-04 23:07:03 +00:00
Roland McGrath bc68392b1f * hurd/hurdioctl.c: Include <string.h> for memcpy decl. 2001-07-04 22:58:42 +00:00
Andreas Jaeger bb10cf19e1 Update.
2001-07-03  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/sysv4/solaris2/configure.in: Remove check for
	crypt add-on.
2001-07-03 16:50:55 +00:00
Mark Kettenis 5bd5e35748 * sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in the Hurd pfinet server, using equivalent code from the Linux version in sysdeps/unix/sysv/linux/if_index.c. In detail: Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and <hurd/pfinet.h>. Don't include <sys/mman.h> and <hurd/fsys.h> anymore. (if_nametoindex): New implementation using SIOCGIFINDEX. (if_freenameindex): Straight copy of the Linux version. (if_nameindex): New implementation based on pfinet_siocgifconf and SIOCGIFINDEX. (if_indextoname): New implementation using SIOCGIFNAME. (map_interfaces): Function removed. From Marcus Brinkmann <marcus@gnu.org>.
2001-07-01  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in
	the Hurd pfinet server, using equivalent code from the Linux
	version in sysdeps/unix/sysv/linux/if_index.c. In detail:
	Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and
	<hurd/pfinet.h>.  Don't include <sys/mman.h> and <hurd/fsys.h>
	anymore.
	(if_nametoindex): New implementation using SIOCGIFINDEX.
	(if_freenameindex): Straight copy of the Linux version.
	(if_nameindex): New implementation based on pfinet_siocgifconf and
	SIOCGIFINDEX.
	(if_indextoname): New implementation using SIOCGIFNAME.
	(map_interfaces): Function removed.
	From Marcus Brinkmann <marcus@gnu.org>.
2001-07-01 12:06:11 +00:00
Ulrich Drepper f669de74ea Update.
2001-06-30  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/dl-machine.c (__elf_preferred_address): Prefer
	gaps below main executable.
2001-06-30 21:23:03 +00:00
Andreas Jaeger 33e25d26e7 Update.
2001-06-19  Andreas Jaeger  <aj@suse.de>

	* sysdeps/powerpc/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
	Handle profiling.
2001-06-29 17:51:27 +00:00
Andreas Jaeger 2995f70ed7 Update.
2001-06-29  Andreas Jaeger  <aj@suse.de>

	* sysdeps/ieee754/ldbl-128/s_asinhl.c: New file.
	Patch by Stephen L Moshier <moshier@mediaone.net>.
2001-06-29 15:16:08 +00:00
Ulrich Drepper da1375be0e Update.
(_nl_locale_file_list): This.  Make it extern.
	(re_search_2): Invoke convert_mbs_to_wcs and FREE_WCS_BUFFERS.
	(write_locale_data): Use xmalloc.  Compare the file with the locale
	(BODY for TO_LOOP): Keep track of Unicode 3.1 language tag.  If "ja",
	conversion to GB2312.  If "ko", prefer conversion to KSC5601.  Small
	* sysdeps/generic/e_log2l.c: ...to here.  Rename to __ieee754_log2l.
	* sysdeps/i386/fpu/e_log2.S: ...to here.  Rename to __ieee754_log2.
	* sysdeps/i386/fpu/e_log2f.S: ...to here.  Rename to __ieee754_log2f.
	* sysdeps/i386/fpu/e_log2l.S: ...to here.  Rename to __ieee754_log2l.
	* sysdeps/m68k/fpu/e_log2.c: ...to here.  Rename to __ieee754_log2.
	* sysdeps/m68k/fpu/e_log2f.c: ...to here.  Rename to __ieee754_log2f.
	* sysdeps/m68k/fpu/e_log2l.c: ...to here.  Rename to __ieee754_log2l.
	* sysdeps/ieee754/dbl-64/e_log2.c: ...to here.  Rename to
	* sysdeps/ieee754/flt-32/e_log2f.c: ...to here.  Rename to
	(main): When testing UTF-8 or GB18030, set bmp_only to 1.  Don't print
	UTF-8 and GB18030, loop upto U+30000 instead of U+10000.  Use UTF-8
	(ucs4_to_cns11643): Update for new arrays.  Treat U+3400..U+4DFF and
	to s_sigsuspend.  Add s_mmap2.
	* iconv/skeleton.c: Distinguish do_flush = 1 and do_flush = 2.  In the
	the next step.  In the second case, clear the state without calling
	paths are the same or not.  Free entry->path for duplicates.
	* sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: ...here.  Adjust
	Save uc_link around trap.  Copy __uc_sigmask into first word of
	uc_sigmask, clear the rest.  Make sure setcontext to the created
	Correct the values.
	(pSx, qSx): Replace by shorter approximation.
	changing it in the state.  After incrementing 'inptr', store it back.
	greater_than, less_or_equal, greater_or_equal.  Replace args2/args3
	(exp): Add rules for CMPOP2 and '!'.  Don't call YYABORT.
	(yylex): Don't skip "\\n".  Recognize comparison and '!' operators.
	(plural_eval): Recognize comparison and '!' operators.  Optimize for
	* intl/gettextP.h: Include <stddef.h>.  Include gettext.h, for
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: ...here.  Include
	* sysdeps/unix/sysv/aix/restf.S: Removed.
	* sysdeps/unix/sysv/aix/savef.S: Removed.
	(SIGCONTEXT): Likewise.  Add 2nd arg _code.
	(_dl_aux_init): Here.  New function.  Defined only if
	'domainname'.  Remove 'plindex' field.  Add 'domain' and
	found.  Remove plindex from cache key.  Add 'translation_length' and
	* intl/plural.y: Include config.h.  Needed to define 'inline' away for
2001-06-29 02:03:36 +00:00
Ulrich Drepper f7364247e7 Update.
2001-06-28  Ulrich Drepper  <drepper@redhat.com>

	* manual/argp.texi: Tons of cleanups.
	Patch by Clifford U. Smith <cuel@swbell.net>.
2001-06-29 01:19:02 +00:00
Ulrich Drepper 90e5b29e14 Update.
* manual/users.texi (Setting Groups): Correct initgroups
	documentation.  Add documentation for getgrouplist.

2001-06-28  H.J. Lu  <hjl@gnu.org>

	* locale/findlocale.c (locale_file_list): Renamed to ...
	(_nl_locale_file_list): This. Make it extern.
	(free_mem): Move to ...
	* locale/setlocale.c (free_mem): Here.

2001-06-28  Mark Kettenis  <kettenis@gnu.org>

2001-06-20  Isamu Hasegawa  <isamu@yamato.ibm.com>
2001-06-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
	* posix/regex.c (count_mbs_length): Use binary search for optimization.
2001-06-29 00:17:44 +00:00
Mark Kettenis 59a3de2d4e * sysdeps/mach/hurd/read.c: Include <hurd/fd.h>. (__libc_read): Don't call __pread. Use _hurd_fd_read directly instead. * sysdeps/mach/hurd/write.c: Include <hurd/fd.h>. (__libc_write): Don't call __pwrite. Use _hurd_fd_write directly instead.
* sysdeps/mach/hurd/read.c: Include <hurd/fd.h>.
	(__libc_read): Don't call __pread.  Use _hurd_fd_read directly
	instead.
	* sysdeps/mach/hurd/write.c: Include <hurd/fd.h>.
	(__libc_write): Don't call __pwrite.  Use _hurd_fd_write directly
	instead.
2001-06-27 23:35:23 +00:00
Mark Kettenis e17f38594f * sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Add back -Wl,-soname option lost in 2001-06-16 change.
2001-06-28  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Add back
	-Wl,-soname option lost in 2001-06-16 change.
2001-06-27 23:29:39 +00:00
Ulrich Drepper 2f07975de1 Update.
* posix/tst-regex.c: Pass REG_NEWLINE to regcomp.  Add extra tests.
	Restrict printing of string in debug mode to 100 characters to make
	the output useful for long input texts.
2001-06-27 22:27:03 +00:00
Ulrich Drepper 64333c6623 Update.
* posix/Makefile: Add rules to build and run tst-regex.

2001-06-20 Isamu Hasegawa <isamu@yamato.ibm.com>

	* posix/regex.c (FREE_WCS_BUFFERS): New macro to free buffers.
	(re_search_2): invoke convert_mbs_to_wcs and FREE_WCS_BUFFERS.
	(wcs_re_match_2_internal): Check whether the wcs buffers need
	seting up or not, and skip seting up routin if not needed.

2001-06-26 Isamu Hasegawa <isamu@yamato.ibm.com>

	* posix/regex.c (count_mbs_length): Use binary search for
	optimization.

2001-06-27  Ulrich Drepper  <drepper@redhat.com>
2001-06-27 16:15:39 +00:00
Ulrich Drepper 7bcad28063 Update.
2001-06-27  Ulrich Drepper  <drepper@redhat.com>

	* posix/tst-regex.c: Fix several bugs.  Add more tests.
2001-06-27 07:59:20 +00:00
Mark Kettenis 7facfddd0d * hurd/Makefile (user-interfaces): Add pfinet. * hurd/hurdioctl.c: Include <hurd/pfinet.h>, <net/if.h> and <netinet/in.h>. (siocgifconf): New function. Register it with HURD_HANDLE_IOCTL as the handler for SIOCGIFCONF. * sysdeps/mach/hurd/bits/ioctls.h: Modify SIOCSIFFLAGS and SIOCGIFFLAGS to be of IOC type ifreq_short. Modify SIOCSIFMETRIC and SIOCGIFMETRIC to be of IOC type ifreq_int. Add new macro definitions for SIOCGIFMTU, SIOCSIFMTU, SIOCGIFINDEX and SIOCGIFNAME. From Marcus Brunkmann <marcus@gnu.org>.
2001-06-26  Mark Kettenis  <kettenis@gnu.org>

	* hurd/Makefile (user-interfaces): Add pfinet.
	* hurd/hurdioctl.c: Include <hurd/pfinet.h>, <net/if.h> and
	<netinet/in.h>.
	(siocgifconf): New function.  Register it with HURD_HANDLE_IOCTL
	as the handler for SIOCGIFCONF.
	* sysdeps/mach/hurd/bits/ioctls.h: Modify SIOCSIFFLAGS and
	SIOCGIFFLAGS to be of IOC type ifreq_short.  Modify SIOCSIFMETRIC
	and SIOCGIFMETRIC to be of IOC type ifreq_int.  Add new macro
	definitions for SIOCGIFMTU, SIOCSIFMTU, SIOCGIFINDEX and
	SIOCGIFNAME.
	From Marcus Brunkmann <marcus@gnu.org>.
2001-06-26 10:21:56 +00:00
Ulrich Drepper da0debaa44 Update.
* sysdeps/gnu/net/if.h: Correct _IOT_ifreq and add _IOT_ifreq_short
	and _IOT_ifreq_int.  Patch by Mark Kettenis <kettenis@wins.uva.nl>.
2001-06-26 04:59:41 +00:00
Ulrich Drepper 505d4b248b Update.
2001-06-25  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-deps.c (_dl_map_object_deps): Fix handling of failing
	_dl_catch_error calls.
2001-06-26 04:17:42 +00:00
Ulrich Drepper d8f00d4669 Update.
2001-06-22  Jakub Jelinek  <jakub@redhat.com>

	* posix/regex.c (regex_compile, re_match_2_internal): Fix comment
	typos.

2001-06-01  Wolfram Gloger  <wg@malloc.de>

	* malloc/malloc.c (malloc_atfork, free_atfork): Use a unique value
	ATFORK_ARENA_PTR, not 0, for the thread-specific arena pointer
	when malloc_atfork is in use.
2001-06-26 03:14:04 +00:00
Andreas Jaeger 37695e8f0f Update.
* sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Add parenthese
	to avoid warnings.

	* sysdeps/i386/fpu/e_expl.c (__ieee754_expl): Remove unused
	variable.
	Add unused attributes to avoid warnings.
2001-06-22 15:03:32 +00:00
Andreas Jaeger e15df0bbd7 Update.
* elf/reldep4mod4.c: Add prototype to avoid warning.
	* elf/reldep4mod2.c: Likewise.
2001-06-22 13:50:51 +00:00
Andreas Jaeger 36e3e2d4bf Update.
2001-06-22  Andreas Jaeger  <aj@suse.de>

	* sysdeps/i386/fpu/e_expl.c: Include <math_private.h> for
	prototypes.
2001-06-22 13:49:08 +00:00
Roland McGrath cb18901b31 * hurd/hurd/fd.h (_hurd_fd_error_signal): Change return type to int. 2001-06-22 08:40:31 +00:00
Ulrich Drepper fec3cf8165 Update.
2001-06-20  Alexandre Oliva  <aoliva@redhat.com>

	* sysdeps/unix/sysv/settimeofday.c: Include time.h.
2001-06-21 16:46:17 +00:00
Ulrich Drepper 74b9818803 Update.
2001-06-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/unix/sysv/linux/s390/s390-64/dl-cache.h: New file.
2001-06-20 07:17:04 +00:00
Ulrich Drepper ad10cac8a4 Update.
2001-05-09  Michael Keezer  <mkeezer@redhat.com>

	* Makeconfig: Added AIX-ld support for DSO.
	* Makerules: Likewise.
	* dlfcn/Makefile (defaultmod1.so): Added libc_nonshared.
	(defaultmod2.so): Likewise.
	* debug/Makefile: Conditionalize use of elf/ld.so.
	* iconvdata/Makefile: Moved LDFLAG rpath/soname info into Makeconfig.

	* sysdeps/unix/sysv/aix/Makefile: Added dl-support.c and dl-error.c.
	* sysdeps/unix/sysv/aix/Makefile: Made (f/g)rsave(0/1) &
	(f/g)prrest(0/1) static only.
	* sysdeps/unix/sysv/aix/gettimeofday.c: Removed #if 0.
	* sysdeps/unix/sysv/aix/start.c: Define __dso_handle if not ELF but
	shared.
	* sysdeps/unix/sysv/aix/setitimer.c: New file.
	* sysdeps/unix/sysv/aix/sleep.c: New file.
	* sysdeps/unix/sysv/aix/usleep.c: New file.
	* sysdeps/unix/sysv/aix/dl-addr.c: New file.
	* sysdeps/unix/sysv/aix/dl-error.c: New file.
	* sysdeps/unix/sysv/aix/dl-support.c: New file.
	* sysdeps/unix/sysv/aix/powerpc/register-dump.h: New file.

	(BODY for TO_LOOP): Keep track of Unicode 3.1 language tag. I f "ja",
	prefer conversion to Japanese character sets.  If "zh", prefer
	conversion to GB2312. I f "ko", prefer conversion to KSC5601.  Small
2001-06-20 07:10:50 +00:00
Ulrich Drepper 874e557059 Update.
2001-06-19  Ulrich Drepper  <drepper@redhat.com>

	* po/es.po: Update from translation team.
2001-06-19 16:05:21 +00:00
Andreas Jaeger 20f421e1a1 Update
2001-06-19  Andreas Jaeger  <aj@suse.de>

	* sysdeps/ieee754/ldbl-128/s_tanhl.c: New file.

	* math/libm-test.inc (tanh_test): Test for 2^-56.

	* sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Make sure result
	equals argument when x < 2^-55.
	Patches by Stephen L. Moshier <moshier@na-net.ornl.gov>.
2001-06-19 12:41:02 +00:00
Ulrich Drepper d7d64cdb3d Update.
2001-06-17  Alan Modra  <amodra@bigpond.net.au>

	* sysdeps/hppa/dl-machine.h (elf_machine_rela): handle relocs
	at unaligned address.
2001-06-19 00:43:55 +00:00
Ulrich Drepper c4be6664d5 Update.
* posix/regex.c: Reorganize code to build code twice, once for single
	byte, once for multi-byte charsets.  Choose function set adequate for
	locale at runtime.
	Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
2001-06-19 00:37:35 +00:00
Ulrich Drepper 9e05f72f87 Update..
2001-06-18  Ulrich Drepper  <drepper@redhat.com>

	* po/nl.po: Update from translation team.
2001-06-18 20:25:33 +00:00
Ulrich Drepper 86621b49b2 Update.
2001-06-09  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/gconv-modules (BIG5HKSCS): New alias BIG5-HKSCS.
	(ISO-8859-14): New aliases ISO_8859-14 and ISO-CELTIC.
	* iconvdata/tst-tables.sh: For BIG5HKSCS, use BIG5-HKSCS charmap.

2001-05-26  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/tst-tables.sh: For SJIS module, use SHIFT_JIS charmap.
	* manual/charset.texi: Write Shift_JIS, not Shift-JIS.
2001-06-18 04:46:52 +00:00
Roland McGrath b8744bea9b * sysdeps/pthread/aio_misc.h (LIO_DSYNC): Define to LIO_NOP + 1,
not LIO_READ + 1 (which is the value of LIO_WRITE!).
2001-06-18 01:47:39 +00:00
Roland McGrath c7414a8e30 * sysdeps/unix/sysv/linux/i386/sigaction.c (restore, restore_rt):
Declare these without `static', to avoid warning that we haven't
	defined them.

	* Makerules (build-module-helper-objlist): New variable,
	broken out of build-module.  Insert --whole-archive/--no-whole-archive
	immediately each *_pic.a file in the link object list.
	(whole-archive): New variable, used by that.
	(build-module-objlist): New variable using build-module-helper-objlist.
	(build-module, build-module-helper): Use it.
	(build-shlib-objlist): New variable using build-module-helper-objlist.
	(build-shlib): Use that.
	* sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Likewise.
2001-06-18 01:09:45 +00:00
Roland McGrath 986ad61e9c * posix/spawni.c: Moved to ...
* sysdeps/posix/spawni.c: ... here.
	* sysdeps/generic/spawni.c: New file.
2001-06-17 22:18:08 +00:00
Roland McGrath 5fe915ee12 * hurd/Makefile (routines): Add lookup-retry.
* hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Broken out ...
	* hurd/lookup-retry.c: ... into here, new file.
	* sysdeps/mach/hurd/dl-sysdep.c (open_file): Call that instead
	using of duplicate code here.

	* hurd/hurdexec.c (_hurd_exec): Be robust for DTABLESIZE==0.

	* posix/regex.c: Avoid an access violation if malloc fails.
2001-06-17 21:09:28 +00:00
Ulrich Drepper 5b60c9fcea Update.
2001-06-17  Ulrich Drepper  <drepper@redhat.com>

	* po/ja.po: Update from translation team.
2001-06-17 16:52:21 +00:00
Ulrich Drepper aac0e8c4e8 Update.
2001-06-04  Bruno Haible  <haible@clisp.cons.org>

	* locale/programs/locfile.c (siblings_uncached, siblings, full_read,
	compare_files): New functions.
	(write_locale_data): Use xmalloc. Compare the file with the locale
	data files for the same category in other locales, and reuse it if
	possible and safe.
2001-06-17 00:43:42 +00:00
Ulrich Drepper 8fee1bb0b2 Update.
2001-06-07  Mark Kettenis  <kettenis@gnu.org>

	* grp/initgroups.c (initgroups): Factor out re-usable code into...
	(internal_getgrouplist): ... new function.
	(getgrouplist): New function.
	* grp/grp.h (getgrouplist): New prototype.
	* grp/Versions [2.2.4]: Add getgrouplist.

2001-06-16  Ulrich Drepper  <drepper@redhat.com>

	* inet/netinet/ip6.h: Fix comments in ip6_hdr.
	Patch by Pekka Savola <pekkas@netcore.fi>.
2001-06-16 19:50:36 +00:00
Roland McGrath 81dacf8ac4 * rt/Makefile (aio-routines, clock-routines, timer-routines): New
variables, broken out of librt-routines.
	(librt-routines): Set using those.
	(extra-libs, extra-libc-others, tests): Set these unconditionally.
	(distribute): No need for $(librt-map) or $(librt-routines:=.c) here.
	* sysdeps/generic/aio_fsync.c: New file.
	* sysdeps/generic/aio_misc.c: New file.
	* sysdeps/generic/aio_write.c: New file.
	* sysdeps/generic/aio_write64.c: New file.
	* sysdeps/generic/aio_read64.c: New file.
	* sysdeps/generic/aio_read.c: New file.
	* sysdeps/generic/aio_notify.c: New file.
	* sysdeps/generic/lio_listio64.c: New file.
	* sysdeps/generic/lio_listio.c: New file.
	* sysdeps/generic/aio_cancel.c: New file.
	* sysdeps/generic/aio_misc.h: New file.
	* sysdeps/generic/aio_suspend.c: New file.
	* rt/aio_cancel.c: Moved to ...
	* sysdeps/pthread/aio_cancel.c: ... here.
	* rt/aio_fsync.c: Moved to ...
	* sysdeps/pthread/aio_fsync.c: ... here.
	* rt/aio_misc.c: Moved to ...
	* sysdeps/pthread/aio_misc.c: ... here.
	* rt/aio_misc.h: Moved to ...
	* sysdeps/pthread/aio_misc.h: ... here.
	* rt/aio_notify.c: Moved to ...
	* sysdeps/pthread/aio_notify.c: ... here.
	* rt/aio_read.c: Moved to ...
	* sysdeps/pthread/aio_read.c: ... here.
	* rt/aio_read64.c: Moved to ...
	* sysdeps/pthread/aio_read64.c: ... here.
	* rt/aio_suspend.c: Moved to ...
	* sysdeps/pthread/aio_suspend.c: ... here.
	* rt/aio_write.c: Moved to ...
	* sysdeps/pthread/aio_write.c: ... here.
	* rt/aio_write64.c: Moved to ...
	* sysdeps/pthread/aio_write64.c: ... here.
	* rt/lio_listio.c: Moved to ...
	* sysdeps/pthread/lio_listio.c: ... here.
	* rt/lio_listio64.c: Moved to ...
	* sysdeps/pthread/lio_listio64.c: ... here.
2001-06-16 04:48:42 +00:00