Home
last modified time | relevance | path

Searched refs:endswith (Results 1 – 25 of 92) sorted by relevance

1234

/systemd-251/src/basic/
Dpercent-util.c11 pc = endswith(p, symbol); in parse_parts_value_whole()
29 pc = endswith(p, symbol); in parse_parts_value_with_tenths_place()
61 pc = endswith(p, symbol); in parse_parts_value_with_hundredths_place()
118 pm = endswith(p, "‰"); in parse_permille_unbounded()
138 pm = endswith(p, "‱"); in parse_permyriad_unbounded()
142 pm = endswith(p, "‰"); in parse_permyriad_unbounded()
Dcgroup-util.c766 e = endswith(path, " (deleted)"); in cg_pid_get_path()
1034 e = endswith(p, "/" SPECIAL_INIT_SCOPE); in cg_get_root_path()
1036 e = endswith(p, "/" SPECIAL_SYSTEM_SLICE); /* legacy */ in cg_get_root_path()
1038 e = endswith(p, "/system"); /* even more legacy */ in cg_get_root_path()
1185 if (endswith(unit, ".slice")) in cg_path_get_unit()
1381 end = endswith(start, ".scope"); in cg_path_get_session()
1427 end = endswith(start, ".slice"); in cg_path_get_owner_uid()
1636 if (!endswith(unit, ".slice")) in cg_slice_to_path()
Dlocale-util.c36 e = endswith(name, ".utf8"); in normalize_locale()
217 if (endswith(*a, "UTF-8") || in get_locales()
Dpath-util.c560 slash = endswith(p, "/"); in path_extend_internal()
1148 if (streq(p, ".") || startswith(p, "./") || endswith(p, "/.") || strstr(p, "/./")) in path_is_normalized()
1192 endswith(filename, "~")) in hidden_or_backup_file()
1249 if (endswith(path, "/")) /* can't be a device node if it ends in a slash */ in valid_device_node_path()
Dunit-name.c440 if (startswith(w, "/") || endswith(w, "/")) in unit_name_path_unescape()
833 assert_se(e = endswith(slice, ".slice")); in slice_build_subslice()
856 e = endswith(name, ".slice"); in slice_name_is_valid()
Ddirent-util.c65 return endswith(de->d_name, suffix); in dirent_is_file_with_suffix()
Dchase-symlinks.c189 append_trail_slash = endswith(buffer, "/") || endswith(buffer, "/."); in chase_symlinks()
/systemd-251/src/shared/
Dimport-util.c141 e = endswith(name, ".tar"); in tar_strip_suffixes()
143 e = endswith(name, ".tar.xz"); in tar_strip_suffixes()
145 e = endswith(name, ".tar.gz"); in tar_strip_suffixes()
147 e = endswith(name, ".tar.bz2"); in tar_strip_suffixes()
149 e = endswith(name, ".tgz"); in tar_strip_suffixes()
188 e = endswith(q, sfx); in raw_strip_suffixes()
Dverb-log-control.c12 bool level = endswith(verb, "log-level"); in verb_log_control_common()
21 assert(endswith(verb, "log-level") || endswith(verb, "log-target")); in verb_log_control_common()
Dpretty-print.c239 if (path_startswith(n, "systemd") && endswith(n, ".conf")) in guess_type()
244 if (endswith(n, ".d")) in guess_type()
298 assert(endswith(*prefix, "/")); in conf_files_cat()
Dkbd-util.c43 const char *e = endswith(de->d_name, ".map") ?: endswith(de->d_name, ".map.gz"); in keymap_recurse_dir_callback()
Dweb-util.c14 if (!endswith(etag, "\"")) in http_etag_is_valid()
Dbus-wait-for-jobs.c149 if (!endswith(d->name, ".service")) in bus_job_get_service_result()
255 if (d->name && endswith(d->name, ".service")) { in check_wait_response()
Dbus-print-properties.c107 if (endswith(name, "Timestamp") || in bus_print_property()
158 (endswith(name, "NSec") && u == UINT64_MAX)) in bus_print_property()
/systemd-251/src/nspawn/
Dnspawn-util.c43 assert_se(c = endswith(path, "*.so")); in systemd_installation_has_version()
54 t2 = endswith(t, ".so"); in systemd_installation_has_version()
/systemd-251/src/test/
Dtest-sd-path.c25 assert_se(endswith(s, "/suffix")); in TEST()
50 assert_se(endswith(*item, "/suffix")); in TEST()
Dtest-tmpfiles.c35 assert_se(endswith(ans, " (deleted)")); in TEST()
45 assert_se(endswith(ans2, " (deleted)")); in TEST()
Dtest-string-util.c448 TEST(endswith) { in TEST() argument
449 assert_se(endswith("foobar", "bar")); in TEST()
450 assert_se(endswith("foobar", "")); in TEST()
451 assert_se(endswith("foobar", "foobar")); in TEST()
452 assert_se(endswith("", "")); in TEST()
454 assert_se(!endswith("foobar", "foo")); in TEST()
455 assert_se(!endswith("foobar", "foobarfoofoo")); in TEST()
Dtest-escape.c45 assert_se(endswith(t, "...")); in test_xescape_full_one()
56 assert_se(endswith(q, ".")); in test_xescape_full_one()
/systemd-251/src/import/
Dexport.c34 if (endswith(p, ".xz")) in determine_compression_from_filename()
36 else if (endswith(p, ".gz")) in determine_compression_from_filename()
38 else if (endswith(p, ".bz2")) in determine_compression_from_filename()
Dpull-common.c87 b = endswith(de->d_name, suffix); in pull_find_old_etags()
230 return streq(fn, "SHA256SUMS") || endswith(fn, ".sha256"); in is_checksum_file()
240 return streq(fn, "SHA256SUMS.gpg") || endswith(fn, ".sha256"); in is_signature_file()
620 if (endswith(last, ".sha256")) { in verification_style_from_url()
/systemd-251/tools/
Dmake-directive-index.py62 if name.text.endswith('*'):
69 if text.endswith('/'):
/systemd-251/src/delta/
Ddelta.c201 assert(!endswith(drop, "/")); in enumerate_dir_d()
230 if (!endswith(*file, ".conf")) in enumerate_dir_d()
312 if (dropins && de->d_type == DT_DIR && endswith(de->d_name, ".d")) { in enumerate_dir()
/systemd-251/src/libsystemd/sd-journal/
Djournal-vacuum.c163 if (endswith(de->d_name, ".journal")) { in journal_directory_vacuum()
199 } else if (endswith(de->d_name, ".journal~")) { in journal_directory_vacuum()
/systemd-251/test/
Drule-syntax-check.py39 if line.endswith('\\\n'):

1234