Lines Matching defs:new
426 uint8_t *data, *new;
441 * and write the new variable value.
444 new = malloc(size);
445 if (!new)
448 le16enc(new, val);
450 memcpy(new + sizeof(uint16_t), data, size - sizeof(uint16_t));
452 if (set_bootvar("BootOrder", new, size) < 0)
454 free(new);
463 uint8_t *new, *data;
468 new = malloc(size);
469 if (new == NULL)
475 memcpy(new + j, data + i, sizeof(uint16_t));
480 else if (set_bootvar("BootOrder", new, j) < 0)
481 err(1, "Unable to update BootOrder with new value");
482 free(new);
698 errx(1, "Can't allocate memory for new device paths");
703 /* don't make the new bootvar active by default, use the -a option later */
878 uint8_t new[sizeof(uint64_t)];
880 le64enc(&new, (os_indications() & ~mask) | (val & mask));
881 return set_bootvar("OsIndications", new, sizeof(new));
1093 set_boot_order(opts.order); /* create a new bootorder with opts.order */