Commit Graph

11260 Commits

Author SHA1 Message Date
Roland McGrath cfba19423d 2003-07-21 Art Haas <ahaas@airmail.net>
* manual/charset.texi (Converting a Character): Fix example code so a
	valid pointer is returned.
2003-07-22 20:05:55 +00:00
Andreas Jaeger 7220da7c36 (process_file): Check that file is a shared object. 2003-07-22 20:00:48 +00:00
Andreas Jaeger 8c1bfa30e0 Update.
* elf/readlib.c (process_file): Check that file is a shared
	object.
2003-07-22 20:00:41 +00:00
Andreas Jaeger 422514503d Update.
* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
	will not optimize it away.
	(__DTOR_END__): Likewise.
	(__CTOR_END__): Likewise.
2003-07-22 19:37:41 +00:00
Andreas Jaeger 9fb978c8ae Update.
2003-07-22  Andreas Jaeger  <aj@suse.de>

	* include/libc-symbols.h (_elf_set_element): Use attribute used so
	that gcc will not optimize it away.
	(link_warning): Likewise.
2003-07-22 19:25:40 +00:00
Ulrich Drepper 4009c3d905 Update.
2003-07-22  Ulrich Drepper  <drepper@redhat.com>

	* wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
	* wcsmbs/Makefile (tests): Add tst-wcpncpy.
	* wcsmbs/tst-wcpncpy.c: New file.
2003-07-22 19:24:49 +00:00
Andreas Jaeger 6c5775c363 (_elf_set_element): Use attribute used so that gcc will not optimize it away. (link_warning): Likewise. 2003-07-22 19:24:48 +00:00
Ulrich Drepper bc55a0b897 (tests): Add tst-wcpncpy. 2003-07-22 19:23:54 +00:00
Ulrich Drepper 7e939b2198 Update.
* sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
2003-07-22 03:43:27 +00:00
Ulrich Drepper 2775fdb512 Update.
* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
	stmxcsr and ldmxcsr.
2003-07-22 03:19:23 +00:00
Ulrich Drepper b72e048f19 Update.
* sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
	* sysdeps/i386/fpu/feenablxcpt.c: Likewise.
	* sysdeps/i386/fpu/feholdexcpt.c: Likewise.
	* sysdeps/i386/fpu/fesetround.c: Likewise.
	* sysdeps/i386/fpu/ftestexcept.c: Likewise.
2003-07-22 00:14:36 +00:00
Ulrich Drepper 1a379ea0c7 Update.
2003-07-21  Ulrich Drepper  <drepper@redhat.com>

	* Makerules (build-module-helper): Add -z defs unless explicitly said
	not to do it.
	* dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
	which has undefined symbols.
	* elf/Makefile: Likewise.
2003-07-21 22:40:24 +00:00
Ulrich Drepper ca86a76366 Update.
2003-07-21  HJ Lu  <hongjiu.lu@intel.com>

	* elf/ldconfig.c (search_dir): Treat symlink as regular file
	if it won't point to itself.
2003-07-21 20:17:47 +00:00
Ulrich Drepper 66c79db954 Update.
2003-07-20  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
2003-07-20 22:17:34 +00:00
Ulrich Drepper 3f56243af4 Update.
* sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
2003-07-20 19:28:08 +00:00
Ulrich Drepper 2a04c802bb lseek and llseek are no cancellation points. 2003-07-20 19:22:15 +00:00
Andreas Jaeger 183f2df186 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
STANDARD_TO_LOOP_ERR_HANDLER. 
* iconvdata/euc-jp-ms.c (BODY): Likewise.
2003-07-20  Andreas Jaeger  <aj@suse.de>

	* iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
	STANDARD_TO_LOOP_ERR_HANDLER.
	* iconvdata/euc-jp-ms.c (BODY): Likewise.
2003-07-20 12:11:01 +00:00
Ulrich Drepper 80f536dbf2 Update.
2003-07-20  Ulrich Drepper  <drepper@redhat.com>

	* Makefile (libpthread-routines): Add pthread_attr_getaffinity and
	pthread_attr_setaffinity.
	* Versions [libpthread] (GLIBC_2.3.3): Likewise.
	* sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
	* sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
	* pthread_attr_destroy.c: Free cpuset element if allocated.
	* pthread_create.c: Pass iattr as additional parameter to
	create_thread.
	* sysdeps/pthread/createthread.c: If attribute is provided and
	a new thread is created with affinity set or scheduling parameters,
	start thread with CLONE_STOPPED.
	* sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
	pthread_attr_setaffinity.
	* sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
	cpuset element.
2003-07-20 08:56:05 +00:00
Ulrich Drepper 4e0dc4af0b Update.
2003-07-19  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
2003-07-19 08:42:04 +00:00
Ulrich Drepper 0f435953a6 Remove affinity syscalls. 2003-07-19 08:40:07 +00:00
Andreas Jaeger 989d866bc5 Update.
2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
	    Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
	256K, remove unneeded declaration of __getpagesize.
2003-07-16 07:39:17 +00:00
Andreas Jaeger c2fabc3ac0 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
Andreas Jaeger  <aj@suse.de>
	* sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
	256K, remove unneeded declaration of __getpagesize.
2003-07-16 07:39:07 +00:00
Ulrich Drepper a6fe2ab3cf Update.
2003-07-16  Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
2003-07-16 00:10:33 +00:00
Ulrich Drepper dade1ade05 Update.
2003-07-15  Ulrich Drepper  <drepper@redhat.com>

	* io/test-utime.c (main): Make test yet more robust.
2003-07-15 08:59:35 +00:00
Ulrich Drepper 7329994338 Update.
More cancellation handling fixups.
	* sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
	* sysdeps/generic/not-cancel.h: Likewise.
	* catgets/open_catalog.c: Use not-cancelable syscalls.
	* time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
	* sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
	* sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
	* dlfcn/dlfcn.h: Mark dlopen with __THROW again.
	* io/fcntl.h: Don't mark posix_fallocate with __THROW.
	* libio/fileops.c: Use not-cancelable syscalls for fclose.
	* libio/iopopen.c: Use no-cancelable syscalls.
	* libio/stdio.h: Mark popen and pclose with __THROW again.
	* misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
	* misc/syslog.c: Fix locking and cancellation cleanup handling.
	* posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
	* stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
	CFLAGS-tempname.c): Add -fexceptions.
	* stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
	* string/string.h: Mark strerror and strerror_r with _THROW again.
	* sysdeps/generic/unwind.inc: New file.  Copied from gcc.
	* sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
	#ifs since we now need all the code compiled.
	* sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
	* sysdeps/unix/closedir.c: Use not-cancelable syscalls.
	* sysdeps/unix/opendir.c: Likewise.
2003-07-15 07:52:52 +00:00
Ulrich Drepper da35d15e2b Update.
2003-07-14  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/pthread/configure.in: Require CFI directives also for
	ppc and s390.
2003-07-15 04:34:40 +00:00
Ulrich Drepper 9df2c61c5c Update.
2003-07-14  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
	Add rule for EUC-JP-MS dependency.
	* iconvdata/cp932.c: New file.
	* iconvdata/eucjp-ms.c: New file.
	* iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
	Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.

2003-07-15  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
	cfi directives.
2003-07-15 03:32:03 +00:00
Ulrich Drepper 75540d8ad4 Update.
2003-07-14  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Fix typo
	in test for compilation in libc.
2003-07-14 23:05:23 +00:00
Ulrich Drepper 255476a9e5 Update.
2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_FIXED_CLONE_SYSCALL): New macro.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.

	* sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
2003-07-14 21:38:42 +00:00
Ulrich Drepper b1b060c341 Update.
2003-07-14  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_TGKILL for Alpha appropriately.
2003-07-14 21:16:43 +00:00
Ulrich Drepper 9291eb491f Update.
* sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
	Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
	Likewise.
2003-07-12 19:34:23 +00:00
Ulrich Drepper 04963cc67e Update.
* sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
2003-07-12 19:03:17 +00:00
Ulrich Drepper f4e0175f01 Update.
* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_UTIMES for x86 and kernels > 2.5.75.

	* sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
	second parameter == NULL.
	* sysdeps/unix/sysv/linux/utimes.c: New file.

2003-07-12  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
	a typo.

2003-07-12  Ulrich Drepper  <drepper@redhat.com>
2003-07-12 18:48:39 +00:00
Ulrich Drepper 327e163789 Update.
* time/sys/time.h: Namespace cleanup.
2003-07-12 09:03:03 +00:00
Ulrich Drepper 82bae9f921 Update.
2003-07-12  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_UTIMES for the architectures which always had the syscall.
	* sysdeps/unix/sysv/linux/futimes.c: New file.
2003-07-12 08:23:50 +00:00
Ulrich Drepper 4a17085f15 Update.
2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
	register across CENABLE and CDISABLE.
2003-07-12 01:29:23 +00:00
Ulrich Drepper 6080ecdf3c Update.
* sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
	* sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
	* sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
	* sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
	int before assigning to max to avoid warnings.

2003-07-11  Jakub Jelinek  <jakub@redhat.com>
2003-07-11 22:50:16 +00:00
Ulrich Drepper f05bf186c1 Update.
2003-07-11  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
	cfi directives.
	* sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
2003-07-11 22:46:53 +00:00
Ulrich Drepper 7fbf17e457 Update.
2003-07-10  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
	.data.rel.ro.local to "aw".
2003-07-10 17:07:16 +00:00
Ulrich Drepper f135896acd Update.
* sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
2003-07-10 09:22:54 +00:00
Ulrich Drepper 231e88a408 Update.
2003-07-10  Ulrich Drepper  <drepper@redhat.com>

	* Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
	(PIC-ccflag): Define.
2003-07-10 09:10:43 +00:00
Ulrich Drepper da0c02eee1 Update.
2003-07-08  Jakub Jelinek  <jakub@redhat.com>

	* pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
	__pthread_unregister_cancel): Add prototypes and hidden_proto.
	* unwind.c (__pthread_unwind_next): Add hidden_def.
	* cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
	Likewise.
	* sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
	Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
	* sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
	Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
	Likewise.
	* sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
	HIDDEN_JUMPTARGET to call __pthread_register_cancel,
	__pthread_unregister_cancel and __pthread_unwind_next.
2003-07-08 21:08:13 +00:00
Ulrich Drepper 57a5ea0215 Update.
2003-07-04  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/s390/s390-32/elf/start.S: Emit position independent code
	if PIC.
	* sysdeps/s390/s390-64/elf/start.S: Likewise.

2003-07-07  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
	into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
2003-07-08 03:49:44 +00:00
Ulrich Drepper d810b3584c Update.
2003-07-07  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/kernel-features.h: Version
	__ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.

	* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
	compilation with HAVE_AUX_SECURE defined.
2003-07-08 03:42:49 +00:00
Ulrich Drepper db54f488ee Update.
2003-07-07  Ulrich Drepper  <drepper@redhat.com>

	* descr.h (struct pthread): Add pid field.
	* allocatestack.c (allocate_stack): Initialize pid field in descriptor.
	(__reclaim_stacks): Likewise.
	* init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
	also check for PID of the signal source.
	(__pthread_initialize_minimal_internal): Also initialize pid field
	of initial thread's descriptor.
	* pthread_cancel.c: Use tgkill instead of tkill if possible.
	* sysdeps/unix/sysv/linux/fork.c: Likewise.
	* sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
	* sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
	* sysdeps/unix/sysv/linux/raise.c: Likewise.
2003-07-08 03:40:49 +00:00
Ulrich Drepper 5fee5ad11c (_dl_sysdep_start): Adjust for compilation with HAVE_AUX_SECURE defined. 2003-07-08 02:23:37 +00:00
Richard Henderson 6fe93e82bb * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end. * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
2003-07-05  Richard Henderson  <rth@redhat.com>

	* sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
2003-07-05 22:56:39 +00:00
Ulrich Drepper 5e497a4142 Update.
2003-07-05  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
	Fix use of parameter.
	(__libc_cleanup_pop): Likewise.
2003-07-05 07:26:41 +00:00
Ulrich Drepper 86a0c4fafb Update.
2003-07-04  Ulrich Drepper  <drepper@redhat.com>

	* init.c (sigcancel_handler): Change parameters to match handler
	for SA_SIGACTION.  Check signal number and code to recognize
	invalid invocations.
2003-07-05 06:25:25 +00:00
Ulrich Drepper a1ed6b4cab (sigcancel_handler): Change parameters to match handler for SA_SIGACTION. Check signal number and code to recognize invalid invocations. 2003-07-05 06:18:19 +00:00