chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
terminal-util: remove unnecessary check of result of isatty() (#4000)
[elogind.git]
/
src
/
basic
/
mount-util.h
diff --git
a/src/basic/mount-util.h
b/src/basic/mount-util.h
index 3393046fc0ef1030fae5a5fb88823868aa41cd70..9ed5b284ceab5e275c02a1ac30b9c49b8accd02e 100644
(file)
--- a/
src/basic/mount-util.h
+++ b/
src/basic/mount-util.h
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
#pragma once
/***
#pragma once
/***
@@
-24,9
+22,11
@@
#include <fcntl.h>
#include <mntent.h>
#include <stdbool.h>
#include <fcntl.h>
#include <mntent.h>
#include <stdbool.h>
+#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include "macro.h"
#include "missing.h"
int fd_is_mount_point(int fd, const char *filename, int flags);
#include "missing.h"
int fd_is_mount_point(int fd, const char *filename, int flags);
@@
-53,4
+53,6
@@
union file_handle_union {
char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ];
};
char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ];
};
+const char* mode_to_inaccessible_node(mode_t mode);
+
#define FILE_HANDLE_INIT { .handle.handle_bytes = MAX_HANDLE_SZ }
#define FILE_HANDLE_INIT { .handle.handle_bytes = MAX_HANDLE_SZ }