Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 6 of 6) sorted by relevance

/system/extras/tests/storage/
Dopentest.c30 int *fds; in main() local
64 fds = malloc(nfiles * sizeof(int)); in main()
65 if (fds == 0) { in main()
84 fds[i] = open(name, O_WRONLY | O_CREAT, 0666); in main()
85 if (fds[i] < 0) { in main()
/system/core/adb/
Dframebuffer_service.c62 int fds[2]; in framebuffer_service() local
64 if (pipe(fds) < 0) goto done; in framebuffer_service()
70 dup2(fds[1], STDOUT_FILENO); in framebuffer_service()
71 close(fds[0]); in framebuffer_service()
72 close(fds[1]); in framebuffer_service()
79 fd_screencap = fds[0]; in framebuffer_service()
177 close(fds[0]); in framebuffer_service()
178 close(fds[1]); in framebuffer_service()
Dcommandline.c299 int *fds = (int*) x; in stdin_read_thread() local
300 fd = fds[0]; in stdin_read_thread()
301 fdi = fds[1]; in stdin_read_thread()
302 free(fds); in stdin_read_thread()
349 int *fds; in interactive_shell() local
358 fds = malloc(sizeof(int) * 2); in interactive_shell()
359 fds[0] = fd; in interactive_shell()
360 fds[1] = fdi; in interactive_shell()
365 adb_thread_create(&thr, stdin_read_thread, fds); in interactive_shell()
Djdwp_service.c405 int fds[2]; in create_jdwp_connection_fd() local
413 if (adb_socketpair(fds) < 0) { in create_jdwp_connection_fd()
419 proc->out_fds[ proc->out_count ] = fds[1]; in create_jdwp_connection_fd()
423 return fds[0]; in create_jdwp_connection_fd()
Dfdevent.c305 static int fdevent_fd_check(fd_set *fds) in fdevent_fd_check() argument
314 FD_SET(i, fds); in fdevent_fd_check()
/system/core/sh/
Deval.c133 sh_pipe(int fds[2]) in sh_pipe()
137 if (pipe(fds)) in sh_pipe()
140 if (fds[0] < 3) { in sh_pipe()
141 nfd = fcntl(fds[0], F_DUPFD, 3); in sh_pipe()
143 close(fds[0]); in sh_pipe()
144 fds[0] = nfd; in sh_pipe()
148 if (fds[1] < 3) { in sh_pipe()
149 nfd = fcntl(fds[1], F_DUPFD, 3); in sh_pipe()
151 close(fds[1]); in sh_pipe()
152 fds[1] = nfd; in sh_pipe()