fixed. Support buulding in 1 binary
This commit is contained in:
parent
f8dd7660ae
commit
7d0207ace2
58 changed files with 251 additions and 434 deletions
|
@ -46,7 +46,7 @@ struct mu_proc {
|
|||
long rsslim;
|
||||
};
|
||||
|
||||
int mu_proc_status(const char *prog_name, const pid_t pid, struct mu_proc *proc_s) {
|
||||
static int mu_proc_status(const char *prog_name, const pid_t pid, struct mu_proc *proc_s) {
|
||||
proc_s->uid = -1;
|
||||
proc_s->gid = -1;
|
||||
|
||||
|
@ -98,7 +98,7 @@ int mu_proc_status(const char *prog_name, const pid_t pid, struct mu_proc *proc_
|
|||
return 0;
|
||||
}
|
||||
|
||||
int mu_proc_stat(const char *prog_name, const pid_t pid, struct mu_proc *proc_s) {
|
||||
static int mu_proc_stat(const char *prog_name, const pid_t pid, struct mu_proc *proc_s) {
|
||||
char path[PATH_MAX + 1];
|
||||
snprintf(path, sizeof(path), "/proc/%d/stat", pid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue