chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep 229.9: Make all supportable API functions visible.
[elogind.git]
/
src
/
basic
/
memfd-util.c
diff --git
a/src/basic/memfd-util.c
b/src/basic/memfd-util.c
index 66b5e5c7b932b845218cacf778aa941bde624eb3..2ecec8c904b413db83845d0eec588a9ee3134a87 100644
(file)
--- a/
src/basic/memfd-util.c
+++ b/
src/basic/memfd-util.c
@@
-22,7
+22,7
@@
#include <sys/stat.h>
#include <unistd.h>
#ifdef HAVE_LINUX_MEMFD_H
#include <sys/stat.h>
#include <unistd.h>
#ifdef HAVE_LINUX_MEMFD_H
-#
include <linux/memfd.h>
+#include <linux/memfd.h>
#endif
#include <stdio.h>
#include <sys/mman.h>
#endif
#include <stdio.h>
#include <sys/mman.h>
@@
-123,6
+123,7
@@
int memfd_get_sealed(int fd) {
return r == (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE | F_SEAL_SEAL);
}
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;
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;
}
*sz = stat.st_size;
return 0;
}
-#endif // 0
int memfd_set_size(int fd, uint64_t sz) {
int r;
int memfd_set_size(int fd, uint64_t sz) {
int r;