Chris Down
|
3a6da69a93
|
memory-util: Add PAGE_ALIGN_DOWN
For example, cgroup v2 rounds down to the previous page when returning
memory limits.
|
2019-10-03 14:43:30 +01:00 |
|
Zbigniew Jędrzejewski-Szmek
|
44c786f04a
|
test: add _cleanup_(erase_and_freep)
Based on the macro and test case by Lennart Poettering and
Topi Miettinen suggestion.
|
2019-07-10 11:39:03 +02:00 |
|
Zbigniew Jędrzejewski-Szmek
|
3135369cff
|
basic/memory-util: do not "return" anything from memzero() macro
The macro is not used in expressions, so we don't need the ternary statement.
|
2019-05-30 22:55:32 +02:00 |
|
Lennart Poettering
|
e1ed99c8c8
|
ask-password: erase character read with _cleanup_
This is much nicer, since it means we erase the character regardless how
we exit the scope.
|
2019-03-20 10:48:33 +01:00 |
|
Lennart Poettering
|
090a9c1eba
|
util: move some raw memory functions from string-util.h → memory-util.h
|
2019-03-14 13:25:51 +01:00 |
|
Lennart Poettering
|
0a9707187b
|
util: split out memcmp()/memset() related calls into memory-util.[ch]
Just some source rearranging.
|
2019-03-13 12:16:43 +01:00 |
|