remove useless __yield alias for sched_yield
authorRich Felker <dalias@aerifal.cx>
Sun, 4 May 2014 17:15:27 +0000 (13:15 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 20 May 2014 21:58:24 +0000 (17:58 -0400)
this is no longer used for anything, and reportedly clashed with a
builtin on certain compilers.

(cherry picked from commit adbf0258be4eea5f012e173de7e55a87f3093669)

src/sched/sched_yield.c

index 6c0742b4ec0c0e00da44b5db1d19220f97baacaa..ee6f0e7f160410c765146fd5713adcd9909627c1 100644 (file)
@@ -1,10 +1,7 @@
 #include <sched.h>
 #include "syscall.h"
-#include "libc.h"
 
-int __yield()
+int sched_yield()
 {
        return syscall(SYS_sched_yield);
 }
-
-weak_alias(__yield, sched_yield);