summaryrefslogtreecommitdiff
path: root/src/basic/memfd-util.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-12-12 07:54:16 +0100
committerSven Eden <yamakuzure@gmx.net>2017-12-12 07:54:16 +0100
commit20710c92ba65584a6fba036f9a2c3624a6bc2565 (patch)
tree1b8936dc3b5f9fd605a5dc8a820baa95dbcc4203 /src/basic/memfd-util.c
parent5fc9b845038323a4281383b00221852cfdd37a8d (diff)
Prep 229.9: Make all supportable API functions visible.
The process of cleaning up elogind, meaning to mask all bits that are unneeded by elogind, has been finished a while ago. It is therefore time to re-enable all previously masked API functions that elogind can support. This will make it easier for future developers to integrate elogind into their software where they already support systemd-login.
Diffstat (limited to 'src/basic/memfd-util.c')
-rw-r--r--src/basic/memfd-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/memfd-util.c b/src/basic/memfd-util.c
index ad80d5662..231c2de71 100644
--- a/src/basic/memfd-util.c
+++ b/src/basic/memfd-util.c
@@ -123,6 +123,7 @@ int memfd_get_sealed(int fd) {
return r == (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE | F_SEAL_SEAL);
}
+#endif // 0
int memfd_get_size(int fd, uint64_t *sz) {
struct stat stat;
@@ -138,7 +139,6 @@ int memfd_get_size(int fd, uint64_t *sz) {
*sz = stat.st_size;
return 0;
}
-#endif // 0
int memfd_set_size(int fd, uint64_t sz) {
int r;