Home
last modified time | relevance | path

Searched refs:slash (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/libsystemd/sd-bus/
Dbus-internal.c12 bool slash; in object_path_is_valid() local
23 for (slash = true, q = p+1; *q; q++) in object_path_is_valid()
25 if (slash) in object_path_is_valid()
28 slash = true; in object_path_is_valid()
41 slash = false; in object_path_is_valid()
44 if (slash) in object_path_is_valid()
/systemd-251/src/basic/
Dmountpoint-util.c141 const char *slash, *copied; in filename_possibly_with_slash_suffix() local
149 slash = strchr(s, '/'); in filename_possibly_with_slash_suffix()
150 if (!slash) in filename_possibly_with_slash_suffix()
153 …if (slash - s > PATH_MAX) /* We want to allocate on the stack below, hence do a size check first */ in filename_possibly_with_slash_suffix()
156 …if (slash[strspn(slash, "/")] != 0) /* Check that the suffix consist only of one or more slashes */ in filename_possibly_with_slash_suffix()
159 copied = strndupa_safe(s, slash - s); in filename_possibly_with_slash_suffix()
Dpath-util.c498 bool slash; in path_extend_internal() local
543 slash = nx[old_sz-1] == '/'; in path_extend_internal()
546 slash = true; /* no need to generate a slash anymore */ in path_extend_internal()
556 if (!slash && p[0] != '/') in path_extend_internal()
560 slash = endswith(p, "/"); in path_extend_internal()
Dfs-util.c58 char *slash = NULL; in rmdir_parents() local
61 … r = path_find_last_component(p, /* accept_dot_dot= */ false, (const char **) &slash, NULL); in rmdir_parents()
64 if (slash == p) in rmdir_parents()
67 assert(*slash == '/'); in rmdir_parents()
68 *slash = '\0'; in rmdir_parents()
Dtime-util.c1397 bool slash = false; in verify_timezone() local
1422 if (slash) in verify_timezone()
1425 slash = true; in verify_timezone()
1427 slash = false; in verify_timezone()
1430 if (slash) in verify_timezone()
/systemd-251/src/udev/
Dudevadm-monitor.c145 const char *slash; in parse_argv() local
147 slash = strchr(optarg, '/'); in parse_argv()
148 if (slash) { in parse_argv()
149 devtype = strdup(slash + 1); in parse_argv()
153 subsystem = strndup(optarg, slash - optarg); in parse_argv()
/systemd-251/src/core/
Dpath.c47 char *slash, *oldslash = NULL; in path_spec_watch() local
73 for (slash = strchr(s->path, '/'); ; slash = strchr(slash+1, '/')) { in path_spec_watch()
78 if (slash) { in path_spec_watch()
79 cut = slash + (slash == s->path); in path_spec_watch()
145 if (slash) in path_spec_watch()
146 oldslash = slash; in path_spec_watch()
/systemd-251/src/network/
Dnetworkd-routing-policy-rule.c1111 const char *slash; in parse_fwmark_fwmask() local
1118 slash = strchr(s, '/'); in parse_fwmark_fwmask()
1119 if (slash) { in parse_fwmark_fwmask()
1120 fwmark_str = strndup(s, slash - s); in parse_fwmark_fwmask()
1130 if (slash) { in parse_fwmark_fwmask()
1131 r = safe_atou32(slash + 1, &fwmask); in parse_fwmark_fwmask()
/systemd-251/catalog/
Dsystemd.catalog.in441 string; names containing NUL bytes, control characters, colon or slash
/systemd-251/
Dmeson.build2138 # path to dlopen must include a slash
2408 # path to dlopen must include a slash
/systemd-251/hwdb.d/
D60-keyboard.hwdb731 KEYBOARD_KEY_73=slash # Slash key