Lines Matching defs:control_buffer
567 static unsigned fill_package_struct(char *control_buffer)
579 int buffer_length = strlen(control_buffer);
585 field_start += read_package_field(&control_buffer[field_start],
726 char *control_buffer;
732 while ((control_buffer = xmalloc_fgets_str(status_file, "\n\n")) != NULL) {
733 const unsigned package_num = fill_package_struct(control_buffer);
737 status_line = strstr(control_buffer, "Status:");
749 free(control_buffer);
754 static void write_buffer_no_status(FILE *new_status_file, const char *control_buffer)
760 start += read_package_field(&control_buffer[start], &name, &value);
777 char *control_buffer = NULL;
785 while ((control_buffer = xmalloc_fgets_str(old_status_file, "\n\n")) != NULL) {
786 tmp_string = strstr(control_buffer, "Package:");
795 tmp_string = strstr(control_buffer, "Status:");
845 field_start += read_package_field(&control_buffer[field_start], &field_name, &field_value);
862 field_start += read_package_field(&control_buffer[field_start], &field_name, &field_value);
880 fprintf(new_status_file, "%s\n\n", control_buffer);
885 free(control_buffer);