Searched defs:fds (Results 1 - 8 of 8) sorted by relevance
/system/extras/tests/storage/ |
H A D | opentest.c | 30 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/libutils/tests/ |
H A D | TestHelpers.h | 30 int fds[2]; local 31 ::pipe(fds); 33 receiveFd = fds[0]; 34 sendFd = fds[1];
|
/system/core/adb/ |
H A D | framebuffer_service.c | 62 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 D | fdevent.c | 302 /* 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);
|
H A D | jdwp_service.c | 405 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 D | commandline.c | 299 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);
|
/system/core/include/utils/ |
H A D | Flattenable.h | 93 // file descriptors are written in the fds[] array but ownership is 96 inline status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 101 // unflattened file descriptors are found in the fds[] array and 105 inline status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count); 118 void*& buffer, size_t& size, int*& fds, size_t& count) const { 119 return static_cast<T const*>(this)->T::flatten(buffer, size, fds, count); 123 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 124 return static_cast<T*>(this)->T::unflatten(buffer, size, fds, count); 117 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 122 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
/system/core/sh/ |
H A D | eval.c | 133 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 197 milliseconds