* lib/sched_yield.c (sched_yield) [OS/2 kLIBC]: New implementation.
+2021-01-19 KO Myung-Hun <komh78@gmail.com>
+
+ sched_yield: Implement for OS/2 kLIBC.
+ * lib/sched_yield.c (sched_yield) [OS/2 kLIBC]: New implementation.
+
2021-01-19 KO Myung-Hun <komh78@gmail.com>
spawn: Use special invocation for <spawn.h> on OS/2 kLIBC.
return 0;
}
+#elif defined __KLIBC__
+/* OS/2 kLIBC implementation */
+
+# define INCL_DOS
+# include <os2.h>
+
+int
+sched_yield (void)
+{
+ DosSleep (0);
+ return 0;
+}
+
#else
/* Provide a dummy implementation for single-threaded applications. */