HomeSort by relevance Sort by last modified time
    Searched defs:fds (Results 1 - 25 of 85) sorted by null

1 2 3 4

  /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/dbus/bus/
dir-watch-dnotify.c 40 static int fds[MAX_DIRS_TO_WATCH]; variable
70 fds[num_fds++] = fd;
86 if (close (fds[i]) != 0)
88 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
dir-watch-kqueue.c 46 static int fds[MAX_DIRS_TO_WATCH]; variable
176 new_fds[i] = fds[j];
178 fds[j] = -1;
185 /* Any directory we find in "fds" with a nonzero fd must
190 if (fds[j] != -1)
192 close (fds[j]);
194 fds[j] = -1;
249 fds[i] = new_fds[i];
  /frameworks/base/libs/gui/
SensorChannel.cpp 35 int fds[2]; local
36 if (pipe(fds) == 0) {
37 mReceiveFd = fds[0];
38 mSendFd = fds[1];
  /system/media/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/chromium/chrome/browser/
process_info_snapshot_mac_unittest.cc 100 int fds[2]; local
101 PCHECK(pipe(fds) == 0);
103 fds_to_remap.push_back(std::make_pair(fds[1], 1));
115 PCHECK(HANDLE_EINTR(close(fds[1])) == 0);
120 PCHECK(HANDLE_EINTR(read(fds[0], buf, 1)) == 1);
135 PCHECK(HANDLE_EINTR(close(fds[0])) == 0);
  /external/dbus/dbus/
dbus-server-unix.c 151 int n, *fds; local
154 n = _dbus_listen_systemd_sockets (&fds, error);
163 *server_p = _dbus_server_new_for_socket (fds, n, &address, NULL);
170 _dbus_close_socket (fds[i], NULL);
172 dbus_free (fds);
178 dbus_free (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/
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];
  /frameworks/base/libs/utils/tests/
TestHelpers.h 30 int fds[2]; local
31 ::pipe(fds);
33 receiveFd = fds[0];
34 sendFd = fds[1];
  /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) {
  /libcore/luni/src/main/native/
libcore_net_RawSocket.cpp 168 pollfd fds[1]; local
169 fds[0].fd = fd.get();
170 fds[0].events = POLLIN;
171 int retval = poll(fds, 1, timeout_millis);
  /development/tools/emulator/system/camera/
EmulatedCameraDevice.cpp 250 "%s: Thread control FDs are opened", __FUNCTION__);
251 /* Create a pair of FDs that would be used to control the thread. */
259 LOGE("%s: Unable to create thread control FDs: %d -> %s",
279 /* Close control FDs. */
299 LOGE("%s: Thread control FDs are not opened", __FUNCTION__);
308 fd_set fds[1]; local
313 FD_ZERO(fds);
314 FD_SET(mControlFD, fds);
316 FD_SET(fd, fds);
323 int res = TEMP_FAILURE_RETRY(select(fd_num, fds, NULL, NULL, tvp))
    [all...]
  /external/bluetooth/glib/tests/
timeloop.c 21 int fds[2]; local
23 if (pipe(fds) < 0)
29 channels[0] = g_io_channel_unix_new (fds[0]);
30 channels[1] = g_io_channel_unix_new (fds[1]);
timeloop-closure.c 22 int fds[2]; local
24 if (pipe(fds) < 0)
30 channels[0] = g_io_channel_unix_new (fds[0]);
31 channels[1] = g_io_channel_unix_new (fds[1]);
  /external/dhcpcd/
control.c 50 struct fd_list *fds = NULL; variable in typeref:struct:fd_list
57 for (l = fds; l != NULL; l = l->next) {
62 fds = l->next;
114 l->next = fds;
115 fds = l;
143 listen(fd, sizeof(fds)) == -1)
165 l = fds;
  /external/dropbear/
common-session.c 163 * We don't want to read/write FDs. */
288 fd_set fds; local
297 FD_ZERO(&fds);
304 FD_SET(fd, &fds);
308 if (select(fd+1, &fds, NULL, NULL, &timeout) < 0) {
321 if (FD_ISSET(fd, &fds)) {
  /frameworks/base/core/jni/
android_os_ParcelFileDescriptor.cpp 57 int fds[2]; local
58 if (pipe(fds) < 0) {
65 jobject fdObj = jniCreateFileDescriptor(env, fds[i]);
  /hardware/ti/omap4xxx/libtiutils/
MessageQueue.cpp 44 int fds[2] = {-1,-1}; local
47 stat = pipe(fds);
58 this->fd_read = fds[0];
59 this->fd_write = fds[1];
  /libcore/luni/src/main/java/java/nio/
PipeImpl.java 39 FileDescriptor[] fds = Libcore.os.pipe(); local
42 this.sink = new PipeSinkChannel(fds[1]);
43 this.source = new PipeSourceChannel(fds[0]);
  /system/core/adb/
framebuffer_service.c 59 int fds[2]; local
61 if (pipe(fds) < 0) goto done;
67 dup2(fds[1], STDOUT_FILENO);
68 close(fds[0]);
69 close(fds[1]);
76 fd_screencap = fds[0];
172 close(fds[0]);
173 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...]

Completed in 1110 milliseconds

1 2 3 4