[PATCH v6] Implement decoding of ustat syscall
Dmitry V. Levin
ldv at altlinux.org
Fri Jan 13 00:40:31 UTC 2017
On Thu, Jan 12, 2017 at 09:46:23PM +0800, JingPiao Chen wrote:
[...]
> +#include "tests.h"
> +#include <asm/unistd.h>
> +
> +#ifdef __NR_ustat
> +
> +# include <stdio.h>
> +# include <sys/stat.h>
> +# include <sys/sysmacros.h>
> +# include <unistd.h>
> +# include <ustat.h>
[...]
> +#include "defs.h"
> +#include DEF_MPERS_TYPE(struct_ustat)
> +#include <ustat.h>
The last but not least: <ustat.h> may be missing,
some libc implementations don't provide it at all.
A configure check and guards in ustat.c and tests/ustat.c are needed.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170113/93968257/attachment.bin>
More information about the Strace-devel
mailing list