Query regarding syscall decoders

Eugene Syromyatnikov evgsyr at gmail.com
Thu Feb 15 15:48:49 UTC 2024


On Thu, Feb 15, 2024 at 02:52:01PM +0530, Sahil wrote:
> I also noticed that RVAL_UDECIMAL is defined as 000 in src/defs.h. Some
> syscall decoders (such as the one for getrusage) return 0. This is identical to
> returning RVAL_UDECIMAL, right? If so, is there any reason as to why the
> macro isn't used?

Unsigned decimal is the default return code printing format, and this notion
is reinforced by the virtue of defining its value to 0, so there is no need
to pass it explicitly and introduce unnecessary noise in the vast majority
of cases.


More information about the Strace-devel mailing list