strace: Change implementation to use ptrace()

This commit is contained in:
Itamar 2020-03-28 11:57:46 +03:00 committed by Andreas Kling
commit e5ebdb9bca
Notes: sideshowbarker 2024-07-19 08:05:29 +09:00
6 changed files with 177 additions and 38 deletions

View file

@ -45,12 +45,6 @@
extern "C" {
int systrace(pid_t pid)
{
int rc = syscall(SC_systrace, pid);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int chown(const char* pathname, uid_t uid, gid_t gid)
{
if (!pathname) {