Searched defs:prefix (Results 1 - 25 of 68) sorted by relevance

123

/systemd/src/libsystemd/sd-bus/
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.c58 int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefix) { argument
62 assert(prefix);
67 e = object_path_startswith(node, prefix);
H A Dbusctl-introspect.c179 static int parse_xml_node(Context *context, const char *prefix, unsigned n_depth) { argument
204 const char *np = prefix;
208 assert(prefix);
285 if (endswith(prefix, "/"))
286 node_path = strappend(prefix, name);
288 node_path = strjoin(prefix, "/", name, NULL);
741 int parse_xml_introspect(const char *prefix, const char *xml, const XMLIntrospectOps *ops, void *userdata) { argument
750 assert(prefix);
771 r = parse_xml_node(&context, prefix, 0);
/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 Dslice.c167 static void slice_dump(Unit *u, FILE *f, const char *prefix) { argument
175 prefix, slice_state_to_string(t->state));
177 cgroup_context_dump(&t->cgroup_context, f, prefix);
H A Dtarget.c114 static void target_dump(Unit *u, FILE *f, const char *prefix) { argument
122 prefix, target_state_to_string(t->state));
H A Dscope.c205 static void scope_dump(Unit *u, FILE *f, const char *prefix) { argument
214 prefix, scope_state_to_string(s->state),
215 prefix, scope_result_to_string(s->result));
217 cgroup_context_dump(&s->cgroup_context, f, prefix);
218 kill_context_dump(&s->kill_context, f, prefix);
/systemd/src/udev/
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...]
H A Dudevadm-info.c155 static int stat_device(const char *name, bool export, const char *prefix) { argument
162 if (prefix == NULL)
163 prefix = "INFO_";
166 prefix, major(statbuf.st_dev),
167 prefix, minor(statbuf.st_dev));
277 " -P --export-prefix Export the key name with a prefix\n"
302 { "export-prefix", required_argument, NULL, 'P' },
447 const char *prefix = export_prefix; local
449 if (prefix
[all...]
/systemd/src/shared/
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);
H A Ddropin.c48 char prefix[DECIMAL_STR_MAX(unsigned)]; local
55 sprintf(prefix, "%u", level);
68 q = strjoin(p, "/", prefix, "-", b, ".conf", NULL);
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 Dcondition.c462 void condition_dump(Condition *c, FILE *f, const char *prefix, const char *(*to_string)(ConditionType t)) { argument
466 if (!prefix)
467 prefix = "";
471 prefix,
479 void condition_dump_list(Condition *first, FILE *f, const char *prefix, const char *(*to_string)(ConditionType t)) { argument
483 condition_dump(c, f, prefix, to_string);
/systemd/src/basic/
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 Dstring-util.h68 static inline char *startswith(const char *s, const char *prefix) { argument
71 l = strlen(prefix);
72 if (strncmp(s, prefix, l) == 0)
78 static inline char *startswith_no_case(const char *s, const char *prefix) { argument
81 l = strlen(prefix);
82 if (strncasecmp(s, prefix, l) == 0)
H A Descape.c307 int cunescape_length_with_prefix(const char *s, size_t length, const char *prefix, UnescapeFlags flags, char **ret) { argument
317 pl = prefix ? strlen(prefix) : 0;
323 if (prefix)
324 memcpy(r, prefix, pl);
H A Dmount-util.c240 int umount_recursive(const char *prefix, int flags) { argument
287 if (!path_startswith(p, prefix))
315 int bind_remount_recursive(const char *prefix, bool ro) { argument
334 cleaned = strdup(prefix);
422 /* The prefix directory itself is not yet a
431 if (mount(NULL, prefix, NULL, orig_flags|MS_BIND|MS_REMOUNT|(ro ? MS_RDONLY : 0), NULL) < 0)
H A Dselinux-util.c83 int mac_selinux_init(const char *prefix) { argument
99 if (prefix) {
101 { .type = SELABEL_OPT_SUBSET, .value = prefix },
H A Dhexdecoct.c554 static int base64_append_width(char **prefix, int plen, argument
571 t = realloc(*prefix, plen + 1 + slen + (indent + width + 1) * lines);
592 *prefix = t;
596 int base64_append(char **prefix, int plen, argument
601 return base64_append_width(prefix, plen, "\n", indent, p, l, width - indent - 1);
604 return base64_append_width(prefix, plen, NULL, plen, p, l, width - plen - 1);
/systemd/src/login/
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/network/
H A Dnetworkd-ndisc.c51 static void ndisc_prefix_autonomous_handler(sd_ndisc *nd, const struct in6_addr *prefix, unsigned prefixlen, argument
74 address->in_addr.in6 = *prefix;
104 static void ndisc_prefix_onlink_handler(sd_ndisc *nd, const struct in6_addr *prefix, unsigned prefixlen, unsigned lifetime, void *userdata) { argument
128 route->dst.in6 = *prefix;
134 log_link_warning_errno(link, r, "Could not set prefix route: %m");
/systemd/src/import/
H A Dpull-common.c49 const char *prefix,
87 if (prefix) {
88 a = startswith(de->d_name, prefix);
173 int pull_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret) { argument
193 path = strjoin(image_root, "/", strempty(prefix), escaped_url, escaped_etag ? "." : "",
211 path = strjoin(image_root, "/", strempty(prefix), hash, escaped_etag ? "." : "",
45 pull_find_old_etags( const char *url, const char *image_root, int dt, const char *prefix, const char *suffix, char ***etags) argument
/systemd/src/journal/
H A Dcompress.c244 const void *prefix, size_t prefix_len,
252 * mentioned prefix. The byte extra needs to follow the
253 * prefix */
259 assert(prefix);
282 return memcmp(*buffer, prefix, prefix_len) == 0 &&
303 const void *prefix, size_t prefix_len,
307 * mentioned prefix. The byte extra needs to follow the
308 * prefix */
317 assert(prefix);
340 return memcmp(*buffer, prefix, prefix_le
242 decompress_startswith_xz(const void *src, uint64_t src_size, void **buffer, size_t *buffer_size, const void *prefix, size_t prefix_len, uint8_t extra) argument
301 decompress_startswith_lz4(const void *src, uint64_t src_size, void **buffer, size_t *buffer_size, const void *prefix, size_t prefix_len, uint8_t extra) argument
350 decompress_startswith(int compression, const void *src, uint64_t src_size, void **buffer, size_t *buffer_size, const void *prefix, size_t prefix_len, uint8_t extra) argument
[all...]
H A Djournal-internal.h86 char *prefix; member in struct:sd_journal

Completed in 4904 milliseconds

123