From 2ea24611b99d12955ba374f072148b9ad6d644dc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 27 Mar 2023 18:16:40 +0200 Subject: pid1: add DumpFileDescriptorStore() bus call that returns fdstore content info --- src/basic/missing_fcntl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/basic/missing_fcntl.h') diff --git a/src/basic/missing_fcntl.h b/src/basic/missing_fcntl.h index 00937d2af0..79e95a8f6f 100644 --- a/src/basic/missing_fcntl.h +++ b/src/basic/missing_fcntl.h @@ -58,3 +58,12 @@ #ifndef O_TMPFILE #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) #endif + +/* So O_LARGEFILE is generally implied by glibc, and defined to zero hence, because we only build in LFS + * mode. However, when invoking fcntl(F_GETFL) the flag is ORed into the result anyway — glibc does not mask + * it away. Which sucks. Let's define the actual value here, so that we can mask it ourselves. */ +#if O_LARGEFILE != 0 +#define RAW_O_LARGEFILE O_LARGEFILE +#else +#define RAW_O_LARGEFILE 0100000 +#endif -- cgit v1.2.1