diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 01:33:21 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 01:38:33 +0100 |
commit | ae793cc20d80eec6ccffc31612b635b8c1b82e89 (patch) | |
tree | 76a9748f3fca3e40c3551fd74b204199821ae0db /htl | |
parent | 196e62cbe4acdab22a95740b618c699863ed460c (diff) | |
download | glibc-ae793cc20d80eec6ccffc31612b635b8c1b82e89.tar.gz glibc-ae793cc20d80eec6ccffc31612b635b8c1b82e89.tar.xz glibc-ae793cc20d80eec6ccffc31612b635b8c1b82e89.zip |
htl: Avoid exposing unixoid functions
C11 threads should not expose them.
Diffstat (limited to 'htl')
-rw-r--r-- | htl/pt-create.c | 2 | ||||
-rw-r--r-- | htl/pt-yield.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/htl/pt-create.c b/htl/pt-create.c index 59ba04d2a8..0b3237f46a 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -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); diff --git a/htl/pt-yield.c b/htl/pt-yield.c index 29fda256cc..11aa852ed3 100644 --- a/htl/pt-yield.c +++ b/htl/pt-yield.c @@ -22,5 +22,5 @@ int pthread_yield (void) { - return sched_yield (); + return __sched_yield (); } |