From: Lennart Poettering Date: Tue, 7 Mar 2023 13:36:22 +0000 (+0100) Subject: missing: add more defines to fsopen() definitions X-Git-Tag: v254-rc1~1073^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c115e1615b54932cbd03e7172dad2ad3293c436e;p=thirdparty%2Fsystemd.git missing: add more defines to fsopen() definitions --- diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 3d66ab7d7a1..062decaff62 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -591,10 +591,22 @@ static inline int missing_fsopen(const char *fsname, unsigned flags) { #if !HAVE_FSCONFIG +#ifndef FSCONFIG_SET_FLAG +#define FSCONFIG_SET_FLAG 0 /* Set parameter, supplying no value */ +#endif + #ifndef FSCONFIG_SET_STRING #define FSCONFIG_SET_STRING 1 /* Set parameter, supplying a string value */ #endif +#ifndef FSCONFIG_SET_FD +#define FSCONFIG_SET_FD 5 /* Set parameter, supplying an object by fd */ +#endif + +#ifndef FSCONFIG_CMD_CREATE +#define FSCONFIG_CMD_CREATE 6 /* Invoke superblock creation */ +#endif + static inline int missing_fsconfig(int fd, unsigned cmd, const char *key, const void *value, int aux) { # if defined __NR_fsconfig && __NR_fsconfig >= 0 return syscall(__NR_fsconfig, fd, cmd, key, value, aux);