chiark / gitweb /
journal: when sending huge log messages prefer memfds over temporary files in /dev/shm
[elogind.git] / src / shared / util.h
index 887cdc4a445413bbfccba6168f1f883ef91c89f3..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;
@@ -997,3 +998,5 @@ 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);