mirror of
https://github.com/systemd/systemd.git
synced 2026-07-25 00:35:55 +00:00
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.
9 lines
186 B
C
9 lines
186 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
int copy_data_fd(int fd);
|
|
int memfd_clone_fd(int fd, const char *name, int mode);
|