chiark / gitweb /
tree-wide: remove Lennart's copyright lines
[elogind.git] / src / basic / memfd-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <inttypes.h>
5 #include <stddef.h>
6 #include <stdint.h>
7 #include <sys/types.h>
8
9 int memfd_new(const char *name);
10 #if 0 /// UNNEEDED by elogind
11 int memfd_new_and_map(const char *name, size_t sz, void **p);
12
13 int memfd_map(int fd, uint64_t offset, size_t size, void **p);
14 #endif // 0
15
16 int memfd_set_sealed(int fd);
17 #if 0 /// UNNEEDED by elogind
18 int memfd_get_sealed(int fd);
19 #endif // 0
20
21 int memfd_get_size(int fd, uint64_t *sz);
22 int memfd_set_size(int fd, uint64_t sz);