X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmissing.h;h=095bf1fe042ad8a694aa1c18eb9a2bb9816e1f57;hp=f1dbb398e07f9e3d1a933319585735a13fdc74a2;hb=6bc1ce40e531257ae8dd9bbbbcb48e5de0a1187b;hpb=373c23b27f2d886fc023cf5d02fe3bb3eba2e8e9 diff --git a/src/missing.h b/src/missing.h index f1dbb398e..095bf1fe0 100644 --- a/src/missing.h +++ b/src/missing.h @@ -76,6 +76,14 @@ #define AUDIT_SERVICE_STOP 1131 /* Service (daemon) stop */ #endif +#ifndef TIOCVHANGUP +#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); } @@ -164,4 +172,16 @@ struct btrfs_ioctl_vol_args { #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