summaryrefslogtreecommitdiff
path: root/src/basic/process-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-27 00:50:14 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:57 +0100
commitceee6d3a44a81bcf42b21b777302a226422b11a1 (patch)
tree5e21ad861b6f676fdb80a2ed9ce418de5fe8c043 /src/basic/process-util.h
parentee104e11e303499a637c5cd8157bd12ad5cc116d (diff)
process-util: move PID related macros from macro.h to process-util.h
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r--src/basic/process-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h
index d17df5d81f..db32a34ef3 100644
--- a/src/basic/process-util.h
+++ b/src/basic/process-util.h
@@ -68,3 +68,6 @@ bool pid_is_alive(pid_t pid);
bool pid_is_unwaited(pid_t pid);
bool is_main_thread(void);
+
+#define PTR_TO_PID(p) ((pid_t) ((uintptr_t) p))
+#define PID_TO_PTR(p) ((void*) ((uintptr_t) p))