diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2012-10-25 18:47:38 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2012-10-25 18:47:38 +0200 |
commit | bff6491355e54a58906c2fdd9ffc7e1549308f35 (patch) | |
tree | 807d8dd99f78ad767a2425e218eb24b48156f657 /sysdeps/mach/hurd | |
parent | 25fe89324c4d23ea467ea6902da6feb344dae3f4 (diff) | |
download | glibc-bff6491355e54a58906c2fdd9ffc7e1549308f35.tar.gz glibc-bff6491355e54a58906c2fdd9ffc7e1549308f35.tar.xz glibc-bff6491355e54a58906c2fdd9ffc7e1549308f35.zip |
Hurd: ptrace: use __hurd_fail for EOPNOTSUPP
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r-- | sysdeps/mach/hurd/ptrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/ptrace.c b/sysdeps/mach/hurd/ptrace.c index bb5627284d..bccb265fbf 100644 --- a/sysdeps/mach/hurd/ptrace.c +++ b/sysdeps/mach/hurd/ptrace.c @@ -160,7 +160,7 @@ ptrace (enum __ptrace_request request, ... ) case PTRACE_SINGLESTEP: /* This is a machine-dependent kernel RPC on machines that support it. Punt. */ - return EOPNOTSUPP; + return __hurd_fail (EOPNOTSUPP); case PTRACE_ATTACH: case PTRACE_DETACH: @@ -227,7 +227,7 @@ ptrace (enum __ptrace_request request, ... ) case PTRACE_PEEKUSER: case PTRACE_POKEUSER: /* U area, what's that? */ - return EOPNOTSUPP; + return __hurd_fail (EOPNOTSUPP); case PTRACE_GETREGS: case PTRACE_SETREGS: @@ -248,7 +248,7 @@ ptrace (enum __ptrace_request request, ... ) return get_regs (MACHINE_THREAD_FLOAT_STATE_FLAVOR, MACHINE_THREAD_FLOAT_STATE_COUNT); #else - return EOPNOTSUPP; + return __hurd_fail (EOPNOTSUPP); #endif case PTRACE_GETFPAREGS: @@ -261,7 +261,7 @@ ptrace (enum __ptrace_request request, ... ) return get_regs (MACHINE_THREAD_FPA_STATE_FLAVOR, MACHINE_THREAD_FPA_STATE_COUNT); #else - return EOPNOTSUPP; + return __hurd_fail (EOPNOTSUPP); #endif case PTRACE_POKETEXT: |