mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-09 01:28:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
21
arch/x86/um/ptrace_user.c
Normal file
21
arch/x86/um/ptrace_user.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
||||
* Licensed under the GPL
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <ptrace_user.h>
|
||||
|
||||
int ptrace_getregs(long pid, unsigned long *regs_out)
|
||||
{
|
||||
if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
|
||||
return -errno;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ptrace_setregs(long pid, unsigned long *regs)
|
||||
{
|
||||
if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
|
||||
return -errno;
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue