Query regarding syscall decoders
Sahil
icegambit91 at gmail.com
Thu Feb 15 19:02:43 UTC 2024
Hi,
On Thursday, February 15, 2024 9:18:49 PM IST Eugene Syromyatnikov wrote:
> 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.
Got it. Thank you for the clarification.
Regards,
Sahil
More information about the Strace-devel
mailing list