chiark / gitweb /
util: generalize is_localhost() and use it everywhere where applicable
[elogind.git] / src / shared / util.h
index 73f7c0ad4cbc801d698a6d584975d238edc8a3b4..6d3791be7f096a8748c5540c2a6dfed3f2507f00 100644 (file)
@@ -523,6 +523,8 @@ int terminal_vhangup(const char *name);
 int vt_disallocate(const char *name);
 
 int symlink_atomic(const char *from, const char *to);
+int mknod_atomic(const char *path, mode_t mode, dev_t dev);
+int mkfifo_atomic(const char *path, mode_t mode);
 
 int fchmod_umask(int fd, mode_t mode);
 
@@ -957,3 +959,5 @@ int fflush_and_check(FILE *f);
 
 char *tempfn_xxxxxx(const char *p);
 char *tempfn_random(const char *p);
+
+bool is_localhost(const char *hostname);