/* This is an unused stub for an strace replacement */ #include #include #include #include #include /* * 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); }