svn commit: trunk/uClibc/libc/inet/rpc

Peter S. Mazinger ps.m at gmx.net
Sat Feb 25 18:53:03 UTC 2006


On Sat, 25 Feb 2006 sjhill at uclibc.org wrote:

> Author: sjhill
> Date: 2006-02-25 09:14:20 -0800 (Sat, 25 Feb 2006)
> New Revision: 14282
> 
> Log:
> Revert change. Calls can only be used when utilizing TLS. Sorry for the breakage.

Can't we do something about this? linuxthreads_old w/o TLS linuxthreads 
and nptl w/ TLS...

Peter
> 
> 
> Modified:
>    trunk/uClibc/libc/inet/rpc/rpc_thread.c
> 
> 
> Changeset:
> Modified: trunk/uClibc/libc/inet/rpc/rpc_thread.c
> ===================================================================
> --- trunk/uClibc/libc/inet/rpc/rpc_thread.c	2006-02-25 16:56:43 UTC (rev 14281)
> +++ trunk/uClibc/libc/inet/rpc/rpc_thread.c	2006-02-25 17:14:20 UTC (rev 14282)
> @@ -18,11 +18,12 @@
>  #ifdef __UCLIBC_HAS_THREADS__
>  
>  #include <bits/libc-tsd.h>
> -#include <bits/libc-lock.h>
> +//#include <bits/libc-lock.h>
>  
>  /* Variable used in non-threaded applications or for the first thread.  */
>  static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem;
> -__libc_tsd_define (, RPC_VARS)
> +static struct rpc_thread_variables *__libc_tsd_RPC_VARS_data =
> +	&__libc_tsd_RPC_VARS_mem;
>  
>  /*
>   * Task-variable destructor
> @@ -30,7 +31,7 @@
>  void
>  __rpc_thread_destroy (void)
>  {
> -	struct rpc_thread_variables *tvp = __libc_tsd_get (RPC_VARS);
> +	struct rpc_thread_variables *tvp = __rpc_thread_variables();
>  
>  	if (tvp != NULL && tvp != &__libc_tsd_RPC_VARS_mem) {
>  		__rpc_thread_svc_cleanup ();
> @@ -43,7 +44,6 @@
>  		free (tvp->authdes_cache_s);
>  		free (tvp->authdes_lru_s);
>  		free (tvp);
> -		__libc_tsd_set (RPC_VARS, NULL);
>  	}
>  }
>  
> @@ -72,7 +72,7 @@
>  			if (tvp != NULL)
>  				__libc_tsd_set (RPC_VARS, tvp);
>  			else
> -				tvp = __libc_tsd_RPC_VARS;
> +				tvp = __libc_tsd_RPC_VARS_data;
>  		}
>  	}
>  	return tvp;
> 
> _______________________________________________
> uClibc-cvs mailing list
> uClibc-cvs at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc-cvs
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc-cvs mailing list