This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using <linux/stat.h> for _GNU_SOURCE


Would it be possible to include <linux/stat.h> (not <asm/stat.h>) from <sys/stat.h> for _GNU_SOURCE? We'd need to add redefinition guards for the S_* macros defined in <linux/stat.h>, but otherwise, the header looks quite clean.

This would allow us to obtain the STX_* constants and struct statx from the uapi header, without maintaining our own copy of that information. Or wouldn't be the __u* types in struct statx not acceptable to us?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]