diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-03-29 16:00:18 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-03-29 16:00:18 +0000 |
commit | 92d7499fbf483c4765679443076c00a4cf302d35 (patch) | |
tree | 844ce75ba62ede556a81dd844cf3374770bbc1d4 /clone.c | |
parent | fc56ecefd157a02abcbe14ec99d9117ee324c8a5 (diff) | |
download | strace-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,5 +161,5 @@ SYS_FUNC(unshare) SYS_FUNC(fork) { - return RVAL_DECODED | RVAL_UDECIMAL; + return RVAL_DECODED; } |