Searched defs:file_fd (Results 1 - 4 of 4) sorted by relevance

/system/vold/
H A DLoop.cpp175 int file_fd; local
177 if ((file_fd = open(loopFile, O_RDWR)) < 0) {
183 if (ioctl(fd, LOOP_SET_FD, file_fd) < 0) {
185 close(file_fd);
198 close(file_fd);
204 close(file_fd);
/system/core/toolbox/
H A Dmount.c148 int file_fd, device_fd; local
153 file_fd = open(dev, flags);
154 if (file_fd < 0) {
161 close(file_fd);
164 if (ioctl(device_fd, LOOP_SET_FD, file_fd) < 0) {
166 close(file_fd);
171 close(file_fd);
/system/extras/ext4_utils/
H A Doutput_file.c521 int file_fd = open(file, O_RDONLY); local
522 if (file_fd < 0) {
530 u8 *data = mmap64(NULL, len + aligned_diff, PROT_READ, MAP_SHARED, file_fd,
534 close(file_fd);
552 close(file_fd);
556 close(file_fd);
/system/extras/tests/framebuffer/
H A Dmdp_test.c231 int file_fd; local
235 if (open_file(optarg, &file_fd, &file_len, &src_fmt) < 0) {
241 close(file_fd);
247 bytes = read(file_fd, ptr, file_len);

Completed in 236 milliseconds