summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-22 18:21:15 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-22 18:22:26 +0100
commit8f2d43a0121bc9a57ba8b79b33d5ac87d36ca2f2 (patch)
treeaed32140e2106ba430bb6bec62c0575d045eb7a4 /src/util.h
parent1733ca5475786c31031626a68804b26019426ad8 (diff)
cgtop: add new cgtop tool
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 1ce2440f3f..202d07a854 100644
--- a/src/util.h
+++ b/src/util.h
@@ -327,7 +327,7 @@ bool fstype_is_network(const char *fstype);
int chvt(int vt);
-int read_one_char(FILE *f, char *ret, bool *need_nl);
+int read_one_char(FILE *f, char *ret, usec_t timeout, bool *need_nl);
int ask(char *ret, const char *replies, const char *text, ...);
int reset_terminal_fd(int fd);
@@ -384,6 +384,9 @@ void status_welcome(void);
int fd_columns(int fd);
unsigned columns(void);
+int fd_lines(int fd);
+unsigned lines(void);
+
int running_in_chroot(void);
char *ellipsize(const char *s, size_t length, unsigned percent);
@@ -525,7 +528,7 @@ unsigned long cap_last_cap(void);
char *format_bytes(char *buf, size_t l, off_t t);
-int fd_wait_for_event(int fd, int event);
+int fd_wait_for_event(int fd, int event, usec_t timeout);
void* memdup(const void *p, size_t l);