chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae6c3cc
)
util: document why we have alloca_align()
author
Lennart Poettering
<lennart@poettering.net>
Fri, 12 Dec 2014 01:33:48 +0000
(
02:33
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 12 Dec 2014 12:35:32 +0000
(13:35 +0100)
src/shared/util.h
patch
|
blob
|
history
diff --git
a/src/shared/util.h
b/src/shared/util.h
index a15ce95a6564de73dcaac200e769e3374c4b0a10..9a878ca1ac13a00a02a0dffe7b198b59160d4dd8 100644
(file)
--- a/
src/shared/util.h
+++ b/
src/shared/util.h
@@
-883,6
+883,7
@@
int unlink_noerrno(const char *path);
(void *) memset(_new_, 0, _len_); \
})
+/* It's not clear what alignment glibc/gcc alloca() guarantee, hence provide a guaranteed safe version */
#define alloca_align(size, align) \
({ \
void *_ptr_; \