Searched refs:prefix (Results 1 - 25 of 102) sorted by relevance

12345

/systemd/src/login/
H A Dsysfs-show.h22 int show_sysfs(const char *seat, const char *prefix, unsigned columns);
H A Dsysfs-show.c39 const char *prefix,
45 assert(prefix);
113 printf("%s%s%s\n", prefix, draw_special_char(lookahead ? DRAW_TREE_BRANCH : DRAW_TREE_RIGHT), k);
127 printf("%s%s%s\n", prefix, lookahead ? draw_special_char(DRAW_TREE_VERTICAL) : " ", k);
133 p = strappend(prefix, lookahead ? draw_special_char(DRAW_TREE_VERTICAL) : " ");
144 int show_sysfs(const char *seat, const char *prefix, unsigned n_columns) { argument
153 if (!prefix)
154 prefix = "";
184 show_sysfs_one(udev, seat, &first, "/", prefix, n_columns);
186 printf("%s%s%s\n", prefix, draw_special_cha
34 show_sysfs_one( struct udev *udev, const char *seat, struct udev_list_entry **item, const char *sub, const char *prefix, unsigned n_columns) argument
[all...]
/systemd/src/udev/
H A Dudevadm-util.h24 const char *prefix);
H A Dudevadm-util.c23 const char *prefix) {
28 if (prefix && !startswith(id, prefix))
29 id = strjoina(prefix, id);
21 find_device(struct udev *udev, const char *id, const char *prefix) argument
H A Dudev-builtin-hwdb.c36 const char *prefix, const char *modalias,
45 if (prefix) {
46 lookup = strjoin(prefix, modalias, NULL);
84 const char *subsystem, const char *prefix,
122 r = udev_builtin_hwdb_lookup(dev, prefix, modalias, filter, test);
135 { "lookup-prefix", required_argument, NULL, 'p' },
141 const char *prefix = NULL; local
168 prefix = optarg;
175 if (udev_builtin_hwdb_lookup(dev, prefix, argv[optind], filter, test) > 0)
187 if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filte
35 udev_builtin_hwdb_lookup(struct udev_device *dev, const char *prefix, const char *modalias, const char *filter, bool test) argument
83 udev_builtin_hwdb_search(struct udev_device *dev, struct udev_device *srcdev, const char *subsystem, const char *prefix, const char *filter, bool test) argument
[all...]
/systemd/src/shared/
H A Ddev-setup.h24 int dev_setup(const char *prefix, uid_t uid, gid_t gid);
H A Dcgroup-show.h28 int show_cgroup_by_path(const char *path, const char *prefix, unsigned columns, bool kernel_threads, OutputFlags flags);
29 int show_cgroup(const char *controller, const char *path, const char *prefix, unsigned columns, bool kernel_threads, OutputFlags flags);
31 int show_cgroup_and_extra_by_spec(const char *spec, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags);
32 int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags);
H A Dcgroup-show.c50 static void show_pid_array(pid_t pids[], unsigned n_pids, const char *prefix, unsigned n_columns, bool extra, bool more, bool kernel_threads, OutputFlags flags) { argument
81 printf("%s%s ", prefix, draw_special_char(DRAW_TRIANGULAR_BULLET));
83 printf("%s%s", prefix, draw_special_char(((more || i < n_pids-1) ? DRAW_TREE_BRANCH : DRAW_TREE_RIGHT)));
90 static int show_cgroup_one_by_path(const char *path, const char *prefix, unsigned n_columns, bool more, bool kernel_threads, OutputFlags flags) { argument
123 show_pid_array(pids, n, prefix, n_columns, false, more, kernel_threads, flags);
128 int show_cgroup_by_path(const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, OutputFlags flags) { argument
140 if (!prefix)
141 prefix = "";
163 show_cgroup_one_by_path(path, prefix, n_columns, true, kernel_threads, flags);
168 printf("%s%s%s\n", prefix, draw_special_cha
205 show_cgroup(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, OutputFlags flags) argument
218 show_extra_pids(const char *controller, const char *path, const char *prefix, unsigned n_columns, const pid_t pids[], unsigned n_pids, OutputFlags flags) argument
255 show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags) argument
267 show_cgroup_and_extra_by_spec(const char *spec, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags) argument
[all...]
H A Ddev-setup.c32 int dev_setup(const char *prefix, uid_t uid, gid_t gid) { argument
54 if (prefix) {
55 link_name = prefix_root(prefix, k);
/systemd/src/core/
H A Dkill.c33 void kill_context_dump(KillContext *c, FILE *f, const char *prefix) { argument
36 if (!prefix)
37 prefix = "";
44 prefix, kill_mode_to_string(c->kill_mode),
45 prefix, signal_to_string(c->kill_signal),
46 prefix, yes_no(c->send_sigkill),
47 prefix, yes_no(c->send_sighup));
H A Ddbus-execute.h26 #define BUS_EXEC_STATUS_VTABLE(prefix, offset, flags) \
27 BUS_PROPERTY_DUAL_TIMESTAMP(prefix "StartTimestamp", (offset) + offsetof(ExecStatus, start_timestamp), flags), \
28 BUS_PROPERTY_DUAL_TIMESTAMP(prefix "ExitTimestamp", (offset) + offsetof(ExecStatus, exit_timestamp), flags), \
29 SD_BUS_PROPERTY(prefix "PID", "u", bus_property_get_pid, (offset) + offsetof(ExecStatus, pid), flags), \
30 SD_BUS_PROPERTY(prefix "Code", "i", bus_property_get_int, (offset) + offsetof(ExecStatus, code), flags), \
31 SD_BUS_PROPERTY(prefix "Status", "i", bus_property_get_int, (offset) + offsetof(ExecStatus, status), flags)
H A Dkill.h59 void kill_context_dump(KillContext *c, FILE *f, const char *prefix);
/systemd/src/basic/
H A Dpath-util.h41 char* path_make_absolute(const char *p, const char *prefix);
45 char* path_startswith(const char *path, const char *prefix) _pure_;
52 char** path_strv_resolve(char **l, const char *prefix);
53 char** path_strv_resolve_uniq(char **l, const char *prefix);
65 #define PATH_FOREACH_PREFIX(prefix, path) \
66 for (char *_slash = ({ path_kill_slashes(strcpy(prefix, path)); streq(prefix, "/") ? NULL : strrchr(prefix, '/'); }); _slash && ((*_slash = 0), true); _slash = strrchr((prefix), '/'))
69 #define PATH_FOREACH_PREFIX_MORE(prefix, pat
[all...]
H A Dmkdir.c57 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) { argument
63 if (prefix && !path_startswith(path, prefix))
97 if (prefix && path_startswith(prefix, t))
110 int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) { argument
115 r = mkdir_parents_internal(prefix, path, mode, _mkdir);
H A Dmkdir.h37 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir);
38 int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir);
H A Dpath-util.c75 char *path_make_absolute(const char *p, const char *prefix) { argument
79 * the prefix, if specified and necessary */
81 if (path_is_absolute(p) || !prefix)
84 return strjoin(prefix, "/", p, NULL);
221 char **path_strv_resolve(char **l, const char *prefix) { argument
242 if (prefix) {
244 t = strappend(prefix, orig);
256 if (prefix) {
269 } else if (prefix) {
273 x = path_startswith(u, prefix);
307 path_strv_resolve_uniq(char **l, const char *prefix) argument
353 path_startswith(const char *path, const char *prefix) argument
[all...]
H A Dmount-util.h38 int bind_remount_recursive(const char *prefix, bool ro);
/systemd/src/libsystemd/sd-bus/
H A Dbus-dump.c135 _cleanup_free_ char *prefix = NULL; local
137 prefix = indent(0, flags);
138 if (!prefix)
141 fprintf(f, "%sMESSAGE \"%s\" {\n", prefix, strempty(m->root_container.signature));
145 _cleanup_free_ char *prefix = NULL; local
175 prefix = indent(level, flags);
176 if (!prefix)
179 fprintf(f, "%s};\n", prefix);
183 prefix = indent(level, flags);
184 if (!prefix)
272 _cleanup_free_ char *prefix = NULL; local
338 const char *prefix, *color, *suffix, *s; local
[all...]
H A Dtest-bus-signature.c26 char prefix[256]; local
139 OBJECT_PATH_FOREACH_PREFIX(prefix, "/") {
140 log_info("<%s>", prefix);
145 OBJECT_PATH_FOREACH_PREFIX(prefix, "/xxx") {
146 log_info("<%s>", prefix);
147 assert_se(streq(prefix, "/"));
154 OBJECT_PATH_FOREACH_PREFIX(prefix, "/xxx/yyy/zzz") {
155 log_info("<%s>", prefix);
156 assert_se(r != 0 || streq(prefix, "/xxx/yyy"));
157 assert_se(r != 1 || streq(prefix, "/xx
[all...]
H A Dbus-introspect.h37 int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefix);
H A Dbusctl-introspect.h32 int parse_xml_introspect(const char *prefix, const char *xml, const XMLIntrospectOps *ops, void *userdata);
/systemd/src/libsystemd-network/
H A Dsd-ndisc.c95 static NDiscPrefix *ndisc_prefix_unref(NDiscPrefix *prefix) { argument
97 if (!prefix)
100 assert(prefix->n_ref > 0);
101 prefix->n_ref--;
103 if (prefix->n_ref > 0)
106 if (prefix->nd)
107 LIST_REMOVE(prefixes, prefix->nd->prefixes, prefix);
109 free(prefix);
115 NDiscPrefix *prefix; local
224 NDiscPrefix *prefix, *p; local
280 prefix_match(const struct in6_addr *prefix, uint8_t prefixlen, const struct in6_addr *addr, uint8_t addr_prefixlen) argument
302 NDiscPrefix *prefix, *p; local
329 NDiscPrefix *prefix; local
[all...]
/systemd/src/import/
H A Dpull-common.h29 int pull_find_old_etags(const char *url, const char *root, int dt, const char *prefix, const char *suffix, char ***etags);
31 int pull_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret);
/systemd/test/TEST-04-JOURNAL/
H A Dtest-journal.sh12 printf $'\n\n\n' | systemd-cat -t "$ID" --level-prefix false
19 printf $'<5>\n<6>\n<7>\n' | systemd-cat -t "$ID" --level-prefix true
27 printf $'<5>Trailing spaces \t \n' | systemd-cat -t "$ID" --level-prefix true
34 printf $'Trailing spaces \t \n' | systemd-cat -t "$ID" --level-prefix false
42 printf $'<5> \t Leading spaces\n' | systemd-cat -t "$ID" --level-prefix true
49 printf $' \t Leading spaces\n' | systemd-cat -t "$ID" --level-prefix false
/systemd/src/journal/
H A Dcompress.h59 const void *prefix, size_t prefix_len,
63 const void *prefix, size_t prefix_len,
68 const void *prefix, size_t prefix_len,

Completed in 23 milliseconds

12345