Home
last modified time | relevance | path

Searched refs:current_offset (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/journal/
Dtest-journal-flush.c48 assert_se(f && f->current_offset > 0); in main()
50 r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o); in main()
55 r = journal_file_copy_entry(f, new_journal->file, o, f->current_offset); in main()
Djournald-server.c1192 assert(f && f->current_offset > 0); in server_flush_to_var()
1196 r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o); in server_flush_to_var()
1202 r = journal_file_copy_entry(f, s->system_journal->file, o, f->current_offset); in server_flush_to_var()
1223 r = journal_file_copy_entry(f, s->system_journal->file, o, f->current_offset); in server_flush_to_var()
/systemd-251/src/libsystemd-network/
Ddhcp-option.c127 size_t current_offset = *offset + 2; in option_append() local
130 … r = dhcp_option_append_tlv(options, size, &current_offset, SD_DHCP_RELAY_AGENT_CIRCUIT_ID, in option_append()
136 … r = dhcp_option_append_tlv(options, size, &current_offset, SD_DHCP_RELAY_AGENT_REMOTE_ID, in option_append()
143 options[*offset + 1] = current_offset - *offset - 2; in option_append()
144 assert(current_offset - *offset - 2 <= UINT8_MAX); in option_append()
145 *offset = current_offset; in option_append()
/systemd-251/src/shared/
Dloop-util.c826 uint64_t current_offset, current_size, partno; in resize_partition() local
859 r = safe_atou64(buffer, &current_offset); in resize_partition()
862 if (current_offset > UINT64_MAX/512U) in resize_partition()
864 current_offset *= 512U; in resize_partition()
871 if (current_size == size && current_offset == offset) in resize_partition()
894 .start = offset == UINT64_MAX ? current_offset : offset, in resize_partition()
/systemd-251/src/libsystemd/sd-journal/
Dsd-journal.c741 return journal_file_next_entry(f, f->current_offset, direction, ret, offset); in next_with_matches()
746 direction == DIRECTION_DOWN ? f->current_offset + 1 in next_with_matches()
747 : f->current_offset - 1, in next_with_matches()
769 if (f->last_direction == direction && f->current_offset > 0) { in next_beyond_location()
864 r = journal_file_move_to_object(new_file, OBJECT_ENTRY, new_file->current_offset, &o); in real_journal_next()
931 if (!j->current_file || j->current_file->current_offset <= 0) in sd_journal_get_cursor()
934 … = journal_file_move_to_object(j->current_file, OBJECT_ENTRY, j->current_file->current_offset, &o); in sd_journal_get_cursor()
1058 if (!j->current_file || j->current_file->current_offset <= 0) in sd_journal_test_cursor()
1061 … = journal_file_move_to_object(j->current_file, OBJECT_ENTRY, j->current_file->current_offset, &o); in sd_journal_test_cursor()
2190 if (f->current_offset <= 0) in sd_journal_get_realtime_usec()
[all …]
Djournal-file.h83 uint64_t current_offset; member
Djournal-file.c2833 f->current_offset = 0; in journal_file_reset_location()
2843 f->current_offset = offset; in journal_file_save_location()