Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 25 of 83) sorted by relevance

1234

/systemd-251/src/libsystemd/sd-bus/
Dbus-dump.c334 const char *prefix, *color, *suffix, *s; in bus_creds_dump() local
344 suffix = ""; in bus_creds_dump()
353 suffix = strjoina(off, "\n"); in bus_creds_dump()
357 fprintf(f, "%sPID=%s"PID_FMT"%s", prefix, color, c->pid, suffix); in bus_creds_dump()
359 fprintf(f, "%sTID=%s"PID_FMT"%s", prefix, color, c->tid, suffix); in bus_creds_dump()
362 fprintf(f, "%sPPID=%sn/a%s", prefix, color, suffix); in bus_creds_dump()
364 fprintf(f, "%sPPID=%s"PID_FMT"%s", prefix, color, c->ppid, suffix); in bus_creds_dump()
367 fprintf(f, "%sTTY=%s%s%s", prefix, color, strna(c->tty), suffix); in bus_creds_dump()
373 fprintf(f, "%sUID=%s"UID_FMT"%s", prefix, color, c->uid, suffix); in bus_creds_dump()
375 fprintf(f, "%sEUID=%s"UID_FMT"%s", prefix, color, c->euid, suffix); in bus_creds_dump()
[all …]
/systemd-251/src/basic/
Dunit-name.c218 int unit_name_change_suffix(const char *n, const char *suffix, char **ret) { in unit_name_change_suffix() argument
224 assert(suffix); in unit_name_change_suffix()
230 if (!unit_suffix_is_valid(suffix)) in unit_name_change_suffix()
236 b = strlen(suffix); in unit_name_change_suffix()
242 strcpy(mempcpy(s, n, a), suffix); in unit_name_change_suffix()
252 int unit_name_build(const char *prefix, const char *instance, const char *suffix, char **ret) { in unit_name_build() argument
256 assert(suffix); in unit_name_build()
259 if (suffix[0] != '.') in unit_name_build()
262 type = unit_type_from_string(suffix + 1); in unit_name_build()
542 char *suffix; in unit_name_hash_long() local
[all …]
Dconf-files.c26 const char *suffix, in files_add() argument
54 if (suffix && !endswith(de->d_name, suffix)) in files_add()
141 const char *suffix, in conf_files_list_strv_internal() argument
168 r = files_add(fh, masked, suffix, root, flags, *p); in conf_files_list_strv_internal()
253 int conf_files_list_strv(char ***ret, const char *suffix, const char *root, unsigned flags, const c… in conf_files_list_strv() argument
262 return conf_files_list_strv_internal(ret, suffix, root, flags, copy); in conf_files_list_strv()
265 int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *… in conf_files_list() argument
274 return conf_files_list_strv_internal(ret, suffix, root, flags, dirs); in conf_files_list()
277 int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, unsigned flags, const… in conf_files_list_nulstr() argument
286 return conf_files_list_strv_internal(ret, suffix, root, flags, d); in conf_files_list_nulstr()
Dunit-name.h33 int unit_name_change_suffix(const char *n, const char *suffix, char **ret);
35 int unit_name_build(const char *prefix, const char *instance, const char *suffix, char **ret);
50 int unit_name_from_path(const char *path, const char *suffix, char **ret);
51 int unit_name_from_path_instance(const char *prefix, const char *path, const char *suffix, char **r…
59 …fix(const char *name, const char *operation, UnitNameMangle flags, const char *suffix, char **ret);
Drlimit-util.c346 const char *suffix; in rlimit_from_string_harder() local
349 suffix = startswith(s, "RLIMIT_"); in rlimit_from_string_harder()
350 if (suffix) in rlimit_from_string_harder()
351 return rlimit_from_string(suffix); in rlimit_from_string_harder()
354 suffix = startswith(s, "Limit"); in rlimit_from_string_harder()
355 if (suffix) in rlimit_from_string_harder()
356 return rlimit_from_string(suffix); in rlimit_from_string_harder()
Dconf-files.h14 int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *…
15 int conf_files_list_strv(char ***ret, const char *suffix, const char *root, unsigned flags, const c…
16 int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, unsigned flags, const…
Dpath-lookup.c20 int xdg_user_runtime_dir(char **ret, const char *suffix) { in xdg_user_runtime_dir() argument
25 assert(suffix); in xdg_user_runtime_dir()
31 j = path_join(e, suffix); in xdg_user_runtime_dir()
39 int xdg_user_config_dir(char **ret, const char *suffix) { in xdg_user_config_dir() argument
48 j = path_join(e, suffix); in xdg_user_config_dir()
56 if (!path_extend(&j, "/.config", suffix)) in xdg_user_config_dir()
64 int xdg_user_data_dir(char **ret, const char *suffix) { in xdg_user_data_dir() argument
70 assert(suffix); in xdg_user_data_dir()
78 j = path_join(e, suffix); in xdg_user_data_dir()
86 if (!path_extend(&j, "/.local/share", suffix)) in xdg_user_data_dir()
Dpath-lookup.h66 int xdg_user_runtime_dir(char **ret, const char *suffix);
67 int xdg_user_config_dir(char **ret, const char *suffix);
68 int xdg_user_data_dir(char **ret, const char *suffix);
Dcgroup-util.c481 static int join_path_legacy(const char *controller, const char *path, const char *suffix, char **re… in join_path_legacy() argument
490 if (isempty(path) && isempty(suffix)) in join_path_legacy()
493 t = path_join("/sys/fs/cgroup", dn, suffix); in join_path_legacy()
494 else if (isempty(suffix)) in join_path_legacy()
497 t = path_join("/sys/fs/cgroup", dn, path, suffix); in join_path_legacy()
505 static int join_path_unified(const char *path, const char *suffix, char **ret) { in join_path_unified() argument
510 if (isempty(path) && isempty(suffix)) in join_path_unified()
513 t = path_join("/sys/fs/cgroup", suffix); in join_path_unified()
514 else if (isempty(suffix)) in join_path_unified()
517 t = path_join("/sys/fs/cgroup", path, suffix); in join_path_unified()
[all …]
Ddirent-util.c53 bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) { in dirent_is_file_with_suffix() argument
62 if (!suffix) in dirent_is_file_with_suffix()
65 return endswith(de->d_name, suffix); in dirent_is_file_with_suffix()
Dformat-util.c47 const char *suffix; in format_bytes_full() member
85 table[i].suffix); in format_bytes_full()
90 table[i].suffix); in format_bytes_full()
/systemd-251/test/units/
Dtestsuite-38.sh18 local name object_path suffix
20 suffix="${1##*.}"
21 name="${1%.$suffix}"
22 object_path="/org/freedesktop/systemd1/unit/${name//-/_2d}_2e${suffix}"
32 local name object_path suffix
34 suffix="${1##*.}"
35 name="${1%.$suffix}"
36 object_path="/org/freedesktop/systemd1/unit/${name//-/_2d}_2e${suffix}"
66 local name object_path suffix
68 suffix="${1##*.}"
[all …]
/systemd-251/src/boot/
Dbless-boot.c217 _cleanup_free_ char *path = NULL, *prefix = NULL, *suffix = NULL; in acquire_boot_count_path() local
258 suffix = strdup(e); in acquire_boot_count_path()
259 if (!suffix) in acquire_boot_count_path()
262 *ret_suffix = TAKE_PTR(suffix); in acquire_boot_count_path()
277 static int make_good(const char *prefix, const char *suffix, char **ret) { in make_good() argument
281 assert(suffix); in make_good()
288 good = strjoin(prefix, suffix); in make_good()
296 static int make_bad(const char *prefix, uint64_t done, const char *suffix, char **ret) { in make_bad() argument
300 assert(suffix); in make_bad()
307 bad = strjoin(prefix, "+0", suffix); in make_bad()
[all …]
/systemd-251/src/libsystemd/sd-path/
Dsd-path.c38 static int from_home_dir(const char *envname, const char *suffix, char **buffer, const char **ret) { in from_home_dir() argument
42 assert(suffix); in from_home_dir()
60 if (!path_extend(&h, suffix)) in from_home_dir()
388 static int get_path_alloc(uint64_t type, const char *suffix, char **path) { in get_path_alloc() argument
400 if (suffix) { in get_path_alloc()
401 suffix += strspn(suffix, "/"); in get_path_alloc()
402 buffer2 = path_join(ret, suffix); in get_path_alloc()
415 _public_ int sd_path_lookup(uint64_t type, const char *suffix, char **path) { in sd_path_lookup() argument
420 r = get_path_alloc(type, suffix, path); in sd_path_lookup()
428 r = sd_path_lookup_strv(type, suffix, &l); in sd_path_lookup()
[all …]
/systemd-251/src/delta/
Ddelta.c370 static int should_skip_path(const char *prefix, const char *suffix) { in should_skip_path() argument
375 dirname = prefix_roota(prefix, suffix); in should_skip_path()
386 tmp = path_join(p, suffix); in should_skip_path()
399 static int process_suffix(const char *suffix, const char *onlyprefix) { in process_suffix() argument
406 assert(suffix); in process_suffix()
407 assert(!startswith(suffix, "/")); in process_suffix()
408 assert(!strstr(suffix, "//")); in process_suffix()
410 dropins = nulstr_contains(have_dropins, suffix); in process_suffix()
423 if (should_skip_path(p, suffix) > 0) in process_suffix()
426 t = path_join(p, suffix); in process_suffix()
[all …]
/systemd-251/src/test/
Dtest-gpt.c21 FOREACH_STRING(suffix, "", "-verity", "-verity-sig") { in TEST()
25 joined = strjoin(prefix, architecture_to_string(a), suffix); in TEST()
37 if (streq(prefix, "root-") && streq(suffix, "")) in TEST()
39 if (streq(prefix, "root-") && streq(suffix, "-verity")) in TEST()
41 if (streq(prefix, "usr-") && streq(suffix, "")) in TEST()
43 if (streq(prefix, "usr-") && streq(suffix, "-verity")) in TEST()
Dtest-tmpfile-util.c19 const char *suffix; in test_tempfn_random_one() local
21 assert_se(suffix = startswith(s, expect)); in test_tempfn_random_one()
22 assert_se(in_charset(suffix, HEXDIGITS)); in test_tempfn_random_one()
23 assert_se(strlen(suffix) == 16); in test_tempfn_random_one()
62 const char *suffix; in test_tempfn_xxxxxx_one() local
64 assert_se(suffix = startswith(s, expect)); in test_tempfn_xxxxxx_one()
65 assert_se(streq(suffix, "XXXXXX")); in test_tempfn_xxxxxx_one()
/systemd-251/src/shared/
Dimport-util.h18 int import_url_change_suffix(const char *url, size_t n_drop_components, const char *suffix, char **…
20 static inline int import_url_change_last_component(const char *url, const char *suffix, char **ret)… in import_url_change_last_component() argument
21 return import_url_change_suffix(url, 1, suffix, ret); in import_url_change_last_component()
24 static inline int import_url_append_component(const char *url, const char *suffix, char **ret) { in import_url_append_component() argument
25 return import_url_change_suffix(url, 0, suffix, ret); in import_url_append_component()
Dblockdev-util.h10 #define SYS_BLOCK_PATH_MAX(suffix) \ argument
11 …RLEN("/sys/dev/block/") + DECIMAL_STR_MAX(dev_t) + 1 + DECIMAL_STR_MAX(dev_t) + strlen_ptr(suffix))
12 #define xsprintf_sys_block_path(buf, suffix, devno) \ argument
13 xsprintf(buf, "/sys/dev/block/%u:%u%s", major(devno), minor(devno), strempty(suffix))
Ddropin.c131 const char *suffix, in unit_file_find_dirs() argument
144 assert(suffix); in unit_file_find_dirs()
146 path = strjoina(unit_path, "/", name, suffix); in unit_file_find_dirs()
161 … r = unit_file_find_dirs(original_root, unit_path_cache, unit_path, template, suffix, dirs); in unit_file_find_dirs()
220 return unit_file_find_dirs(original_root, unit_path_cache, unit_path, built, suffix, dirs); in unit_file_find_dirs()
Dimport-util.c81 const char *suffix, in import_url_change_suffix() argument
120 s = new(char, (e - url) + 1 + strlen_ptr(suffix) + 1); in import_url_change_suffix()
124 strcpy(stpcpy(mempcpy(s, url, e - url), "/"), strempty(suffix)); in import_url_change_suffix()
/systemd-251/src/import/
Dpull-common.c36 const char *suffix, in pull_find_old_etags() argument
86 if (suffix) { in pull_find_old_etags()
87 b = endswith(de->d_name, suffix); in pull_find_old_etags()
128 …rl, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret) { in pull_make_path() argument
149 strempty(escaped_etag), strempty(suffix)); in pull_make_path()
167 strempty(escaped_etag), strempty(suffix)); in pull_make_path()
180 const char *suffix, in pull_make_auxiliary_job() argument
205 q = strjoina(ll, suffix); in pull_make_auxiliary_job()
Dpull-common.h27 …(const char *url, const char *root, int dt, const char *prefix, const char *suffix, char ***etags);
29 …url, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret);
31 …r *url, int (*strip_suffixes)(const char *name, char **ret), const char *suffix, ImportVerify veri…
Dpull-raw.c290 const char *suffix, in raw_pull_determine_path() argument
302 … r = pull_make_path(i->raw_job->url, i->raw_job->etag, i->image_root, ".raw-", suffix, field); in raw_pull_determine_path()
311 const char *suffix, in raw_pull_copy_auxiliary_file() argument
318 assert(suffix); in raw_pull_copy_auxiliary_file()
321 r = raw_pull_determine_path(i, suffix, path); in raw_pull_copy_auxiliary_file()
325 local = strjoina(i->image_root, "/", i->local, suffix); in raw_pull_copy_auxiliary_file()
467 const char *suffix, in raw_pull_rename_auxiliary_file() argument
477 assert(suffix); in raw_pull_rename_auxiliary_file()
482 r = raw_pull_determine_path(i, suffix, path); in raw_pull_rename_auxiliary_file()
/systemd-251/shell-completion/zsh/
D_systemd-path8 '--suffix=[Append a suffix to the paths]' \

1234