summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-08 03:22:25 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-08 03:22:25 +0200
commit7072ced8274274cd1b0fa085dd4118462e03884e (patch)
tree5eadaf1eed7dd8180017cc27c058f81025e05872 /util.h
parenta90ebccc072efa17313fe68c737b3507247c37dd (diff)
manager: print process name for all SIGCHLD received
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index 14f1a7a177..30a0616d54 100644
--- a/util.h
+++ b/util.h
@@ -39,6 +39,7 @@ typedef uint64_t usec_t;
/* What is interpreted as whitespace? */
#define WHITESPACE " \t\n\r"
+#define NEWLINE "\n\r"
usec_t now(clockid_t clock);
@@ -130,10 +131,13 @@ int reset_all_signal_handlers(void);
char *strstrip(char *s);
char *delete_chars(char *s, const char *bad);
+char *truncate_nl(char *s);
char *file_in_same_dir(const char *path, const char *filename);
int mkdir_parents(const char *path, mode_t mode);
+int get_process_name(pid_t pid, char **name);
+
char hexchar(int x);
int unhexchar(char c);
char octchar(int x);