X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=util.h;h=3e86b29863e88d12d9f38d5c54d9329add353441;hp=86fd7bbc424235de1b82ced853ac8bd2be75bad3;hb=fd79db6a5df0f94c48736ce5aa0131d6ab108fb0;hpb=034c6ed7da5e44bfdde5a5d0da75f7b7a59953b8 diff --git a/util.h b/util.h index 86fd7bbc4..3e86b2986 100644 --- a/util.h +++ b/util.h @@ -18,6 +18,9 @@ typedef uint64_t usec_t; #define NSEC_PER_MSEC 1000000ULL #define NSEC_PER_USEC 1000ULL +/* What is interpreted as whitespace? */ +#define WHITESPACE " \t\n" + usec_t now(clockid_t clock); usec_t timespec_load(const struct timespec *ts); @@ -86,4 +89,6 @@ pid_t get_parent_of_pid(pid_t pid, pid_t *ppid); int write_one_line_file(const char *fn, const char *line); int read_one_line_file(const char *fn, char **line); +char *strappend(const char *s, const char *suffix); + #endif