pid1: add DumpFileDescriptorStore() bus call that returns fdstore content info

This commit is contained in:
Lennart Poettering
2023-03-29 18:53:20 +02:00
parent 522f12224c
commit 2ea24611b9
7 changed files with 119 additions and 0 deletions
+9
View File
@@ -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