Commit Graph

382 Commits

Author SHA1 Message Date
Ulrich Drepper 93a4b7cac4 Update.
2001-03-26  Ben Collins  <bcollins@debian.org>

	* sysdeps/unix/sysv/linux/mips/bits/mman.h: Add MAP_* and MADV_*
	defines to match other architectures.
2001-03-27 03:20:20 +00:00
Ulrich Drepper 844b79a6d7 Update.
2001-03-21  Ulrich Drepper  <drepper@redhat.com>

	* csu/version.c (__gnu_get_libc_release): Add prototype.
	(__gnu_get_libc_version): Likewise.
	* include/gnu/libc-version.h: Remove prototypes for not exported
	functions.
2001-03-21 21:43:52 +00:00
Ulrich Drepper cf4431ed2d Update.
2001-03-20  Andreas Schwab  <schwab@suse.de>

	* include/unistd.h: Adjust prototype of __gethostname.
2001-03-21 18:53:05 +00:00
Ulrich Drepper 481b550f58 Update.
* Makefile: Define -D_RPC_THREAD_SAFE_ for cancel.c.
2001-03-20 21:05:29 +00:00
Ulrich Drepper f1e4a4a403 Update.
* sunrpc/Makefile (routines): Add rpc_thread.
	(CPPFLAGS): Add -D_RPC_THREAD_SAFE.
	* sunrpc/rpc_thread.c: New file.
	* sunrpc/Versions [libc] (GLIBC_2.2.3): Export __rpc_thread_destroy.
	* sunrpc/auth_none.c: Don't use global variables.  Access state in
	thread-local storage.
	* sunrpc/clnt_perr.c: Likewise.
	* sunrpc/clnt_raw.c: Likewise.
	* sunrpc/clnt_simp.c: Likewise.
	* sunrpc/key_call.c: Likewise.
	* sunrpc/rpc_common.c: Likewise.
	* sunrpc/svc.c: Likewise.
	* sunrpc/svc_raw.c: Likewise.
	* sunrpc/svc_simple.c: Likewise.
	* sunrpc/svcauth_des.c: Likewise.
	* hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
	_HURD_THREADVAR_RPC_VARS.
	* sysdeps/generic/bits/libc-tsd.h: Mention _LIBC_TSD_KEY_RPC_VARS.
	* include/rpc/rpc.h: Define data structures for internal thread-local
	"global" variables.
	Based on patches by Eric Norum <eric.norum@usask.ca>.
2001-03-20 18:35:13 +00:00
Ulrich Drepper 373e6a512c Update.
2001-03-20  Ulrich Drepper  <drepper@redhat.com>

	* cancel.c (__pthread_perform_cleanup): Call __rpc_thread_destroy.
2001-03-20 18:26:06 +00:00
Ulrich Drepper 639c324856 Update.
2001-03-18  Ulrich Drepper  <drepper@redhat.com>

	* Makerules (build-shlib): Remove unnecessary slashes introduced in
	last change.

	* configure.in: Test for -Bgroup option of linker.
	* config.make.in: Define have-Bgroup.

	* conform/data/unistd.h-data: Require gethostname.
	* posix/unistd.h: Make gethostname prototype available for
	__USE_XOPEN2K.

	* crypt/Makefile: When generating DSO link with libc_nonshared.a.
	* debug/Makefile: Likewise.
	* dlfcn/Makefile: Likewise.
	* hesiod/Makefile: Likewise.
	* iconvdata/extra-module.mk: Likewise.
	* locale/Makefile: Likewise.
	* login/Makefile: Likewise.
	* math/Makefile: Likewise.
	* nis/Makefile: Likewise.
	* nss/Makefile: Likewise.
	* resolv/Makefile: Likewise.
	* rt/Makefile: Likewise.

	* posix/unistd.h (gethostname): Change type of second parameter
	back to size_t as per upcoming XPG6.
2001-03-18 21:34:58 +00:00
Ulrich Drepper 7c91639ec9 Update.
2001-03-16  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext):
	Internationalize.
2001-03-17 00:49:09 +00:00
Ulrich Drepper a66f0958a1 Update.
2001-03-16  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/ieee754/ldbl-96/s_erfl.c: New file.
	Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.

	* sysdeps/i386/fpu/libm-test-ulps: Adjust for addition of erfl and
	erfcl.
	* sysdeps/ia64/fpu/libm-test-ulps: Likewise.

	* sysdeps/unix/sysv/linux/ia64/swapcontext.c: New file.
2001-03-16 22:26:45 +00:00
Ulrich Drepper aeba9785a6 Update.
2001-03-16  David Mosberger  <davidm@hpl.hp.com>

	* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
	Drop hack that was needed for 2.1.1 kernel headers.

	* sysdeps/unix/sysv/linux/ia64/ucontext_i.h: New file.

	* sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Rewrite to make it
	overlay with kernel's "struct sigcontext".

	* sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_headers): Add
	sys/rse.h for "misc" subdir.
	(sysdep_routines): Add __start_context for "stdlib" subdir.

	* sysdeps/unix/sysv/linux/ia64/sys/rse.h: New file (based on
	kernel file of the same name).

	* stdlib/Makefile (tests): Add tst-setcontext.
	* stdlib/tst-setcontext.c: New file (based on a sample program by
	Uli Drepper).

	* sysdeps/unix/sysv/linux/ia64/setcontext.S: New file.
	* sysdeps/unix/sysv/linux/ia64/getcontext.S: New file.
	* sysdeps/unix/sysv/linux/ia64/__start_context.S: New file.
	* sysdeps/unix/sysv/linux/ia64/makecontext.c: New file.

	* sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): Use extr.u
	instead of shift & and.
2001-03-16 21:07:22 +00:00
Ulrich Drepper 136d43328b Update.
2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* shlib-versions: Add rule for Linux on 64 bit S/390.
	* sysdeps/s390/s390-64/pt-machine.h: New file.
	* sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.

2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/s390/pt-machine.h: Move to...
	* sysdeps/s390/s390-32/pt-machine.h: ...here.
	Add defines for FLOATING_STACK and ARCH_STACK_MAX_SIZE.
2001-03-16 08:53:02 +00:00
Ulrich Drepper 3bf927cbce Update.
2001-03-15  Ulrich Drepper  <drepper@redhat.com>

	* Versions [libpthread] (GLIBC_2.2.3): Add pthread_getattr_np.
	* attr.c: Implement pthread_getattr_np.
	* sysdeps/pthread/pthread.h: Add prototype for pthread_getattr_np.
	* internals.h (struct _pthread_descr_struct): Add p_inheritsched.
	* manager.c (pthread_handle_create): Initialize p_inheritsched.

	* sysdeps/unix/sysv/linux/s390/pt-initfini.c: Use 0x07 padding for
2001-03-15 21:13:12 +00:00
Andreas Jaeger 832c025eb1 * sysdeps/unix/sysv/linux/s390/pt-initfini.c: Use 0x07 padding for
code alignment.
2001-03-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>

        * sysdeps/unix/sysv/linux/s390/pt-initfini.c: Use 0x07 padding for
	code alignment.
2001-03-09 17:29:20 +00:00
Ulrich Drepper 08b3d7ad68 Update.
* sysdeps/ieee754/ldbl-96/e_jnl.c: New file.
	Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.

	* sysdeps/i386/fpu/libm-test-ulps: Update for jnl and ynl introduction.
	* sysdeps/ia64/fpu/libm-test-ulps: Likewise.
2001-02-26 20:19:49 +00:00
Ulrich Drepper 4c48dc9386 Update.
2001-02-18  Mark Kettenis  <kettenis@gnu.org>

	* malloc/mtrace.c [USE_IN_LIBIO]: Define fopen as _IO_fopen64.
	(mtrace): Revert 2001-02-13 patch: use fopen instead of fopen64.

2001-02-17  H.J. Lu  <hjl@gnu.org>

	* sysdeps/unix/sysv/linux/ia64/clone2.S: Use clone2 and don't use
	scratch registers across the system call.
2001-02-19 18:55:39 +00:00
Andreas Jaeger 596b2f0e21 Makefile (extra-objs): New.
2001-02-10  Andreas Jaeger  <aj@suse.de>

	* Makefile (extra-objs): New.
2001-02-10 22:44:39 +00:00
Ulrich Drepper 257bdad021 Update.
2001-02-09  Ulrich Drepper  <drepper@redhat.com>

	* libio/tst_wscanf.c (main): Add cast to avoid warning.
	* libio/tst_swscanf.c (main): Likewise..
2001-02-09 17:57:28 +00:00
Ulrich Drepper 441f7d1eb2 Update.
* posix/regex.c: Fix alignment problem.
	Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.

	Contributed by Rick Gorton <rick.gorton@alpha-processor.com>.
2001-02-09 05:37:25 +00:00
Ulrich Drepper d7fce7e0a0 Update.
2001-02-06  Ulrich Drepper  <drepper@redhat.com>

	* posix/regex.c: Fix a cast in the code for bracket handling which
	caused 8-bit uncleanliness.
	Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.

	* posix/Makefile (tests): Add bug-regex1.
	* posix/bug-regex1.c: New file.
	Contributed by Jim Meyering <jim@meyering.net>.

	* posix/regex.c: Many cleanups for incorrect format strings.
2001-02-07 01:30:53 +00:00
Ulrich Drepper 672fd41bbc Update.
2001-02-06  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/pt-initfini.c: First attempt to fix the
	broken code.  Patch by Jes Sorensen.
2001-02-07 01:28:35 +00:00
Andreas Jaeger eb8ea10ab2 * sysdeps/pthread/pthread.h: Move __pthread_initialize from here
to... 
* internals.h: ...here.
2001-02-06  Andreas Jaeger  <aj@suse.de>

	* sysdeps/pthread/pthread.h: Move __pthread_initialize from here
	to...
	* internals.h: ...here.
2001-02-06 18:25:35 +00:00
Ulrich Drepper 5a35dfca75 Update.
* elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
	string.  Include <inttypes.h> instead of <stdint.h>.
2001-02-06 00:56:59 +00:00
Ulrich Drepper e4c785c8d7 Update.
* posix/regex.c: Implement multibyte character handling.
	Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
2001-02-02 08:47:28 +00:00
Ulrich Drepper b71e7ce864 Update.
* elf/Makefile: Add rules to build and run initfirst test.
	* elf/initfirst.c: New file.
	* elf/firstobj.c: New file.
2001-02-02 06:54:15 +00:00
Andreas Jaeger 7dcc4ea070 Adjust for last change.
2001-01-28  Andreas Jaeger  <aj@suse.de>

	* oldsemaphore.c (__old_sem_init): Adjust for last change.
	* sysdeps/pthread/bits/libc-lock.h: Likewise.
	* spinlock.c: Likewise.
2001-01-28 16:39:07 +00:00
Ulrich Drepper 48ba4bd227 Update.
* conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
2001-01-28 09:46:59 +00:00
Ulrich Drepper 61f9d0a356 Update.
* conform/data/stdlib.h-data: Account for XPG6 changes.
	* stdlib/stdlib.h (__random): Change return value type to long.
	(posix_memalign): Cleanup parameter names.
	(setenv, unsetenv): Make available for __USE_XOPEN2K.
	Change return type of unsetenv to int.
	(qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
	* sysdeps/generic/setenv.c (unsetenv): Change return type to int.
	Return -1 and set errno if parameter is invalid.
	* stdlib/random.c (__random): Change return value type to long.
2001-01-27 07:07:07 +00:00
Ulrich Drepper edf9cc8901 Update.
* conform/data/spawn.h-data: Correct posix_spawnattr_setflags
	prototype.
2001-01-27 06:35:43 +00:00
Ulrich Drepper 3f73836632 Update.
2001-01-13  Jakub Jelinek  <jakub@redhat.com>

	* inet/ether_ntoh.c (lookup_function): Change arguments to match
	_nss_*_getntohost_r prototype.
	(ether_ntohost): Pass errno pointer to NSS function.

2001-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
	(MAP_LOCKED): New definition.
	(MAP_NORESERVE): New definition.
2001-01-13 16:09:41 +00:00
Ulrich Drepper 5ef50d00de Update.
2001-01-11  Jakub Jelinek  <jakub@redhat.com>

	* stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
	* stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
	* stdlib/cxa_on_exit.c: Remove.
	* stdlib/Makefile: Revert last patch.
	* stdlib/Versions: Likewise.
	* include/stdlib.h: Likewise.
	* stdlib/exit.h: Revert last patch.
	(struct exit_function): Add second argument to cxa fn.
	* stdlib/exit.c: Revert last patch.
	(exit): Add hidden second argument.
2001-01-12 07:29:55 +00:00
Ulrich Drepper 7e36861e77 Update.
2001-01-11  H.J. Lu  <hjl@gnu.org>

	* elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
	* elf/dl-open.c (_dl_open): Here.
	* sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
	Make it static.
	(_dl_static_init): Initialize the variables every time when possible.
	* sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
	Undefine it first.
2001-01-11 19:42:21 +00:00
Ulrich Drepper 1950ebc6cb Update.
* stdio-common/printf.c: Undefine printf.
2001-01-08 08:59:36 +00:00
Ulrich Drepper af8240ebcb Update.
2000-12-31  Ulrich Drepper  <drepper@redhat.com>
	* manager.c (pthread_alloca_stack): Remove MAP_FIXED from mmap calls.
	(pthread_free): Always unmap the stack.  It's safe now that we don't
	use MAP_FIXED to allocate stacks.
2001-01-01 04:49:02 +00:00
Ulrich Drepper 1c566118b6 Update.
2000-12-31  H.J. Lu  <hjl@gnu.org>

	* manager.c (pthread_allocate_stack): Fix a typo.
2001-01-01 04:36:28 +00:00
Ulrich Drepper 41b64fc4c1 Update.
2000-12-31  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/powerpc/pspinlock.c: Don't include pt-machine.h here.

	* manager.c (pthread_allocate_stack): Prepare for removal of MAP_FIXED.
2000-12-31 08:26:04 +00:00
Ulrich Drepper 09f5e1635a Update.
2000-12-28  Wolfram Gloger  <wg@malloc.de>

	* malloc/malloc.c (MALLOC_COPY): Handle case if source and
	destination overlap.  Assume dest is always below source if
	overlapping.
2000-12-31 07:39:50 +00:00
Andreas Jaeger 784d802ea2 Update.
* include/setjmp.h: Likewise.
2000-12-27 20:25:30 +00:00
Andreas Jaeger 27ee0a5595 Update.
* include/sys/wait.h: Add some prototypes.
	* Rules (dummy.c): Create also prototype to shut up GCC.

2000-12-27  Andreas Jaeger  <aj@suse.de>
2000-12-27 17:18:07 +00:00
Ulrich Drepper 2111285729 Update.
* attr.c (__pthread_attr_setstack): Fix setting of __stackaddr element.
	(__pthread_attr_getstack): Return correct address.
	Add warnings for using pthread_attr_getstackaddr and
2000-12-27 08:33:07 +00:00
Ulrich Drepper 33c80ad75b Update.
2000-12-27  Ulrich Drepper  <drepper@redhat.com>

	* attr.c (__pthread_attr_setstack): Fix setting of __stackaddr
	element.  Add warnings for using pthread_attr_getstackaddr and
	pthread_attr_setstackaddr.
2000-12-27 08:05:27 +00:00
Ulrich Drepper a6d950b914 Update.
2000-12-26  Ulrich Drepper  <drepper@redhat.com>

	* Examples/ex6.c (test_thread): Make static.
	* Examples/ex12.c (test_thread): Make static and add noreturn
	attribute.
2000-12-27 06:53:38 +00:00
Ulrich Drepper ba908190d7 Update.
2000-12-18  Jes Sorensen  <jes@linuxcare.com>

	* linuxthreads/sysdeps/ia64/pt-machine.h: __compare_and_swap
	and compare_and_swap_with_release_semantics returns int not long.
2000-12-18 22:36:28 +00:00
Andreas Jaeger 8cb019ed77 Update.
2000-12-17  Andreas Jaeger  <aj@suse.de>

	* sysdeps/s390/pt-machine.h (testandset): Use long int as return
	value.
	* sysdeps/arm/pt-machine.h (testandset): Likewise.
	* sysdeps/hppa/pt-machine.h (testandset): Likewise.
	* sysdeps/m68k/pt-machine.h (testandset): Likewise.
	* sysdeps/sh/pt-machine.h (testandset): Likewise.
	* sysdeps/sparc/sparc32/pt-machine.h (testandset): Likewise.
	* sysdeps/sparc/sparc64/pt-machine.h (testandset): Likewise.
2000-12-18 05:55:51 +00:00
Ulrich Drepper 927a8431da Update.
2000-12-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/pt-machine.h (testandset): Adjust for prototype change.
	* sysdeps/i386/i686/pt-machine.h (testandset): Likewise.
2000-12-17 21:48:43 +00:00
Andreas Jaeger b6e2071240 Update.
* sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
	parameter.

	* sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
	unused attribute to shut up gcc warnings.

	* sysdeps/generic/k_sinl.c: Include math_private for prototypes.
	* sysdeps/generic/k_tanl.c: Likewise.
	* sysdeps/generic/k_cosl.c: Likewise.
	* sysdeps/generic/e_j0l.c: Likewise.
	* sysdeps/generic/e_j1l.c: Likewise.
	* sysdeps/generic/e_jnl.c: Likewise.
	* sysdeps/generic/e_lgammal_r.c: Likewise.
2000-12-17 18:12:07 +00:00
Ulrich Drepper e3690263f5 Update.
2000-12-06  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
	(sysdep_routines): Add uitrunc.
	* sysdeps/unix/sysv/aix/uitrunc.c: New file.
	Patches by Michael Keezer <mkeezer@redhat.com>.
2000-12-07 00:33:59 +00:00
Andreas Jaeger f172bca008 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>. 2000-12-05 21:28:04 +00:00
Andreas Jaeger 2e3b99764a Update.
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
	set mips2.
2000-12-05 18:00:04 +00:00
Ulrich Drepper 595538976b Update.
2000-11-20  Jakub Jelinek  <jakub@redhat.com>

	* iconvdata/bug-iconv2.c (main): Use %zd in format string.
	* io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
	* malloc/tst-valloc.c (main): Cast valloc return value to long.
	* malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
	* math/test-fpucw.c (main): Use %lx in format string, cast
	control words to long.
	* stdio-common/tst-fmemopen.c (main): Use %td in format strings.
	* stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
	large that it is unsigned warning.

	* sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
	it to long on sparc64.

2000-11-20  Andreas Jaeger  <aj@suse.de>

	* nscd/nscd.h (termination_handler): Add noreturn attribute.
	(receiv_print_stats): Likewise.

	* elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
2000-11-20 17:40:29 +00:00
Ulrich Drepper d3d99893ee Update.
* catgets/gencat.c (main): Don't use exit() to avoid warnings with
	broken compilers.

	* include/features.h (__STDC_ISO_10646__): Correct value to be
	200009L.  Patch by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.

2000-11-08  H.J. Lu  <hjl@gnu.org>

	* pwd/Versions (GLIBC_2.1.2): Add getpwnam_r.

2000-11-08  Jakub Jelinek  <jakub@redhat.com>

	* string/bits/string2.h: Check if _USE_STRING_ARCH_ macros are
	defined, not _HAVE_STRING_ARCH_.
	* sysdeps/i386/bits/string.h (_USE_STRING_ARCH_memset,
	_USE_STRING_ARCH_strchr): Define.
	* sysdeps/i386/i486/bits/string.h (_USE_STRING_ARCH_memset,
	_USE_STRING_ARCH_strchr): Define.
	* sysdeps/sparc/bits/string.h: New file.

2000-11-08  Bruno Haible  <haible@clisp.cons.org>

	* locale/C-translit.h.in: Tweak <U2014> result.
	* locale/C-translit.h: Regenerated.

2000-11-08  Ulrich Drepper  <drepper@redhat.com>

	* posix/unistd.h: Add attribute((const)) to sysconf prototype.
2000-11-08 21:20:06 +00:00