/system/core/libprocinfo/ |
process.cpp | 66 int status_fd = openat(fd, "status", O_RDONLY | O_CLOEXEC); local 68 if (status_fd == -1) { 73 std::unique_ptr<FILE, decltype(&fclose)> fp(fdopen(status_fd, "r"), fclose); 76 close(status_fd);
|
/bootable/recovery/tests/component/ |
install_test.cpp | 236 int status_fd = 10; local 241 ASSERT_EQ(0, update_binary_command(package, zip, binary_path, 0, status_fd, &cmd)); 247 ASSERT_EQ("--status_fd=" + std::to_string(status_fd), cmd[4]); 249 ASSERT_EQ(INSTALL_ERROR, update_binary_command(package, zip, binary_path, 0, status_fd, &cmd)); 271 int status_fd = 10; 276 ASSERT_EQ(0, update_binary_command(package, zip, binary_path, 0, status_fd, &cmd)); 280 ASSERT_EQ(std::to_string(status_fd), cmd[2]); 288 ASSERT_EQ(0, update_binary_command(package, zip, binary_path, 2, status_fd, &cmd)); 292 ASSERT_EQ(std::to_string(status_fd), cmd[2]) 329 int status_fd = 10; local [all...] |
/external/valgrind/coregrind/ |
vgdb-invoker-solaris.c | 169 int status_fd = open(procname, O_RDONLY, 0); local 170 if (status_fd < 0) { 176 bytes = read(status_fd, &pstatus, sizeof(pstatus)); 179 close(status_fd); 187 close(status_fd); 195 close(status_fd); 199 close(status_fd); 222 int status_fd = open(procname, O_RDONLY, 0); local 223 if (status_fd < 0) { 229 ssize_t bytes = read(status_fd, &status, sizeof(status)) 394 int status_fd = open(procname, O_RDONLY, 0); local [all...] |