Searched refs:basename (Results 1 - 25 of 39) sorted by relevance

12

/systemd/src/test/
H A Dtest-install.c56 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(p->path), &s);
189 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
197 r = unit_file_disable(UNIT_FILE_SYSTEM, false, NULL, STRV_MAKE(basename(files2[0])), &changes, &n_changes);
203 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
216 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
224 r = unit_file_disable(UNIT_FILE_SYSTEM, false, NULL, STRV_MAKE(basename(files2[0])), &changes, &n_changes);
230 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
243 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
257 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
265 r = unit_file_disable(UNIT_FILE_SYSTEM, false, NULL, STRV_MAKE(basename(files
[all...]
H A Dtest-path-util.c75 assert_se(streq(basename("./aa/bb/../file.da."), "file.da."));
76 assert_se(streq(basename("/aa///.file"), ".file"));
77 assert_se(streq(basename("/aa///file..."), "file..."));
78 assert_se(streq(basename("file.../"), ""));
H A Dtest-util.c1287 r = search_and_fopen(basename(name), "r", NULL, dirs, &f);
1295 r = search_and_fopen(basename(name), "r", "/", dirs, &f);
1307 r = search_and_fopen(basename(name), "r", NULL, dirs, &f);
1323 r = search_and_fopen_nulstr(basename(name), "r", NULL, dirs, &f);
1339 r = search_and_fopen_nulstr(basename(name), "r", NULL, dirs, &f);
/systemd/src/basic/
H A Dconf-files.c67 r = hashmap_put(h, basename(p), p);
88 return strcmp(basename(s1), basename(s2));
H A Dlockfile-util.c108 fn = basename(p);
H A Dmount-util.c237 return fd_is_mount_point(fd, basename(t), flags);
H A Dfs-util.c192 value = basename(link);
H A Dpath-util.c29 * undefine basename() since libgen.h defines it as a macro to the
30 * POSIX version which is really broken. We prefer GNU basename(). */
32 #undef basename macro
H A Dutil.c200 name = basename(dirs[0]);
/systemd/src/delta/
H A Ddelta.c294 unit, draw_special_char(DRAW_ARROW), basename(p), draw_special_char(DRAW_ARROW), p);
295 k = hashmap_put(h, basename(p), p);
345 log_debug("Adding at top: %s %s %s", basename(p), draw_special_char(DRAW_ARROW), p);
346 k = hashmap_put(top, basename(p), p);
356 log_debug("Adding at bottom: %s %s %s", basename(p), draw_special_char(DRAW_ARROW), p);
357 free(hashmap_remove(bottom, basename(p)));
358 k = hashmap_put(bottom, basename(p), p);
/systemd/src/network/
H A Dnetworkd-network-bus.c84 networkname = basename(name);
/systemd/tools/
H A Dmake-man-rules.py72 return 'man/{}'.format(os.path.basename(file))
/systemd/src/import/
H A Dimport.c72 local = basename(path);
167 local = basename(path);
H A Dexport-raw.c23 * undefine basename() since libgen.h defines it as a macro to the POSIX
24 * version which is really broken. We prefer GNU basename(). */
26 #undef basename macro
/systemd/src/shared/
H A Dcgroup-show.c168 printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_BRANCH), cg_unescape(basename(last)));
191 printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_RIGHT), cg_unescape(basename(last)));
H A Dinstall.c436 set_contains(remove_symlinks_to, basename(dest)) ||
599 found_dest = streq(basename(dest), name);
758 name = basename(path);
1005 bn = basename(np);
1129 /* If the basename doesn't match, the caller should add a
1132 if (!streq(basename(i->symlink_target), i->name))
1186 bn = basename(i->symlink_target);
1658 fn = basename(*i);
1693 path = path_make_absolute(basename(*i), config_path);
1890 /* First, we invoke the disable command with only the basename
[all...]
H A Dutmp-wtmp.c231 strncpy(store.ut_line, basename(line), sizeof(store.ut_line));
/systemd/test/
H A Dsysv-generator-test.py98 results[os.path.basename(service)] = cp
155 self.assertEqual(os.path.basename(unit_file), unit)
/systemd/src/analyze/
H A Danalyze-verify.c48 name = basename(abspath);
/systemd/src/machine/
H A Dmachine-dbus.c25 * undefine basename() since libgen.h defines it as a macro to the POSIX
26 * version which is really broken. We prefer GNU basename(). */
28 #undef basename macro
1030 mount_inside = strjoina("/run/systemd/nspawn/incoming/", basename(mount_outside));
1182 host_basename = basename(host_path);
1186 container_basename = basename(container_path);
/systemd/src/locale/
H A Dlocalectl.c299 p = strdup(basename(fpath));
/systemd/src/login/
H A Dlogind-inhibit.c53 i->id = basename(i->state_file);
H A Dlogind-seat.c56 s->id = basename(s->state_file);
/systemd/src/sysv-generator/
H A Dsysv-generator.c361 r = sysv_translate_facility(word, basename(s->path), &m);
427 r = sysv_translate_facility(word, basename(s->path), &m);
/systemd/src/core/
H A Dexecute.c1020 p = basename(path);
1557 r = setup_output(unit, context, params, STDOUT_FILENO, socket_fd, basename(command->path), uid, gid);
1563 r = setup_output(unit, context, params, STDERR_FILENO, socket_fd, basename(command->path), uid, gid);

Completed in 80 milliseconds

12