/systemd/src/timesync/ |
H A D | timesyncd-server.c | 72 const char *string) { 77 assert(string); 84 n->string = strdup(string); 85 if (!n->string) { 109 log_debug("Added new server %s.", string); 137 log_debug("Removed server %s.", n->string); 139 free(n->string); 68 server_name_new( Manager *m, ServerName **ret, ServerType type, const char *string) argument
|
H A D | timesyncd-server.h | 49 char *string; member in struct:ServerName 63 int server_name_new(Manager *m, ServerName **ret, ServerType type,const char *string);
|
H A D | timesyncd-conf.c | 23 #include "string-util.h" 28 int manager_parse_server_string(Manager *m, ServerType type, const char *string) { argument 33 assert(string); 42 r = extract_first_word(&string, &word, NULL, 0); 44 return log_error_errno(r, "Failed to parse timesyncd server syntax \"%s\": %m", string); 50 if (streq_ptr(n->string, word)) { 90 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse NTP server string '%s'. Ignoring.", rvalue);
|
/systemd/src/test/ |
H A D | test-rlimit-util.c | 24 #include "string-util.h" 27 static void test_rlimit_parse_format(int resource, const char *string, rlim_t soft, rlim_t hard, int ret, const char *formatted) { argument 37 assert_se(rlimit_parse(resource, string, &rl) == ret);
|
/systemd/src/libsystemd-network/ |
H A D | dhcp-option.c | 23 #include <string.h> 185 _cleanup_free_ char *string = NULL; local 191 string = strndup((const char *) option, len); 192 if (!string) 195 if (!ascii_is_valid(string)) 199 *error_message = string; 200 string = NULL;
|
H A D | network-internal.c | 35 #include "string-util.h" 350 int deserialize_in_addrs(struct in_addr **ret, const char *string) { argument 357 assert(string); 359 FOREACH_WORD(word, len, string, state) { 401 int deserialize_in6_addrs(struct in6_addr **ret, const char *string) { argument 408 assert(string); 410 FOREACH_WORD(word, len, string, state) { 463 int deserialize_dhcp_routes(struct sd_dhcp_route **ret, size_t *ret_size, size_t *ret_allocated, const char *string) { argument 472 assert(string); 474 FOREACH_WORD(word, len, string, stat 548 deserialize_dhcp_option(void **data, size_t *data_len, const char *string) argument [all...] |
H A D | sd-dhcp-lease.c | 25 #include <string.h> 41 #include "string-util.h" 336 char *string; local 345 string = strndup((const char *) option, len); 346 if (!string) 350 *ret = string; 734 const char *string; local 806 r = sd_dhcp_lease_get_domainname(lease, &string); 808 fprintf(f, "DOMAINNAME=%s\n", string); 810 r = sd_dhcp_lease_get_hostname(lease, &string); [all...] |
/systemd/src/resolve/ |
H A D | resolved-conf.c | 26 #include "string-util.h" 56 int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string) { argument 60 assert(string); 65 r = extract_first_word(&string, &word, NULL, 0); 111 int manager_parse_search_domains_and_warn(Manager *m, const char *string) { argument 115 assert(string); 120 r = extract_first_word(&string, &word, NULL, EXTRACT_QUOTES); 161 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse DNS server string '%s'. Ignoring.", rvalue); 203 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse search domains string '%s'. Ignoring.", rvalue);
|
/systemd/src/libudev/ |
H A D | libudev-util.c | 24 #include <string.h> 43 int util_resolve_subsys_kernel(struct udev *udev, const char *string, argument 52 if (string[0] != '[') 55 strscpy(temp, sizeof(temp), string); 237 * @str: input string to be encoded 238 * @str_enc: output string to store the encoded input string 239 * @len: maximum size of the output string, which may be 240 * four times as long as the input string 242 * Encode all potentially unsafe characters of a string t [all...] |
/systemd/src/basic/ |
H A D | json.h | 65 char *string; member in union:JsonVariant::__anon18 89 int json_parse(const char *string, JsonVariant **rv); 90 int json_parse_measure(const char *string, size_t *size);
|
H A D | json.c | 23 #include <string.h> 30 #include "string-util.h" 54 ret->string = memdup(variant->string, variant->size+1); 55 if (!ret->string) 84 free(variant->string); 124 free(p->string); 142 free(variant->string); 153 return variant->string; 195 if (p->type == JSON_VARIANT_STRING && streq(key, p->string)) 763 json_tokens(const char *string, size_t size, JsonVariant ***tokens, size_t *n) argument 852 json_parse(const char *string, JsonVariant **rv) argument [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-dump.c | 31 #include "string-util.h" 157 const char *string; member in union:__anon114 251 fprintf(f, "%sSTRING \"%s%s%s\";\n", prefix, ansi_highlight(), basic.string, ansi_normal()); 255 fprintf(f, "%sOBJECT_PATH \"%s%s%s\";\n", prefix, ansi_highlight(), basic.string, ansi_normal()); 259 fprintf(f, "%sSIGNATURE \"%s%s%s\";\n", prefix, ansi_highlight(), basic.string, ansi_normal());
|
H A D | busctl.c | 499 const char *string; member in union:__anon137 604 b = cescape(basic.string);
|
H A D | bus-message.c | 36 #include "string-util.h" 253 /* (field id 64bit, ((string + NUL) + NUL + signature string 's') */ 268 /* (field id byte + (signature length + signature 's' + NUL) + (string length + string + NUL)) */ 315 /* (field id byte + (signature length + signature 'g' + NUL) + (string length + string + NUL)) */ 344 /* (field id 64bit + ((value + NUL + signature string 'u') */ 381 /* (field id 64bit + ((value + NUL + signature string 't') */ 1566 /* To make things easy we'll serialize a NULL string 5751 const char *string; member in union:__anon124 [all...] |