Searched refs:contents (Results 1 - 18 of 18) sorted by relevance

/systemd/src/basic/
H A Dfileio.c143 * contents in place already. If so, eat up the error. */
217 int read_full_stream(FILE *f, char **contents, size_t *size) { argument
223 assert(contents);
271 *contents = buf;
280 int read_full_file(const char *fn, char **contents, size_t *size) { argument
284 assert(contents);
290 return read_full_stream(f, contents, size);
302 _cleanup_free_ char *contents = NULL, *key = NULL; local
325 r = read_full_stream(f, &contents, NULL);
327 r = read_full_file(fname, &contents, NUL
[all...]
H A Dfileio.h42 int read_full_file(const char *fn, char **contents, size_t *size);
43 int read_full_stream(FILE *f, char **contents, size_t *size);
H A Dutil.c509 char contents[6]; local
539 n = read(fd, contents, sizeof(contents));
543 if (n != 6 || memcmp(contents, "Mains\n", 6))
555 n = read(fd, contents, sizeof(contents));
559 if (n != 2 || contents[1] != '\n')
562 if (contents[0] == '1') {
565 } else if (contents[0] == '0')
H A Dcgroup-util.c892 _cleanup_free_ char *fs = NULL, *contents = NULL; local
908 r = read_one_line_file(fs, &contents);
912 sc = strstrip(contents);
925 contents = mfree(contents);
926 r = read_one_line_file(fs, &contents);
930 sc = strstrip(contents);
/systemd/src/import/
H A Dcurl-util.h52 int curl_header_strdup(const void *contents, size_t sz, const char *field, char **value);
H A Dpull-job.c339 static size_t pull_job_write_callback(void *contents, size_t size, size_t nmemb, void *userdata) { argument
344 assert(contents);
357 memcpy(j->payload + j->payload_size, contents, sz);
368 r = pull_job_write_compressed(j, contents, sz);
390 static size_t pull_job_header_callback(void *contents, size_t size, size_t nmemb, void *userdata) { argument
397 assert(contents);
407 r = curl_header_strdup(contents, sz, "ETag:", &etag);
426 r = curl_header_strdup(contents, sz, "Content-Length:", &length);
449 r = curl_header_strdup(contents, sz, "Last-Modified:", &last_modified);
460 r = j->on_header(j, contents, s
[all...]
H A Dcurl-util.c381 int curl_header_strdup(const void *contents, size_t sz, const char *field, char **value) { argument
382 const char *p = contents;
/systemd/src/libsystemd/sd-bus/
H A Dbus-message.c1753 const char *contents,
1763 assert(contents);
1768 if (!signature_is_single(contents, true))
1778 if (!startswith(c->signature + c->index + 1, contents))
1781 nindex = c->index + 1 + strlen(contents);
1790 e = strextend(&c->signature, CHAR_TO_STR(SD_BUS_TYPE_ARRAY), contents, NULL);
1800 alignment = bus_gvariant_get_alignment(contents);
1808 r = bus_gvariant_is_fixed_size(contents);
1819 alignment = bus_type_get_alignment(contents[0]);
1852 const char *contents) {
1750 bus_message_open_array( sd_bus_message *m, struct bus_container *c, const char *contents, uint32_t **array_size, size_t *begin, bool *need_offsets) argument
1849 bus_message_open_variant( sd_bus_message *m, struct bus_container *c, const char *contents) argument
1907 bus_message_open_struct( sd_bus_message *m, struct bus_container *c, const char *contents, size_t *begin, bool *need_offsets) argument
1980 bus_message_open_dict_entry( sd_bus_message *m, struct bus_container *c, const char *contents, size_t *begin, bool *need_offsets) argument
2038 sd_bus_message_open_container( sd_bus_message *m, char type, const char *contents) argument
3609 bus_message_enter_array( sd_bus_message *m, struct bus_container *c, const char *contents, uint32_t **array_size, size_t *item_size, size_t **offsets, size_t *n_offsets) argument
3731 bus_message_enter_variant( sd_bus_message *m, struct bus_container *c, const char *contents, size_t *item_size) argument
3951 enter_struct_or_dict_entry( sd_bus_message *m, struct bus_container *c, const char *contents, size_t *item_size, size_t **offsets, size_t *n_offsets) argument
3982 bus_message_enter_struct( sd_bus_message *m, struct bus_container *c, const char *contents, size_t *item_size, size_t **offsets, size_t *n_offsets) argument
4023 bus_message_enter_dict_entry( sd_bus_message *m, struct bus_container *c, const char *contents, size_t *item_size, size_t **offsets, size_t *n_offsets) argument
4064 sd_bus_message_enter_container(sd_bus_message *m, char type, const char *contents) argument
4247 sd_bus_message_peek_type(sd_bus_message *m, char *type, const char **contents) argument
4728 const char *contents; local
5634 const char *contents; local
5681 const char *contents; local
5740 const char *contents; local
5809 sd_bus_message_verify_type(sd_bus_message *m, char type, const char *contents) argument
[all...]
H A Dbus-dump.c146 const char *contents = NULL; local
161 r = sd_bus_message_peek_type(m, &type, &contents);
188 r = sd_bus_message_enter_container(m, type, contents);
193 fprintf(f, "%sARRAY \"%s\" {\n", prefix, contents);
195 fprintf(f, "%sVARIANT \"%s\" {\n", prefix, contents);
197 fprintf(f, "%sSTRUCT \"%s\" {\n", prefix, contents);
199 fprintf(f, "%sDICT_ENTRY \"%s\" {\n", prefix, contents);
H A Dbusctl.c488 const char *contents = NULL; local
503 r = sd_bus_message_peek_type(m, &type, &contents);
509 r = sd_bus_message_enter_container(m, type, contents);
519 r = sd_bus_message_skip(m, contents);
541 fprintf(f, "%s", contents);
1592 const char *contents = NULL; local
1601 r = sd_bus_message_peek_type(reply, &type, &contents);
1605 r = sd_bus_message_enter_container(reply, 'v', contents);
1616 fputs(contents, stdout);
H A Dbus-kernel.c224 const char *t, *contents; local
227 r = sd_bus_message_peek_type(m, &type, &contents);
241 if (type == SD_BUS_TYPE_ARRAY && STR_IN_SET(contents, "s", "o", "g")) {
244 r = sd_bus_message_enter_container(m, type, contents);
248 while ((r = sd_bus_message_read_basic(m, contents[0], &t)) > 0)
/systemd/src/journal/
H A Dtest-catalog.c47 static Hashmap * test_import(const char* contents, ssize_t size, int code) { argument
54 size = strlen(contents);
60 assert_se(write(fd, contents, size) == size);
/systemd/src/login/
H A Dloginctl.c357 const char *contents; local
360 r = sd_bus_message_peek_type(m, NULL, &contents);
364 r = sd_bus_message_enter_container(m, SD_BUS_TYPE_STRUCT, contents);
368 if (contents[0] == 's' || contents[0] == 'o') {
372 r = sd_bus_message_read_basic(m, contents[0], &s);
380 r = sd_bus_message_read_basic(m, contents[0], userdata);
385 r = sd_bus_message_skip(m, contents+1);
690 static int print_property(const char *name, sd_bus_message *m, const char *contents) { argument
695 assert(contents);
815 const char *name, *contents; local
[all...]
/systemd/test/
H A Dnetworkd-test.py181 contents = f.read()
182 if 'nameserver 192.168.5.1\n' in contents:
186 if contents.count('nameserver ') >= 3:
/systemd/src/shared/
H A Dbus-util.c717 const char *contents; local
723 r = sd_bus_message_peek_type(property, &type, &contents);
838 if (streq(contents, "s")) {
842 r = sd_bus_message_enter_container(property, SD_BUS_TYPE_ARRAY, contents);
874 } else if (streq(contents, "y")) {
895 } else if (streq(contents, "u")) {
948 const char *contents; local
955 r = sd_bus_message_peek_type(reply, NULL, &contents);
959 r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_VARIANT, contents);
970 r = sd_bus_message_skip(reply, contents);
1121 const char *contents; local
[all...]
/systemd/src/systemctl/
H A Dsystemctl.c3756 static int status_property(const char *name, sd_bus_message *m, UnitStatusInfo *i, const char *contents) { argument
3763 switch (contents[0]) {
3924 if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && startswith(name, "Exec")) {
3957 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Listen")) {
3983 } else if (contents[1] == SD_BUS_TYPE_STRING && streq(name, "DropInPaths")) {
3989 } else if (contents[1] == SD_BUS_TYPE_STRING && streq(name, "Documentation")) {
3995 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Conditions")) {
4020 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Asserts")) {
4073 r = sd_bus_message_skip(m, contents);
4080 static int print_property(const char *name, sd_bus_message *m, const char *contents) { argument
4425 const char *name, *contents; local
[all...]
/systemd/src/systemd/
H A Dsd-bus.h276 int sd_bus_message_open_container(sd_bus_message *m, char type, const char *contents);
285 int sd_bus_message_enter_container(sd_bus_message *m, char type, const char *contents);
287 int sd_bus_message_peek_type(sd_bus_message *m, char *type, const char **contents);
288 int sd_bus_message_verify_type(sd_bus_message *m, char type, const char *contents);
/systemd/src/test/
H A Dtest-util.c973 _cleanup_free_ char *contents = NULL; local
988 r = read_full_file(name, &contents, &size);
990 printf("contents: %s", contents);
991 assert_se(streq(contents, "abc\n" ALPHANUMERICAL "\n"));

Completed in 7487 milliseconds