]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Avoid exposing unixoid functions
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 13 Jan 2020 00:33:21 +0000 (01:33 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 13 Jan 2020 00:38:33 +0000 (01:38 +0100)
C11 threads should not expose them.

htl/pt-create.c
htl/pt-yield.c
sysdeps/htl/pt-destroy-specific.c
sysdeps/mach/htl/pt-timedblock.c
sysdeps/mach/hurd/Versions

index 59ba04d2a815dcc62f505fd0cd47d809660c1a3f..0b3237f46a0a4ec09fb7f85640cbba391a271cb5 100644 (file)
@@ -178,7 +178,7 @@ __pthread_create_internal (struct __pthread **thread,
      shall be empty."  If the currnet thread is not a pthread then we
      just inherit the process' sigmask.  */
   if (__pthread_num_threads == 1)
-    err = sigprocmask (0, 0, &sigset);
+    err = __sigprocmask (0, 0, &sigset);
   else
     err = __pthread_sigstate (_pthread_self (), 0, 0, &sigset, 0);
   assert_perror (err);
index 29fda256cc7fea8131eea5bfcae8fe3070e7310d..11aa852ed3c4686a5b0cf45a15f91b2de5f64bfb 100644 (file)
@@ -22,5 +22,5 @@
 int
 pthread_yield (void)
 {
-  return sched_yield ();
+  return __sched_yield ();
 }
index 8430a5fb09580d5514b493d4da7d24b15951736b..319aa4875fb082c476c2903c0d1cf1963ae20d46 100644 (file)
@@ -68,7 +68,7 @@ __pthread_destroy_specific (struct __pthread *thread)
 
       /* This may take a very long time.  Let those blocking on
          pthread_key_create or pthread_key_delete make progress.  */
-      sched_yield ();
+      __sched_yield ();
     }
 
   free (thread->thread_specifics);
index 3b8779367d10f6c695f3e76c2e7dd7d2cb054569..63af869c90928e5a0e54ef60d064491ce6364b08 100644 (file)
@@ -39,7 +39,7 @@ __pthread_timedblock (struct __pthread *thread,
   /* We have an absolute time and now we have to convert it to a
      relative time.  Arg.  */
 
-  err = clock_gettime (clock_id, &now);
+  err = __clock_gettime (clock_id, &now);
   assert (!err);
 
   if (now.tv_sec > abstime->tv_sec
index 35257a0906b2bc96196a32ee47d9145e583347d4..1d6633f782028b153422fdb34e34b6f0ead3e10c 100644 (file)
@@ -14,6 +14,9 @@ libc {
 
     _dl_init_first;
     __close_nocancel_nostatus;
+
+    # functions used in other libraries
+    __sigprocmask;
   }
 }