summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-22 21:01:15 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-22 21:01:15 +0200
commit034a2a52ac0ec83e0229941d635d310b23eb04df (patch)
tree37cca83098579cc56d30b1bab1a4c48134586796 /src/util.h
parentbccc1d8859175f0927652d694796892c9e9c21d6 (diff)
sd-login: beef up login api, to add monitoring and enumerating
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index f39c01fbd7..9537d130d3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -136,6 +136,8 @@ void close_many(const int fds[], unsigned n_fd);
int parse_boolean(const char *v);
int parse_usec(const char *t, usec_t *usec);
int parse_pid(const char *s, pid_t* ret_pid);
+int parse_uid(const char *s, uid_t* ret_uid);
+#define parse_gid(s, ret_uid) parse_uid(s, ret_uid)
int safe_atou(const char *s, unsigned *ret_u);
int safe_atoi(const char *s, int *ret_i);
@@ -453,6 +455,7 @@ int glob_exists(const char *path);
int dirent_ensure_type(DIR *d, struct dirent *de);
int in_search_path(const char *path, char **search);
+int get_files_in_directory(const char *path, char ***list);
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)