summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-17 16:29:04 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-17 16:29:04 +0100
commitfc116c6a19877275eabb085cf03f0df23b17c0e9 (patch)
treef230c08a0ef01803a582141210798447bb8ce719 /src/util.h
parent4ff21d85822b521ed6741ef88cb4aaa384539dec (diff)
util: beef up logic to find ctty name
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 3898b89ff1..80f1a38b57 100644
--- a/src/util.h
+++ b/src/util.h
@@ -331,7 +331,12 @@ void sigset_add_many(sigset_t *ss, ...);
char* gethostname_malloc(void);
char* getlogname_malloc(void);
-int getttyname_malloc(char **r);
+
+int getttyname_malloc(int fd, char **r);
+int getttyname_harder(int fd, char **r);
+
+int get_ctty_devnr(dev_t *d);
+int get_ctty(char **r);
int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid);