summaryrefslogtreecommitdiffstats
path: root/src/basic/alloc-util.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* basic/alloc-util: drop unnecessary parensZbigniew Jędrzejewski-Szmek2024-01-301-4/+4
* Reorder arguments for calloc()-like functions, part #2Frantisek Sumsal2024-01-171-2/+2
* Fix gcc14 -Wcalloc-transposed-args warningsCristian Rodríguez2024-01-141-4/+4
* tree-wide: drop several doubled spaceYu Watanabe2023-12-241-1/+1
* Move CLEANUP_ARRAY to src/fundamentalLuca Boccassi2023-10-091-1/+0
* alloc-util: add realloc0() helper than is like realloc() but zero-initializes...Lennart Poettering2023-10-061-0/+20
* alloc-util: remove duplicate empty lineLennart Poettering2023-09-251-1/+0
* alloc-util: add free_many() helperLennart Poettering2023-08-241-0/+13
* basic/alloc-util: add greedy_realloc_append()Dan Streetman2023-07-051-0/+4
* 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-101-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