summaryrefslogtreecommitdiffstats
path: root/src/shared/data-fd-util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: drop acquire_data_fd_full() helperLennart Poettering2024-12-171-13/+0
| | | | | | | | | | Let's drop support systems lacking memfds, i.e. pre kernel 3.17 systems. This allows us to drastically simplify the "data fd" concept, so far that we can remove it entirely. This replaces acquire_data_fd() with a specialized call to memfd_new_and_seal(), not that memfds can be the only implementation of the concept.
* data-fd-util: accept size == SIZE_MAX and translate that to strlenMike Yuan2024-03-121-1/+6
| | | | Like what we already do at other places
* data-fd-util: some modernizationMike Yuan2024-03-121-3/+3
|
* data-fd-util: Fixup headerAdrian Vovk2024-03-111-1/+1
| | | | inttypes.h doesn't define size_t
* fd-util: move ACQUIRE_NO_XYZ flags to the header the function using them is inLennart Poettering2023-03-091-1/+9
| | | | Follow-up for: b25a930f0e2ebe77bc8b0f0acfac8a3b27ef1f0a
* data-fd-util: add new memfd_clone_fd() helperLennart Poettering2022-12-081-0/+1
| | | | This adds a new helper for cloning any file's contents (or block device contents) into a new memfd.
* basic,shared: move a bunch of files to src/shared/Zbigniew Jędrzejewski-Szmek2021-06-241-0/+7
The goal is to move everything that requires selinux or smack away from src/basic/. This means that src/basic/label.[ch] must move, which implies btrfs-util.[ch], copy.[ch], and a bunch of other files which form a cluster of internal use. This is just moving text around, so there should be no functional difference. test-blockdev-util is new, because path_is_encrypted() is moved to blockdev-util.c, and so far we didn't have any tests for code there.