chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: get rid of no_requires unit flag, and make crypto disks require cryptsetup...
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index 71889f1425762b256a0874870995896d51dca50a..63538fed8e4b9da3d40901d303f3a75f8db45aaa 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-265,6
+265,7
@@
char *format_timestamp_pretty(char *buf, size_t l, usec_t t);
char *format_timespan(char *buf, size_t l, usec_t t);
int make_stdio(int fd);
char *format_timespan(char *buf, size_t l, usec_t t);
int make_stdio(int fd);
+int make_null_stdio(void);
bool is_clean_exit(int code, int status);
bool is_clean_exit_lsb(int code, int status);
bool is_clean_exit(int code, int status);
bool is_clean_exit_lsb(int code, int status);
@@
-364,14
+365,19
@@
bool null_or_empty(struct stat *st);
DIR *xopendirat(int dirfd, const char *name);
DIR *xopendirat(int dirfd, const char *name);
-int ask_password_tty(const char *message, usec_t until, const char *flag_file, char **_passphrase);
-
void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t);
void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t);
-void dual_timestamp_deserialize(FILE *f, const char *line, dual_timestamp *t);
+void dual_timestamp_deserialize(const char *value, dual_timestamp *t);
+
+char *fstab_node_to_udev_node(const char *p);
-#define NULSTR_FOREACH(i, l) \
+void filter_environ(const char *prefix);
+
+#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
+#define NULSTR_FOREACH_PAIR(i, j, l) \
+ for ((i) = (l), (j) = strchr((i), 0)+1; (i) && *(i); (i) = strchr((j), 0)+1, (j) = *(i) ? strchr((i), 0)+1 : (i))
+
const char *ioprio_class_to_string(int i);
int ioprio_class_from_string(const char *s);
const char *ioprio_class_to_string(int i);
int ioprio_class_from_string(const char *s);