/external/chromium_org/sandbox/linux/services/ |
D | scoped_process.cc | 38 PCHECK(0 == pipe(pipe_fds_)); in ScopedProcess() 44 PCHECK(0 <= child_process_id_); in ScopedProcess() 47 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[0]))); in ScopedProcess() 57 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[1]))); in ScopedProcess() 64 PCHECK(0 == kill(child_process_id_, SIGKILL)); in ~ScopedProcess() 67 PCHECK(0 == HANDLE_EINTR( in ~ScopedProcess() 71 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[0]))); in ~ScopedProcess() 74 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[1]))); in ~ScopedProcess() 85 PCHECK(0 == ret) << "Did something else wait on the child?"; in WaitForExit() 102 PCHECK(ret >= 0); in WaitForClosureToRun()
|
D | credentials.cc | 55 PCHECK(0 == fclose(f)); in operator ()() 66 PCHECK(0 == closedir(d)); in operator ()() 79 PCHECK(f); in WriteToIdMapFile() 99 PCHECK(getresuid(&ruid, &euid, &suid) == 0); in GetRESIds() 100 PCHECK(getresgid(&rgid, &egid, &sgid) == 0); in GetRESIds() 129 PCHECK(0 == chdir("/")); in ChrootToThreadFdInfo() 162 PCHECK(error == EPERM || error == EUSERS || error == EINVAL || in CheckCloneNewUserErrno() 179 PCHECK(0 <= proc_self_fd); in CountOpenFds() 224 PCHECK(0 <= proc_self_fd); in HasOpenDirectory() 259 PCHECK(0 == cap_set_proc(cap.get())); in DropAllCapabilities() [all …]
|
D | thread_helpers.cc | 31 PCHECK(0 == fstat_ret); in IsSingleThreadedImpl() 47 PCHECK(0 <= task_fd); in IsSingleThreaded() 49 PCHECK(0 == IGNORE_EINTR(close(task_fd))); in IsSingleThreaded() 80 PCHECK(ENOENT == errno); in StopThreadAndWatchProcFS() 87 PCHECK(0 == HANDLE_EINTR(nanosleep(&ts, &ts))); in StopThreadAndWatchProcFS()
|
D | credentials_unittest.cc | 35 PCHECK(cwd); in WorkingDirectoryIsRoot() 155 PCHECK(0 == getresuid(&old_ruid, &old_euid, &old_suid)); in SANDBOX_TEST() 156 PCHECK(0 == getresgid(&old_rgid, &old_egid, &old_sgid)); in SANDBOX_TEST() 160 PCHECK(0 == getresuid(&new_ruid, &new_euid, &new_suid)); in SANDBOX_TEST() 166 PCHECK(0 == getresgid(&new_rgid, &new_egid, &new_sgid)); in SANDBOX_TEST()
|
D | scoped_process_unittest.cc | 34 PCHECK(0 == raise(signal)); in RaiseAndExit() 58 PCHECK(SIG_ERR != signal(SIGABRT, SIG_DFL)); in TEST()
|
D | yama_unittests.cc | 34 PCHECK(0 == wait_ret); in CanPtrace() 35 PCHECK(0 == ptrace(PTRACE_DETACH, pid, NULL, NULL)); in CanPtrace()
|
D | broker_process.cc | 159 PCHECK(0 == IGNORE_EINTR(close(ipc_socketpair_))); in ~BrokerProcess() 160 PCHECK(0 == kill(broker_pid_, SIGKILL)); in ~BrokerProcess() 164 PCHECK(0 == ret); in ~BrokerProcess()
|
D | yama.cc | 93 PCHECK(1 == num_read); in GetStatus()
|
/external/chromium_org/base/files/ |
D | dir_reader_posix_unittest.cc | 35 PCHECK(chdir(dir) == 0); in TEST() 41 PCHECK(fd >= 0); in TEST() 42 PCHECK(close(fd) == 0); in TEST() 79 PCHECK(unlink(buf) == 0); in TEST() 82 PCHECK(rmdir(dir) == 0); in TEST() 84 PCHECK(fchdir(prev_wd) == 0); in TEST() 85 PCHECK(close(prev_wd) == 0); in TEST()
|
D | scoped_file.cc | 29 PCHECK(0 == IGNORE_EINTR(close(fd))); in Free()
|
/external/chromium_org/mojo/embedder/ |
D | platform_channel_pair_posix.cc | 40 PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in PlatformChannelPair() 41 PCHECK(fcntl(fds[0], F_SETFL, O_NONBLOCK) == 0); in PlatformChannelPair() 42 PCHECK(fcntl(fds[1], F_SETFL, O_NONBLOCK) == 0); in PlatformChannelPair() 49 PCHECK(setsockopt(fds[0], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, in PlatformChannelPair() 51 PCHECK(setsockopt(fds[1], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, in PlatformChannelPair()
|
D | platform_channel_pair_win.cc | 47 PCHECK(server_handle_.is_valid()); in PlatformChannelPair() 66 PCHECK(client_handle_.is_valid()); in PlatformChannelPair() 71 PCHECK(GetLastError() == ERROR_PIPE_CONNECTED); in PlatformChannelPair()
|
/external/chromium_org/content/zygote/ |
D | zygote_main_linux.cc | 421 PCHECK(received_size >= 0); in SanitizerCoverageHelper() 425 PCHECK(file_fd >= 0); in SanitizerCoverageHelper() 431 PCHECK(write_res >= 0); in SanitizerCoverageHelper() 434 PCHECK(0 == HANDLE_EINTR(fsync(file_fd))); in SanitizerCoverageHelper() 440 PCHECK(0 == socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds)); in CreateSanitizerCoverageSocketPair() 441 PCHECK(0 == shutdown(fds[0], SHUT_WR)); in CreateSanitizerCoverageSocketPair() 442 PCHECK(0 == shutdown(fds[1], SHUT_RD)); in CreateSanitizerCoverageSocketPair() 448 PCHECK(pid >= 0); in ForkSanitizerCoverageHelper() 451 PCHECK(0 == IGNORE_EINTR(close(parent_fd))); in ForkSanitizerCoverageHelper() 456 PCHECK(0 == IGNORE_EINTR(close(child_fd))); in ForkSanitizerCoverageHelper() [all …]
|
D | zygote_linux.cc | 60 PCHECK(0 == pipe(raw_pipe)); in CreatePipe() 78 PCHECK(0 == kill(pid, SIGKILL)); in KillAndReap() 79 PCHECK(pid == HANDLE_EINTR(waitpid(pid, NULL, 0))); in KillAndReap() 162 PCHECK(0 == IGNORE_EINTR(close(*it))); in HandleRequestFromBrowser() 171 PCHECK(*it == HANDLE_EINTR(waitpid(*it, NULL, 0))); in HandleRequestFromBrowser() 527 PCHECK(0 == IGNORE_EINTR(close(kZygoteSocketPairFd))); in ReadArgsAndFork()
|
/external/chromium_org/components/nacl/loader/ |
D | nacl_helper_linux.cc | 57 PCHECK(-1 != fcntl(file_descriptor, F_GETFD, 0)); in ReplaceFDWithDummy() 59 PCHECK(0 == pipe(pipefd)); in ReplaceFDWithDummy() 60 PCHECK(-1 != dup2(pipefd[0], file_descriptor)); in ReplaceFDWithDummy() 61 PCHECK(0 == IGNORE_EINTR(close(pipefd[0]))); in ReplaceFDWithDummy() 62 PCHECK(0 == IGNORE_EINTR(close(pipefd[1]))); in ReplaceFDWithDummy() 75 PCHECK(0 == IGNORE_EINTR(close(kNaClZygoteDescriptor))); in BecomeNaClLoader() 97 PCHECK(signal(SIGPIPE, SIG_IGN) != SIG_ERR); in BecomeNaClLoader()
|
/external/chromium_org/chrome/browser/ |
D | process_info_snapshot_mac_unittest.cc | 103 PCHECK(pipe(fds) == 0); in TEST_F() 119 PCHECK(IGNORE_EINTR(close(fds[1])) == 0); in TEST_F() 124 PCHECK(HANDLE_EINTR(read(fds[0], buf, 1)) == 1); in TEST_F() 139 PCHECK(IGNORE_EINTR(close(fds[0])) == 0); in TEST_F()
|
/external/chromium_org/components/nacl/loader/sandbox_linux/ |
D | nacl_sandbox_linux.cc | 36 PCHECK(0 == IGNORE_EINTR(close(proc_fd))); in IsSandboxed() 53 PCHECK(proc_fd_.is_valid()); in NaClSandbox() 63 PCHECK(proc_self_task.is_valid()); in IsSingleThreaded()
|
/external/chromium_org/content/browser/renderer_host/ |
D | render_sandbox_host_linux.cc | 40 PCHECK(0 == shutdown(renderer_socket_, SHUT_RD)) << "shutdown"; in Init() 45 PCHECK(0 == shutdown(browser_socket, SHUT_WR)) << "shutdown"; in Init()
|
/external/chromium_org/sandbox/linux/suid/client/ |
D | setuid_sandbox_client.cc | 166 PCHECK(0 == fstat(kZygoteIdFd, &st)); in CloseDummyFile() 169 PCHECK(0 == IGNORE_EINTR(close(kZygoteIdFd))); in CloseDummyFile() 304 PCHECK(0 == pipe(pipe_fds)); in SetupLaunchOptions() 305 PCHECK(0 == IGNORE_EINTR(close(pipe_fds[1]))); in SetupLaunchOptions()
|
/external/qemu/android/filesystems/ |
D | ext4_utils_unittest.cpp | 57 PCHECK(file.get()) << "Could not create temporary file!"; in createTempFile() 58 PCHECK(::fwrite(mImage, maxBytes, 1, file.get()) == 1) in createTempFile()
|
/external/chromium_org/mojo/common/test/ |
D | test_utils_posix.cc | 80 PCHECK(rv != -1) << "dup"; in PlatformHandleFromFILE() 88 PCHECK(rv) << "fdopen"; in FILEFromPlatformHandle()
|
D | test_utils_win.cc | 88 PCHECK(DuplicateHandle( in PlatformHandleFromFILE() 115 PCHECK(rv) << "_fdopen"; in FILEFromPlatformHandle()
|
/external/chromium_org/sandbox/linux/tests/ |
D | test_utils.cc | 24 PCHECK(ECHILD == errno); in CurrentProcessHasChildren()
|
/external/qemu/android/base/containers/ |
D | PodVector.cpp | 56 PCHECK(mBegin) in initFrom() 116 PCHECK(newBegin) << LogString( in reserve()
|
/external/qemu/android/filesystems/testing/ |
D | TestSupport.cpp | 44 PCHECK(ret >= 0) << "Could not create temporary filepath"; in CreateTempFilePath()
|