On Fri, Jan 13, 2017 at 10:01:41PM +0800, JingPiao Chen wrote:
[...]
> +# 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. -- ldv
pgpBK0T2oVCen.pgp
Description: PGP signature
------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
