galeb

Једноставна статичка дистрибуција заснована на musl-у
git clone https://git.sr.ht/~strahinja/galeb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

change-scheduler-functions-Linux-compatib.patch (1960B)


      1 diff -uNr musl-1.2.2.orig/src/sched/sched_getparam.c musl-1.2.2/src/sched/sched_getparam.c
      2 --- musl-1.2.2.orig/src/sched/sched_getparam.c	2021-01-15 02:26:00.000000000 +0000
      3 +++ musl-1.2.2/src/sched/sched_getparam.c	2021-12-23 00:31:16.590518270 +0000
      4 @@ -1,8 +1,7 @@
      5  #include <sched.h>
      6 -#include <errno.h>
      7  #include "syscall.h"
      8  
      9  int sched_getparam(pid_t pid, struct sched_param *param)
     10  {
     11 -	return __syscall_ret(-ENOSYS);
     12 +	return syscall(SYS_sched_getparam, pid, param);
     13  }
     14 diff -uNr musl-1.2.2.orig/src/sched/sched_getscheduler.c musl-1.2.2/src/sched/sched_getscheduler.c
     15 --- musl-1.2.2.orig/src/sched/sched_getscheduler.c	2021-01-15 02:26:00.000000000 +0000
     16 +++ musl-1.2.2/src/sched/sched_getscheduler.c	2021-12-23 00:33:32.949520644 +0000
     17 @@ -1,8 +1,7 @@
     18  #include <sched.h>
     19 -#include <errno.h>
     20  #include "syscall.h"
     21  
     22  int sched_getscheduler(pid_t pid)
     23  {
     24 -	return __syscall_ret(-ENOSYS);
     25 +	return syscall(SYS_sched_getscheduler, pid);
     26  }
     27 diff -uNr musl-1.2.2.orig/src/sched/sched_setparam.c musl-1.2.2/src/sched/sched_setparam.c
     28 --- musl-1.2.2.orig/src/sched/sched_setparam.c	2021-01-15 02:26:00.000000000 +0000
     29 +++ musl-1.2.2/src/sched/sched_setparam.c	2021-12-23 00:35:12.277522374 +0000
     30 @@ -1,8 +1,7 @@
     31  #include <sched.h>
     32 -#include <errno.h>
     33  #include "syscall.h"
     34  
     35  int sched_setparam(pid_t pid, const struct sched_param *param)
     36  {
     37 -	return __syscall_ret(-ENOSYS);
     38 +	return syscall(SYS_sched_setparam, pid, param);
     39  }
     40 diff -uNr musl-1.2.2.orig/src/sched/sched_setscheduler.c musl-1.2.2/src/sched/sched_setscheduler.c
     41 --- musl-1.2.2.orig/src/sched/sched_setscheduler.c	2021-01-15 02:26:00.000000000 +0000
     42 +++ musl-1.2.2/src/sched/sched_setscheduler.c	2021-12-23 00:36:37.548523859 +0000
     43 @@ -1,8 +1,7 @@
     44  #include <sched.h>
     45 -#include <errno.h>
     46  #include "syscall.h"
     47  
     48  int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
     49  {
     50 -	return __syscall_ret(-ENOSYS);
     51 +	return syscall(SYS_sched_setscheduler, pid, sched, param);
     52  }