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

1 2 3 4

  /external/bluetooth/bluez/src/
ppoll.h 7 static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds,
11 return poll(fds, nfds, -1);
13 return poll(fds, nfds, 500);
15 return poll(fds, nfds, timeout->tv_sec * 1000);
  /external/qemu/
compatfd.h 26 int qemu_eventfd(int *fds);
compatfd.c 75 int fds[2]; local
83 if (pipe(fds) == -1) {
89 info->fd = fds[1];
98 return fds[0];
114 int qemu_eventfd(int *fds)
121 fds[0] = fds[1] = ret;
127 return pipe(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/chromium/base/
unix_domain_socket_posix.cc 18 bool SendMsg(int fd, const void* buf, size_t length, std::vector<int>& fds) {
26 if (fds.size()) {
27 const unsigned control_len = CMSG_SPACE(sizeof(int) * fds.size());
39 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size());
40 memcpy(CMSG_DATA(cmsg), &fds[0], sizeof(int) * fds.size()); local
50 ssize_t RecvMsg(int fd, void* buf, size_t length, std::vector<int>* fds) {
53 fds->clear();
93 fds->resize(wire_fds_len);
94 memcpy(&(*fds)[0], wire_fds, sizeof(int) * wire_fds_len)
101 int fds[2]; local
    [all...]
unix_domain_socket_posix.h 19 std::vector<int>& fds);
22 ssize_t RecvMsg(int fd, void* msg, size_t length, std::vector<int>* fds);
  /external/bluetooth/glib/glib/
gpoll.c 62 /* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
89 extern gint poll (struct pollfd *fds, guint nfsd, gint timeout);
94 * @fds: file descriptors to poll
95 * @nfds: the number of file descriptors in @fds
98 * Polls @fds, as with the poll() system call, but portably. (On
104 * Each element of @fds is a #GPollFD describing a single file
110 * On POSIX systems, the file descriptors in @fds can be any sort of
116 * Return value: the number of entries in @fds whose %revents fields
123 g_poll (GPollFD *fds,
127 return poll ((struct pollfd *)fds, nfds, timeout)
    [all...]
gpoll.h 87 gint g_poll (GPollFD *fds,
  /external/dbus/bus/
dir-watch-dnotify.c 37 static int fds[MAX_DIRS_TO_WATCH]; variable
67 fds[num_fds++] = fd;
83 if (close (fds[i]) != 0)
85 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
dir-watch-kqueue.c 41 static int fds[MAX_DIRS_TO_WATCH]; variable
154 fds[num_fds++] = fd;
170 if (close (fds[i]) != 0)
172 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
  /frameworks/base/libs/utils/tests/
TestHelpers.h 30 int fds[2]; local
31 ::pipe(fds);
33 receiveFd = fds[0];
34 sendFd = fds[1];
  /system/media/opensles/tests/sandbox/
getch.c 37 fd_set fds; local
38 FD_ZERO(&fds); // not in original posting to stackoverflow
39 FD_SET(0, &fds);
40 return select(1, &fds, NULL, NULL, &tv);
  /frameworks/base/include/utils/
Flattenable.h 38 // file descriptors are written in the fds[] array but ownership is
42 int fds[], size_t count) const = 0;
47 // unflattened file descriptors are found in the fds[] array and
52 int fds[], size_t count) = 0;
  /hardware/libhardware_legacy/uevent/
uevent.c 60 struct pollfd fds; local
63 fds.fd = fd;
64 fds.events = POLLIN;
65 fds.revents = 0;
66 nr = poll(&fds, 1, -1);
68 if(nr > 0 && fds.revents == POLLIN) {
  /frameworks/base/libs/gui/
SensorChannel.cpp 35 int fds[2]; local
36 if (pipe(fds) == 0) {
37 mReceiveFd = fds[0];
38 mSendFd = fds[1];
  /external/qemu/android/utils/
tempfile.c 138 int fds[ MAX_ATEXIT_FDS ]; member in struct:__anon5908
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]);
  /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...]
epoll.c 65 struct evepoll *fds; member in struct:epollop
141 epollop->fds = calloc(INITIAL_NFILES, sizeof(struct evepoll));
142 if (epollop->fds == NULL) {
160 struct evepoll *fds; local
167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
168 if (fds == NULL) {
172 epollop->fds = fds;
173 memset(fds + epollop->nfds, 0
    [all...]
  /libcore/luni/src/main/native/
libcore_io_IoUtils.cpp 41 ScopedIntArrayRW fds(env, javaFds);
42 if (fds.get() == NULL) {
45 int rc = pipe(&fds[0]);
  /libcore/luni/src/main/java/libcore/io/
IoUtils.java 60 * elements 0 and 1 of the array 'fds'. fds[0] is the read end of the pipe.
61 * fds[1] is the write end of the pipe. Throws an appropriate IOException on failure.
63 public static native void pipe(int[] fds) throws IOException;
  /libcore/luni/src/main/java/org/apache/harmony/nio/internal/
PipeImpl.java 36 int[] fds = new int[2]; local
37 IoUtils.pipe(fds);
40 this.sink = new PipeSinkChannel(fds[1]);
41 this.source = new PipeSourceChannel(fds[0]);
  /external/e2fsprogs/misc/
logsave.c 107 int fds[2]; local
111 if (pipe(fds) < 0) {
122 dup2(fds[1],1); /* fds[1] replaces stdout */
123 dup2(fds[1],2); /* fds[1] replaces stderr */
124 close(fds[0]); /* don't need this here */
130 close(fds[1]);
133 do_read(fds[0]);
135 do_read(fds[0])
    [all...]
  /external/dbus/dbus/
dbus-mainloop.c 523 DBusPollFD *fds; local
538 fds = NULL;
554 fds = dbus_new0 (DBusPollFD, loop->watch_count);
556 while (fds == NULL)
559 fds = dbus_new0 (DBusPollFD, loop->watch_count);
571 fds = stack_fds;
575 /* fill our array of fds and watches */
612 fds[n_fds].fd = dbus_watch_get_fd (wcb->watch);
613 fds[n_fds].revents = 0;
614 fds[n_fds].events = 0
    [all...]
  /frameworks/base/include/gui/
Sensor.h 72 int fds[], size_t count) const;
74 int fds[], size_t count);
  /frameworks/base/core/jni/
android_bluetooth_BluetoothAudioGateway.cpp 371 struct pollfd fds[2];
377 fds[cnt].fd = nat->hf_ag_rfcomm_sock;
378 fds[cnt].events = POLLIN | POLLPRI | POLLOUT | POLLERR;
385 fds[cnt].fd = nat->hs_ag_rfcomm_sock;
386 fds[cnt].events = POLLIN | POLLPRI | POLLOUT | POLLERR;
393 n = poll(fds, cnt, timeout_ms);
409 for (cnt = 0; cnt < (int)(sizeof(fds)/sizeof(fds[0])); cnt++) {
410 //LOGI("Poll on fd %d revent = %d.", fds[cnt].fd, fds[cnt].revents)
    [all...]

Completed in 936 milliseconds

1 2 3 4