chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing: memfd_create takes unsigned int flags in final version
[elogind.git]
/
src
/
shared
/
missing.h
diff --git
a/src/shared/missing.h
b/src/shared/missing.h
index 3ff1a21720835e3cb7993606afa458d07cdbea4a..b441149945ec32c0a8bb55da59186f9c34cab1e2 100644
(file)
--- a/
src/shared/missing.h
+++ b/
src/shared/missing.h
@@
-167,6
+167,10
@@
static inline int pivot_root(const char *new_root, const char *put_old) {
# define __NR_fanotify_mark 5296
# endif
# endif
# define __NR_fanotify_mark 5296
# endif
# endif
+# ifndef __NR_memfd_create
+# warning "__NR_memfd_create not yet defined for MIPS"
+# define __NR_memfd_create 0xffffffff
+# endif
#else
# ifndef __NR_fanotify_init
# define __NR_fanotify_init 338
#else
# ifndef __NR_fanotify_init
# define __NR_fanotify_init 338
@@
-205,7
+209,7
@@
static inline int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t ma
#endif
#ifndef HAVE_MEMFD_CREATE
#endif
#ifndef HAVE_MEMFD_CREATE
-static inline int memfd_create(const char *name, u
int64_
t flags) {
+static inline int memfd_create(const char *name, u
nsigned in
t flags) {
return syscall(__NR_memfd_create, name, flags);
}
#endif
return syscall(__NR_memfd_create, name, flags);
}
#endif
@@
-554,6
+558,10
@@
static inline int setns(int fd, int nstype) {
#define IPV6_UNICAST_IF 76
#endif
#define IPV6_UNICAST_IF 76
#endif
+#ifndef IFF_MULTI_QUEUE
+#define IFF_MULTI_QUEUE 0x100
+#endif
+
#ifndef IFF_LOWER_UP
#define IFF_LOWER_UP 0x10000
#endif
#ifndef IFF_LOWER_UP
#define IFF_LOWER_UP 0x10000
#endif
@@
-589,3
+597,7
@@
static inline int setns(int fd, int nstype) {
#ifndef NET_NAME_RENAMED
# define NET_NAME_RENAMED 4
#endif
#ifndef NET_NAME_RENAMED
# define NET_NAME_RENAMED 4
#endif
+
+#ifndef BPF_XOR
+# define BPF_XOR 0xa0
+#endif