diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-11 00:50:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-11 00:50:49 +0200 |
commit | c6c18be35bb1d300d0b62a568783cc1c477f7151 (patch) | |
tree | e4bad2452f20b6d1d6df9714d6abe72cdc56599c /src/macro.h | |
parent | 55096547212928b0ba83fca2595cae0d66d3c0b0 (diff) |
cgroup: kill processes, not tasks and other cgroup changes
Diffstat (limited to 'src/macro.h')
-rw-r--r-- | src/macro.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macro.h b/src/macro.h index d00e70bf6d..7bd57b3a8e 100644 --- a/src/macro.h +++ b/src/macro.h @@ -108,12 +108,18 @@ static inline size_t ALIGN(size_t l) { #define PTR_TO_UINT32(p) ((uint32_t) ((uintptr_t) (p))) #define UINT32_TO_PTR(u) ((void*) ((uintptr_t) (u))) +#define PTR_TO_ULONG(p) ((unsigned long) ((uintptr_t) (p))) +#define ULONG_TO_PTR(u) ((void*) ((uintptr_t) (u))) + #define PTR_TO_INT(p) ((int) ((intptr_t) (p))) #define INT_TO_PTR(u) ((void*) ((intptr_t) (u))) #define TO_INT32(p) ((int32_t) ((intptr_t) (p))) #define INT32_TO_PTR(u) ((void*) ((intptr_t) (u))) +#define PTR_TO_LONG(p) ((long) ((intptr_t) (p))) +#define LONG_TO_PTR(u) ((void*) ((intptr_t) (u))) + #define memzero(x,l) (memset((x), 0, (l))) #define zero(x) (memzero(&(x), sizeof(x))) |