sched_yield.c 178 B

12345678910
  1. #include <syscall.h>
  2. #include <syscall_nums.h>
  3. #include <sched.h>
  4. #include <errno.h>
  5. DEFN_SYSCALL0(yield, SYS_YIELD);
  6. int sched_yield(void) {
  7. __sets_errno(syscall_yield());
  8. }