Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[deliverable/linux.git] / arch / um / sys-x86_64 / ptrace_user.c
CommitLineData
1da177e4
LT
1/*
2 * Copyright 2003 PathScale, Inc.
3 *
4 * Licensed under the GPL
5 */
6
1da177e4
LT
7#include <errno.h>
8#include "ptrace_user.h"
1da177e4
LT
9
10int ptrace_getregs(long pid, unsigned long *regs_out)
11{
95906b24
JD
12 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
13 return -errno;
1da177e4
LT
14 return(0);
15}
16
95906b24 17int ptrace_setregs(long pid, unsigned long *regs_out)
e2216feb 18{
95906b24 19 if (ptrace(PTRACE_SETREGS, pid, 0, regs_out) < 0)
e2216feb 20 return -errno;
95906b24 21 return(0);
1da177e4 22}
This page took 0.352915 seconds and 5 git commands to generate.