/external/strace/tests-mx32/ |
poll.c | 180 int fds[2]; local 181 if (pipe(fds) || pipe(fds)) 188 { .fd = fds[0], .events = POLLIN | POLLPRI }, 189 { .fd = fds[1], .events = POLLOUT },
|
readv.c | 43 int fds[2]; local 44 pipe_maxfd(fds); 61 rc = writev(fds[1], efault, 42); 63 fds[1], efault, rc, errno2name()); 65 rc = readv(fds[0], efault, 42); 67 fds[0], efault, rc, errno2name()); 89 fds[1], (long) writev(fds[1], w_iov, 0)); 91 rc = writev(fds[1], w_iov + ARRAY_SIZE(w_iov_) - 1, 2); 94 fds[1], w2_c, LENGTH_OF(w2_c), w_iov + ARRAY_SIZE(w_iov_) [all...] |
threads-execve.c | 103 static int fds[2]; variable 127 if (read(fds[0], fds, sizeof(fds[0]))) 205 if (pipe(fds)) 225 close(fds[1]); 231 close(fds[1]); 238 close(fds[1]);
|
xselect.c | 88 int fds[2]; local 89 if (pipe(fds)) 93 const int nfds = fds[1] + 1; 143 *l_rs = (1UL << fds[0]) | (1UL << fds[1]); 147 TEST_SYSCALL_STR, i, fds[0], fds[1], 148 fds[0], fds[1], fds[0], fds[1]) [all...] |
/frameworks/base/core/java/android/printservice/ |
PrintDocument.java | 79 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); local 80 source = fds[0]; 81 sink = fds[1];
|
/frameworks/base/services/core/jni/ |
com_android_server_UsbMidiDevice.cpp | 92 jobjectArray fds = env->NewObjectArray(subdevice_count + 1, sFileDescriptorClass, NULL); local 93 if (!fds) { 106 env->SetObjectArrayElement(fds, i, fileDescriptor); 114 env->SetObjectArrayElement(fds, subdevice_count, fileDescriptor); 119 return fds; 123 android_server_UsbMidiDevice_close(JNIEnv *env, jobject thiz, jobjectArray fds) 131 int count = env->GetArrayLength(fds); 133 jobject fd = env->GetObjectArrayElement(fds, i);
|
/frameworks/native/cmds/dumpstate/ |
DumpstateInternal.cpp | 161 pollfd fds[] = { { .fd = fd, .events = POLLIN } }; local 162 int ret = TEMP_FAILURE_RETRY(poll(fds, arraysize(fds), 30 * 1000));
|
/hardware/intel/img/hwcomposer/merrifield/common/observers/ |
UeventObserver.cpp | 159 struct pollfd fds[2]; local 162 fds[0].fd = mUeventFd; 163 fds[0].events = POLLIN; 164 fds[0].revents = 0; 165 fds[1].fd = mExitRDFd; 166 fds[1].events = POLLIN; 167 fds[1].revents = 0; 168 nr = poll(fds, 2, -1); 170 if (nr > 0 && fds[0].revents == POLLIN) { 175 } else if (fds[1].revents) [all...] |
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/ |
UeventObserver.cpp | 159 struct pollfd fds[2]; local 162 fds[0].fd = mUeventFd; 163 fds[0].events = POLLIN; 164 fds[0].revents = 0; 165 fds[1].fd = mExitRDFd; 166 fds[1].events = POLLIN; 167 fds[1].revents = 0; 168 nr = poll(fds, 2, -1); 170 if (nr > 0 && fds[0].revents == POLLIN) { 175 } else if (fds[1].revents) [all...] |
/system/connectivity/wificond/tests/ |
looper_backed_event_loop_unittest.cpp | 40 int fds[2]; local 41 ::pipe(fds); 43 receive_fd = android::base::unique_fd(fds[0]); 44 send_fd = android::base::unique_fd(fds[1]);
|
shell_utils.cpp | 60 int fds[2]; local 61 if (pipe2(fds, O_NONBLOCK) != 0) { 64 unique_fd read_fd(fds[0]); 65 unique_fd write_fd(fds[1]);
|
/system/tools/aidl/tests/ |
aidl_test_client_file_descriptors.cpp | 94 int fds[2]; local 97 if (pipe(fds)) { 102 read_side->reset(fds[0]); 103 write_side->reset(fds[1]);
|
/bionic/tests/ |
ifaddrs_test.cpp | 293 std::vector<int> fds; local 300 fds.push_back(fd); 307 for (int fd : fds) close(fd);
|
/cts/tests/tests/nativehardware/jni/ |
AHardwareBufferTest.cpp | 267 int fds[2]; local 268 err = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); 271 ClientData data(fds[1], buffer); 276 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], NULL); 280 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], &received); 288 close(fds[0]);
|
/cts/tests/tests/os/src/android/os/cts/ |
CrossProcessExceptionTest.java | 138 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); local 140 green.dump(fds[0].getFileDescriptor(), new String[] { cmd }); 142 fds[0].close(); 143 fds[1].close();
|
/device/generic/goldfish/dhcp/server/ |
dhcpserver.cpp | 91 struct pollfd fds; local 92 fds.fd = mSocket.get(); 93 fds.events = POLLIN; 95 while ((status = ::ppoll(&fds, 1, nullptr, &originalMask)) >= 0) {
|
/device/google/cuttlefish_common/common/libs/fs/ |
shared_fd.cpp | 218 int fds[2]; local 219 int rval = pipe(fds); 221 (*fd0) = std::shared_ptr<FileInstance>(new FileInstance(fds[0], errno)); 222 (*fd1) = std::shared_ptr<FileInstance>(new FileInstance(fds[1], errno)); 240 int fds[2]; local 241 int rval = socketpair(domain, type, protocol, fds); 243 (*fd0) = std::shared_ptr<FileInstance>(new FileInstance(fds[0], errno)); 244 (*fd1) = std::shared_ptr<FileInstance>(new FileInstance(fds[1], errno));
|
/external/autotest/client/site_tests/graphics_GpuReset/src/ |
gpureset.c | 186 fd_set fds; local 192 FD_ZERO(&fds); 193 FD_SET(fd, &fds); 199 ret = select(fd+1, &fds, NULL, NULL, &tv);
|
/external/dhcpcd-6.8.2/ |
eloop.h | 79 struct pollfd *fds; member in struct:eloop_ctx
|
/external/e2fsprogs/misc/ |
logsave.c | 162 int fds[2]; local 169 if (pipe(fds) < 0) { 190 dup2(fds[1],1); /* fds[1] replaces stdout */ 191 dup2(fds[1],2); /* fds[1] replaces stderr */ 192 close(fds[0]); /* don't need this here */ 193 close(fds[1]); 200 close(fds[1]); 203 do_read(fds[0]) [all...] |
/external/google-breakpad/src/client/linux/crash_generation/ |
crash_generation_server.cc | 133 int fds[2]; local 135 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds)) 140 if (setsockopt(fds[1], SOL_SOCKET, SO_PASSCRED, &on, sizeof(on))) 143 if (fcntl(fds[1], F_SETFL, O_NONBLOCK)) 145 if (fcntl(fds[1], F_SETFD, FD_CLOEXEC)) 148 *client_fd = fds[0]; 149 *server_fd = fds[1];
|
/external/google-breakpad/src/client/mac/tests/ |
minidump_generator_test.cc | 145 int fds[2]; local 146 ASSERT_EQ(0, pipe(fds)); 152 close(fds[1]); 166 read(fds[0], &data, 1); 171 close(fds[0]); 193 (void)write(fds[1], &data, 1);
|
/external/libbrillo/brillo/ |
process_unittest.cc | 68 int fds[2]; local 72 EXPECT_EQ(0, pipe(fds)); 75 process.BindFd(fds[1], 1); 78 EXPECT_EQ(read(fds[0], buf, sizeof(buf) - 1), strlen(kMsg) + 1);
|
/external/libchrome/base/message_loop/ |
message_pump_glib.cc | 187 int fds[2]; local 188 int ret = pipe(fds); 192 wakeup_pipe_read_ = fds[0]; 193 wakeup_pipe_write_ = fds[1];
|
message_pump_libevent.cc | 170 // It's illegal to use this function to listen on 2 separate fds with the 173 NOTREACHED() << "FDs don't match" << EVENT_FD(evt.get()) << "!=" << fd; 294 int fds[2]; local 295 if (!CreateLocalNonBlockingPipe(fds)) { 299 wakeup_pipe_out_ = fds[0]; 300 wakeup_pipe_in_ = fds[1];
|