Searched refs:file_fd (Results 1 - 4 of 4) sorted by relevance
/system/core/toolbox/ |
H A D | mount.c | 153 int file_fd, device_fd; local 158 file_fd = open(dev, flags); 159 if (file_fd < 0) { 166 close(file_fd); 169 if (ioctl(device_fd, LOOP_SET_FD, file_fd) < 0) { 171 close(file_fd); 176 close(file_fd);
|
/system/vold/ |
H A D | Loop.cpp | 177 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 D | mdp_test.c | 231 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/core/libsparse/ |
H A D | output_file.c | 757 int file_fd = open(file, O_RDONLY | O_BINARY); local 758 if (file_fd < 0) { 762 ret = write_fd_chunk(out, len, file_fd, offset); 764 close(file_fd);
|
Completed in 125 milliseconds