summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-16 12:15:22 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-16 12:16:30 +0200
commit7c5f152acafcf0964db2f3a111195b3b2f36176f (patch)
treedb623084280b90f81762e87881ac7096d0497b5f /src/shared/util.h
parent49f43d5f91a99b23f745726aa351d8f159774357 (diff)
util: add getusername_malloc(), get_shell(), get_home_dir()
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index d9b656d2ca..d3546ba1cd 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -345,9 +345,11 @@ void rename_process(const char name[8]);
void sigset_add_many(sigset_t *ss, ...);
-char* gethostname_malloc(void);
bool hostname_is_set(void);
+
+char* gethostname_malloc(void);
char* getlogname_malloc(void);
+char* getusername_malloc(void);
int getttyname_malloc(int fd, char **r);
int getttyname_harder(int fd, char **r);
@@ -527,4 +529,7 @@ bool in_initrd(void);
void warn_melody(void);
+int get_shell(char **ret);
+int get_home_dir(char **ret);
+
#endif