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

/system/extras/tests/storage/
H A Dopentest.c30 int *fds; local
64 fds = malloc(nfiles * sizeof(int));
65 if (fds == 0) {
66 fprintf(stderr, "Unable to malloc array of %d fds\n", nfiles);
84 fds[i] = open(name, O_WRONLY | O_CREAT, 0666);
85 if (fds[i] < 0) {
/system/core/adb/
H A Dframebuffer_service.c62 int fds[2]; local
64 if (pipe(fds) < 0) goto done;
70 dup2(fds[1], STDOUT_FILENO);
71 close(fds[0]);
72 close(fds[1]);
79 fd_screencap = fds[0];
177 close(fds[0]);
178 close(fds[1]);
H A Djdwp_service.c405 int fds[2]; local
413 if (adb_socketpair(fds) < 0) {
419 proc->out_fds[ proc->out_count ] = fds[1];
423 return fds[0];
H A Dcommandline.c299 int *fds = (int*) x; local
300 fd = fds[0];
301 fdi = fds[1];
302 free(fds);
349 int *fds; local
358 fds = malloc(sizeof(int) * 2);
359 fds[0] = fd;
360 fds[1] = fdi;
365 adb_thread_create(&thr, stdin_read_thread, fds);
H A Dfdevent.c302 /* Looks at fd_table[] for bad FDs and sets bit in fds.
305 static int fdevent_fd_check(fd_set *fds) argument
314 FD_SET(i, fds);
/system/core/sh/
H A Deval.c133 sh_pipe(int fds[2]) argument
137 if (pipe(fds))
140 if (fds[0] < 3) {
141 nfd = fcntl(fds[0], F_DUPFD, 3);
143 close(fds[0]);
144 fds[0] = nfd;
148 if (fds[1] < 3) {
149 nfd = fcntl(fds[1], F_DUPFD, 3);
151 close(fds[1]);
152 fds[
[all...]

Completed in 165 milliseconds