Merge tag 'v3.1-rc10' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
[linux-2.6/linux-mips.git] / arch / um / sys-x86_64 / ptrace_user.c
blobc57a496d3f5b13d668946067e62b7f0ae0a7663a
1 /*
2 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
7 #include <errno.h>
8 #include "ptrace_user.h"
10 int ptrace_getregs(long pid, unsigned long *regs_out)
12 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
13 return -errno;
14 return(0);
17 int ptrace_setregs(long pid, unsigned long *regs_out)
19 if (ptrace(PTRACE_SETREGS, pid, 0, regs_out) < 0)
20 return -errno;
21 return(0);