/external/valgrind/main/none/tests/ |
fdleak_pipe.c | 6 int fds[2]; local 10 DO( pipe(fds) );
|
fdleak_socketpair.c | 8 int fds[2]; local 12 DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
|
syscall-restart1.c | 18 int fds[2]; local 20 if (pipe(fds) == -1) { 43 close(fds[1]); 44 ret = read(fds[0], &ch, 1); 52 close(fds[0]); 56 if (write(fds[1], "x", 1) != -1 || errno != EPIPE)
|
syscall-restart2.c | 18 int fds[2]; local 20 if (pipe(fds) == -1) { 43 close(fds[1]); 44 ret = read(fds[0], &ch, 1); 52 close(fds[0]); 56 write(fds[1], "x", 1);
|
/external/compiler-rt/lib/tsan/lit_tests/ |
fd_dup_norace.cc | 9 int fds[2]; variable 13 read(fds[0], &buf, 1); 14 close(fds[0]); 19 close(fds[1]); 24 fds[0] = open("/dev/random", O_RDONLY); 25 fds[1] = dup2(fds[0], 100);
|
fd_location.cc | 6 int fds[2]; variable 9 write(fds[1], "a", 1); 15 close(fds[0]); 16 close(fds[1]); 21 pipe(fds);
|
fd_pipe_race.cc | 6 int fds[2]; variable 9 write(fds[1], "a", 1); 15 close(fds[0]); 16 close(fds[1]); 21 pipe(fds);
|
fd_socketpair_norace.cc | 8 int fds[2]; variable 13 write(fds[1], "a", 1); 14 close(fds[1]); 20 while (read(fds[0], &buf, 1) != 1) { 23 close(fds[0]); 28 socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
|
fd_pipe_norace.cc | 6 int fds[2]; variable 11 write(fds[1], "a", 1); 17 while (read(fds[0], &buf, 1) != 1) { 24 pipe(fds);
|
/development/ndk/sources/android/libportable/arch-mips/ |
poll.c | 109 int WRAP(poll)(struct pollfd *fds, nfds_t nfds, long timeout) 115 fds->events = mips_change_portable_events(fds->events); 117 ret = REAL(poll)(fds, nfds, timeout); 120 fds->events = change_mips_events(fds->events); 121 fds->revents = change_mips_events(fds->revents);
|
/external/openssh/openbsd-compat/regress/ |
closefromtest.c | 39 int i, max, fds[NUM_OPENS]; local 43 if ((fds[i] = open("/dev/null", O_RDONLY)) == -1) 48 closefrom(fds[max]); 49 if (close(fds[max]) != -1) 54 if (read(fds[i], buf, sizeof(buf)) == -1) 57 /* should close all fds */ 58 closefrom(fds[0]); 60 if (close(fds[i]) != -1)
|
/external/dhcpcd/ |
control.h | 38 extern struct fd_list *fds;
|
/external/e2fsprogs/lib/ |
fpopen.c | 42 int fds[2]; local 92 if (pipe(fds) < 0) 101 close(fds[1]); 102 dup2(fds[0], 0); 104 close(fds[0]); 105 dup2(fds[1], 1); 107 dup2(fds[1], 2); 113 return fdopen(do_stdin ? fds[1] : fds[0], mode);
|
/external/qemu/hw/ |
fdc.h | 8 BlockDriverState **fds); 10 BlockDriverState **fds, qemu_irq *fdc_tc);
|
/frameworks/base/libs/androidfw/tests/ |
TestHelpers.h | 30 int fds[2]; local 31 ::pipe(fds); 33 receiveFd = fds[0]; 34 sendFd = fds[1];
|
/frameworks/native/libs/utils/tests/ |
TestHelpers.h | 30 int fds[2]; local 31 ::pipe(fds); 33 receiveFd = fds[0]; 34 sendFd = fds[1];
|
/frameworks/wilhelm/tests/sandbox/ |
getch.c | 38 fd_set fds; local 39 FD_ZERO(&fds); // not in original posting to stackoverflow 40 FD_SET(0, &fds); 41 return select(1, &fds, NULL, NULL, &tv);
|
/external/qemu/ |
compatfd.c | 75 int fds[2]; local 83 if (pipe(fds) == -1) { 88 qemu_set_cloexec(fds[0]); 89 qemu_set_cloexec(fds[1]); 92 info->fd = fds[1]; 101 return fds[0];
|
os-posix.c | 54 static int fds[2]; variable 245 if (pipe(fds) == -1) 253 close(fds[1]); 256 len = read(fds[0], &status, 1); 270 close(fds[0]); 271 qemu_set_cloexec(fds[1]); 298 len = write(fds[1], &status, 1); 330 if (write(fds[1], &status, 1) != 1) { 345 int qemu_eventfd(int fds[2]) 352 fds[0] = ret [all...] |
/external/openssh/openbsd-compat/ |
bsd-poll.c | 40 poll(struct pollfd *fds, nfds_t nfds, int timeout) 49 fd = fds[i].fd; 68 fd = fds[i].fd; 71 if (fds[i].events & POLLIN) { 75 if (fds[i].events & POLLOUT) { 93 fd = fds[i].fd; 94 fds[i].revents = 0; 98 fds[i].revents |= POLLIN; 101 fds[i].revents |= POLLOUT; 104 fds[i].revents |= POLLERR [all...] |
/system/extras/tests/storage/ |
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) {
|
/external/qemu/android/utils/ |
tempfile.c | 138 int fds[ MAX_ATEXIT_FDS ]; member in struct:__anon13111 145 t->fds[t->count++] = fd; 157 if (t->fds[nn] == fd) { 160 t->fds[nn] = t->fds[t->count]; 170 close(t->fds[nn]);
|
/hardware/libhardware_legacy/uevent/ |
uevent.c | 76 struct pollfd fds; local 79 fds.fd = fd; 80 fds.events = POLLIN; 81 fds.revents = 0; 82 nr = poll(&fds, 1, -1); 84 if(nr > 0 && (fds.revents & POLLIN)) {
|
/system/core/adb/ |
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]);
|
/external/chromium/third_party/libevent/ |
devpoll.c | 63 struct evdevpoll *fds; member in struct:devpollop 162 devpollop->fds = calloc(nfiles, sizeof(struct evdevpoll)); 163 if (devpollop->fds == NULL) { 173 free(devpollop->fds); 191 struct evdevpoll *fds; local 198 fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll)); 199 if (fds == NULL) { 203 devpollop->fds = fds; [all...] |