Commit Graph

2568 Commits

Author SHA1 Message Date
Ulrich Drepper 0cebbf5197 Update.
1999-08-06  Ulrich Drepper  <drepper@cygnus.com>

	* resolv/res_send.c (res_send): Don't test file descriptor for
	range, we use poll now.  [PR libc/1240]
1999-08-06 16:35:33 +00:00
Ulrich Drepper 6eead9b470 Update.
1999-08-05  Ulrich Drepper  <drepper@cygnus.com>

	* libio/genops.c (_IO_flush_all): Don't access elements beyond what
	2.0 defined if they are not available.
1999-08-05 18:20:47 +00:00
Ulrich Drepper b85f2e879f Update.
1999-08-05  Thorsten Kukuk  <kukuk@suse.de>

	* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_RSYNC, O_DSYNC):
	Define.
1999-08-05 16:58:38 +00:00
Ulrich Drepper 4a900f3be3 Update.
* hesiod/hesiod.c: Avoid emitting rcsid in object file.
1999-08-05 01:33:18 +00:00
Ulrich Drepper cfafc6fd96 Update.
* rt/aio_fsync.c: Test OP parameter for correct values.
1999-08-05 00:21:21 +00:00
Ulrich Drepper d65ddb3495 Update.
* rt/aio_fsync.c: Likewise.
1999-08-05 00:10:40 +00:00
Ulrich Drepper f6948bdc7c Update.
* rt/aio_write.c: Fix return value.
	* rt/aio_write64.c: Likewise.
1999-08-05 00:04:45 +00:00
Ulrich Drepper 4bea7a2ee1 Update.
1999-08-04  Ulrich Drepper  <drepper@cygnus.com>

	* rt/aio_read.c: Fix return value.
	* rt/aio_read64.c: Likewise.
	Reported by Christian Gafton.

	* rt/aio_misc.c: Set errno at correct place.
1999-08-04 23:55:20 +00:00
Ulrich Drepper 2f638d5e5a Update.
1999-08-04  Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_PARSER):
	Initialize result to one.
	(GET_NPROCS_CONF_PARSER): Likewise.
1999-08-04 16:01:55 +00:00
Ulrich Drepper 630b9a59e1 Update.
1999-08-03  Ulrich Drepper  <drepper@cygnus.com>

	* inet/ether_hton.c: Pass errno pointer to NSS function.
	* inet/getnetgrent_r.c: Likewise.
	Reported by Marty Leisner <leisner@rochester.rr.com>.
1999-08-04 00:09:53 +00:00
Ulrich Drepper d6f6ffa166 Update.
1999-08-02  Thorsten Kukuk  <kukuk@suse.de>

	* nis/nis_callback.c: Fix port problem on big-endian machines
	* sunrpc/clnt_udp.c: Cast to uint32_t pointer, not short. RPC
	fields are always 32 bit.
	Patches from Paul Mackerras <paulus@cs.anu.edu.au>

	* nis/nss_nis/nis-service.c: Remove htons, port is always in
	network-byte-order.
	* nis/nss_nisplus/nisplus-service.c: Rename number to port.
1999-08-03 17:22:13 +00:00
Ulrich Drepper 4bdd64534f Update.
1999-08-03  Andreas Schwab  <schwab@suse.de>

	* sysdeps/posix/sigset.c: Unblock the signal after setting its
	disposition.  Use SIG_BLOCK/SIG_UNBLOCK instead of SIG_SETMASK to
	avoid two calls to sigprocmask.
1999-08-03 17:09:27 +00:00
Ulrich Drepper d03db7f0c7 Update.
1999-08-02  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/generic/s_nexttowardf.c: Fix typo.
1999-08-02 23:56:41 +00:00
Ulrich Drepper b533f96fb1 Fix typo.
* nis/nis_callback.c (internal_nis_do_callback): Use poll()
1999-08-02 22:12:22 +00:00
Ulrich Drepper 7b19af6891 Update.
1999-08-02  Jakub Jelinek  <jj@ultra.linux.cz>

	* sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction):
	Only allow rt signal frames. No SA_SIGINFO signals will have the
	siginfo_t just not filled out with SI_NOINFO code.
	* sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h
	(register_dump): Take the above change into account.
	* sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
	(rt_signal_frame): Likewise.

	* sysdeps/unix/sysv/linux/sparc/getsysstats.c: New file.
1999-08-02 20:04:56 +00:00
Ulrich Drepper 249fd241a2 Update.
1999-08-02  Thorsten Kukuk  <kukuk@suse.de>

	* nis/nis_callback.c (internal_nis_do_callback) use poll()
	instead of select().

1999-08-02  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/generic/s_nextafter.c: Define __nexttoward and
	nexttoward so something else so that aliasing works.

1999-08-02  Thorsten Kukuk  <kukuk@suse.de>

	* sysdeps/generic/math_ldbl.h: Fix typo.
	* sysdeps/generic/strtold.c: Remove unbalanced #endif.
	* sysdeps/alpha/fpu/e_sqrt.c: Use new path for e_sqrt.c.

1999-08-02  Ulrich Drepper  <drepper@cygnus.com>

	* elf/resolvfail.c: Include stdio.h.  Also test dlerror.
1999-08-02 19:56:07 +00:00
Ulrich Drepper ff5fad1641 Update.
* elf/Makefile (tests): Add resolvfail.  Add rules to build the
	program.
	* elf/resolvfail.c: New file.
1999-08-01 21:43:03 +00:00
Ulrich Drepper 4f2793d41f Update.
1999-08-01  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dl-sym.c (_dl_sym): Always determine module of the caller to
	pass it to _dl_lookup_symbol.

	* elf/dl-error.c (_dl_signal_error): Optimize string generation a
	bit.  Reword message.

	* dlfcn/dlerror.c: Make code thread-safe.
1999-08-01 19:24:38 +00:00
Roland McGrath 549c48e737 1999-07-31 Roland McGrath <roland@baalperazim.frob.com>
* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Fix msgt_size member
	initializer in CHECK: a bit size, not the type code repeated!
1999-08-01 02:43:05 +00:00
Ulrich Drepper 8685bf1336 Update.
1999-07-31  Ulrich Drepper  <drepper@cygnus.com>

	* string/tester.c: Add tests with constant arguments for strcpy
	and stpcpy.
1999-07-31 22:56:48 +00:00
Ulrich Drepper 83f6a99044 Update.
1999-07-31  H.J. Lu  <hjl@gnu.org>

	* string/bits/string2.h (__strcpy_small): Fix a typo.
1999-07-31 22:27:07 +00:00
Ulrich Drepper f01010de9b Update.
* Makeconfig (link-libc): Always define it, not only for shared
	builds.
1999-07-31 07:21:56 +00:00
Ulrich Drepper 899a282782 Update.
1999-07-31  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/i386/fpu/e_pow.S: Use addl %esp instead of pop.
	* sysdeps/i386/fpu/e_powf.S: Likewise.
	* sysdeps/i386/fpu/e_powl.S: Likewise.  [PR libc/1213].

	* sysdeps/generic/e_lgammal_r.c: Set *signgam to zero.
	* sysdeps/generic/e_gammal_r.c: Likewise.  [PR libc/1212].
1999-07-31 07:16:41 +00:00
Ulrich Drepper bdb04ee8e2 Update.
1999-07-30  Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/getsysstats.c (GET_NPROCS_PARSER): New
	definition.
	(__get_nprocs): Use it.
	(__get_nprocs_conf): Define as separate function if
	GET_NPROCS_CONF_PARSER is defined.
	* sysdeps/unix/sysv/linux/alpha/getsysstats.c: New file.

	* include/sys/sysinfo.h: New file.
	* sysdeps/generic/sys/sysinfo.h: Remove declaration of internal
	interface.
	* sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.

1999-07-30  H.J. Lu  <hjl@gnu.org>

	* libio/iofflush.c (fflush_unlocked): Weak aliase if
	_IO_MTSAFE_IO is not defined.
	* libio/clearerr.c (clearerr_unlocked): Likewise.
	* libio/feof.c (feof_unlocked): Likewise.
	* libio/ferror.c (ferror_unlocked): Likewise.
	* libio/fputc.c (fputc_unlocked): Likewise.
	* libio/getc.c (getc_unlocked, fgetc_unlocked): Likewise.
	* libio/getchar.c (getchar_unlocked): Likewise.
	* libio/putc.c (putc_unlocked): Likewise.
	* libio/putchar.c (putchar_unlocked): Likewise.

1999-07-30  Thorsten Kukuk  <kukuk@suse.de>

	* sunrpc/Versions: Add svc_getreq_common, svc_getreq_poll,
	  svc_max_pollfd and svc_pollfd to GLIBC_2.2
	* sunrpc/rpc/svc.h: Use rpc*_t types, add new prototypes
	  for svc_run/poll interface.
	* sunrpc/rpc/types.h: Add rpc*_t typedefs.
	* sunrpc/rpc_common.c: Add svc_pollfd and svc_max_pollfd as
	  global variable.
	* sunrpc/svc.c: Add svc_getreq_poll and svc_getreq_common,
	  rewrite other svc_getreq* functions to use svc_getreq_common.
	* sunrpc/svc_run.c: Use poll().

1999-07-30  Andreas Schwab  <schwab@suse.de>

	* Makerules: Put sysd-versions and Versions.all on
	postclean-generated instead of common-generated.

1999-07-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* manual/time.texi (Basic CPU Time): Note that clock_t can wrap
	around and CLOCKS_PER_SEC is 1e6.
1999-07-31 06:11:24 +00:00
Ulrich Drepper 3d558f4ec7 Update.
* configure.in: Add test for local label subtraction.
	* config.h.in: Ad HAVE_SUBTRACT_LOCAL_LABELS.
	* stdio-common/vfprintf.c (vfprintf): Use subtraction of local
	labels to reduce number of runtime relocations and move jump
	tables in read-only seciton.
1999-07-31 05:15:48 +00:00
Ulrich Drepper 94ffedf6e6 Update.
1999-07-30  Ulrich Drepper  <drepper@cygnus.com>

	* malloc/malloc.c (ptmalloc_init): Correct last patch.  The
	assignment cannot be moved.
1999-07-31 04:34:31 +00:00
Ulrich Drepper 66f8fa9bec Update.
* malloc/malloc.c (ptmalloc_init): Also initialize __libc_pagesize
	if no threads are used.

	* libio/iofwrite.c: Add weak alias for _unlocked function if not
	_IO_MTSAFE_IO.
	* libio/iofread.c: Likewise.
	* libio/iofgets.c: Likewise.
	* libio/iofputs.c: Likewise.

	* sysdeps/generic/bits/libc-lock.h (__libc_cleanup_end): New
	definition.
1999-07-30 06:32:48 +00:00
Ulrich Drepper 5330804225 Update.
1999-07-29  H.J. Lu  <hjl@gnu.org>

	* stdlib/mbtowc.c: Include <string.h>.
	* stdlib/wctomb.c: Likewise.
	* sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
	* sysdeps/unix/sysv/linux/statfs64.c: Likewise.

	* misc/mntent_r.c: Include <alloca.h>.
	* elf/dl-runtime.c: Likewise.
1999-07-29 23:46:10 +00:00
Ulrich Drepper f9a2a6369d Update.
1999-07-29  Andreas Schwab  <schwab@suse.de>

	* misc/efgcvt.c (NDIGIT_MAX): Provide precomputed constants for
	all floating point formats supported by gcc.  Error out for
	unhandled precisions.
	* misc/efgcvt_r.c (NDIGIT_MAX): Likewise.
	* misc/qefgcvt.c (NDIGIT_MAX): Likewise.
	* misc/qefgcvt_r.c (NDIGIT_MAX): Likewise.
1999-07-29 22:34:58 +00:00
Ulrich Drepper dbc75fb3cc Update.
* stdlib/Makefile (tests): Add tst-environ.
1999-07-29 22:25:03 +00:00
Ulrich Drepper de4a40d07f Update.
* sysdeps/generic/setenv.c: Move setenv code in new function
	__add_to_environ.  Add new parameter specifying already
	constructed string for the environment.
	(setenv): Call __add_to_environ with new parameter set to NULL.
	(unsetenv): Really test all elements for duplicated name.  Missed those
	cases where the two are following each other.
	* sysdeps/generic/putenv.c: Use __add_to_environ instead of setenv.
	* include/stdlib.h: Add prototype of __add_to_environ.
	* stdlib/tst-environ.c: New file.
1999-07-29 20:40:05 +00:00
Roland McGrath 50d3390d3b 1999-07-27 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/i386/init-first.c (init): Move the inline
	assembler code to switch stacks and call init1 outside this
	function.  Inside `init' the code was optimized away by gcc
	2.95 since it was "clearly" unreachable.
	* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
	Do something similar for the trampoline code.
1999-07-29 18:35:29 +00:00
Ulrich Drepper 9031847df2 Update.
* sysdeps/i386/bits/string.h (__memset_cc): Fix typo in last patch.
1999-07-29 17:13:56 +00:00
Ulrich Drepper ea3e6a3a65 Update.
1999-07-29  Ulrich Drepper  <drepper@cygnus.com>

	* nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups): Correct size
	argument in realloc call.
	* nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups):
	Likewise.
	Reported by Danny Braniss <danny@cs.huji.ac.il>.
1999-07-29 15:48:47 +00:00
Ulrich Drepper b113c12c35 Update.
1999-07-28  Ulrich Drepper  <drepper@cygnus.com>

	* misc/efgcvt.c: Use IEEE 854 formula to compute the number of digits
	to print.
	* misc/efgcvt_r.c: Likewise.
	* misc/qefgcvt.c: Likewise.
	* misc/qefgcvt_r.c: Likewise.
	* misc/tst-efgcvt.c: Remove one test which cannot reliably be run
	anymore.
1999-07-28 22:39:04 +00:00
Ulrich Drepper aa847ee5a4 Update.
1999-07-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* manual/math.texi (FP Function Optimization): Mention drawbacks.
1999-07-28 19:45:27 +00:00
Ulrich Drepper 9f097308c7 Update.
1999-07-28  Ulrich Drepper  <drepper@cygnus.com>

	* stdlib/mblen.c: Use static state.
	Reported by Bruno Haible <haible@ilog.fr>.

	* stdlib/mbtowc.c: Reset state for s == NULL.
	* stdlib/wctomb.c: Likewise.
	Reported by Bruno Haible <haible@ilog.fr>.

	* stdlib/mbstowcs.c: Do not use global state.
	Reported by Bruno Haible <haible@ilog.fr>.
1999-07-28 19:37:40 +00:00
Ulrich Drepper 97a0d44d89 Update.
1999-07-28  Andeas Schwab  <schwab@suse.de>

	* iconvdata/Makefile: Don't try to run iconv tests when cross
	compiling.
1999-07-28 19:16:26 +00:00
Ulrich Drepper 7396d8440b Update.
1999-07-27  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/posix/getaddrinfo.c (gaih_inet): Only return information
	for the hinted protocol.

	* sysdeps/unix/sysv/linux/alpha/bits/elfclass.h: Define Elf_Symndx
1999-07-28 03:27:45 +00:00
Ulrich Drepper e69dbc25e7 Update.
1999-07-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* time/Versions: Add POSIX.1b timer and clock functions to GLIBC_2.2.
1999-07-27 07:14:15 +00:00
Ulrich Drepper a1eca9f329 Update.
1999-07-25  Jakub Jelinek  <jj@ultra.linux.cz>

	* elf/link.h (struct link_map): Use Elf_Symndx instead of ElfXX_Symndx.
	* elf/dl-lookup.c (_dl_setup_hash): Likewise.
	* elf/dl-load.c (_dl_map_object): Likewise.
	* elf/do-lookup.h (do_lookup*): Likewise.
	* sysdeps/generic/bits/elfclass.h: Define Elf_Symndx as uint32_t.
	* sysdeps/unix/sysv/linux/alpha/bits/elfclass.h: Define Elf_symndx
	as uint64_t.
	* elf/elf.h: Remove Elf32_Symndx and Elf64_Symndx.
1999-07-27 05:53:25 +00:00
Ulrich Drepper 650364fa29 Update.
* sysdeps/unix/sysv/sysv4/setsid.c: Correct types.
	* sysdeps/generic/getpgrp.c: Likewise.
	* sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
	* sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
	Patch by John Tobey <jtobey@banta-im.com>.
1999-07-27 05:10:43 +00:00
Ulrich Drepper b7375f6c40 Update.
1999-07-26  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/posix/wait3.c: Help compiling in presence of
	__transparent_union__.  Reported by John Tobey <jtobey@banta-im.com>.
1999-07-27 05:00:18 +00:00
Ulrich Drepper 8cb079d41b Update.
* sysdeps/sparc/sparc64/add_n.S: Avoid using %g2, %g3, %g7 registers
	as much as possible. Declare them using .register pseudo-op if they
	are still used.
	* sysdeps/sparc/sparc64/lshift.S: Likewise.
	* sysdeps/sparc/sparc64/memchr.S: Likewise.
	* sysdeps/sparc/sparc64/memcmp.S: Likewise.
	* sysdeps/sparc/sparc64/memcpy.S: Likewise.
	* sysdeps/sparc/sparc64/memset.S: Likewise.
	* sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
	* sysdeps/sparc/sparc64/rshift.S: Likewise.
	* sysdeps/sparc/sparc64/stpcpy.S: Likewise.
	* sysdeps/sparc/sparc64/stpncpy.S: Likewise.
	* sysdeps/sparc/sparc64/strcat.S: Likewise.
	* sysdeps/sparc/sparc64/strchr.S: Likewise.
	* sysdeps/sparc/sparc64/strcmp.S: Likewise.
	* sysdeps/sparc/sparc64/strcpy.S: Likewise.
	* sysdeps/sparc/sparc64/strcspn.S: Likewise.
	* sysdeps/sparc/sparc64/strlen.S: Likewise.
	* sysdeps/sparc/sparc64/strncmp.S: Likewise.
	* sysdeps/sparc/sparc64/strncpy.S: Likewise.
	* sysdeps/sparc/sparc64/strpbrk.S: Likewise.
	* sysdeps/sparc/sparc64/strspn.S: Likewise.
	* sysdeps/sparc/sparc64/sub_n.S: Likewise.
	* sysdeps/sparc/sparc64/dl-machine.h: Likewise.
	Optimize trampoline code for .plt4-.plt32767.
	Fix trampolines for .plt32768+.

1999-07-25  Jakub Jelinek  <jj@ultra.linux.cz>
1999-07-27 04:43:32 +00:00
Ulrich Drepper f05f5ca385 Update.
1999-07-25  Jakub Jelinek  <jj@ultra.linux.cz>

	* sysdeps/sparc/sparc32/sparcv8/Makefile: -mv8 is deprecated, use
	-mcpu=v8.
	* sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
	* sysdeps/sparc/sparc64/Makefile: Make %g7 register available for
	libc's private use (as assembly routine clobber it anyway).

1999-07-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* README.template (configurations): The crypt add-on has a new
	ftp site.
	* manual/install.texi (Installation): Likewise.
1999-07-27 02:07:01 +00:00
Ulrich Drepper 252ff6b676 Update.
* time/time.h: Add forward for struct sigevent.  Unix98 maybe
	requires to have a full definition but we wait for a bug report
	based on the test suite.
1999-07-27 00:39:04 +00:00
Ulrich Drepper be1dd9498b Update.
1999-07-26  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/generic/clock_getres.c: New file.
	* sysdeps/generic/clock_gettime.c: New file.
	* sysdeps/generic/clock_settime.c: New file.
	* sysdeps/generic/timer_create.c: New file.
	* sysdeps/generic/timer_delete.c: New file.
	* sysdeps/generic/timer_getoverr.c: New file.
	* sysdeps/generic/timer_gettime.c: New file.
	* sysdeps/generic/timer_settime.c: New file.

	* sysdeps/generic/bits/time.h: Define __clockid_t, __timer_t,
	CLOCK_REALTIME, and TIMER_ABSTIME.
	* sysdeps/mach/hurd/bits/time.h: Likewise.
	* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
	* sysdeps/unix/sysv/linux/bits/time.h: Likewise.

	* sysdeps/unix/sysv/linux/bits/posix_opt.h: Define _POSIX_TIMERS.

	* sysdeps/unix/sysv/linux/bits/siginfo.h: Define si_timer1 and
	si_timer2.

	* sysdeps/unix/sysv/linux/syscalls.list: Add clock and timer syscalls.

	* time/Makefile (routines): Add clock_getres, clock_gettime,
	clock_setres, timer_create, timer_delete, timer_getoverr,
	timer_gettime, and timer_settime.

	* time/time.h: Define clockid_t, timer_t, and struct itimerspec for
	POSIX.1b.  Add prototypes for clock and timer functions.
1999-07-27 00:24:04 +00:00
Roland McGrath ed664e8e4f 1999-07-26 Roland McGrath <roland@baalperazim.frob.com>
* hurd/hurdprio.c (_hurd_priority_which_map): Initialize PIDS.
	Fix from Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1999-07-26 23:31:14 +00:00
Ulrich Drepper ff5c72ff50 Update.
* stdlib/wcstombs.c: Do not use global state.
	Reported by Bruno Haible <haible@ilog.fr>.
1999-07-26 17:01:32 +00:00
Ulrich Drepper eea35053ac Update.
* wcsmbs/wctob.c: Avoid sign extension when returning character.
	Reported by Bruno Haible <haible@ilog.fr>.
1999-07-26 16:48:22 +00:00
Ulrich Drepper b8a423c2db Update.
1999-07-26  Ulrich Drepper  <drepper@cygnus.com>

	* wcsmbs/wcsrtombs.c (__wcsrtombs): When computing maximum number
	of wide characters to convert do it right and don't overestimate
	by multiplying with MB_CUR_MAX.
	Reported by Bruno Haible <haible@ilog.fr>.
1999-07-26 16:42:39 +00:00
Ulrich Drepper b18ac18e67 Update.
1999-07-26  Jakub Jelinek  <jj@ultra.linux.jz>

	* string/bits/string2.h (__strcpy_small): Avoid compile time warning.
	(__stpcpy_small): Likewise.
	Union has no __uc member but __c.
1999-07-26 16:06:32 +00:00
Andreas Schwab c4bf322675 1999-07-26 Andreas Schwab <schwab@suse.de>
* sysdeps/m68k/dl-machine.h (RTLD_START): Call pre-init funtions.
1999-07-26 08:28:05 +00:00
Ulrich Drepper f1778711c8 Update.
* libio/iofclose.c (_IO_new_fclose): Only fall back on
	_IO_old_fclose if doing versioning.
1999-07-26 05:59:22 +00:00
Ulrich Drepper c7f7281eca Update.
* libio/iofclose.c (_IO_new_fclose): Detect new streams and handle
	them appropriately.
	* libio/oldiofclose.c (_IO_old_fclose): Likewise.
1999-07-26 02:38:26 +00:00
Ulrich Drepper 63f7cb448b Update.
* misc/tst-mntent.c: Add test case for addmntent and getmntent.
1999-07-26 01:47:15 +00:00
Ulrich Drepper b0b422e85d Update.
* misc/mntent_r.c: Allow spaces and tabs in entry names by
	encoding these characters.
1999-07-26 01:16:48 +00:00
Ulrich Drepper 722c33bbb6 Update.
* string/bits/string2.h: Fix aliasing problems.
	* sysdeps/i386/i486/bits/string.h: Likewise.
	* sysdeps/i386/bits/string.h: Likewise.

1998-12-28  Geoff Keating  <geoffk@ozemail.com.au>

	* sysdeps/powerpc/dl-machine.c: Handle shared library profiling.
	* elf/rtld.c (dl_main): Don't call malloc() between
	re-relocating the dynamic linker and running the application's crt0.

1999-07-21  Paul D. Smith  <psmith@gnu.org>

	* sysdeps/generic/glob.c: Move getlogin{,_r} prototypes below
	glob.h to get __P() macro.

	* posix/fnmatch.c (internal_fnmatch): Use K&R definition syntax,
	not ANSI.
	(__strchrnul): This won't exist outside GLIBC, so create one.

1999-07-25  Jakub Jelinek   <jj@ultra.linux.cz>

	* sysdeps/unix/sysv/linux/sparc/bits/types.h: Always define __qaddr_t.
	__ino64_t should be 32bit unsigned type on sparc32.
	Define __off64_t to __quad_t instead of __int64_t.
	Make __pic_pid_t unsigned on sparc32.

1999-07-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* localedata/tst-rpmatch.sh: Use "&" instead of "" to avoid a bug
	in bash 2.03.

1999-07-25  Ulrich Drepper  <drepper@cygnus.com>
1999-07-25 23:21:20 +00:00
Ulrich Drepper 788e8e7c22 Update.
1999-07-25  Ulrich Drepper  <drepper@cygnus.com>

	* iconvdata/euc-kr.c (euckr_from_ucs4): Set cp[0] to '\0' in case
	of an error.  Patch by Changwoo Ryu <cwryu@debian.org>.
1999-07-25 15:03:25 +00:00
Ulrich Drepper bd805dba0e Update.
* iconvdata/ksc5601.h (ksc5601_to_ucs4): Avoid invalid memory
	accesses.
1999-07-25 05:13:02 +00:00
Ulrich Drepper 30f9ca19e0 Update.
* resolv/res_send.c: Add locks for res_send and res_close use.
1999-07-25 00:58:33 +00:00
Ulrich Drepper e28bacf578 Update.
* elf/Makefile (dl-routines): Add preinit.
	* elf/Versions [ld.so] (GLIBC_2.2): Export _dl_preinit_next.
	* elf/link.h (struct link_map): Add new field l_preinitcount.
	* elf/dl-preinit.c: New file.
	* elf/dynamic-link.h: Initialize l_preinitcount.
	* sysdeps/i386/dl-machine.h (RTLD_START): Call pre-init functions.
1999-07-24 22:17:17 +00:00
Ulrich Drepper fcf70d4114 Update.
1999-07-24  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dl-fini.c: Handle DT_FINI_ARRAY.
	* elf/link.h (struct link_map): Remove l_init_running.  Add l_runcount
	and l_initcount.
	* elf/dl-init.c: Handle DT_INIT_ARRAY.
	* elf/dynamic-link.h: Change parameters.  Now only get link_map
	pointer.  Calculate l_initcount.

	* elf/link.h (struct link_map): Add l_runpath_dirs.
	* elf/dynamic-link.h: If RUNPATH is given, set RPATH to NULL.
	* elf/dl-load.c: Pretty print.
	(decompose_rpath): Take new parameter with info from where the path
	comes.  Pass it the fillin_rpath.
	(_dl_init_paths): Initialize l_runpath_dirs.
	(_dl_map_object): Don't search using RPATHs if object has RUNPATH.
	Search using RUNPATH after LD_LIBRARY_PATH.
	* elf/dl-support.c: Adjust comment.
	* elf/rtld.c: Adjust help message.
1999-07-24 19:45:13 +00:00
Ulrich Drepper 3f38221989 Update.
1999-07-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* elf/rtld.c (dl_main): Adopt to changed _dl_lookup_symbol
	interface.
1999-07-24 17:41:49 +00:00
Roland McGrath 1ad3e19980 1999-07-23 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/generic/bits/termios.h (ONOEOT): Change value to 1<<3, to
	match BSD value; previous value of 1<<8 was a typo.  I bet nothing
	ever used this, so I'm not going to worry about compatibility.
	[__USE_GNU] (IUCLC, OLCUC): New macros.
1999-07-24 00:12:16 +00:00
Ulrich Drepper 49e49bf08b Update.
* include/libintl.h: Undefine N_ and _ first to avoid warnings.
1999-07-23 23:10:36 +00:00
Ulrich Drepper 06535ae948 Update.
* posix/unistd.h: Move declaration of __libc_enable_secure to...
	* include/unistd.h: ...here.

	* elf/dl-open.c (dl_open_worker): If DST is used in SUID program punt.
	* elf/dl-deps.c (expand_dst): Likewise.

	* elf/dynamic-link.h: Set DT_SYMBOLIC, DT_TEXTREL, and DT_BIND_NOW
	based on DT_FLAGS value.

	* elf/do-lookup.h: Remove reference_name parameter, add undef_map.
	Add test for symbols marked STV_HIDDEN.
	* elf/dl-lookup.c (_dl_lookup_symbol): Remove reference_name parameter,
	add undef_map.  Compute reference_name locally.  Update call to
	do_lookup.
	(_dl_lookup_symbol_skip): Likewise.
	(_dl_lookup_versioned_symbol): Likewise.
	(_dl_lookup_versioned_symbol_skip): Likewise.
	* elf/dl-libc.c: Update call to _dl_lookup_*symbol.
	* elf/dl-runtime.c: Likewise.
	* elf/dl-sym.c: Likewise.
	* elf/dl-symbol.c: Likewise.
	* elf/ldsodefs.h: Adjust prototypes.

	* elf/dl-reloc.c (RESOLV): Add test for STV_PROTECTED flag set and
	handle appropriately.  Add comment about DT_TEXTREL.
	* elf/dl-runtime.c: Likewise.
1999-07-23 22:58:50 +00:00
Ulrich Drepper fc9cfb28c0 Update.
1999-07-23  Ulrich Drepper  <drepper@cygnus.com>

	* elf/elf.h: Add ET_LOOS and ET_HIOS.
	Add various EM_* constants.
	Add SHN_LOOS and SHN_HIOS.
	Add SHT_INIT_ARRAY, SHT_FINI_ARRAY, and SHT_PREINIT_ARRAY.
	Add SHF_MERGE and SHF_STRINGS.
	(ElfXX_Sym): Update description of st_other field.
	Add STT_COMMON.
	Add ELFXX_ST_VISIBILITY and ELFXX_ST_OTHER.
	Add STV_* macros.
	Update comment on DT_RPATH.  Add DT_RUNPATH, DT_FLAGS, DT_ENCODING,
	DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ.
	Add DF_ORIGIN, DF_SYMBOLIC, DF_TEXTREL, and DF_BIND_NOW.
1999-07-23 21:04:58 +00:00
Roland McGrath 421c80d27e 1999-07-21 Roland McGrath <roland@baalperazim.frob.com>
* elf/dl-reloc.c (_dl_reloc_bad_type): New function.
	* elf/ldsodefs.h: Declare it.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Use it
	instead of assert.
	(elf_machine_lazy_rel): Likewise.  Take new arg MAP.
	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/mips/mips64/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/generic/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/powerpc/dl-machine.h (elf_machine_lazy_rel): Likewise.
	* sysdeps/powerpc/dl-machine.c (__process_machine_rela): Use
	_dl_reloc_bad_type instead of _dl_signal_error.
	* elf/do-rel.h (elf_dynamic_do_rel): Pass MAP to elf_machine_lazy_rel.
1999-07-21 16:58:06 +00:00
Roland McGrath e26996aa99 1999-07-20 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/_strerror.c: Include <libintl.h>.

1999-07-19  Roland McGrath  <roland@baalperazim.frob.com>

	* hurd/hurdsig.c (_hurd_internal_post_signal): If a
	hurd_signal_preemptor matches but its `preemptor' field is null, use
	its `handler' field directly.  This is to comply with behavior
	documented in <hurd/sigpreempt.h>.
1999-07-21 16:50:21 +00:00
Andreas Schwab 580345725c * libio/fileops.c (_IO_new_file_underflow): Set error indicator
when reading from write-only stream.
	* libio/oldfileops.c (_IO_old_file_underflow): Likewise.
	* libio/wfileops.c (_IO_wfile_underflow): Likewise.

1999-07-21  Andreas Schwab  <schwab@suse.de>
1999-07-21 13:24:21 +00:00
Andreas Schwab 566089a08a 1999-07-21 Andreas Schwab <schwab@suse.de>
* nss/test-netdb.c (output_hostent): Don't crash if h_aliases is
	NULL.
1999-07-21 08:19:48 +00:00
Roland McGrath ce803f0a91 bad commit 1999-07-20 22:57:14 +00:00
Roland McGrath 8d18723936 1999-07-16 Roland McGrath <roland@baalperazim.frob.com>
* elf/dl-reloc.c (_dl_reloc_bad_type): New function.
	* elf/ldsodefs.h: Declare it.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Use it
	instead of assert.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/mips/mips64/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/generic/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.

1999-07-21  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/read.c: Do not include <hurd.h> and
	<hurd/fd.h>.
	* sysdeps/mach/hurd/write.c: Do not include <hurd.h> and
	<hurd/fd.h>.
	(__libc_write): Call __pwrite instead of __pread.
1999-07-20 22:56:39 +00:00
Roland McGrath c768719df4 * sysdeps/mach/hurd/pread.c (__pread): Include <hurd/fd.h>. Fix typo.
* sysdeps/mach/hurd/pwrite.c (__pwrite): Include <hurd/fd.h>.
1999-07-20 21:19:03 +00:00
Roland McGrath 180c9ab7e3 1999-07-20 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/mmap.c (__mmap): Use correct arguments in
	__vm_allocate calls.

1999-07-20  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/sysd-stdio.c (__stdio_read): Call
	_hurd_fd_read with new OFFSET argument set to -1.
	(__stdio_write): Call _hurd_fd_write with new OFFSET argument set
	to -1.

1999-07-17  Roland McGrath  <roland@baalperazim.frob.com>

	* hurd/hurdexec.c (_hurd_exec): Prune trailing null ports from the
	descriptor table sent in the RPC.
1999-07-20 21:07:23 +00:00
Andreas Schwab 2aefabe1a2 1999-07-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* time/strptime.c [!_LIBC]: Fix __mon_day size.  Reported by
	bill@taniwha.org [PR libc/1211].
1999-07-20 13:53:07 +00:00
Andreas Schwab b3ed821981 1999-07-19 Andreas Schwab <schwab@suse.de>
* libio/Makefile (routines): Add fwprintf.

	PowerPC has own version of w_sqrt.c and w_sqrtf.c.
	* math/w_sqrt.c: Moved to ...
	* sysdeps/generic/w_sqrt.c: ... here.
	* math/w_sqrtf.c: Moved to ...
	* sysdeps/generic/w_sqrtf.c: ... here.

	* Make-dist (generic-dirs): New variable.
	(try-sysdeps, +sysdep-names): Use it.
	* extra-lib.mk (all-$(lib)-routines): New variable.  Use it
	instead of $(lib)-routines.
	* elf/Makefile (distribute): Add dl-cache.h.
	* db2/Makefile (distribute): Add all new files.
	* iconvdata/Makefile (distribute): Don't distribute CVS
	directory.
	* math/Makefile (distribute): Remove machine/endian.h, add
	math_ldbl.h.
	* stdio-common/Makefile (distribute): Add _itowa.h.
	* sysdeps/generic/Dist: Remove make_siglist.c, add siglist.h.
	* sysdeps/gnu/Dist: Add eval.c
	* sysdeps/gnu/Makefile (libdl-sysdep_routines) [$(subdir) =
	dlfcn]: Add to this instead of libdl-routines.
	* sysdeps/ieee754/ldbl-128/Dist: New file.
	* sysdeps/mach/hurd/Dist: Add siglist.h
	* sysdeps/unix/sysv/linux/Dist: Add kernel-features.h.
1999-07-20 08:19:37 +00:00
Ulrich Drepper de1910fd06 Update.
* resolv/netdb.h: Add prototypes for getipnodebyaddr, freehostent,
	and getipnodebyname.  The latter comes soon.
1999-07-19 21:48:37 +00:00
Ulrich Drepper a982226402 Update. 1999-07-19 01:48:52 +00:00
Ulrich Drepper c486fcdf41 Update.
* sysdeps/unix/sysv/linux/sparc/Dist: Add ldd-rewrite.sed.

>>>>>>> 1.2438
1999-07-19 01:48:35 +00:00
Ulrich Drepper a553168f1e Update.
* inet/Makefile (routines): Add getipnodebyad and freehostent.
	* inet/Versions [GLIBC_2.2] (libc): Add getipnodebyad and freehostent.
	* inet/freehostent.c: New file.
	* inet/getipnodebyad.c: New file.
	* nss/digits_dots.c: Fail if IPv6 is found and IPv4 is requested.
	Add support for getipnode* functions.

	* nss/digits_dots.c: Don't use __set_h_errno, assign to *h_errnop.
	Set h_aliases to NULL and not to a pointer to an array with a NULL
	pointer following XNS 5.2.
1999-07-18 23:25:06 +00:00
Ulrich Drepper b74c71e87f Update.
* posix/sched.h: Remove internal interfaces.
	* include/sched.h: Add internal interfaces.

	* nss/getXXbyYY.c: Provide variable h_errnop to help shared code.
1999-07-18 19:22:04 +00:00
Ulrich Drepper da0c6e6adf Update.
* nss/digits_dots.c: Set h_errnop if memory allcoation failed.
1999-07-18 19:03:41 +00:00
Ulrich Drepper ae81730fad Update.
1999-07-18  Ulrich Drepper  <drepper@cygnus.com>

	* inet/gethstbyad_r.c (PREPROCESS): Test for unspecified IPv6 address
	and return an error in this case.
	* nss/getXXbyYY_r.c: Allow PREPROCESS be defined and use it if
	available.
1999-07-18 17:31:43 +00:00
Ulrich Drepper 30f22ab12d Update.
1999-07-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Follow change from
	1999-07-17 and adjust len parameter.
	* nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
	* nscd/gethstbyad_r.c (ADD_PARAMS): Likewise.
	* manual/socket.texi (Host Names): Likewise.
	* nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
	* nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
	Likewise.
	* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
	* resolv/gethnamaddr.c (gethostbyaddr): Likewise.
	(ht_gethostbyaddr): Likewise.
	(_gethtbyaddr): Likewise.
1999-07-18 16:05:57 +00:00
Ulrich Drepper bbacd44b2a Update.
* include/netdb.h: Likewise.
1999-07-18 05:40:39 +00:00
Ulrich Drepper 5da9f08469 Update.
* resolv/netdb.h: Adjust parameters of gethostbyaddr and
	gethostbyaddr_r.
	* inet/gethstbyad.c: Correct type of len parameter.
	* inet/gethstbyad_r.c: Likewise.
1999-07-18 05:33:11 +00:00
Ulrich Drepper 6bd7b31b9c Update.
1999-07-17  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/arm/Versions: Undo last change.
1999-07-18 00:30:08 +00:00
Ulrich Drepper 428383e84f Update.
1999-07-17  Zack Weinberg  <zack@rabi.columbia.edu>

	* include/libc-symbol.h: Clean up definitions of weak_alias,
	strong_alias, symbol_version, etc. etc.
	* posix/getopt.h: Use ctype.h to get features.h included, and don't
	include it at all if __GNU_LIBRARY__ is already defined.
1999-07-18 00:19:18 +00:00
Ulrich Drepper d957279cfb Update.
* stdio-common/bug1.c: Include <stdlib.h> to get prototype for free.

	* malloc/malloc.c: Add missing chunk of patch from 1999-07-04.
1999-07-17 23:56:47 +00:00
Ulrich Drepper 57fb9b3868 Update.
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise
	* sysdeps/generic/bits/time.h: Likewise.
	* sysdeps/mach/hurd/bits/time.h: Likewise.
	* sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
	* sysdeps/generic/bits/types.h: Likewise.
	* posix/sys/types.h: Define suseconds_t for X/Open.
1999-07-17 23:20:43 +00:00
Ulrich Drepper e58f1a46f4 Update.
1999-07-17  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/bits/time.h (timeval): Use __suseconds_t
	type for tv_usec element.
	* sysdeps/unix/sysv/linux/bits/types.h: Define __suseconds_t.
	* sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
1999-07-17 23:12:43 +00:00
Ulrich Drepper 9c6f68cdc9 Update.
* stdio-common/bug1.c: Avoid memory leak.
1999-07-15 18:45:14 +00:00
Ulrich Drepper aff6dc6cff Update.
1999-07-15  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/i386/fpu/e_pow.S: Use addl instead of pop/pop to keep
	program deterministic.
	* sysdeps/i386/fpu/e_powf.S: Likewise.
	* sysdeps/i386/fpu/e_powl.S: Likewise.
1999-07-15 18:44:07 +00:00
Ulrich Drepper 3fe4dc4156 Update.
1999-07-15  Jakub Jelinek  <jj@ultra.linux.cz>

	* math/Makefile: Add t_sincosl and k_sincosl support routines.
	* math/math_private.h (__kernel_sincosl): New declaration.
	* sysdeps/generic/t_sincosl.c: New file.
	* sysdeps/generic/k_sincosl.c: New file.
	* sysdeps/ieee754/ldbl-128/k_cosl.c: New file.
	* sysdeps/ieee754/ldbl-128/k_sinl.c: New file.
	* sysdeps/ieee754/ldbl-128/k_sincosl.c: New file.
	* sysdeps/ieee754/ldbl-128/t_sincosl.c: New file.
	* sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: New file.
	* sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Use
	__kernel_sincosl.
	* sysdeps/ieee754/ldbl-128/math_ldbl.h (GET_LDOUBLE_LSW64): New
	definition.
1999-07-15 18:26:25 +00:00
Ulrich Drepper 446d213c35 Update.
1999-07-15  Ulrich Drepper  <drepper@cygnus.com>

	* posix/unistd.h: Use __PMT for exit.
1999-07-15 18:13:33 +00:00
Ulrich Drepper 2946d3e1d4 Update.
1999-07-15  Philip Blundell  <pb@nexus.co.uk>

	* sysdeps/unix/sysv/linux/arm/Versions (_inb, _inw, _inl, _outb,
	_outw, _outl): Added to GLIBC_2.1.2.
1999-07-15 11:52:44 +00:00
Ulrich Drepper c5ccd92f4c Update.
1999-07-15  Ulrich Drepper  <drepper@cygnus.com>

	* posix/fnmatch.h: Use __name instead of __string in prototype to
	allow use outside glibc.
1999-07-15 11:45:51 +00:00
Ulrich Drepper 0050ad5f64 Update.
* time/tst-strptime.c (main): Add one more test case.  Produce
	output even when result is ok.
1999-07-14 21:05:24 +00:00