Searched refs:bin_fd (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/tools/ |
H A D | mkenvimage.c | 72 int txt_fd, bin_fd; in main() local 294 bin_fd = STDOUT_FILENO; in main() 296 bin_fd = creat(bin_filename, S_IRUSR | S_IWUSR | S_IRGRP | in main() 298 if (bin_fd == -1) { in main() 305 if (write(bin_fd, dataptr, sizeof(*dataptr) * datasize) != in main() 311 ret = close(bin_fd); in main()
|
/openbmc/linux/tools/arch/x86/intel_sdsi/ |
H A D | intel_sdsi.c | 529 int bin_fd, prov_fd, size, ret; in sdsi_provision() local 541 bin_fd = open(bin_file, O_RDONLY); in sdsi_provision() 542 if (bin_fd == -1) { in sdsi_provision() 544 return bin_fd; in sdsi_provision() 552 close(bin_fd); in sdsi_provision() 560 close(bin_fd); in sdsi_provision() 565 size = read(bin_fd, buf, STATE_CERT_MAX_SIZE); in sdsi_provision() 567 close(bin_fd); in sdsi_provision() 574 close(bin_fd); in sdsi_provision() 582 close(bin_fd); in sdsi_provision()
|