Home
last modified time | relevance | path

Searched refs:file_fd (Results 1 – 3 of 3) sorted by relevance

/system/core/toolbox/
Dmount.c172 int file_fd, device_fd; in do_mount() local
177 file_fd = open(dev, flags); in do_mount()
178 if (file_fd < 0) { in do_mount()
185 close(file_fd); in do_mount()
188 if (ioctl(device_fd, LOOP_SET_FD, file_fd) < 0) { in do_mount()
190 close(file_fd); in do_mount()
195 close(file_fd); in do_mount()
/system/vold/
DLoop.cpp177 int file_fd; in create() local
179 if ((file_fd = open(loopFile, O_RDWR)) < 0) { in create()
185 if (ioctl(fd, LOOP_SET_FD, file_fd) < 0) { in create()
187 close(file_fd); in create()
200 close(file_fd); in create()
206 close(file_fd); in create()
/system/core/libsparse/
Doutput_file.c751 int file_fd = open(file, O_RDONLY | O_BINARY); in write_file_chunk() local
752 if (file_fd < 0) { in write_file_chunk()
756 ret = write_fd_chunk(out, len, file_fd, offset); in write_file_chunk()
758 close(file_fd); in write_file_chunk()