chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split selinux label operations out of cgroup-util, socket-util
[elogind.git]
/
src
/
missing.h
diff --git
a/src/missing.h
b/src/missing.h
index 02b31b743493195a076c70ed5ab7f8f203b62050..095bf1fe042ad8a694aa1c18eb9a2bb9816e1f57 100644
(file)
--- a/
src/missing.h
+++ b/
src/missing.h
@@
-80,6
+80,10
@@
#define TIOCVHANGUP 0x5437
#endif
#define TIOCVHANGUP 0x5437
#endif
+#ifndef IP_TRANSPARENT
+#define IP_TRANSPARENT 19
+#endif
+
static inline int pivot_root(const char *new_root, const char *put_old) {
return syscall(SYS_pivot_root, new_root, put_old);
}
static inline int pivot_root(const char *new_root, const char *put_old) {
return syscall(SYS_pivot_root, new_root, put_old);
}
@@
-168,4
+172,16
@@
struct btrfs_ioctl_vol_args {
#define MS_MOVE 8192
#endif
#define MS_MOVE 8192
#endif
+#ifndef MS_PRIVATE
+#define MS_PRIVATE (1 << 18)
+#endif
+
+static inline pid_t gettid(void) {
+ return (pid_t) syscall(SYS_gettid);
+}
+
+#ifndef SCM_SECURITY
+#define SCM_SECURITY 0x03
+#endif
+
#endif
#endif