summaryrefslogtreecommitdiffstats
path: root/src/shared/data-fd-util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.