blob: 30c05aea535195c83801b957fcd4d650bad0c388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* This is an unused stub for an strace replacement */
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
/*
* This is the start of a replacement for strace, to be used
* as an LD_PRELOAD library
*/
pid_t getpid(void)
{
return syscall(SYS_getpid);
}
#if 0
int open(const char *path, int oflag)
{
return syscall(SYS_getpid);
}
#endif
int execve(const char *path, char *const argv[], char *const envp[])
{
return syscall(SYS_execve);
}
|