about summary refs log tree commit diff
path: root/nptl/pthread_setspecific.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-27 07:09:18 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-27 07:09:18 +0000
commit117c452c9845cc19e7d947844d09c6b45a3413b7 (patch)
tree29d99db3d8a78df1d314389f7b6d573abfff6d37 /nptl/pthread_setspecific.c
parent76a50749f7af5935ba3739e815aa6a16ae4440d1 (diff)
downloadglibc-117c452c9845cc19e7d947844d09c6b45a3413b7.tar.gz
glibc-117c452c9845cc19e7d947844d09c6b45a3413b7.tar.xz
glibc-117c452c9845cc19e7d947844d09c6b45a3413b7.zip
Update.
	* sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface.  It now
	takes the array member name and the index as parameters.
	(THREAD_SETMEM_NC): Likewise.
	* pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
	* pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
	interfaces.

	* sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
	to decide which code to use.
	(THREAD_SETMEM_NC): Likewise.
Diffstat (limited to 'nptl/pthread_setspecific.c')
-rw-r--r--nptl/pthread_setspecific.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/pthread_setspecific.c b/nptl/pthread_setspecific.c
index 5af6cae83e..d0ee6208c6 100644
--- a/nptl/pthread_setspecific.c
+++ b/nptl/pthread_setspecific.c
@@ -57,7 +57,7 @@ __pthread_setspecific (key, value)
       idx2nd = key % PTHREAD_KEY_2NDLEVEL_SIZE;
 
       /* This is the second level array.  Allocate it if necessary.  */
-      level2 = THREAD_GETMEM_NC (self, specific[idx1st]);
+      level2 = THREAD_GETMEM_NC (self, specific, idx1st);
       if (level2 == NULL)
 	{
 	  if (value == NULL)
@@ -71,7 +71,7 @@ __pthread_setspecific (key, value)
 	  if (level2 == NULL)
 	    return ENOMEM;
 
-	  THREAD_SETMEM_NC (self, specific[idx1st], level2);
+	  THREAD_SETMEM_NC (self, specific, idx1st, level2);
 	}
 
       /* Pointer to the right array element.  */