chiark / gitweb /
journal: when sending huge log messages prefer memfds over temporary files in /dev/shm
[elogind.git] / src / shared / util.h
index 21a90a40e5b3e4391d9a9cd9212ebfc2701ee0e7..aad9eb7fcbc07f51edc4a95dd4107eea2d310e99 100644 (file)
@@ -321,6 +321,7 @@ int make_console_stdio(void);
 
 int dev_urandom(void *p, size_t n);
 void random_bytes(void *p, size_t n);
+void initialize_srand(void);
 
 static inline uint64_t random_u64(void) {
         uint64_t u;
@@ -991,8 +992,11 @@ bool is_localhost(const char *hostname);
 int take_password_lock(const char *root);
 
 int is_symlink(const char *path);
+int is_dir(const char *path, bool follow);
 
 int unquote_first_word(const char **p, char **ret);
 int unquote_many_words(const char **p, ...) _sentinel_;
 
 int free_and_strdup(char **p, const char *s);
+
+int sethostname_idempotent(const char *s);