/systemd-251/src/shared/ |
D | bus-unit-util.c | 77 const char *field, \ 84 return log_error_errno(r, "Failed to parse %s=%s: %m", field, eq); \ 86 r = sd_bus_message_append(m, "(sv)", field, \ 97 const char *field, \ 103 …return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Failed to parse %s: %s", field, eq); … 105 r = sd_bus_message_append(m, "(sv)", field, \ 140 static int bus_append_string(sd_bus_message *m, const char *field, const char *eq) { in bus_append_string() argument 143 r = sd_bus_message_append(m, "(sv)", field, "s", eq); in bus_append_string() 150 static int bus_append_strv(sd_bus_message *m, const char *field, const char *eq, ExtractFlags flags… in bus_append_strv() argument 158 r = sd_bus_message_append_basic(m, 's', field); in bus_append_strv() [all …]
|
D | bootspec.c | 103 _cleanup_free_ char *buf = NULL, *field = NULL; in boot_entry_load_type1() local 120 r = extract_first_word(&p, &field, " \t", 0); in boot_entry_load_type1() 132 if (!STR_IN_SET(field, "options", "devicetree-overlay")) in boot_entry_load_type1() 133 log_warning("%s:%u: Field %s without value", tmp.path, line, field); in boot_entry_load_type1() 137 if (streq(field, "title")) in boot_entry_load_type1() 139 else if (streq(field, "sort-key")) in boot_entry_load_type1() 141 else if (streq(field, "version")) in boot_entry_load_type1() 143 else if (streq(field, "machine-id")) in boot_entry_load_type1() 145 else if (streq(field, "architecture")) in boot_entry_load_type1() 147 else if (streq(field, "options")) in boot_entry_load_type1() [all …]
|
D | journal-importer.c | 378 char *field; in journal_importer_process_data() local 393 field = (char*) data - sizeof(uint64_t) - imp->field_len; in journal_importer_process_data() 394 memmove(field + sizeof(uint64_t), field, imp->field_len); in journal_importer_process_data() 396 r = iovw_put(&imp->iovw, field + sizeof(uint64_t), imp->field_len + imp->data_size); in journal_importer_process_data()
|
D | format-table.c | 2059 const char *field; in table_print() local 2066 field = table_data_format(t, d, false, in table_print() 2069 if (!field) in table_print() 2073 r = string_extract_line(field, t->cell_height_max-1, &last); in table_print() 2258 const char *field, *color = NULL; in table_print() local 2264 field = table_data_format(t, d, false, width[j], NULL); in table_print() 2265 if (!field) in table_print() 2268 r = string_extract_line(field, n_subline, &extracted); in table_print() 2279 field = extracted; in table_print() 2281 l = utf8_console_width(field); in table_print() [all …]
|
/systemd-251/docs/ |
D | GROUP_RECORD.md | 19 `groupName` → A string with the UNIX group name. Matches the `gr_name` field of 21 `sg_namp` field. 24 field of user records. A string in DNS domain name syntax. 27 `realName` field of user records, and accepts arbitrary strings, as long as 31 same field of user records. A string. 34 (this field is typically in reverse domain name syntax.) 41 ID (GID) to use for the group. This corresponds to the `gr_gid` field of 45 group. Note that JSON user records also contain a `memberOf` field, or in other 49 as member of a group and doesn't exist it should be ignored. This field 50 corresponds to the `gr_mem` field of `struct group` and the `sg_mem` field of [all …]
|
D | JOURNAL_EXPORT_FORMATS.md | 16 …hey may include binary non-text data (though usually don't), and the same field might have multipl… 21 … as they are (i.e. the field name, followed by '=', followed by field data), followed by a newline… 22 …field name, followed by newline, followed by a binary 64bit little endian size value, followed by … 23 * Entry metadata that is not actually a field is serialized like it was a field, but beginning with… 84 A message with a binary field produced by 129 …hey may include binary non-text data (though usually don't), and the same field might have multipl… 131 …N serialization is the obvious mapping of the entry field names (as JSON strings) to the entry fie… 133 …field that contains non-printable or non-UTF8 is serialized as a number array instead. This is nec… 134 …ta fields from the JSON object. If that is enabled and a data field is too large, the field name i… 135 …is is not allowed in JSON. The serializer will hence create a single JSON field only for these cas…
|
D | JOURNAL_FILE_FORMAT.md | 59 usually don't), and the same field might have multiple values assigned within 133 …field of an entry, i.e. a string such as `_SYSTEMD_UNIT=avahi-daemon.service`, or `MESSAGE=Foobar … 134 * A **FIELD** object, which encapsulates a field name, i.e. a string such as `_SYSTEMD_UNIT` or `ME… 196 **arena_size** field of the header. If a writer needs to write to a file where 202 The **n_objects** field contains a counter for objects currently available in 232 field hash table, minus one. 240 header's **compatible_flags** field. If a feature extension is used that makes 242 **incompatible_flags** field. Readers should check these two bit fields, if 294 If a file is opened for writing the **state** field should be set to 295 STATE_ONLINE. If a file is closed after writing the **state** field should be [all …]
|
D | USER_RECORD.md | 112 object field we can easily remove it from view. 115 (an array field of the user record). Primarily these are resource 119 array comes with a `matchMachineId` or `matchHostname` field which indicate 214 UNIX user name. This field is the only mandatory field, all others are 215 optional. Corresponds with the `pw_name` field of of `struct passwd` and the 216 `sp_namp` field of `struct spwd` (i.e. the shadow user record stored in 228 version has to match in both `userName` and `realm` field. This field is 231 see above) with a user record without one set, even if the `userName` field matches. 234 user's real ("human") name, and corresponds loosely to the GECOS field of 236 record this field is initialized from GECOS (i.e. the `pw_gecos` field), and [all …]
|
D | GVARIANT-SERIALIZATION.md | 64 and dbus2. The first bytes contain the endianness field and the 76 cookie field though, to simplify compatibility with dbus1 peers. Note 77 that not only the cookie/serial field in the fixed header, but also 78 the reply_cookie/reply_serial additional header field has been 81 The header field identifiers have been extended from 8bit to 84 header field identifier 56 bits of padding had to be added.
|
D | PASSWORD_AGENTS.md | 25 * You'll find the question to ask the user in the `Message=` field in the `[Ask]` section. It is a … 26 …wing the XDG icon naming spec) to show next to the message in the `Icon=` field in the `[Ask]` sec… 27 …field in the `[Ask]` section (Before asking your question use `kill(PID, 0)` and ignore the file i… 28 * `Echo=` specifies whether the input should be obscured. If this field is missing or is `Echo=0`, … 30 * Ignore files where the time specified in the `NotAfter=` field in the `[Ask]` section is in the p…
|
/systemd-251/src/journal/ |
D | journald-audit.c | 18 int (*map)(const char *field, const char **p, struct iovec *iovec, size_t *n); 22 const char *field, in map_simple_field() argument 31 assert(field); in map_simple_field() 36 l = strlen(field); in map_simple_field() 41 memcpy(c, field, l); in map_simple_field() 60 const char *field, in map_string_field_internal() argument 70 assert(field); in map_string_field_internal() 84 l = strlen(field) + (e - s); in map_string_field_internal() 89 *((char*) mempcpy(stpcpy(c, field), s, e - s)) = 0; in map_string_field_internal() 95 l = strlen(field); in map_string_field_internal() [all …]
|
/systemd-251/tools/ |
D | catalog-report.py | 77 fields = [field[1:-1] for field in pattern.findall(desc)] 78 for field in fields: 79 index = (mid, field) 80 if field in x or index in logged: 82 print('{} {.hex}: no field {}'.format(name, mid, field))
|
/systemd-251/src/home/ |
D | homectl.c | 2125 static int drop_from_identity(const char *field) { in drop_from_identity() argument 2128 assert(field); in drop_from_identity() 2132 r = strv_extend(&arg_identity_filter, field); in drop_from_identity() 2137 r = json_variant_filter(&arg_identity_extra, STRV_MAKE(field)); in drop_from_identity() 2141 r = json_variant_filter(&arg_identity_extra_this_machine, STRV_MAKE(field)); in drop_from_identity() 2145 r = json_variant_filter(&arg_identity_extra_privileged, STRV_MAKE(field)); in drop_from_identity() 2604 const char *field = in parse_argv() local 2614 assert(field); in parse_argv() 2617 r = drop_from_identity(field); in parse_argv() 2624 r = json_variant_set_field_string(&arg_identity_extra, field, optarg); in parse_argv() [all …]
|
/systemd-251/src/basic/ |
D | io-util.c | 262 char* set_iovec_string_field(struct iovec *iovec, size_t *n_iovec, const char *field, const char *v… in set_iovec_string_field() argument 265 x = strjoin(field, value); in set_iovec_string_field() 271 char* set_iovec_string_field_free(struct iovec *iovec, size_t *n_iovec, const char *field, char *va… in set_iovec_string_field_free() argument 274 x = set_iovec_string_field(iovec, n_iovec, field, value); in set_iovec_string_field_free() 315 int iovw_put_string_field(struct iovec_wrapper *iovw, const char *field, const char *value) { in iovw_put_string_field() argument 319 x = strjoin(field, value); in iovw_put_string_field() 330 int iovw_put_string_field_free(struct iovec_wrapper *iovw, const char *field, char *value) { in iovw_put_string_field_free() argument 333 return iovw_put_string_field(iovw, field, value); in iovw_put_string_field_free()
|
D | io-util.h | 82 char* set_iovec_string_field(struct iovec *iovec, size_t *n_iovec, const char *field, const char *v… 83 char* set_iovec_string_field_free(struct iovec *iovec, size_t *n_iovec, const char *field, char *va… 95 int iovw_put_string_field(struct iovec_wrapper *iovw, const char *field, const char *value); 96 int iovw_put_string_field_free(struct iovec_wrapper *iovw, const char *field, char *value);
|
D | process-util.h | 19 #define procfs_file_alloca(pid, field) \ argument 22 const char *_field_ = (field); \ 75 int getenv_for_pid(pid_t pid, const char *field, char **_value);
|
/systemd-251/src/analyze/ |
D | analyze-inspect-elf.c | 58 JsonVariant *field; in analyze_elf() local 100 JSON_VARIANT_OBJECT_FOREACH(field_name, field, module_json) in analyze_elf() 101 if (json_variant_is_string(field)) { in analyze_elf() 111 … TABLE_STRING, json_variant_string(field)); in analyze_elf()
|
/systemd-251/src/systemd/ |
D | sd-journal.h | 106 int sd_journal_get_data(sd_journal *j, const char *field, const void **data, size_t *l); 130 int sd_journal_query_unique(sd_journal *j, const char *field); 135 int sd_journal_enumerate_fields(sd_journal *j, const char **field); 170 #define SD_JOURNAL_FOREACH_FIELD(j, field) \ argument 171 for (sd_journal_restart_fields(j); sd_journal_enumerate_fields((j), &(field)) > 0; )
|
/systemd-251/src/libsystemd/sd-journal/ |
D | sd-journal.c | 2239 static bool field_is_valid(const char *field) { in field_is_valid() argument 2242 assert(field); in field_is_valid() 2244 if (isempty(field)) in field_is_valid() 2247 if (startswith(field, "__")) in field_is_valid() 2250 for (p = field; *p; p++) { in field_is_valid() 2267 _public_ int sd_journal_get_data(sd_journal *j, const char *field, const void **data, size_t *size)… in sd_journal_get_data() argument 2276 assert_return(field, -EINVAL); in sd_journal_get_data() 2279 assert_return(field_is_valid(field), -EINVAL); in sd_journal_get_data() 2292 field_length = strlen(field); in sd_journal_get_data() 2321 field, field_length, '='); in sd_journal_get_data() [all …]
|
D | journal-file.h | 169 #define JOURNAL_HEADER_CONTAINS(h, field) \ argument 170 (le64toh((h)->header_size) >= offsetof(Header, field) + sizeof((h)->field)) 210 int journal_file_find_field_object(JournalFile *f, const void *field, uint64_t size, Object **ret, … 211 int journal_file_find_field_object_with_hash(JournalFile *f, const void *field, uint64_t size, uint…
|
D | journal-file.c | 689 if (le64toh(o->object.size) <= offsetof(Object, field.payload)) in journal_file_check_object() 692 offsetof(Object, field.payload), in journal_file_check_object() 696 if (!VALID64(le64toh(o->field.next_hash_offset)) || in journal_file_check_object() 697 !VALID64(le64toh(o->field.head_data_offset))) in journal_file_check_object() 700 le64toh(o->field.next_hash_offset), in journal_file_check_object() 701 le64toh(o->field.head_data_offset), in journal_file_check_object() 1158 o->field.next_hash_offset = o->field.head_data_offset = 0; in journal_file_link_field() 1169 o->field.next_hash_offset = htole64(offset); in journal_file_link_field() 1259 const void *field, uint64_t size, uint64_t hash, in journal_file_find_field_object_with_hash() argument 1267 assert(field && size > 0); in journal_file_find_field_object_with_hash() [all …]
|
/systemd-251/src/pstore/ |
D | pstore.c | 120 _cleanup_free_ void *field = NULL; in move_file() local 145 field = malloc(field_size); in move_file() 146 if (!field) in move_file() 148 memcpy(stpcpy(field, "FILE="), pe->content, pe->content_size); in move_file() 149 iovec[n_iovec++] = IOVEC_MAKE(field, field_size); in move_file()
|
/systemd-251/shell-completion/zsh/ |
D | _coredumpctl | 34 {-F+,--field=}'[Show field in list output]:field' \
|
/systemd-251/src/timesync/ |
D | timesyncd-manager.c | 111 .field = NTP_FIELD(0, 4, NTP_MODE_CLIENT), in manager_send_request() 478 if (NTP_FIELD_LEAP(ntpmsg.field) == NTP_LEAP_NOTINSYNC || in manager_receive_response() 484 if (!IN_SET(NTP_FIELD_VERSION(ntpmsg.field), 3, 4)) { in manager_receive_response() 485 log_debug("Response NTPv%d. Disconnecting.", NTP_FIELD_VERSION(ntpmsg.field)); in manager_receive_response() 489 if (NTP_FIELD_MODE(ntpmsg.field) != NTP_MODE_SERVER) { in manager_receive_response() 490 log_debug("Unsupported mode %d. Disconnecting.", NTP_FIELD_MODE(ntpmsg.field)); in manager_receive_response() 508 if (NTP_FIELD_LEAP(ntpmsg.field) & NTP_LEAP_PLUSSEC) in manager_receive_response() 510 else if (NTP_FIELD_LEAP(ntpmsg.field) & NTP_LEAP_MINUSSEC) in manager_receive_response() 555 NTP_FIELD_LEAP(ntpmsg.field), in manager_receive_response() 556 NTP_FIELD_VERSION(ntpmsg.field), in manager_receive_response() [all …]
|
/systemd-251/src/libsystemd/sd-path/ |
D | sd-path.c | 68 static int from_user_dir(const char *field, char **buffer, const char **ret) { in from_user_dir() argument 76 assert(field); in from_user_dir() 99 n = strlen(field); in from_user_dir() 112 if (!strneq(l, field, n)) in from_user_dir() 170 if (streq(field, "XDG_DESKTOP_DIR")) { in from_user_dir()
|