[LTP] [PATCH 2/2] fanotify: Rename fanotify_event_info_fid struct
Petr Vorel
petr.vorel@gmail.com
Wed Nov 6 19:44:32 CET 2019
Hi Jan,
> ----- 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'.
Sure, I can do the detection, probably with autotools detection
(although that macro could be defined without it, but current state can change).
Kind regards,
Petr
More information about the ltp
mailing list