aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-03 18:36:14 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-03 18:36:14 +0000
commit1739d268365514afbebc6b08d31173f4df7ba8fb (patch)
treedff6477b5e4e7efed42538e55260dfaeda9f99b5 /sysdeps/generic
parentd15a8404ef0c8d928998b7bab64c7b2bb9e2dcf7 (diff)
downloadglibc-1739d268365514afbebc6b08d31173f4df7ba8fb.zip
glibc-1739d268365514afbebc6b08d31173f4df7ba8fb.tar.gz
glibc-1739d268365514afbebc6b08d31173f4df7ba8fb.tar.bz2
Update.
* libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor if ccs parameter isn't valid. Reported by Andreas Schwab. 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support for system call numbers > 255. * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL, INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0, INTERNAL_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL, INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0, INTERNAL_SYSCALL): Likewise. 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv array if it is the initial dtv. 2003-03-03 Ulrich Drepper <drepper@redhat.com> * po/es.po: Update from translation team. * po/fr.po: Likewise. * po/sk.po: Likewise. * po/sv.po: Likewise.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/dl-tls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-tls.c b/sysdeps/generic/dl-tls.c
index 1981d2d..5ec7249 100644
--- a/sysdeps/generic/dl-tls.c
+++ b/sysdeps/generic/dl-tls.c
@@ -415,7 +415,10 @@ _dl_deallocate_tls (void *tcb, bool dealloc_tcb)
dtv_t *dtv = GET_DTV (tcb);
/* The array starts with dtv[-1]. */
- free (dtv - 1);
+#ifdef SHARED
+ if (dtv != GL(dl_initial_dtv))
+#endif
+ free (dtv - 1);
if (dealloc_tcb)
{