[LTP] [PATCH 2/2] fanotify: Rename fanotify_event_info_fid struct
Jan Stancek
jstancek@redhat.com
Tue Nov 5 14:11:21 CET 2019
----- Original Message -----
> --- a/testcases/kernel/syscalls/fanotify/fanotify.h
> +++ b/testcases/kernel/syscalls/fanotify/fanotify.h
> @@ -133,17 +133,15 @@ struct fanotify_event_info_header {
> uint8_t pad;
> uint16_t len;
> };
> +#endif /* ! FAN_REPORT_FID */
>
> #ifdef HAVE_NAME_TO_HANDLE_AT
> -struct fanotify_event_info_fid {
> +struct lapi_fanotify_event_info_fid {
> struct fanotify_event_info_header hdr;
> __kernel_fsid_t fsid;
> unsigned char handle[0];
> };
I think I see what you mean by "mixing glibc/lapi/kernel types".
This structure could be combination of various types and now it's
used even if sys/fanotify.h provides one.
As alternative idea, we could add some accessor macro for that 'val' field.
On musl macro would return '__val', and elsewhere 'val'.
More information about the ltp
mailing list