chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README: update header line
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index 590dc1781ecc1c0a6fb64800027bfb861286d478..202d07a854cf7bb2addbfce8ebfc0f356a952e66 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-327,7
+327,7
@@
bool fstype_is_network(const char *fstype);
int chvt(int vt);
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);
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_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);
int running_in_chroot(void);
char *ellipsize(const char *s, size_t length, unsigned percent);
@@
-478,7
+481,7
@@
bool in_charset(const char *s, const char* charset);
int block_get_whole_disk(dev_t d, dev_t *ret);
int block_get_whole_disk(dev_t d, dev_t *ret);
-int file_is_sticky(const char *p);
+int file_is_
priv_
sticky(const char *p);
int strdup_or_null(const char *a, char **b);
int strdup_or_null(const char *a, char **b);
@@
-525,8
+528,12
@@
unsigned long cap_last_cap(void);
char *format_bytes(char *buf, size_t l, off_t t);
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);
void* memdup(const void *p, size_t l);
+int rtc_open(int flags);
+
+int is_kernel_thread(pid_t pid);
+
#endif
#endif