OSDN Git Service

sem_open.c/sem_unlink.c: Use INTUSE macro to get proper function call to __pthread_once
authorKhem Raj <raj.khem@gmail.com>
Sat, 18 Dec 2010 16:09:25 +0000 (08:09 -0800)
committerKhem Raj <raj.khem@gmail.com>
Sat, 18 Dec 2010 16:09:25 +0000 (08:09 -0800)
We need to use __pthread_once_internal if available this macro is
therefore used to notify that.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
libpthread/nptl/sem_open.c
libpthread/nptl/sem_unlink.c

index 28dd3aa..71bebb0 100644 (file)
@@ -248,7 +248,7 @@ sem_open (const char *name, int oflag, ...)
   int fd;
 
   /* Determine where the shmfs is mounted.  */
-  __pthread_once (&__namedsem_once, __where_is_shmfs);
+  INTUSE(__pthread_once) (&__namedsem_once, __where_is_shmfs);
 
   /* If we don't know the mount points there is nothing we can do.  Ever.  */
   if (mountpoint.dir == NULL)
index beed02e..f3e7f1a 100644 (file)
@@ -33,7 +33,7 @@ sem_unlink (
   size_t namelen;
 
   /* Determine where the shmfs is mounted.  */
-  __pthread_once (&__namedsem_once, __where_is_shmfs);
+  INTUSE(__pthread_once) (&__namedsem_once, __where_is_shmfs);
 
   /* If we don't know the mount points there is nothing we can do.  Ever.  */
   if (mountpoint.dir == NULL)