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

/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/vold/
H A DLoop.cpp177 int file_fd; local
179 if ((file_fd = open(loopFile, O_RDWR)) < 0) {
185 if (ioctl(fd, LOOP_SET_FD, file_fd) < 0) {
187 close(file_fd);
200 close(file_fd);
206 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);
/system/extras/ext4_utils/
H A Doutput_file.c550 int file_fd = open(file, O_RDONLY | O_BINARY); local
551 if (file_fd < 0) {
561 u8 *data = mmap64(NULL, buffer_size, PROT_READ, MAP_SHARED, file_fd,
565 close(file_fd);
572 close(file_fd);
594 write(file_fd, data, buffer_size);
597 close(file_fd);

Completed in 142 milliseconds