chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memfd: drop memfd_get_name() as it is unused
[elogind.git]
/
src
/
shared
/
memfd.h
diff --git
a/src/shared/memfd.h
b/src/shared/memfd.h
index 02cb3978fa985da53579275841caee9247a54208..cf588fe02f4fcf29ecaa707a19239fca739b2bdf 100644
(file)
--- a/
src/shared/memfd.h
+++ b/
src/shared/memfd.h
@@
-24,11
+24,12
@@
#include <inttypes.h>
#include <sys/types.h>
#include <stdio.h>
#include <inttypes.h>
#include <sys/types.h>
#include <stdio.h>
+
#include "macro.h"
#include "util.h"
#include "macro.h"
#include "util.h"
-int memfd_new(
int *fd,
const char *name);
-int memfd_new_and_map(
int *fd,
const char *name, size_t sz, void **p);
+int memfd_new(const char *name);
+int memfd_new_and_map(const char *name, size_t sz, void **p);
int memfd_map(int fd, uint64_t offset, size_t size, void **p);
int memfd_map(int fd, uint64_t offset, size_t size, void **p);
@@
-37,5
+38,3
@@
int memfd_get_sealed(int fd);
int memfd_get_size(int fd, uint64_t *sz);
int memfd_set_size(int fd, uint64_t sz);
int memfd_get_size(int fd, uint64_t *sz);
int memfd_set_size(int fd, uint64_t sz);
-
-int memfd_get_name(int fd, char **name);