| OLD | NEW |
| 1 | 1 |
| 2 #include <errno.h> | 2 #include <errno.h> |
| 3 #include <sched.h> | 3 #include <sched.h> |
| 4 | 4 |
| 5 #include <irt_syscalls.h> | 5 #include <irt_syscalls.h> |
| 6 | 6 |
| 7 | 7 |
| 8 int __sched_yield (void) | 8 int __sched_yield (void) |
| 9 { | 9 { |
| 10 int result = __nacl_irt_sched_yield (); | 10 int result = __nacl_irt_sched_yield (); |
| 11 if (result != 0) { | 11 if (result != 0) { |
| 12 errno = -result; | 12 errno = result; |
| 13 return -1; | 13 return -1; |
| 14 } | 14 } |
| 15 return -result; | 15 return 0; |
| 16 } | 16 } |
| 17 libc_hidden_def (__sched_yield) | 17 libc_hidden_def (__sched_yield) |
| 18 weak_alias (__sched_yield, sched_yield) | 18 weak_alias (__sched_yield, sched_yield) |
| OLD | NEW |