/systemd-251/src/basic/ |
D | percent-util.c | 11 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()
|
D | cgroup-util.c | 766 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()
|
D | locale-util.c | 36 e = endswith(name, ".utf8"); in normalize_locale() 217 if (endswith(*a, "UTF-8") || in get_locales()
|
D | path-util.c | 560 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()
|
D | unit-name.c | 440 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()
|
D | dirent-util.c | 65 return endswith(de->d_name, suffix); in dirent_is_file_with_suffix()
|
D | chase-symlinks.c | 189 append_trail_slash = endswith(buffer, "/") || endswith(buffer, "/."); in chase_symlinks()
|
/systemd-251/src/shared/ |
D | import-util.c | 141 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()
|
D | verb-log-control.c | 12 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()
|
D | pretty-print.c | 239 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()
|
D | kbd-util.c | 43 const char *e = endswith(de->d_name, ".map") ?: endswith(de->d_name, ".map.gz"); in keymap_recurse_dir_callback()
|
D | web-util.c | 14 if (!endswith(etag, "\"")) in http_etag_is_valid()
|
D | bus-wait-for-jobs.c | 149 if (!endswith(d->name, ".service")) in bus_job_get_service_result() 255 if (d->name && endswith(d->name, ".service")) { in check_wait_response()
|
D | bus-print-properties.c | 107 if (endswith(name, "Timestamp") || in bus_print_property() 158 (endswith(name, "NSec") && u == UINT64_MAX)) in bus_print_property()
|
/systemd-251/src/nspawn/ |
D | nspawn-util.c | 43 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/ |
D | test-sd-path.c | 25 assert_se(endswith(s, "/suffix")); in TEST() 50 assert_se(endswith(*item, "/suffix")); in TEST()
|
D | test-tmpfiles.c | 35 assert_se(endswith(ans, " (deleted)")); in TEST() 45 assert_se(endswith(ans2, " (deleted)")); in TEST()
|
D | test-string-util.c | 448 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()
|
D | test-escape.c | 45 assert_se(endswith(t, "...")); in test_xescape_full_one() 56 assert_se(endswith(q, ".")); in test_xescape_full_one()
|
/systemd-251/src/import/ |
D | export.c | 34 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()
|
D | pull-common.c | 87 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/ |
D | make-directive-index.py | 62 if name.text.endswith('*'): 69 if text.endswith('/'):
|
/systemd-251/src/delta/ |
D | delta.c | 201 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/ |
D | journal-vacuum.c | 163 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/ |
D | rule-syntax-check.py | 39 if line.endswith('\\\n'):
|