bool endswith(const char *s, const char *postfix);
bool startswith(const char *s, const char *prefix);
+bool startswith_no_case(const char *s, const char *prefix);
bool first_word(const char *s, const char *word);
char *format_timestamp(char *buf, size_t l, usec_t t);
+int make_stdio(int fd);
+
+bool is_clean_exit(int code, int status);
+
#define DEFINE_STRING_TABLE_LOOKUP(name,type) \
const char *name##_to_string(type i) { \
if (i < 0 || i >= (type) ELEMENTSOF(name##_table)) \
int path_is_mount_point(const char *path);
+bool is_device_path(const char *path);
+
extern char * __progname;
const char *ioprio_class_to_string(int i);