summaryrefslogtreecommitdiff
path: root/src/basic/memory-util.c
Commit message (Collapse)AuthorAgeFilesLines
* Include <threads.h> if possible to get thread_local definitionCristian Rodríguez2023-03-061-0/+1
| | | | | | | | | | | | IN C23, thread_local is a reserved keyword and we shall therefore do nothing to redefine it. glibc has it defined for older standard version with the right conditions. v2 by Yu Watanabe: Move the definition to missing_threads.h like the way we define e.g. missing syscalls or missing definitions, and include it by the users. Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
* boot: Simplify object erasureJan Janssen2023-01-091-18/+0
| | | | | | | | This erase_obj() machinery looks like voodoo and creates an awful lot of noise as soon as we get back to building with -O0. We can do this in a more simple way by introducing a struct that holds the information we need on cleanup. When building with optimization enabled, all this gets inlined and the eraser vanishes.
* memory-util: replace memeqzero() by a more generic memeqbyte()Lennart Poettering2021-09-131-7/+6
| | | | | The new helper can check for any byte, no just zeroes. The old name is then converted into a macro that wraps our new version of the helper.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* tree-wide: use the usual SPDX header for our own filesZbigniew Jędrzejewski-Szmek2020-10-291-0/+2
|
* util: move some raw memory functions from string-util.h → memory-util.hLennart Poettering2019-03-141-0/+18
|
* util: split out memcmp()/memset() related calls into memory-util.[ch]Lennart Poettering2019-03-131-0/+39
Just some source rearranging.