parent
bcc6f1913f
commit
abae3a44af
|
|
@ -68,6 +68,7 @@ extern "C" {
|
|||
#include <sys/stat.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <util.h>
|
||||
|
||||
|
|
@ -199,6 +200,15 @@ uptr internal_ftruncate(fd_t fd, uptr size) {
|
|||
return ftruncate(fd, size);
|
||||
}
|
||||
|
||||
uptr internal_execve(const char *filename, char *const argv[],
|
||||
char *const envp[]) {
|
||||
return execve(filename, argv, envp);
|
||||
}
|
||||
|
||||
uptr internal_waitpid(int pid, int *status, int options) {
|
||||
return waitpid(pid, status, options);
|
||||
}
|
||||
|
||||
// ----------------- sanitizer_common.h
|
||||
bool FileExists(const char *filename) {
|
||||
struct stat st;
|
||||
|
|
|
|||
Loading…
Reference in New Issue