#include "fd-util.h"
#include "fileio.h"
#include "fs-util.h"
-//#include "io-util.h"
+#include "io-util.h"
#include "macro.h"
#include "memfd-util.h"
#include "missing.h"
/* If memfd/pipe didn't work out, then let's use a file in /tmp up to a size of 1M. If it's large than that use /var/tmp instead. */
#define DATA_FD_TMP_LIMIT (1024U*1024U)
+#if 0 /// UNNEEDED by elogind
int fd_duplicate_data_fd(int fd) {
_cleanup_close_ int copy_fd = -1, tmp_fd = -1;
return fd_reopen(tmp_fd, O_RDONLY|O_CLOEXEC);
}
+#endif // 0
int fd_move_above_stdio(int fd) {
int flags, copy;
int acquire_data_fd(const void *data, size_t size, unsigned flags);
+#if 0 /// UNNEEDED by elogind
int fd_duplicate_data_fd(int fd);
+#endif // 0
/* Hint: ENETUNREACH happens if we try to connect to "non-existing" special IP addresses, such as ::5 */
#define ERRNO_IS_DISCONNECT(r) \