HomeSort by relevance Sort by last modified time
    Searched defs:fds (Results 101 - 125 of 393) sorted by null

1 2 3 45 6 7 8 91011>>

  /system/extras/tests/pagingtest/
thrashing_test.c 15 int fds[4] = {-1, -1, -1, -1}; local
34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1);
36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) {
37 fds[i] = create_tmp_file(tmpnames[i], filesize);
38 if (fds[i] < 0) {
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) {
44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0);
52 posix_fadvise(fds[i], 0, filesize, POSIX_FADV_RANDOM);
60 for (size_t j = 0; j < ARRAY_SIZE(fds); j++) {
73 (filesize * ARRAY_SIZE(fds) * test_runs * USEC_PER_SEC)
    [all...]
  /cts/tests/tests/graphics/jni/
android_graphics_cts_SyncTest.cpp 45 jint* fds = static_cast<jint*>(env->GetPrimitiveArrayCritical(fds_array, nullptr)); local
47 pollfds[i].fd = fds[i];
50 env->ReleasePrimitiveArrayCritical(fds_array, fds, 0);
  /device/google/cuttlefish_common/host/libs/ivserver/
hald_client_test.cc 168 cvd::SharedFD fds[3]; local
170 EXPECT_GT(test_socket_->RecvMsgAndFDs<3>(hdr, MSG_NOSIGNAL, &fds), 0);
171 EXPECT_TRUE(fds[0]->IsOpen());
172 EXPECT_TRUE(fds[1]->IsOpen());
173 EXPECT_TRUE(fds[2]->IsOpen());
  /external/google-breakpad/src/client/linux/microdump_writer/
microdump_writer_unittest.cc 52 int fds[2]; local
53 ASSERT_NE(-1, pipe(fds));
62 close(fds[1]);
64 IGNORE_RET(HANDLE_EINTR(read(fds[0], &b, sizeof(b))));
65 close(fds[0]);
68 close(fds[0]);
130 close(fds[1]);
  /external/libdaemon/libdaemon/
dexec.c 57 fd_set fds; local
134 FD_ZERO(&fds);
135 FD_SET(p[0], &fds);
137 FD_SET(sigfd, &fds);
142 fd_set qfds = fds;
  /external/ltp/testcases/kernel/syscalls/epoll_pwait/
epoll_pwait01.c 43 static int epfd, fds[2]; variable
100 SAFE_PIPE(NULL, fds);
109 epevs.data.fd = fds[0];
111 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs) == -1) {
192 if (close(fds[0]))
193 tst_resm(TWARN | TERRNO, "close(fds[0]) failed");
195 if (close(fds[1]))
196 tst_resm(TWARN | TERRNO, "close(fds[1]) failed");
  /external/ltp/testcases/kernel/syscalls/faccessat/
faccessat01.c 61 static int fds[TEST_CASES]; variable
90 TEST(myfaccessat(fds[i], filenames[i], R_OK));
129 fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY);
130 fds[1] = fds[4] = fds[0];
135 fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600);
137 fds[3] = 100;
138 fds[5] = AT_FDCWD;
149 if (fds[0] > 0
    [all...]
  /external/ltp/testcases/kernel/syscalls/fchmodat/
fchmodat01.c 61 int fds[TEST_CASES]; variable
90 TEST(myfchmodat(fds[i], filenames[i], 0600));
127 fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY);
128 fds[1] = fds[4] = fds[0];
133 fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600);
134 fds[3] = 100;
135 fds[5] = AT_FDCWD;
146 if (fds[0] > 0
    [all...]
  /external/ltp/testcases/kernel/syscalls/fcntl/
fcntl35.c 85 int fds[2]; local
87 SAFE_PIPE(fds);
89 get_size = fcntl(fds[1], F_GETPIPE_SZ);
105 if (fds[0] > 0)
106 SAFE_CLOSE(fds[0]);
108 if (fds[1] > 0)
109 SAFE_CLOSE(fds[1]);
  /external/ltp/testcases/kernel/syscalls/futimesat/
futimesat01.c 55 static int fds[TEST_CASES]; variable
82 TEST(myfutimesat(fds[i], filenames[i], times));
111 fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY);
112 fds[1] = fds[0];
117 fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600);
119 fds[3] = 100;
120 fds[4] = AT_FDCWD;
130 if (fds[0] > 0)
131 close(fds[0])
    [all...]
  /external/toybox/toys/other/
inotifyd.c 39 struct pollfd fds; local
43 fds.events = POLLIN;
47 if ((fds.fd = inotify_init()) == -1) perror_exit(0);
68 if (inotify_add_watch(fds.fd, path, mask) < 0) perror_exit_raw(path);
77 ret = poll(&fds, 1, -1);
80 xioctl(fds.fd, FIONREAD, &len);
82 len = readall(fds.fd, buf, len);
116 inotify_rm_watch(fds.fd, event->wd);
  /frameworks/native/libs/input/tests/
TestHelpers.h 32 int fds[2]; local
33 ::pipe(fds);
35 receiveFd = fds[0];
36 sendFd = fds[1];
  /hardware/libhardware_legacy/
uevent.c 77 struct pollfd fds; local
80 fds.fd = fd;
81 fds.events = POLLIN;
82 fds.revents = 0;
83 nr = poll(&fds, 1, -1);
85 if(nr > 0 && (fds.revents & POLLIN)) {
  /system/core/adb/
shell_service_protocol_test.cpp 43 int fds[2]; local
44 ASSERT_EQ(0, adb_socketpair(fds));
45 read_fd_ = fds[0];
46 write_fd_ = fds[1];
55 // Cleans up FDs and ShellProtocols. If an FD is closed manually during a
  /system/core/libutils/tests/
TestHelpers.h 30 int fds[2]; local
31 ::pipe(fds);
33 receiveFd = fds[0];
34 sendFd = fds[1];
  /tools/tradefederation/core/src/com/android/tradefed/suite/checker/
SystemServerFileDescriptorChecker.java 23 /** Checks if system server appears to be running out of FDs. */
57 Integer fds = getIntegerFromCommand(device, "su root ls /proc/" + pid + "/fd | wc -w"); local
58 if (fds == null) {
63 if (fds > MAX_EXPECTED_FDS) {
65 String message = String.format("FDs currently allocated in system server %s", fds);
  /bionic/benchmarks/tests/
interface_test.cpp 79 int fds[2]; local
80 ASSERT_NE(-1, pipe(fds));
81 ASSERT_NE(-1, fcntl(fds[0], F_SETFL, O_NONBLOCK));
85 close(fds[0]);
89 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO));
90 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO));
91 close(fds[1]);
102 close(fds[1]);
103 fd_ = fds[0];
    [all...]
  /cts/tests/aslr/src/
AslrMallocTest.cpp 71 int fds[2]; local
72 ASSERT_TRUE(pipe(fds) != -1);
79 ASSERT_TRUE(TEMP_FAILURE_RETRY(dup2(fds[1], STDOUT_FILENO)) != -1);
81 for (auto fd : fds) {
92 TEMP_FAILURE_RETRY(close(fds[1]));
95 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &output));
96 TEMP_FAILURE_RETRY(close(fds[0]));
  /device/generic/goldfish/wifi/createns/
createns.cpp 221 int fds[2]; local
222 if (::pipe2(fds, O_CLOEXEC) != 0) {
226 Fd readPipe(fds[0]);
227 Fd writePipe(fds[1]);
  /device/generic/goldfish/wifi/wifi_hal/
netlink.cpp 98 struct pollfd fds[2]; local
99 memset(fds, 0, sizeof(fds));
100 fds[0].fd = mSocket;
101 fds[0].events = POLLIN;
102 fds[1].fd = mControlPipe[kControlRead];
103 fds[1].events = POLLIN;
106 int status = ::poll(fds, 2, -1);
118 for (auto& fd : fds) {
  /device/google/cuttlefish_common/host/vsoc/lib/
region_control.cpp 242 SharedFD fds[3]; local
243 bytes = region_server->RecvMsgAndFDs(hdr, 0, &fds);
250 new HostRegionControl(region_name, fds[0], fds[1], fds[2]);
  /external/iproute2/tc/
e_bpf.c 59 int fds[BPF_SCM_MAX_FDS] = {}; local
118 ret = bpf_recv_map_fds(bpf_uds_name, fds, &aux, ARRAY_SIZE(fds));
120 fprintf(stderr, "bpf: Could not receive fds!\n");
151 fds[i - env_map]);
169 close(fds[i]);
  /external/libcups/cups/
testfile.c 57 int fds[2]; /* Open file descriptors */ local
92 pipe(fds);
93 close(fds[1]);
98 if ((fdfile = cupsFileOpenFd(fds[0], "r")) == NULL)
  /external/libdrm/tests/planetest/
atomictest.c 49 fd_set fds; local
110 FD_ZERO(&fds);
111 FD_SET(dev->fd, &fds);
135 ret = select(dev->fd + 1, &fds, NULL, NULL, NULL);
138 if (FD_ISSET(dev->fd, &fds))
  /external/libdrm/tests/vbltest/
vbltest.c 167 fd_set fds; local
169 FD_ZERO(&fds);
170 FD_SET(0, &fds);
171 FD_SET(fd, &fds);
172 ret = select(fd + 1, &fds, NULL, NULL, &timeout);
178 } else if (FD_ISSET(0, &fds)) {

Completed in 843 milliseconds

1 2 3 45 6 7 8 91011>>