/systemd/src/import/ |
H A D | qcow2-util.c | 63 #define HEADER_MAGIC(header) be32toh((header)->magic) 64 #define HEADER_VERSION(header) be32toh((header)->version) 65 #define HEADER_CLUSTER_BITS(header) be32toh((header)->cluster_bits) 66 #define HEADER_CLUSTER_SIZE(header) (1ULL << HEADER_CLUSTER_BITS(header)) 67 #define HEADER_L2_BITS(header) (HEADER_CLUSTER_BITS(header) 164 normalize_offset( const Header *header, uint64_t p, uint64_t *ret, bool *compressed, uint64_t *compressed_size) argument 210 verify_header(const Header *header) argument 251 Header header; local [all...] |
H A D | pull-job.h | 32 typedef int (*PullJobHeader)(PullJob *job, const char *header, size_t sz);
|
/systemd/src/journal/ |
H A D | test-journal-interleaving.c | 229 assert_se(one->header->state == STATE_ONLINE); 230 assert_se(!sd_id128_equal(one->header->file_id, one->header->machine_id)); 231 assert_se(!sd_id128_equal(one->header->file_id, one->header->boot_id)); 232 assert_se(sd_id128_equal(one->header->file_id, one->header->seqnum_id)); 234 memcpy(&seqnum_id, &one->header->seqnum_id, sizeof(sd_id128_t)); 239 assert_se(two->header->state == STATE_ONLINE); 240 assert_se(!sd_id128_equal(two->header [all...] |
H A D | journal-file.c | 86 /* The mmap context to use for the header we pick as one above the last defined typed */ 95 if (!(f->fd >= 0 && f->header)) 101 switch (f->header->state) { 106 f->header->state = STATE_ONLINE; 121 if (!(f->fd >= 0 && f->header)) 124 if (f->header->state != STATE_ONLINE) 132 f->header->state = STATE_OFFLINE; 228 h.seqnum_id = template->header->seqnum_id; 229 h.tail_entry_seqnum = template->header->tail_entry_seqnum; 248 assert(f->header); [all...] |
H A D | journal-send.c | 400 char *header; local 424 header = alloca(l + 1 + 1 + 2 + 2 + 2 + 2 + 2); 426 memcpy(header, identifier, l); 427 header[l++] = '\n'; 428 header[l++] = '\n'; /* unit id */ 429 header[l++] = '0' + priority; 430 header[l++] = '\n'; 431 header[l++] = '0' + !!level_prefix; 432 header[l++] = '\n'; 433 header[ [all...] |
H A D | journal-verify.c | 444 n = le64toh(f->header->n_entries); 445 a = le64toh(f->header->entry_array_offset); 590 n = le64toh(f->header->data_hash_table_size) / sizeof(HashItem); 651 n = le64toh(f->header->data_hash_table_size) / sizeof(HashItem); 741 n = le64toh(f->header->n_entries); 742 a = le64toh(f->header->entry_array_offset); 860 if (le32toh(f->header->compatible_flags) & ~HEADER_COMPATIBLE_SUPPORTED) { 866 for (i = 0; i < sizeof(f->header->reserved); i++) 867 if (f->header->reserved[i] != 0) { 876 p = le64toh(f->header [all...] |
H A D | catalog.c | 394 CatalogHeader header; local 413 zero(header); 414 memcpy(header.signature, CATALOG_SIGNATURE, sizeof(header.signature)); 415 header.header_size = htole64(ALIGN_TO(sizeof(CatalogHeader), 8)); 416 header.catalog_item_size = htole64(sizeof(CatalogItem)); 417 header.n_items = htole64(n); 421 k = fwrite(&header, 1, sizeof(header), w); 422 if (k != sizeof(header)) { 667 find_header(const char *s, const char *header) argument [all...] |
H A D | journal-authenticate.c | 35 r = le64toh(f->header->n_tags) + 1; 36 f->header->n_tags = htole64(r); 68 * header. This will exclude the actual hash value in it */ 311 gcry_md_write(f->hmac, f->header->signature, offsetof(Header, state) - offsetof(Header, signature)); 312 gcry_md_write(f->hmac, &f->header->file_id, offsetof(Header, boot_id) - offsetof(Header, file_id)); 313 gcry_md_write(f->hmac, &f->header->seqnum_id, offsetof(Header, arena_size) - offsetof(Header, seqnum_id)); 314 gcry_md_write(f->hmac, &f->header->data_hash_table_offset, offsetof(Header, tail_object_offset) - offsetof(Header, data_hash_table_offset)); 467 p = le64toh(f->header->field_hash_table_offset); 476 p = le64toh(f->header->data_hash_table_offset);
|
H A D | journald-audit.c | 476 struct nlmsghdr header; member in union:__anon98::__anon99 481 .header.nlmsg_len = NLMSG_LENGTH(sizeof(struct audit_status)), 482 .header.nlmsg_type = AUDIT_SET, 483 .header.nlmsg_flags = NLM_F_REQUEST, 484 .header.nlmsg_seq = 1, 485 .header.nlmsg_pid = 0,
|
H A D | test-journal-verify.c | 120 if (verification_key && JOURNAL_HEADER_SEALED(f->header))
|
/systemd/src/udev/cdrom_id/ |
H A D | cdrom_id.c | 488 unsigned char header[32]; local 492 scsi_cmd_set(udev, &sc, 8, sizeof(header)); 494 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header)); 511 if (header[2] & 16) { 514 } else if ((header[2] & 3) < 2 && cd_cd_r) { 616 unsigned char header[32]; local 627 scsi_cmd_set(udev, &sc, 8, sizeof(header) & 0xff); 629 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header)); 769 unsigned char header[12]; local [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-message.h | 101 struct bus_header *header; member in struct:sd_bus_message 151 return m->header->endian != BUS_NATIVE_ENDIAN; 167 if (m->header->version == 2) 168 return BUS_MESSAGE_BSWAP64(m, m->header->dbus2.cookie); 170 return BUS_MESSAGE_BSWAP32(m, m->header->dbus1.serial); 187 return (uint8_t*) m->header + sizeof(struct bus_header); 191 return m->header->version == 2; 200 void *header,
|
H A D | bus-convenience.c | 147 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL); 154 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 183 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL); 191 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 212 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL); 219 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 238 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL); 245 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 267 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL); 274 if (call->header [all...] |
H A D | bus-dump.c | 75 m->header->type == SD_BUS_MESSAGE_METHOD_ERROR ? ansi_highlight_red() : 76 m->header->type == SD_BUS_MESSAGE_METHOD_RETURN ? ansi_highlight_green() : 77 m->header->type != SD_BUS_MESSAGE_SIGNAL ? ansi_highlight() : "", draw_special_char(DRAW_TRIANGULAR_BULLET), ansi_normal(), 78 ansi_highlight(), bus_message_type_to_string(m->header->type), ansi_normal(), 79 m->header->endian, 80 m->header->flags, 81 m->header->version, 583 /* write the pcap header */ 586 /* write the dbus header */ 588 fwrite(m->header, [all...] |
H A D | bus-kernel.c | 207 bloom_add_pair(data, m->bus->bloom_size, m->bus->bloom_n_hash, "message-type", bus_message_type_to_string(m->header->type)); 307 /* Add in fixed header, fields header and payload */ 317 /* Add in well-known destination header */ 337 ((m->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) ? 0 : KDBUS_MSG_EXPECT_REPLY) | 338 ((m->header->flags & BUS_MESSAGE_NO_AUTO_START) ? KDBUS_MSG_NO_AUTO_START : 0) | 339 ((m->header->type == SD_BUS_MESSAGE_SIGNAL) ? KDBUS_MSG_SIGNAL : 0); 343 m->kdbus->cookie = m->header->dbus2.cookie; 346 if (m->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 361 append_payload_vec(&d, m->header, BUS_MESSAGE_BODY_BEGI 445 struct bus_header *header = NULL; local [all...] |
H A D | bus-internal.c | 355 if (m->header->type == SD_BUS_MESSAGE_METHOD_CALL) 359 if (m->header->type == SD_BUS_MESSAGE_METHOD_CALL) 365 bus_message_type_to_string(m->header->type),
|
H A D | bus-message.c | 128 free(m->header); 177 return (uint8_t*) m->header + old_size; 180 np = realloc(m->header, ALIGN8(new_size)); 184 /* Initially, the header is allocated as part of of 192 memcpy(np, m->header, sizeof(struct bus_header)); 199 op = m->header; 200 m->header = np; 204 m->path = adjust_pointer(m->path, op, old_size, m->header); 205 m->interface = adjust_pointer(m->interface, op, old_size, m->header); 206 m->member = adjust_pointer(m->member, op, old_size, m->header); 426 bus_message_from_header( sd_bus *bus, void *header, size_t header_accessible, void *footer, size_t footer_accessible, size_t message_size, int *fds, unsigned n_fds, const char *label, size_t extra, sd_bus_message **ret) argument [all...] |
/systemd/src/bus-proxyd/ |
H A D | synthesize.c | 56 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 82 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 99 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 115 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED) 141 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
|
H A D | proxy.c | 510 if (policy_check_send(policy, sender_uid, sender_gid, m->header->type, owned_names, NULL, m->path, m->interface, m->member, false, NULL) && 511 policy_check_recv(policy, our_ucred->uid, our_ucred->gid, m->header->type, NULL, sender_names, m->path, m->interface, m->member, false)) 515 if (m->header->type == SD_BUS_MESSAGE_METHOD_CALL) 563 } else if (policy_check_send(policy, our_ucred->uid, our_ucred->gid, m->header->type, NULL, destination_names, m->path, m->interface, m->member, true, &n)) { 581 if (policy_check_recv(policy, destination_uid, destination_gid, m->header->type, owned_names, NULL, m->path, m->interface, m->member, true)) 586 if (m->header->type == SD_BUS_MESSAGE_METHOD_CALL) 772 p->local_creds.uid, p->local_creds.gid, p->local_creds.pid, bus_message_type_to_string(m->header->type), 822 p->local_creds.uid, p->local_creds.gid, bus_message_type_to_string(m->header->type), 897 p->local_creds.uid, p->local_creds.gid, bus_message_type_to_string(m->header->type),
|
/systemd/src/journal-remote/ |
H A D | journal-upload.h | 30 struct curl_slist *header; member in struct:Uploader
|
H A D | journal-upload.c | 194 if (!u->header) { 213 u->header = h; 247 easy_setopt(curl, CURLOPT_HTTPHEADER, u->header, 473 curl_slist_free_all(u->header);
|
/systemd/src/libsystemd/sd-resolve/ |
H A D | sd-resolve.c | 123 struct RHeader header; member in struct:AddrInfoRequest 133 struct RHeader header; member in struct:AddrInfoResponse 151 struct RHeader header; member in struct:NameInfoRequest 158 struct RHeader header; member in struct:NameInfoResponse 237 .header.type = RESPONSE_ADDRINFO, 238 .header.id = id, 239 .header.length = sizeof(AddrInfoResponse), 259 p = serialize_addrinfo(p, k, &resp.header.length, (uint8_t*) &buffer + BUFSIZE - (uint8_t*) p); 271 iov[1] = (struct iovec) { .iov_base = &buffer, .iov_len = resp.header.length - sizeof(AddrInfoResponse) }; 292 .header [all...] |
/systemd/src/boot/efi/ |
H A D | linux.c | 32 UINT32 header; member in struct:SetupHeader 94 if (image_setup->signature != 0xAA55 || image_setup->header != SETUP_MAGIC)
|
/systemd/src/shared/ |
H A D | efivars.c | 355 struct boot_option *header; local 368 header = (struct boot_option *)buf; 369 title_size = utf16_size(header->title); 374 s = utf16_to_utf8(header->title, title_size); 379 if (header->path_len > 0) { 385 while (dnext < header->path_len) { 437 *active = !!(header->attr & LOAD_OPTION_ACTIVE); 496 /* header */
|
/systemd/src/basic/ |
H A D | log.c | 483 char *header, 490 snprintf(header, size, 531 char header[LINE_MAX]; local 538 log_do_header(header, sizeof(header), level, error, file, line, func, object_field, object); 540 IOVEC_SET_STRING(iovec[0], header); 881 char header[LINE_MAX]; local 891 log_do_header(header, sizeof(header), level, error, file, line, func, NULL, NULL); 892 IOVEC_SET_STRING(iovec[n++], header); 482 log_do_header( char *header, size_t size, int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object) argument [all...] |