[PATCH v7] Implement decoding of ustat syscall

JingPiao Chen chenjingpiao at gmail.com
Fri Jan 13 14:41:06 UTC 2017


>> +# ifdef HAVE_USTAT_H
>> +#  include <ustat.h>
>> +# else
>> +#  include <stdint.h>
>> +struct ustat {
>> +     int32_t f_tfree;
>> +     uint64_t f_tinode;
>
>This is not correct:
>f_tfree is long on mips and sparc, and int on other architectures;
>f_tinode is unsigned int on alpha and s390, and kernel_ulong_t on other
>architectures;
>also, struct ustat also contains f_fname[] and f_fpack[].
>
>In other words, you really need <ustat.h> to decode ustat.

Can you give me a hand? Is it if do not have ustat.h print ubuf pointer?
Thanks.

--
JingPiao Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170113/25c2370f/attachment.html>


More information about the Strace-devel mailing list