chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
execute: avoid logging to closed fds
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index e254bc7884b284b9289c1ec423dd16349f4a1f55..a71a297eab6b56740efe070d3473dd3118b183f3 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-406,10
+406,6
@@
bool tty_is_vc(const char *tty);
int vtnr_from_tty(const char *tty);
const char *default_term_for_tty(const char *tty);
int vtnr_from_tty(const char *tty);
const char *default_term_for_tty(const char *tty);
-int detect_vm(const char **id);
-int detect_container(const char **id);
-int detect_virtualization(const char **id);
-
void execute_directory(const char *directory, DIR *_d, char *argv[]);
int kill_and_sigcont(pid_t pid, int sig);
void execute_directory(const char *directory, DIR *_d, char *argv[]);
int kill_and_sigcont(pid_t pid, int sig);
@@
-471,6
+467,8
@@
int block_get_whole_disk(dev_t d, dev_t *ret);
int file_is_sticky(const char *p);
int file_is_sticky(const char *p);
+int strdup_or_null(const char *a, char **b);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
@@
-508,4
+506,6
@@
extern char **saved_argv;
bool kexec_loaded(void);
bool kexec_loaded(void);
+unsigned long cap_last_cap(void);
+
#endif
#endif