37 code results in systemd/systemd
src/basic/escape.c
C
Showing the top two matches
Last indexed Jun 26, 2018
src/basic/path-util.h
C
Showing the top two matches
Last indexed Jul 26, 2018
| 96 | * directory. Excludes the specified directory itself */ |
| 97 | #define PATH_FOREACH_PREFIX(prefix, path) \ |
| 98 | for (char *_slash = ({ path_simplify(strcpy(prefix, path), false); streq(prefix, "/") ? NULL : strrchr(prefix, '/'); }); _slash && ((*_slash = 0), true); _slash = strrchr((prefix), '/')) |
| … | |
| 102 | for (char *_slash = ({ path_simplify(strcpy(prefix, path), false); if (streq(prefix, "/")) prefix[0] = 0; strrchr(prefix, 0); }); _slash && ((*_slash = 0), true); _slash = strrchr((prefix), '/')) |
src/basic/unit-name.c
C
Showing the top two matches
Last indexed Jun 26, 2018
| 230 | return -ENOMEM; |
| 231 | |
| 232 | strcpy(mempcpy(s, n, a), suffix); |
| 233 | *ret = s; |
| 234 | |
| 235 | return 0; |
| 236 | } |
| 237 | |
| 238 | int unit_name_build(const char *prefix, const char *instance, const char *suffix, char **ret) { |
| … | |
| 472 | return -ENOMEM; |
| 473 | |
| 474 | strcpy(mempcpy(mempcpy(s, f, a + 1), i, b), e); |
| 475 | |
| 476 | *ret = s; |
| 477 | return 0; |
| 478 | } |
| 479 | |
| 480 | int unit_name_template(const char *f, char **ret) { |
src/basic/cap-list.c
C
Showing the top match
Last indexed Jun 26, 2018
src/shared/import-util.c
C
Showing the top match
Last indexed Jun 26, 2018
src/shared/firewall-util.c
C
Showing the top two matches
Last indexed Jun 26, 2018
src/nss-systemd/nss-systemd.c
C
Showing the top two matches
Last indexed Jul 25, 2018
src/basic/khash.c
C
Showing the top match
Last indexed Jun 26, 2018
src/basic/time-util.c
C
Showing the top two matches
Last indexed Jul 20, 2018
src/basic/path-util.c
C
Showing the top two matches
Last indexed Aug 3, 2018