diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-22 04:21:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-22 04:31:21 +0200 |
commit | 830964834f330836b9d33752e83de09d4f38da87 (patch) | |
tree | a94da514ef5a7b91f1c0b1be231180d58ff05f55 /src/util.h | |
parent | 09adcdf71d762803b33bd2064a0fed56cf4072e4 (diff) |
install: add new installer implementation
This new installer will replace the current code of "systemctl enable"
but also be available via D-Bus. It adds a couple of new features:
- Mask/Unmask calls
- Reenable call
- Preset call
- Support for enabling units temporarily (i.e. in /run/systemd instead
of /etc/systemd)
- Enumeration of installed units
- Support for out-of-search-path units
systemctl and D-Bus are not hooked up with this yet
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 7a4bf81c8d..f39c01fbd7 100644 --- a/src/util.h +++ b/src/util.h @@ -217,6 +217,7 @@ char **replace_env_argv(char **argv, char **env); int readlink_malloc(const char *p, char **r); int readlink_and_make_absolute(const char *p, char **r); +int readlink_and_canonicalize(const char *p, char **r); char *file_name_from_path(const char *p); bool is_path(const char *p); @@ -385,6 +386,7 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid); _noreturn_ void freeze(void); bool null_or_empty(struct stat *st); +int null_or_empty_path(const char *fn); DIR *xopendirat(int dirfd, const char *name, int flags); @@ -448,6 +450,10 @@ int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **h int glob_exists(const char *path); +int dirent_ensure_type(DIR *d, struct dirent *de); + +int in_search_path(const char *path, char **search); + #define NULSTR_FOREACH(i, l) \ for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1) |