[PATCH 1/3] util: change type of struct xlat.val to uint64_t

Dmitry V. Levin ldv at altlinux.org
Fri Apr 29 01:47:33 UTC 2016

On Thu, Apr 28, 2016 at 11:26:59AM -0400, Jeff Mahoney wrote:
> Some ioctls have flags fields that are 64-bit.  A 32-bit val means
> these flags will never be matched or printed.
> * util.c:
>   (xlookup) Use uint64_t for val.
>   (xlat_search) Likewise.
>   (printxvals) Likewise.
>   (addflags64) New function.
>   (printflags64) New function.
>   (sprintflags64) New function.
>   (addflags) Use unsigned int for val and convert to wrapper for *64.
>   (printflags) Likewise.
>   (sprintflags) Likewise.
> * defs.h: (struct xlat) Use uint_64 for val.

I had to do much more ground work before the change of struct xlat
could be made without visible regressions.

If you tried to run "make check", you'd have noticed some of these

The change of struct xlat is in master now.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160429/efd4654f/attachment.bin>

More information about the Strace-devel mailing list