Home
last modified time | relevance | path

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

/openbmc/u-boot/tools/
H 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()
H A Daisimage.c180 int dfd; in ais_alloc_buffer() local
185 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_alloc_buffer()
186 if (dfd < 0) { in ais_alloc_buffer()
192 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 …]
H A Dimx8image.c299 int dfd; in copy_file_aligned() local
313 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file_aligned()
314 if (dfd < 0) { in copy_file_aligned()
320 if (fstat(dfd, &sbuf) < 0) { in copy_file_aligned()
329 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file_aligned()
358 close(dfd); in copy_file_aligned()
363 int dfd; in copy_file() local
373 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file()
374 if (dfd < 0) { in copy_file()
380 if (fstat(dfd, &sbuf) < 0) { in copy_file()
[all …]
H A Dmkimage.c320 int dfd; in main() local
422 dfd = open(params.datafile, O_RDONLY | O_BINARY); in main()
423 if (dfd < 0) { in main()
430 if (fstat(dfd, &sbuf) < 0) { in main()
438 close(dfd); in main()
644 int dfd; in copy_file() local
660 if ((dfd = open(datafile, O_RDONLY|O_BINARY)) < 0) { in copy_file()
666 if (fstat(dfd, &sbuf) < 0) { in copy_file()
672 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
739 (void) close (dfd); in copy_file()
H A Dimx8mimage.c226 int dfd; in copy_file() local
236 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file()
237 if (dfd < 0) { in copy_file()
243 if (fstat(dfd, &sbuf) < 0) { in copy_file()
249 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
293 close(dfd); in copy_file()
/openbmc/qemu/util/
H A Doslib-posix.c857 int fd, dfd; in qemu_close_all_open_fd_proc() local
867 dfd = dirfd(dir); in qemu_close_all_open_fd_proc()
876 if (fd == dfd) { in qemu_close_all_open_fd_proc()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/gphoto2/libgphoto2/
H A D40-libgphoto2.rules772 ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0dfd", ENV{ID_MEDIA_PLAYER}="1", MODE="l36"
/openbmc/qemu/linux-user/
H A Dsyscall.c794 safe_syscall4(int, fchmodat2, int, dfd, const char *, filename, in safe_syscall3()