Lines 26-32
Link Here
|
26 |
#include <stdlib.h> |
26 |
#include <stdlib.h> |
27 |
#include <string.h> |
27 |
#include <string.h> |
28 |
#include <sys/mman.h> |
28 |
#include <sys/mman.h> |
|
|
29 |
#if !defined __MUSL__ |
29 |
#include <sys/pidfd.h> |
30 |
#include <sys/pidfd.h> |
|
|
31 |
#endif /* __MUSL__ */ |
30 |
#include <sys/resource.h> |
32 |
#include <sys/resource.h> |
31 |
#if defined HAVE_SYSTEMD |
33 |
#if defined HAVE_SYSTEMD |
32 |
#include <systemd/sd-daemon.h> |
34 |
#include <systemd/sd-daemon.h> |
Lines 107-112
static long process_ksm_status(int pidfd, unsigned int flags)
Link Here
|
107 |
return syscall(__NR_process_ksm_status, pidfd, flags); |
109 |
return syscall(__NR_process_ksm_status, pidfd, flags); |
108 |
} |
110 |
} |
109 |
|
111 |
|
|
|
112 |
#if defined __MUSL__ |
113 |
int pidfd_open(pid_t pid, unsigned int flags) |
114 |
{ |
115 |
return syscall(__NR_pidfd_open, pid, flags); |
116 |
} |
117 |
#endif /* __MUSL__ */ |
118 |
|
110 |
static long process_ksm(pid_t pid, enum pksm_action _action) |
119 |
static long process_ksm(pid_t pid, enum pksm_action _action) |
111 |
{ |
120 |
{ |
112 |
long ret; |
121 |
long ret; |