m->body.data = (uint8_t*) buffer + sizeof(struct bus_header) + ALIGN8(m->fields_size);
m->body.size = sz;
m->body.sealed = true;
- m->body.memfd = -1;
+ m->body.memfd = -EBADF;
}
m->n_iovec = 1;
m->body_end->next = part;
}
- part->memfd = -1;
+ part->memfd = -EBADF;
m->body_end = part;
m->n_body_parts++;
}
int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored) {
- _cleanup_close_ int fd = -1;
+ _cleanup_close_ int fd = -EBADF;
struct bus_container *c;
ssize_t align, sz;
uint32_t u32;
if (c->enclosing != SD_BUS_TYPE_ARRAY)
c->index++;
- fd = -1;
+ fd = -EBADF;
return 0;
}
uint64_t offset,
uint64_t size) {
- _cleanup_close_ int copy_fd = -1;
+ _cleanup_close_ int copy_fd = -EBADF;
struct bus_body_part *part;
ssize_t align, sz;
uint64_t real_size;
part->memfd_offset = offset;
part->sealed = true;
part->size = size;
- copy_fd = -1;
+ copy_fd = -EBADF;
m->body_size += size;
message_extend_containers(m, size);
uint64_t offset,
uint64_t size) {
- _cleanup_close_ int copy_fd = -1;
+ _cleanup_close_ int copy_fd = -EBADF;
struct bus_body_part *part;
struct bus_container *c;
uint64_t real_size;
part->memfd_offset = offset;
part->sealed = true;
part->size = size;
- copy_fd = -1;
+ copy_fd = -EBADF;
m->body_size += size;
message_extend_containers(m, size);