chiark / gitweb /
set nice/oom_adjust only when asked for
[elogind.git] / util.h
diff --git a/util.h b/util.h
index 8cc6043fca52a40ee92a9d2b56a66da1513860b8..c3d3aad7b9a24d7ccc652ed09167da9500213966 100644 (file)
--- a/util.h
+++ b/util.h
@@ -19,7 +19,7 @@ typedef uint64_t usec_t;
 #define NSEC_PER_USEC 1000ULL
 
 /* What is interpreted as whitespace? */
-#define WHITESPACE " \t\n"
+#define WHITESPACE " \t\n\r"
 
 usec_t now(clockid_t clock);
 
@@ -61,6 +61,7 @@ bool endswith(const char *s, const char *postfix);
 bool startswith(const char *s, const char *prefix);
 
 int close_nointr(int fd);
+void close_nointr_nofail(int fd);
 
 int parse_boolean(const char *v);
 
@@ -94,5 +95,14 @@ char *strappend(const char *s, const char *suffix);
 int readlink_malloc(const char *p, char **r);
 
 char *file_name_from_path(const char *p);
+bool is_path(const char *p);
+
+bool path_is_absolute(const char *p);
+char *path_make_absolute(const char *p, const char *prefix);
+
+int reset_all_signal_handlers(void);
+
+char *strstrip(char *s);
+char *file_in_same_dir(const char *path, const char *filename);
 
 #endif