Home
last modified time | relevance | path

Searched refs:PCHECK (Results 1 – 25 of 40) sorted by relevance

12

/external/chromium_org/sandbox/linux/services/
Dscoped_process.cc38 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()
Dcredentials.cc55 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 …]
Dthread_helpers.cc31 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()
Dcredentials_unittest.cc35 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()
Dscoped_process_unittest.cc34 PCHECK(0 == raise(signal)); in RaiseAndExit()
58 PCHECK(SIG_ERR != signal(SIGABRT, SIG_DFL)); in TEST()
Dyama_unittests.cc34 PCHECK(0 == wait_ret); in CanPtrace()
35 PCHECK(0 == ptrace(PTRACE_DETACH, pid, NULL, NULL)); in CanPtrace()
Dbroker_process.cc159 PCHECK(0 == IGNORE_EINTR(close(ipc_socketpair_))); in ~BrokerProcess()
160 PCHECK(0 == kill(broker_pid_, SIGKILL)); in ~BrokerProcess()
164 PCHECK(0 == ret); in ~BrokerProcess()
Dyama.cc93 PCHECK(1 == num_read); in GetStatus()
/external/chromium_org/base/files/
Ddir_reader_posix_unittest.cc35 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()
Dscoped_file.cc29 PCHECK(0 == IGNORE_EINTR(close(fd))); in Free()
/external/chromium_org/mojo/embedder/
Dplatform_channel_pair_posix.cc40 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()
Dplatform_channel_pair_win.cc47 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/
Dzygote_main_linux.cc421 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 …]
Dzygote_linux.cc60 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/
Dnacl_helper_linux.cc57 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/
Dprocess_info_snapshot_mac_unittest.cc103 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/
Dnacl_sandbox_linux.cc36 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/
Drender_sandbox_host_linux.cc40 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/
Dsetuid_sandbox_client.cc166 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/
Dext4_utils_unittest.cpp57 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/
Dtest_utils_posix.cc80 PCHECK(rv != -1) << "dup"; in PlatformHandleFromFILE()
88 PCHECK(rv) << "fdopen"; in FILEFromPlatformHandle()
Dtest_utils_win.cc88 PCHECK(DuplicateHandle( in PlatformHandleFromFILE()
115 PCHECK(rv) << "_fdopen"; in FILEFromPlatformHandle()
/external/chromium_org/sandbox/linux/tests/
Dtest_utils.cc24 PCHECK(ECHILD == errno); in CurrentProcessHasChildren()
/external/qemu/android/base/containers/
DPodVector.cpp56 PCHECK(mBegin) in initFrom()
116 PCHECK(newBegin) << LogString( in reserve()
/external/qemu/android/filesystems/testing/
DTestSupport.cpp44 PCHECK(ret >= 0) << "Could not create temporary filepath"; in CreateTempFilePath()

12