From c1780b0f5e60bea91db526582dfc9dd3df9880d9 Mon Sep 17 00:00:00 2001 From: acoul Date: Thu, 18 Nov 2010 15:01:30 +0000 Subject: toolchain/uClibc: fix upstream patch name on r24029 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24030 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../000-initialize_stdio_locking.patch | 33 ---------------------- .../000-upstream_initialize_stdio_locking.patch | 33 ++++++++++++++++++++++ 2 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 toolchain/uClibc/patches-0.9.31/000-initialize_stdio_locking.patch create mode 100644 toolchain/uClibc/patches-0.9.31/000-upstream_initialize_stdio_locking.patch (limited to 'toolchain/uClibc/patches-0.9.31') diff --git a/toolchain/uClibc/patches-0.9.31/000-initialize_stdio_locking.patch b/toolchain/uClibc/patches-0.9.31/000-initialize_stdio_locking.patch deleted file mode 100644 index 6a32e5d7c0..0000000000 --- a/toolchain/uClibc/patches-0.9.31/000-initialize_stdio_locking.patch +++ /dev/null @@ -1,33 +0,0 @@ -From d4ede2b0a4727c1f5236dd9308f09cbf7a39761a Mon Sep 17 00:00:00 2001 -From: Timo Teräs -Date: Tue, 13 Apr 2010 06:38:59 +0000 -Subject: linuxthreads.new: initialize stdio locking - -uClibc requires the threading library to enable locking for -stdio, or the locking is not done at all. - -Signed-off-by: Timo Teräs -Signed-off-by: Austin Foxley ---- -diff --git a/libpthread/linuxthreads/pthread.c b/libpthread/linuxthreads/pthread.c -index 6ae9a10..614cad1 100644 ---- a/libpthread/linuxthreads/pthread.c -+++ b/libpthread/linuxthreads/pthread.c -@@ -613,6 +613,17 @@ static void pthread_initialize(void) - #ifdef USE_TLS - GL(dl_init_static_tls) = &__pthread_init_static_tls; - #endif -+ -+ /* uClibc-specific stdio initialization for threads. */ -+ { -+ FILE *fp; -+ _stdio_user_locking = 0; /* 2 if threading not initialized */ -+ for (fp = _stdio_openlist; fp != NULL; fp = fp->__nextopen) { -+ if (fp->__user_locking != 1) { -+ fp->__user_locking = 0; -+ } -+ } -+ } - } - - void __pthread_initialize(void) diff --git a/toolchain/uClibc/patches-0.9.31/000-upstream_initialize_stdio_locking.patch b/toolchain/uClibc/patches-0.9.31/000-upstream_initialize_stdio_locking.patch new file mode 100644 index 0000000000..6a32e5d7c0 --- /dev/null +++ b/toolchain/uClibc/patches-0.9.31/000-upstream_initialize_stdio_locking.patch @@ -0,0 +1,33 @@ +From d4ede2b0a4727c1f5236dd9308f09cbf7a39761a Mon Sep 17 00:00:00 2001 +From: Timo Teräs +Date: Tue, 13 Apr 2010 06:38:59 +0000 +Subject: linuxthreads.new: initialize stdio locking + +uClibc requires the threading library to enable locking for +stdio, or the locking is not done at all. + +Signed-off-by: Timo Teräs +Signed-off-by: Austin Foxley +--- +diff --git a/libpthread/linuxthreads/pthread.c b/libpthread/linuxthreads/pthread.c +index 6ae9a10..614cad1 100644 +--- a/libpthread/linuxthreads/pthread.c ++++ b/libpthread/linuxthreads/pthread.c +@@ -613,6 +613,17 @@ static void pthread_initialize(void) + #ifdef USE_TLS + GL(dl_init_static_tls) = &__pthread_init_static_tls; + #endif ++ ++ /* uClibc-specific stdio initialization for threads. */ ++ { ++ FILE *fp; ++ _stdio_user_locking = 0; /* 2 if threading not initialized */ ++ for (fp = _stdio_openlist; fp != NULL; fp = fp->__nextopen) { ++ if (fp->__user_locking != 1) { ++ fp->__user_locking = 0; ++ } ++ } ++ } + } + + void __pthread_initialize(void) -- cgit v1.2.3