summaryrefslogtreecommitdiff
path: root/clone.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2018-03-29 16:00:18 +0000
committerDmitry V. Levin <ldv@altlinux.org>2018-03-29 16:00:18 +0000
commit92d7499fbf483c4765679443076c00a4cf302d35 (patch)
tree844ce75ba62ede556a81dd844cf3374770bbc1d4 /clone.c
parentfc56ecefd157a02abcbe14ec99d9117ee324c8a5 (diff)
downloadstrace-92d7499fbf483c4765679443076c00a4cf302d35.tar.gz
Treat RVAL_DECIMAL the same way as RVAL_UDECIMAL
Assuming that syscalls may return negative values only as error codes, always print non-error syscall return codes as unsigned. * defs.h (RVAL_UDECIMAL): Remove. (RVAL_DECIMAL): Rename to RVAL_UDECIMAL. * syscall.c (syscall_exiting_trace) <case RVAL_DECIMAL>: Remove. * clone.c (SYS_FUNC(fork)): Remove RVAL_UDECIMAL. * lseek.c (SYS_FUNC(lseek)): Likewise. * prctl.c (SYS_FUNC(prctl)): Likewise. * uid.c (SYS_FUNC(getuid), SYS_FUNC(setfsuid)): Likewise. * times.c (SYS_FUNC(times)): Always return 0. * tests/inject-nf.c (main): Update expected output.
Diffstat (limited to 'clone.c')
-rw-r--r--clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clone.c b/clone.c
index e1dcd7130..4bff999d7 100644
--- a/clone.c
+++ b/clone.c
@@ -161,5 +161,5 @@ SYS_FUNC(unshare)
SYS_FUNC(fork)
{
- return RVAL_DECODED | RVAL_UDECIMAL;
+ return RVAL_DECODED;
}