Searched defs:text (Results 1 - 24 of 24) sorted by relevance

/systemd/src/basic/
H A Dreplace-var.c57 char *replace_var(const char *text, char *(*lookup)(const char *variable, void*userdata), void *userdata) { argument
62 assert(text);
65 l = strlen(text);
70 f = text;
H A Dvirt.c84 char text[13]; member in union:__anon32
102 if (streq(sig.text, cpuid_vendor_table[j].cpuid))
H A Dstring-util.c547 char *strreplace(const char *text, const char *old_string, const char *new_string) { argument
552 assert(text);
559 l = strlen(text);
564 f = text;
H A Dterminal-util.c145 int ask_char(char *ret, const char *replies, const char *text, ...) { argument
150 assert(text);
160 va_start(ap, text);
161 vprintf(text, ap);
193 int ask_string(char **ret, const char *text, ...) { argument
195 assert(text);
204 va_start(ap, text);
205 vprintf(text, ap);
251 /* Switch to text mode */
H A Dlog.c766 const char *text,
778 xsprintf(buffer, format, text, file, line, func);
786 noreturn void log_assert_failed(const char *text, const char *file, int line, const char *func) { argument
787 log_assert(LOG_CRIT, text, file, line, func, "Assertion '%s' failed at %s:%u, function %s(). Aborting.");
791 noreturn void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func) { argument
792 log_assert(LOG_CRIT, text, file, line, func, "Code should not be reached '%s' at %s:%u, function %s(). Aborting.");
796 void log_assert_failed_return(const char *text, const char *file, int line, const char *func) { argument
798 log_assert(LOG_DEBUG, text, file, line, func, "Assertion '%s' failed at %s:%u, function %s(). Ignoring.");
764 log_assert( int level, const char *text, const char *file, int line, const char *func, const char *format) argument
/systemd/src/shared/
H A Dspecifier.c41 int specifier_printf(const char *text, const Specifier table[], void *userdata, char **_ret) { argument
48 assert(text);
51 l = strlen(text);
58 for (f = text; *f; f++, l--) {
H A Dacl-util.c227 int parse_acl(const char *text, acl_t *acl_access, acl_t *acl_default, bool want_mask) { argument
234 split = strv_split(text, ",");
H A Dutmp-wtmp.c386 _cleanup_free_ char *text = NULL, *hn = NULL, *un = NULL, *stdin_tty = NULL; local
405 if (asprintf(&text,
438 q = write_to_terminal(path, text);
/systemd/src/test/
H A Dtest-capability.c57 char *text; local
62 text = cap_to_text(caps, NULL);
63 assert_se(text);
65 log_info("Capabilities:%s", text);
67 cap_free(text);
H A Dtest-copy.c66 char text[] = "boohoo\nfoo\n\tbar\n"; local
74 assert_se(write_string_file(in_fn, text, WRITE_STRING_FILE_CREATE) == 0);
79 assert_se(read(out_fd, buf, sizeof(buf)) == sizeof(text) - 1);
80 assert_se(streq(buf, text));
/systemd/src/journal/
H A Dtest-catalog.c231 _cleanup_free_ char *text = NULL; local
255 assert_se(catalog_get(database, SD_MESSAGE_COREDUMP, &text) >= 0);
256 printf(">>>%s<<<\n", text);
H A Dtest-compress-benchmark.c92 _cleanup_free_ char *text, *buf; local
97 text = make_buf(MAX_SIZE, type);
99 assert_se(text && buf);
113 r = compress(text, size, buf, size, &j);
133 assert_se(memcmp(text, buf2, size) == 0);
H A Dtest-compress.c112 log_info("/* testing decompress_startswith with %s on %.20s text*/",
246 const char text[] = local
247 "text\0foofoofoofoo AAAA aaaaaaaaa ghost busters barbarbar FFF"
263 text, sizeof(text), false);
269 text, sizeof(text), false);
285 text, sizeof(text), false);
291 text, sizeo
[all...]
H A Dtest-journal-interleaving.c39 noreturn static void log_assert_errno(const char *text, int eno, const char *file, int line, const char *func) { argument
42 text, file, line, func, strerror(eno));
H A Dcatalog.c635 char *text = NULL; local
651 text = strdup(s);
652 if (!text) {
657 *_text = text;
H A Dsd-journal.c2735 _cleanup_free_ char *text = NULL, *cid = NULL; local
2755 r = catalog_get(CATALOG_DATABASE, id, &text);
2759 t = replace_var(text, lookup_field, j);
/systemd/src/udev/
H A Dudev-builtin-input_id.c86 char text[4096]; local
95 xsprintf(text, "%s", v);
96 log_debug("%s raw kernel attribute: %s", attr, text);
100 while ((word = strrchr(text, ' ')) != NULL) {
109 val = strtoul (text, NULL, 16);
117 xsprintf(text, " bit %%4u: %%0%zulX\n",
126 log_debug(text, i * BITS_PER_LONG, bitmask[i]);
/systemd/src/cryptsetup/
H A Dcryptsetup.c319 _cleanup_free_ char *description = NULL, *name_buffer = NULL, *mount_point = NULL, *maj_min = NULL, *text = NULL, *escaped_name = NULL; local
350 if (asprintf(&text, "Please enter passphrase for disk %s!", name) < 0)
367 r = ask_password_auto(text, "drive-harddisk", id, "cryptsetup", until,
378 if (asprintf(&text, "Please enter passphrase for disk %s! (verification)", name) < 0)
383 r = ask_password_auto(text, "drive-harddisk", id, "cryptsetup", until, ASK_PASSWORD_PUSH_CACHE, &passwords2);
/systemd/src/libsystemd/sd-bus/
H A Dbus-socket.c630 char text[DECIMAL_STR_MAX(uid_t) + 1]; local
634 xsprintf(text, UID_FMT, geteuid());
636 l = strlen(text);
637 b->auth_buffer = hexmem(text, l);
/systemd/src/firstboot/
H A Dfirstboot.c152 static int prompt_loop(const char *text, char **l, bool (*is_valid)(const char *name), char **ret) { argument
155 assert(text);
163 r = ask_string(&p, "%s %s (empty to skip): ", draw_special_char(DRAW_TRIANGULAR_BULLET), text);
/systemd/src/sysv-generator/
H A Dsysv-generator.c345 static int handle_provides(SysvStub *s, unsigned line, const char *full_text, const char *text) { argument
350 assert(text);
355 r = extract_first_word(&text, &word, NULL, EXTRACT_QUOTES|EXTRACT_RELAX);
410 static int handle_dependencies(SysvStub *s, unsigned line, const char *full_text, const char *text) { argument
415 assert(text);
421 r = extract_first_word(&text, &word, NULL, EXTRACT_QUOTES|EXTRACT_RELAX);
/systemd/src/analyze/
H A Danalyze.c60 svg(" <text class=\"%s\" x=\"%.03f\" y=\"%.03f\">", (b) ? "left" : "right", SCALE_X * (x) + (b ? 5.0 : -5.0), SCALE_Y * (y) + 14.0); \
62 svg("</text>\n"); \
533 " <text class=\"sec\" x=\"%.03f\" y=\"%.03f\" >%.01fs</text>\n",
537 " <text class=\"sec\" x=\"%.03f\" y=\"%.03f\" >%.01fs</text>\n",
597 /* If the text cannot fit on the left side then
599 * TODO: calculate the text width more accurately */
635 svg("<defs>\n <style type=\"text/css\">\n <![CDATA[\n"
654 " text { fon
1201 const char *text = NULL; local
[all...]
/systemd/src/core/
H A Dunit.c153 int unit_add_name(Unit *u, const char *text) { argument
159 assert(text);
161 if (unit_name_is_valid(text, UNIT_NAME_TEMPLATE)) {
166 r = unit_name_replace_instance(text, u->instance, &s);
170 s = strdup(text);
/systemd/src/systemctl/
H A Dsystemctl.c4989 const char *text; local
5015 while ((r = sd_bus_message_read_basic(reply, SD_BUS_TYPE_STRING, &text)) > 0)
5016 puts(text);

Completed in 1216 milliseconds