mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 11:50:14 +00:00
Add process searching
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
/* util.h - Header for all utility functions
|
||||
*/
|
||||
|
||||
#ifndef _UTILS_H_
|
||||
#define _UTILS_H_
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#include "magisk.h"
|
||||
|
||||
@@ -15,6 +19,8 @@ ssize_t xread(int fd, void *buf, size_t count);
|
||||
ssize_t xxread(int fd, void *buf, size_t count);
|
||||
int xpipe(int pipefd[2]);
|
||||
int xsetns(int fd, int nstype);
|
||||
DIR *xopendir(const char *name);
|
||||
struct dirent *xreaddir(DIR *dirp);
|
||||
|
||||
// vector.c
|
||||
|
||||
@@ -28,5 +34,9 @@ void monitor_logs();
|
||||
|
||||
int check_data();
|
||||
void file_to_vector(struct vector *v, FILE *fp);
|
||||
int isNum(const char *s);
|
||||
ssize_t fdreadline(int fd, char *buf, size_t size);
|
||||
void ps(void (*func)(int));
|
||||
void ps_filter_proc_name(const char *filter, void (*func)(int));
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user