chiark / gitweb /
resolved: when resolving an address PTR record via llmnr, make a tcp connection by...
[elogind.git] / src / shared / util.h
index b3187a9ea1d708e789b22862d8544c381526bb22..81da59b20cf68cfae46c53ea538dd238a7babff4 100644 (file)
@@ -192,6 +192,8 @@ int safe_atolli(const char *s, long long int *ret_i);
 
 int safe_atod(const char *s, double *ret_d);
 
+int safe_atou8(const char *s, uint8_t *ret);
+
 #if __WORDSIZE == 32
 static inline int safe_atolu(const char *s, unsigned long *ret_u) {
         assert_cc(sizeof(unsigned long) == sizeof(unsigned));
@@ -499,6 +501,7 @@ noreturn void freeze(void);
 
 bool null_or_empty(struct stat *st) _pure_;
 int null_or_empty_path(const char *fn);
+int null_or_empty_fd(int fd);
 
 DIR *xopendirat(int dirfd, const char *name, int flags);