Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 6 of 6) sorted by relevance

/u-boot/tools/
A Dimagetool.c105 int dfd; in imagetool_save_subimage() local
107 dfd = open(file_name, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, in imagetool_save_subimage()
109 if (dfd < 0) { in imagetool_save_subimage()
115 if (write(dfd, (void *)file_data, file_len) != (ssize_t)file_len) { in imagetool_save_subimage()
118 close(dfd); in imagetool_save_subimage()
122 close(dfd); in imagetool_save_subimage()
A Daisimage.c179 int dfd; in ais_alloc_buffer() local
184 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_alloc_buffer()
185 if (dfd < 0) { in ais_alloc_buffer()
191 if (fstat(dfd, &sbuf) < 0) { in ais_alloc_buffer()
213 close(dfd); in ais_alloc_buffer()
222 int dfd; in ais_copy_image() local
227 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_copy_image()
228 if (dfd < 0) { in ais_copy_image()
234 if (fstat(dfd, &sbuf) < 0) { in ais_copy_image()
240 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in ais_copy_image()
[all …]
A Dimx8image.c300 int dfd; in copy_file_aligned() local
315 if (dfd < 0) { in copy_file_aligned()
321 if (fstat(dfd, &sbuf) < 0) { in copy_file_aligned()
359 close(dfd); in copy_file_aligned()
364 int dfd; in copy_file() local
375 if (dfd < 0) { in copy_file()
381 if (fstat(dfd, &sbuf) < 0) { in copy_file()
436 close(dfd); in copy_file()
441 int dfd; in read_dcd_offset() local
447 if (dfd < 0) { in read_dcd_offset()
[all …]
A Drkcommon.c475 int dfd; in copy_file() local
483 dfd = open(file, O_RDONLY | O_BINARY); in copy_file()
484 if (dfd < 0) { in copy_file()
490 if (fstat(dfd, &sbuf) < 0) { in copy_file()
500 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
515 close(dfd); in copy_file()
521 close(dfd); in copy_file()
A Dmkimage.c340 int dfd; in main() local
449 dfd = open(params.datafile, O_RDONLY | O_BINARY); in main()
450 if (dfd < 0) { in main()
457 if (fstat(dfd, &sbuf) < 0) { in main()
465 close(dfd); in main()
679 int dfd; in copy_file() local
695 if ((dfd = open(datafile, O_RDONLY|O_BINARY)) < 0) { in copy_file()
701 if (fstat(dfd, &sbuf) < 0) { in copy_file()
707 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
781 (void) close (dfd); in copy_file()
A Dimx8mimage.c247 int dfd; in copy_file() local
257 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file()
258 if (dfd < 0) { in copy_file()
264 if (fstat(dfd, &sbuf) < 0) { in copy_file()
270 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
314 close(dfd); in copy_file()

Completed in 14 milliseconds