summaryrefslogtreecommitdiff
path: root/src/basic/alloc-util.h
Commit message (Expand)AuthorAgeFilesLines
* memory-util: add a concept for gcc cleanup attribute based array destructionLennart Poettering2023-02-231-0/+1
* alloc-util: Disallow inlining of expand_to_usableSiddhesh Poyarekar2023-01-081-3/+4
* Use dummy allocator to make accesses defined as per standardSiddhesh Poyarekar2022-12-141-10/+28
* sd-device: introduce device_unref_and_replace()Yu Watanabe2022-07-231-0/+11
* tree-wide: Introduce free_and_replace_full()Daan De Meyer2022-07-211-2/+5
* Revert "Support -D_FORTIFY_SOURCE=3 by using __builtin_dynamic_object_size."Evgeny Vereshchagin2022-06-051-13/+3
* basic/alloc-util: remove unnecessary parensZbigniew Jędrzejewski-Szmek2022-05-101-2/+2
* Support -D_FORTIFY_SOURCE=3 by using __builtin_dynamic_object_size.Martin Liska2022-03-311-3/+13
* alloc-util: introduce mfree_func_type_tYu Watanabe2022-03-111-0/+1
* Merge pull request #20983 from mxre/feature/aarch64Lennart Poettering2021-10-151-6/+0
|\
| * move mfree to macro-fundamentals.hMax Resch2021-10-121-6/+0
* | alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhereLennart Poettering2021-10-141-0/+16
* | alloca-util: drop two unnecessary castsLennart Poettering2021-10-141-2/+2
* | alloc-util: introduce new helper alloca_safe()Lennart Poettering2021-10-141-12/+13
|/
* alloc-util: make mfree() typesafeLennart Poettering2021-08-111-4/+5
* alloc-util: drop double eval from free_and_replace()Lennart Poettering2021-07-291-3/+5
* systemctl: unset const char* arguments in static destructorsZbigniew Jędrzejewski-Szmek2021-05-311-0/+7
* Merge pull request #19662 from yuwata/memdupLennart Poettering2021-05-191-2/+2
|\
| * alloc-util: use memcpy_safe() in memdup() or friendsYu Watanabe2021-05-191-2/+2
* | alloc-util: simplify GREEDY_REALLOC() logic by relying on malloc_usable_size()Lennart Poettering2021-05-191-6/+6
* | alloc-util: add MALLOC_ELEMENTSOF() helperLennart Poettering2021-05-191-0/+8
* | alloc-util: introduce MALLOC_SIZEOF_SAFE() helperLennart Poettering2021-05-191-0/+12
|/
* basic/alloc-util: also reset the cleaned-up variable in freep()Zbigniew Jędrzejewski-Szmek2021-02-191-1/+1
* fundamental: move several macros and functions into src/fundamental/Yu Watanabe2021-02-091-9/+0
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
* alloc-util: avoid allocating zero size memory blocksLennart Poettering2020-10-141-6/+6
* alloc-util: drop _alloc_ decorator from memdup_suffix0()Lennart Poettering2019-07-131-1/+1
* alloc-util: drop _alloc_(2, 3) decorator from memdup_suffix0_multiply()Lennart Poettering2019-07-121-1/+3
* alloc-util: typo fixLennart Poettering2019-03-201-2/+2
* Add wrapper for __msan_unpoinson() to reduce #ifdefferyZbigniew Jędrzejewski-Szmek2019-02-251-0/+10
* alloc-util: whenever any of our alloca() wrappers is used to allocate overly ...Lennart Poettering2019-01-261-17/+32
* tree-wide: make new/new0/malloc_multiply/reallocarray safe for size 0Zbigniew Jędrzejewski-Szmek2018-12-211-3/+3
* util: define free_func_tYu Watanabe2018-12-021-0/+2
* alloc-util: add alloca() counterparts for memdup() and memdup_suffix0()Lennart Poettering2018-10-151-0/+15
* Revert "alloc-util: return NULL if 0-sized allocation is requested"Yu Watanabe2018-10-131-4/+1
* alloc-util: return NULL if 0-sized allocation is requestedDavid Tardon2018-10-121-1/+4
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-4/+0
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
* alloca: add an overflow check tooLennart Poettering2018-04-271-2/+10
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
* macro: introduce TAKE_PTR() macroLennart Poettering2018-03-221-0/+9
* tree-wide: use reallocarray instead of our home-grown realloc_multiply (#8279)Zbigniew Jędrzejewski-Szmek2018-02-261-1/+3
* alloc-util: coding style fixYu Watanabe2017-11-281-1/+1
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
* alloc-util: add new helpers memdup_suffix0() and newdup_suffix0()Lennart Poettering2017-07-311-0/+10
* tree-wide: introduce free_and_replace helperZbigniew Jędrzejewski-Szmek2016-10-161-0/+8
* alloc-util: cleanupsAlexander Kuleshov2016-02-191-9/+13
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
* basic: include only what we useThomas Hindoe Paaboel Andersen2015-11-301-0/+1
* util-lib: split out allocation calls into alloc-util.[ch]Lennart Poettering2015-10-271-0/+108