X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=util.h;h=d0fc319e0313f696f3310dbb03adfc0f9465d867;hb=ed42e037bc93f8f6b54ee7b0b692c1200d2f4903;hp=ba27c759e805fd34d09e2463a48b5f6ee97d02e4;hpb=843d2643849a1ec63034012c8fe50bfaad23190b;p=elogind.git diff --git a/util.h b/util.h index ba27c759e..d0fc319e0 100644 --- a/util.h +++ b/util.h @@ -181,6 +181,8 @@ 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)) \