chiark / gitweb /
tests: add tests for environment serialization
[elogind.git] / src / basic / process-util.h
index 6cf3a40b1f6dd83cd3dd626fb2fd2ff0d68b9b41..33c6637a4b34d9c4cf6ffb79e0be0e660776338c 100644 (file)
@@ -26,8 +26,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
+#include <sys/resource.h>
 
-#include "formats-util.h"
+#include "format-util.h"
 #include "macro.h"
 
 #define procfs_file_alloca(pid, field)                                  \
@@ -66,7 +67,7 @@ void sigkill_waitp(pid_t *pid);
 
 int kill_and_sigcont(pid_t pid, int sig);
 
-void rename_process(const char name[8]);
+int rename_process(const char name[]);
 #endif // 0
 int is_kernel_thread(pid_t pid);
 
@@ -113,3 +114,9 @@ int sched_policy_from_string(const char *s);
 void valgrind_summary_hack(void);
 
 int pid_compare_func(const void *a, const void *b);
+
+#if 0 /// UNNEEDED by elogind
+static inline bool nice_is_valid(int n) {
+        return n >= PRIO_MIN && n < PRIO_MAX;
+}
+#endif // 0