From 99326cd47fc57a33dfdf6b8b12357a9d9c192549 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Dec 2002 23:27:15 +0000 Subject: Update. 2002-12-18 Jakub Jelinek * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and __libc_writev to... [libc: GLIBC_PRIVATE]: ...here. * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and __libc_msgsnd to... [libc: GLIBC_PRIVATE]: ...here. --- linuxthreads/libc-cancellation.c | 7 +++++++ linuxthreads/sysdeps/i386/useldt.h | 3 +++ 2 files changed, 10 insertions(+) (limited to 'linuxthreads') diff --git a/linuxthreads/libc-cancellation.c b/linuxthreads/libc-cancellation.c index 4d38d4222d..01972a2557 100644 --- a/linuxthreads/libc-cancellation.c +++ b/linuxthreads/libc-cancellation.c @@ -34,6 +34,13 @@ weak_extern (__pthread_thread_self) int __libc_multiple_threads attribute_hidden; +# ifndef FLOATING_STACKS +# undef THREAD_GETMEM +# undef THREAD_SETMEM +# define THREAD_GETMEM(descr, member) descr->member +# define THREAD_SETMEM(descr, member, value) descr->member = (value) +# endif + /* The next two functions are similar to pthread_setcanceltype() but more specialized for the use in the cancelable functions like write(). They do not need to check parameters etc. */ diff --git a/linuxthreads/sysdeps/i386/useldt.h b/linuxthreads/sysdeps/i386/useldt.h index 91eb6e0e2e..0b28a32978 100644 --- a/linuxthreads/sysdeps/i386/useldt.h +++ b/linuxthreads/sysdeps/i386/useldt.h @@ -300,8 +300,11 @@ extern int __have_no_set_thread_area; }) #endif +#if __ASSUME_LDT_WORKS > 0 /* We want the OS to assign stack addresses. */ #define FLOATING_STACKS 1 /* Maximum size of the stack if the rlimit is unlimited. */ #define ARCH_STACK_MAX_SIZE 8*1024*1024 +#endif + -- cgit v1.2.3-70-g09d2