/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)) {
|
/external/strace/ |
stream.c | 302 struct pollfd fds; local 309 size = sizeof(fds) * nfds; 312 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) { 318 abbrev_end = start + max_strlen * sizeof(fds); 325 for (cur = start; cur < end; cur += sizeof(fds)) { 332 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) { 337 if (fds.fd < 0) { 338 tprintf("{fd=%d}", fds.fd); 342 printfd(tcp, fds.fd) [all...] |
/frameworks/base/core/jni/ |
com_android_internal_os_ZygoteInit.cpp | 186 JNIEnv *env, jobject clazz, jobjectArray fds) 188 if (fds == NULL) { 189 jniThrowNullPointerException(env, "fds == null"); 193 jsize length = env->GetArrayLength(fds); 204 jobject fdObj = env->GetObjectArrayElement(fds, i); 234 jobject fdObj = env->GetObjectArrayElement(fds, i);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 51 # XXX(nnorwitz): these tests leak fds when there is an error. 206 self.fds = [] # A list of file descriptors to close. 214 for fd in self.fds: 222 self.fds.extend(pipe_fds) 238 self.fds.extend(masters) 267 self.fds.extend(masters) 277 # We expect that both fds were removed from the fds list as they
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 51 # XXX(nnorwitz): these tests leak fds when there is an error. 206 self.fds = [] # A list of file descriptors to close. 214 for fd in self.fds: 222 self.fds.extend(pipe_fds) 238 self.fds.extend(masters) 267 self.fds.extend(masters) 277 # We expect that both fds were removed from the fds list as they
|
/external/chromium_org/third_party/libusb/src/libusb/ |
io.c | 1930 struct pollfd *fds = NULL; local [all...] |
/frameworks/native/include/binder/ |
Parcel.h | 274 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0; 275 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0; 291 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { 292 return val.flatten(buffer, size, fds, count); 294 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { 295 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count);
|
/frameworks/native/libs/ui/ |
GraphicBuffer.cpp | 211 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { 232 memcpy(fds, h->data, h->numFds*sizeof(int)); 238 fds += handle->numFds; 245 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 272 memcpy(h->data, fds, numFds*sizeof(int)); 293 fds += numFds;
|
/external/chromium_org/ipc/ |
file_descriptor_set_posix.cc | 129 void FileDescriptorSet::ReleaseFDsToClose(std::vector<int>* fds) { 133 fds->push_back(i->fd);
|
/frameworks/base/core/java/android/net/ |
LocalSocket.java | 285 * @param fds non-null; file descriptors to send. 287 public void setFileDescriptorsForSend(FileDescriptor[] fds) { 288 impl.setFileDescriptorsForSend(fds);
|
/frameworks/native/include/ui/ |
GraphicBuffer.h | 109 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 110 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
/external/libusb/libusb/ |
io.c | 1781 struct pollfd *fds; local [all...] |
/external/libusb/libusb/os/ |
darwin_usb.c | 244 write (priv->fds[1], &message, sizeof (message)); 626 pipe (priv->fds); 629 fcntl (priv->fds[1], F_SETFD, O_NONBLOCK); 631 usbi_add_pollfd(HANDLE_CTX(dev_handle), priv->fds[0], POLLIN); 685 usbi_remove_pollfd (HANDLE_CTX (dev_handle), priv->fds[0]); 686 close (priv->fds[1]); 687 close (priv->fds[0]); 689 priv->fds[0] = priv->fds[1] = -1; [all...] |
/external/chromium/base/ |
message_pump_glib.cc | 148 int fds[2]; local 149 CHECK_EQ(pipe(fds), 0); 150 wakeup_pipe_read_ = fds[0]; 151 wakeup_pipe_write_ = fds[1];
|
/external/chromium_org/content/browser/zygote_host/ |
zygote_host_impl_linux.h | 79 // Sends |data| to the zygote via |control_fd_|. If |fds| is non-NULL, the 82 bool SendMessage(const Pickle& data, const std::vector<int>* fds);
|
/external/chromium_org/third_party/libusb/src/libusb/os/ |
linux_netlink.c | 307 struct pollfd fds[] = { local 317 while (poll(fds, 2, -1) >= 0) { 318 if (fds[0].revents & POLLIN) { 326 if (fds[1].revents & POLLIN) {
|
linux_udev.c | 166 struct pollfd fds[] = { local 175 while (poll(fds, 2, -1) >= 0) { 176 if (fds[0].revents & POLLIN) { 184 if (fds[1].revents & POLLIN) {
|
/external/chromium/chrome/browser/ |
crash_handler_host_linux.cc | 66 int fds[2]; local 73 CHECK_EQ(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds), 0); 77 CHECK_EQ(setsockopt(fds[1], SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)), 0); 79 process_socket_ = fds[0]; 80 browser_socket_ = fds[1];
|
/external/chromium_org/sandbox/linux/services/ |
broker_process.cc | 296 std::vector<int> fds; local 300 sizeof(buf), &fds); 309 if (msg_len < 0 || fds.size() != 1 || fds.at(0) < 0) { 314 const int temporary_ipc = fds.at(0);
|
/external/chromium_org/ui/events/ozone/evdev/ |
touch_event_converter_unittest.cc | 70 int fds[2]; local 72 if (pipe(fds)) 75 DCHECK(SetNonBlocking(fds[0]) == 0) 77 DCHECK(SetNonBlocking(fds[1]) == 0) 79 read_pipe_ = fds[0]; 80 write_pipe_ = fds[1];
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothSocket.java | 192 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); local 193 if (VDBG) Log.d(TAG, "socket fd passed by stack fds: " + fds); 194 if(fds == null || fds.length != 1) { 195 Log.e(TAG, "socket fd passed from stack failed, fds: " + fds); 199 as.mSocket = new LocalSocket(fds[0]);
|
/external/chromium_org/components/breakpad/app/ |
breakpad_linux.cc | 744 int fds[2] = { -1, -1 }; local 745 if (sys_socketpair(AF_UNIX, SOCK_STREAM, 0, fds) < 0) { 761 static const unsigned kControlMsgSize = sizeof(fds); 774 iov[3].iov_base = &fds[0]; 775 iov[3].iov_len = sizeof(fds[0]); 801 ((int*) CMSG_DATA(hdr))[0] = fds[0]; 802 ((int*) CMSG_DATA(hdr))[1] = fds[1]; 807 IGNORE_RET(sys_close(fds[1])); 810 IGNORE_RET(sys_close(fds[1])); 812 if (HANDLE_EINTR(sys_read(fds[0], &b, 1)) != 1) 1358 int fds[2]; local [all...] |
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
sandbox_bpf.cc | 262 int fds[2]; local 263 if (pipe2(fds, O_NONBLOCK | O_CLOEXEC)) { 267 if (fds[0] <= 2 || fds[1] <= 2) { 294 if (IGNORE_EINTR(close(fds[0]))) { 298 WriteFailedStderrSetupMessage(fds[1]); 302 if (HANDLE_EINTR(dup2(fds[1], 2)) != 2) { 312 WriteFailedStderrSetupMessage(fds[1]); 316 if (IGNORE_EINTR(close(fds[1]))) { 320 WriteFailedStderrSetupMessage(fds[1]) [all...] |
/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/ |
_hpux.h | 248 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
|
_openbsd.h | 229 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
|