Commit Graph

7980 Commits

Author SHA1 Message Date
Ulrich Drepper abd336891b Update.
2002-01-06  Richard Henderson  <rth@redhat.com>

	* sysdeps/alpha/elf/pt-initfini.c: New file.

2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
2002-01-07 23:08:16 +00:00
Ulrich Drepper 380cce6faa Special init/fini sections for Alpha when using linuxthreads. 2002-01-07 23:00:52 +00:00
Andreas Jaeger c195dcdd75 Update.
2002-01-07  Stephen L Moshier <moshier@mediaone.net>

	* sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.

	* sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
	for x < 0.25 and restore original range reduction method.
	(__ieee754_lgammal_r): Make sure signgam is set before returning.
2002-01-07 13:28:49 +00:00
Andreas Jaeger af0c938d7b (erfcl): Fix K&R header. 2002-01-07 13:28:04 +00:00
Ulrich Drepper 0469311e87 Update.
2002-01-07  Ulrich Drepper  <drepper@redhat.com>

	* libio/fileops.c (_IO_file_underflow_mmap): New function.
	(_IO_file_close_mmap): New function.
	(_IO_file_jumps_mmap): New variable.
	* libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
	trying to convert rest of byte buffer.
	(_IO_wfile_underflow_mmap): New function.
	(_IO_wfile_jumps_mmap): New variable.
	* libio/iofopen.c (__fopen_maybe_mmap): New function.
	(__fopen_internal): New function.  Split out from _IO_new_fopen.
	(_IO_new_fopen): Call __fopen_internal.
	* libio/iofopen64.c: Just call __fopen_internal.
	* libio/iofdopen.c: Call __fopen_maybe_mmap before returning
	successfully.
	* libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
	* libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
	_IO_file_close_mmap.

	* sysdeps/gnu/_G_config.h: Define _G_MMAP64.
	* sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.

	* stdio-common/Makefile (tests): Add tst-rndseek.
	* stdio-common/tst-rndseek.c: New file.
2002-01-07 09:33:53 +00:00
Ulrich Drepper 463918b5f2 Test for fseek on input stream. 2002-01-07 09:16:46 +00:00
Roland McGrath 93da2f2afe * config.h.in (HAVE_MIG_RETCODE): New #undef.
* sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
	swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
	* sysdeps/mach/hurd/configure: Regenerated.
2002-01-05 21:53:13 +00:00
Roland McGrath dde2f4a0b8 2002-01-05 Roland McGrath <roland@frob.com>
* config.h.in (HAVE_MIG_RETCODE): New #undef.
	* sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
	swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
	* sysdeps/mach/hurd/configure: Regenerated.
2002-01-05 21:53:04 +00:00
Ulrich Drepper 2912efb570 cygnus.com -> redhat.com 2002-01-05 06:15:54 +00:00
Ulrich Drepper 34263e4d27 Update.
2002-01-03  Ulrich Drepper  <drepper@redhat.com>

	* elf/elf.h: Add more TLS definitions.
2002-01-03 20:54:56 +00:00
Ulrich Drepper 184cbb9a53 Update.
2002-01-02  Ulrich Drepper  <drepper@redhat.com>

	* include/features.h (__GLIBC_MINOR__): Bump to 3.
2002-01-03 00:45:20 +00:00
Ulrich Drepper 269b4861b7 (__GLIBC_MINOR__): Bump to 3. 2002-01-03 00:43:43 +00:00
Roland McGrath 044edf6d01 (_hurd_internal_post_signal): typo 2002-01-02 10:54:54 +00:00
Roland McGrath 05dea6d10c * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
__sigisemptyset.  Don't use MASK uninitialized.

	* sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
	* hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
	* hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
	__sigdelset, __sigaddset, __sigorset.
2002-01-02 10:52:56 +00:00
Roland McGrath 2fee5d8b20 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
_hurd_ports is null.
2002-01-02 10:27:25 +00:00
Roland McGrath 6ede11aa0d * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
* sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
2002-01-02 10:24:13 +00:00
Roland McGrath 7595ddb8f9 * hurd/hurdinit.c (_hurd_ports_use): Return error _hurd_ports is null.
* hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
	for old CMU and new OSF Mach interface flavors.
	* hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
	* sysdeps/mach/hurd/fork.c (__fork): Likewise.

	* hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.

	* sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
	Pass extra arguments to task_create for OSF variant.
	* sysdeps/mach/hurd/fork.c (__fork): Likewise.
2002-01-02 10:23:33 +00:00
Roland McGrath f58f41f1f4 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
conditional on [HAVE_AUX_VECTOR].

	* mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
	mach_msg_timeout_t as type of final argument.

	* hurd/privports.c (__get_privileged_ports):
	Change host_priv_t to mach_port_t in argument type.
	* hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
	Update decls.

	* sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
	multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
	* sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
	* sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
	* sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
	* sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2002-01-02 09:52:33 +00:00
Roland McGrath d244fd7318 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching. 2002-01-02 06:40:31 +00:00
Roland McGrath d2fcc3ae35 2002-01-01 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
2002-01-02 06:38:52 +00:00
Ulrich Drepper 3327b955a8 Update.
2002-01-01  Ulrich Drepper  <drepper@redhat.com>

	* include/stdlib.h: Define inlines for the _l variants of the strto*
	functions.
2002-01-02 06:29:28 +00:00
Ulrich Drepper bf1fd59437 Define inlines for the _l variants of the strto* functions. 2002-01-02 06:25:51 +00:00
Roland McGrath dcb00da6fa * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
* mach/Machrules (MIG): Set CPP as well as CC.
2002-01-02 06:22:14 +00:00
Roland McGrath cf76f180ce 2002-01-01 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
2002-01-02 06:21:52 +00:00
Ulrich Drepper dc2fcb0aa3 Update.
locale to parse /proc/loadavg [PR libc/2760].
2001-12-31 18:30:10 +00:00
Ulrich Drepper 84fb7c8c26 Update.
2001-12-31  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
	locale to parse /proc/loadavg.

2001-12-31  Jakub Jelinek  <jakub@redhat.com>

	* elf/dl-conflict.c: Include sys/param.h.
	(RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
	* sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
	warning.
	(TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
	literals to avoid warnings.

	* configure.in: Don't check for gsed since we do not use it anywhere.
2001-12-31 17:46:59 +00:00
Ulrich Drepper f8580b753a Include sys/param.h. (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr). 2001-12-31 17:33:22 +00:00
Andreas Jaeger c7e23b4b05 Update.
2001-12-31  Andreas Jaeger  <aj@suse.de>

	* configure.in: Don't check for gsed since we do not use it
	anywhere.
2001-12-31 06:57:18 +00:00
Andreas Jaeger d6a97a2812 * configure.in: Don't check for gsed since we do not use it
anywhere.
2001-12-31 06:57:04 +00:00
Ulrich Drepper 2903810a7a Update.
* io/fts.c: Update from BSD to fix memory leaks.

2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
2001-12-29 21:07:46 +00:00
Ulrich Drepper c2f5916e8c Update.
2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>

	* crypt/md5-crypt.c: Realloc error handling memory leak fix.
	* elf/chroot_canon.c: Likewise.
	* elf/dl-object.c: Likewise.
	* iconv/iconv_charmap.c: Likewise.
	* iconv/iconv_prog.c: Likewise.
	* libio/iogetdelim.c: Likewise.
	* locale/lc-time.c: Likewise.
	* stdlib/canonicalize.c: Likewise.
	* sunrpc/svc.c: Likewise.
	* sysdeps/generic/glob.c: Likewise.
2001-12-29 15:58:00 +00:00
Ulrich Drepper d1dddedf78 Realloc error handling memory leak fix. 2001-12-29 15:57:15 +00:00
Andreas Jaeger 9403ec5d23 Update.
2001-12-29  Andreas Jaeger  <aj@suse.de>

	* Examples/ex9.c: Add noreturn attribute for thread.
	* Examples/ex10.c: Likewise.
	* Examples/ex13.c (thread_start): Likewise.
	* Examples/ex15.c (worker): Likewise.

	* Examples/ex18.c: Include unistd.h for prototype of sleep.
2001-12-29 13:46:34 +00:00
Andreas Jaeger 1a0ad47f26 Include unistd.h for prototype of sleep. 2001-12-29 13:45:59 +00:00
Ulrich Drepper 961d4a2eb2 Update.
2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
	* sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
	remove high order bit from the program counter.
	* sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.

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

	* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
	unnecessary code and add missing reloc types.
	* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
	case for reloc type R_390_NONE.
2001-12-29 01:02:17 +00:00
Ulrich Drepper c612d9943c (elf_machine_rela): Remove unnecessary code and add missing reloc types. 2001-12-29 00:33:04 +00:00
Andreas Jaeger 98519d6201 Update.
2001-12-28  Andreas Jaeger  <aj@suse.de>

	* io/bug-ftw3.c: Include string.h for prototypes.

	* crypt/md5test.c (main): Remove unused variable.

	* linuxthreads_db/td_init.c (td_init): Don't use __FUNCTION__ as
	literal.
	* linuxthreads_db/td_log.c (td_log): Likewise.
	* linuxthreads_db/td_ta_delete.c (td_ta_delete): Likewise.
	* linuxthreads_db/td_ta_get_nthreads.c (td_ta_get_nthreads): Likewise.
	* linuxthreads_db/td_ta_get_ph.c (td_ta_get_ph): Likewise.
	* linuxthreads_db/td_ta_map_id2thr.c (td_ta_map_id2thr): Likewise.
	* linuxthreads_db/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Likewise.
	* linuxthreads_db/td_ta_new.c (td_ta_new): Likewise.
	* linuxthreads_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
	* linuxthreads_db/td_ta_enable_stats.c (td_ta_enable_stats): Likewise.
	* linuxthreads_db/td_ta_event_addr.c (td_ta_event_addr): Likewise.
	* linuxthreads_db/td_ta_event_getmsg.c (td_ta_event_getmsg): Likewise.
	* linuxthreads_db/td_ta_get_stats.c (td_ta_get_stats): Likewise.
	* linuxthreads_db/td_ta_reset_stats.c (td_ta_reset_stats): Likewise.
	* linuxthreads_db/td_ta_set_event.c (td_ta_set_event): Likewise.
	* linuxthreads_db/td_ta_setconcurrency.c (td_ta_setconcurrency):
	Likewise.
	* linuxthreads_db/td_ta_thr_iter.c (td_ta_thr_iter): Likewise.
	* linuxthreads_db/td_ta_tsd_iter.c (td_ta_tsd_iter): Likewise.
	* linuxthreads_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
	* linuxthreads_db/td_thr_dbresume.c (td_thr_dbresume): Likewise.
	* linuxthreads_db/td_thr_dbsuspend.c (td_thr_dbsuspend): Likewise.
	* linuxthreads_db/td_thr_event_enable.c (td_thr_event_enable):
	Likewise.
	* linuxthreads_db/td_thr_event_getmsg.c (td_thr_event_getmsg):
	Likewise.
	* linuxthreads_db/td_thr_get_info.c (td_thr_get_info): Likewise.
	* linuxthreads_db/td_thr_getfpregs.c (td_thr_getfpregs): Likewise.
	* linuxthreads_db/td_thr_getgregs.c (td_thr_getgregs): Likewise.
	* linuxthreads_db/td_thr_getxregs.c (td_thr_getxregs): Likewise.
	* linuxthreads_db/td_thr_getxregsize.c (td_thr_getxregsize): Likewise.
	* linuxthreads_db/td_thr_set_event.c (td_thr_set_event): Likewise.
	* linuxthreads_db/td_thr_setfpregs.c (td_thr_setfpregs): Likewise.
	* linuxthreads_db/td_thr_setgregs.c (td_thr_setgregs): Likewise.
	* linuxthreads_db/td_thr_setprio.c (td_thr_setprio): Likewise.
	* linuxthreads_db/td_thr_setsigpending.c (td_thr_setsigpending):
	Likewise.
	* linuxthreads_db/td_thr_setxregs.c (td_thr_setxregs): Likewise.
	* linuxthreads_db/td_thr_sigsetmask.c (td_thr_sigsetmask): Likewise.
	* linuxthreads_db/td_thr_tsd.c (td_thr_tsd): Likewise.
	* linuxthreads_db/td_thr_validate.c (td_thr_validate): Likewise.

	* dlfcn/modstatic.c: Add prototype to avoid warning.
2001-12-28 16:43:13 +00:00
Andreas Jaeger 5e67a81b69 Don't use __FUNCTION__ as literal. 2001-12-28 16:41:29 +00:00
Roland McGrath 362f8329cc * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
check only (SS->pending & MASK) for the signal to return.
	From Jeroen Dekkers <jeroen@dekkers.cx>.

	* iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
	Use preprocessor #if conditionals instead of `if' to avoid
	warnings about divide by zero in dead code.
2001-12-26 20:10:32 +00:00
Roland McGrath a5eb7027b9 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
_hurd_port_init, and __hurd_self_sigstate.
2001-12-22 20:52:21 +00:00
Roland McGrath 4313404080 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
* hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set
	and __hurd_self_sigstate.
2001-12-22 20:28:21 +00:00
Roland McGrath bb2660079c 2001-12-22 Roland McGrath <roland@frob.com>
* mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
	* hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set
	and __hurd_self_sigstate.
2001-12-22 20:20:57 +00:00
Andreas Jaeger 53c9459f7b Update.
2001-12-21  Andreas Jaeger  <aj@suse.de>

	* elf/dblloadmod1.c: Add prototype to avoid warning.
	* elf/dblloadmod2.c: Likewise.
	* elf/dblloadmod3.c: Likewise.
	* elf/reldepmod5.c: Likewise.
	* elf/reldepmod6.c: Likewise.

	* elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
	for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
	used on all architectures.

	* sunrpc/svc_tcp.c: Add noreturn attribute for
	svctcp_rendezvous_abort.
	* sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.

	* sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
	to avoid warning.
2001-12-21 10:16:41 +00:00
Andreas Jaeger a49d0179db * elf/dblloadmod1.c: Add prototype to avoid warning.
* elf/dblloadmod2.c: Likewise. 
* elf/dblloadmod3.c: Likewise. 
* elf/reldepmod5.c: Likewise. 
* elf/reldepmod6.c: Likewise.
	* elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
	for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
	used on all architectures.

	* sunrpc/svc_tcp.c: Add noreturn attribute for
	svctcp_rendezvous_abort.
	* sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.

	* sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
	to avoid warning.
2001-12-21 10:16:16 +00:00
Ulrich Drepper 37de3d557b Update.
2001-12-19  Jakub Jelinek  <jakub@redhat.com>

	* manual/llio.texi (aio_fsync): Fix a typo.
	Patch by Tammy Fox <tfox@redhat.com>.
2001-12-19 23:47:50 +00:00
Ulrich Drepper 9cddf9deda Update.
2001-12-18  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
	stack bias from child stack pointer before passing it to clone syscall.

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

	* sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
	_SC_TZNAME_MAX.
	* sysdeps/generic/sysconf.c (__sysconf): Likewise.
	Reported by Thorsten Kukuk <kukuk@suse.de>.

	* sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
	add some casts.

	* sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.

2001-12-18  Thorsten Kukuk  <kukuk@suse.de>

	* sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
	conforming: return EBADF if file descriptor is invalid and EINVAL
	if file descriptor is no valid tty.
	* login/tst-grantpt.c: New file.
	* login/Makefile (tests): Add tst-grantpt.
2001-12-19 00:21:23 +00:00
Ulrich Drepper 46089c83d1 Update.
2001-12-17  Ulrich Drepper  <drepper@redhat.com>

	* io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
	different than implemented in last patch.
	* io/bug-ftw3.c: Adjust test for changed handling of
	inaccessibility of toplevel dir.
2001-12-17 23:10:14 +00:00
Ulrich Drepper 0e24e73d6d (ftw_dir): Handle inaccessibility of toplevel dir different than implemented in last patch. 2001-12-17 23:07:40 +00:00
Roland McGrath 79dbd98195 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
* grp/initgroups.c (internal_getgrouplist): Likewise.
2001-12-17 05:52:18 +00:00
Roland McGrath ca18306b75 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
`default:' to silence new GCC warning.
	Rewrite cast of lvalue to silence new GCC warning.

	* sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
2001-12-17 01:03:08 +00:00