O_RDONLY 150 base/debug/debugger_posix.cc int status_fd = open("/proc/self/status", O_RDONLY); O_RDONLY 50 base/debug/proc_maps_linux.cc base::ScopedFD fd(HANDLE_EINTR(open("/proc/self/maps", O_RDONLY))); O_RDONLY 635 base/debug/stack_trace_posix.cc int fd = open(region.path.c_str(), O_RDONLY | O_CLOEXEC); O_RDONLY 656 base/file_util_posix.cc int fd = HANDLE_EINTR(open(filename.value().c_str(), O_RDONLY)); O_RDONLY 852 base/file_util_posix.cc int infile = HANDLE_EINTR(open(from_path.value().c_str(), O_RDONLY)); O_RDONLY 32 base/files/dir_reader_linux.h : fd_(open(directory_path, O_RDONLY | O_DIRECTORY)), O_RDONLY 32 base/files/dir_reader_posix_unittest.cc const int prev_wd = open(".", O_RDONLY | O_DIRECTORY); O_RDONLY 40 base/files/dir_reader_posix_unittest.cc const int fd = open(buf, O_CREAT | O_RDONLY | O_EXCL, 0600); O_RDONLY 25 base/files/file_path_watcher_kqueue.cc #define O_EVTONLY O_RDONLY O_RDONLY 221 base/files/file_posix.cc COMPILE_ASSERT(O_RDONLY == 0, O_RDONLY_must_equal_zero); O_RDONLY 285 base/linux_util.cc int fd = open(buf, O_RDONLY); O_RDONLY 147 base/memory/shared_memory_posix.cc readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); O_RDONLY 200 base/memory/shared_memory_posix.cc readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); O_RDONLY 267 base/memory/shared_memory_posix.cc ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); O_RDONLY 413 base/memory/shared_memory_unittest.cc EXPECT_EQ(O_RDONLY, fcntl(handle.fd, F_GETFL) & O_ACCMODE) O_RDONLY 175 base/platform_file_posix.cc COMPILE_ASSERT(O_RDONLY == 0, O_RDONLY_must_equal_zero); O_RDONLY 336 base/process/launch_posix.cc base::ScopedFD null_fd(HANDLE_EINTR(open("/dev/null", O_RDONLY))); O_RDONLY 548 base/process/process_util_unittest.cc int dev_null = open("/dev/null", O_RDONLY); O_RDONLY 23 base/rand_util_posix.cc URandomFd() : fd_(open("/dev/urandom", O_RDONLY)) { O_RDONLY 18 base/test/test_file_util_linux.cc ScopedFD fd(open(file.value().c_str(), O_RDONLY)); O_RDONLY 516 base/third_party/symbolize/symbolize.cc NO_INTR(maps_fd = open("/proc/self/maps", O_RDONLY)); O_RDONLY 617 base/third_party/symbolize/symbolize.cc NO_INTR(object_fd = open(cursor, O_RDONLY)); O_RDONLY 125 base/third_party/xdg_mime/xdgmimecache.c fd = open (file_name, O_RDONLY|_O_BINARY, 0); O_RDONLY 123 chrome/browser/chromeos/memory/low_memory_observer.cc file_descriptor_ = ::open(kLowMemFile, O_RDONLY); O_RDONLY 61 chrome/browser/chromeos/system/automatic_reboot_manager.cc HANDLE_EINTR(open(path.value().c_str(), O_RDONLY | O_NOFOLLOW))); O_RDONLY 76 chrome/browser/process_singleton_mac.cc O_RDONLY | O_CREAT, 0644)); O_RDONLY 43 chrome/browser/process_singleton_mac_unittest.cc base::ScopedFD fd(HANDLE_EINTR(open(lock_path_.value().c_str(), O_RDONLY))); O_RDONLY 64 chrome/browser/shell_integration_linux.cc int devnull = open("/dev/null", O_RDONLY); O_RDONLY 145 chrome/browser/shell_integration_linux.cc int desktop_fd = open(desktop_path.value().c_str(), O_RDONLY | O_DIRECTORY); O_RDONLY 353 chrome/installer/mac/third_party/bsdiff/goobsdiff.c if(((fd=open(argv[1],O_RDONLY,0))<0) || O_RDONLY 369 chrome/installer/mac/third_party/bsdiff/goobsdiff.c if(((fd=open(argv[2],O_RDONLY,0))<0) || O_RDONLY 281 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((fd = open(path, O_RDONLY)) < 0) O_RDONLY 446 chrome/installer/mac/third_party/bsdiff/goobspatch.c if(((fd=open(argv[1],O_RDONLY,0))<0) || O_RDONLY 543 chrome/test/data/nacl/manifest_file/pm_manifest_file_test.cc "files/test_file", O_RDONLY, O_RDONLY 104 chrome/test/data/nacl/manifest_file/pm_pre_init_manifest_file_test.cc "files/test_file", O_RDONLY, O_RDONLY 156 chrome/test/data/nacl/manifest_file/pm_pre_init_manifest_file_test.cc "foobar/baz", O_RDONLY, O_RDONLY 141 chrome/test/data/nacl/nameservice/pm_nameservice_test.cc "SecureRandom", O_RDONLY, O_RDONLY 929 components/breakpad/app/breakpad_linux.cc *fd = sys_open(filename, O_RDONLY, 0); O_RDONLY 1100 components/breakpad/app/breakpad_linux.cc const int ufd = sys_open("/dev/urandom", O_RDONLY, 0); O_RDONLY 1378 components/breakpad/app/breakpad_linux.cc const int fd = sys_open("/proc/self/fd", O_DIRECTORY | O_RDONLY, 0); O_RDONLY 191 components/nacl/loader/nacl_helper_linux.cc int proc_fd = open("/proc/self/exe", O_RDONLY); O_RDONLY 139 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc device_fd = HANDLE_EINTR(open(node_path.c_str(), O_RDONLY | O_NONBLOCK)); O_RDONLY 233 content/browser/renderer_host/render_sandbox_host_linux.cc const int result_fd = open(paths_[index]->c_str(), O_RDONLY); O_RDONLY 523 content/browser/renderer_host/render_sandbox_host_linux.cc font_fd = open(reinterpret_cast<char*>(c_filename), O_RDONLY); O_RDONLY 535 content/browser/renderer_host/render_sandbox_host_linux.cc font_fd = open(reinterpret_cast<char*>(c_filename), O_RDONLY); O_RDONLY 168 content/common/plugin_list_posix.cc int fd = open(filename.value().c_str(), O_RDONLY|O_NONBLOCK); O_RDONLY 90 content/common/sandbox_linux/sandbox_linux.cc proc_self_task = openat(proc_fd, "self/task/", O_RDONLY | O_DIRECTORY); O_RDONLY 93 content/common/sandbox_linux/sandbox_linux.cc proc_self_task = open("/proc/self/task/", O_RDONLY | O_DIRECTORY); O_RDONLY 146 content/common/sandbox_linux/sandbox_linux.cc proc_fd_ = open("/proc", O_DIRECTORY | O_RDONLY | O_CLOEXEC); O_RDONLY 140 content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc syscall_ret = open("/etc/passwd", O_RDONLY); O_RDONLY 20 ipc/file_descriptor_set_posix_unittest.cc return open("/dev/null", O_RDONLY); O_RDONLY 105 ipc/ipc_send_fds_test.cc const int fd = open(kDevZeroPath, O_RDONLY); O_RDONLY 154 ipc/ipc_send_fds_test.cc int fd = open(kDevZeroPath, O_RDONLY); O_RDONLY 170 ipc/ipc_send_fds_test.cc const int fd = open(kDevZeroPath, O_RDONLY); O_RDONLY 186 ipc/ipc_send_fds_test.cc if (open(kDevZeroPath, O_RDONLY) != -1) { O_RDONLY 43 media/audio/openbsd/audio_manager_openbsd.cc if ((fd = open(file, O_RDONLY)) < 0) O_RDONLY 123 media/video/capture/linux/video_capture_device_linux.cc base::ScopedFD fd(HANDLE_EINTR(open(unique_id.c_str(), O_RDONLY))); O_RDONLY 149 media/video/capture/linux/video_capture_device_linux.cc base::ScopedFD fd(HANDLE_EINTR(open(device.id().c_str(), O_RDONLY))); O_RDONLY 258 media/video/capture/linux/video_capture_device_linux.cc base::ScopedFD fd(HANDLE_EINTR(open(device_name.id().c_str(), O_RDONLY))); O_RDONLY 174 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc Error error = Open(path, O_RDONLY, &node); O_RDONLY 35 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc return Open(path, O_RDONLY, &node); O_RDONLY 51 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc case O_RDONLY: O_RDONLY 389 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc int error = Open(manifest_path, O_RDONLY, &manifest_node); O_RDONLY 108 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc if (OpenMode() == O_RDONLY) O_RDONLY 210 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc if (OpenMode() == O_RDONLY) O_RDONLY 226 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc if (OpenMode() == O_RDONLY) O_RDONLY 134 native_client_sdk/src/libraries/nacl_io/kernel_object.cc Error error = AcquireFsAndNode(abs_path, O_RDONLY, &fs, &node); O_RDONLY 96 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc fd = open("/dev/stdin", O_RDONLY); O_RDONLY 171 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = fs->Open(rel, O_RDONLY, &node); O_RDONLY 179 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->Init(O_RDONLY); O_RDONLY 217 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (handle0->Init(O_RDONLY) || handle1->Init(O_WRONLY)) { O_RDONLY 313 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd = KernelProxy::open(path, O_RDONLY); O_RDONLY 377 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd = open(path, O_RDONLY); O_RDONLY 123 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc if (node->IsaDir() && (open_flags & 3) != O_RDONLY) O_RDONLY 63 native_client_sdk/src/libraries/nacl_io/node.cc case O_RDONLY: O_RDONLY 237 native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc int fd0 = open(getenv("PS_STDIN"), O_RDONLY); O_RDONLY 256 native_client_sdk/src/tests/nacl_io_test/event_test.cc fds[1] = kp->open("/test.txt", O_RDONLY); O_RDONLY 285 native_client_sdk/src/tests/nacl_io_test/event_test.cc fds[1] = kp->open("/test.txt", O_RDONLY); O_RDONLY 74 native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc EXPECT_EQ(0, fs.Open(Path("/"), O_RDONLY, &root)); O_RDONLY 204 native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc ASSERT_EQ(ENOENT, fs.Open(Path("/file"), O_RDONLY, &result_node)); O_RDONLY 219 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/hello"), O_RDONLY, &node)); O_RDONLY 253 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/hello"), O_RDONLY, &node)); O_RDONLY 259 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/"), O_RDONLY, &node)); O_RDONLY 275 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/"), O_RDONLY, &root)); O_RDONLY 347 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc fd = ki_open("/hello", O_RDONLY); O_RDONLY 144 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc ASSERT_EQ(0, fs->Open(path, O_RDONLY, &node)); O_RDONLY 253 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc ASSERT_EQ(0, fs->Open(Path("/file"), O_RDONLY, &node)); O_RDONLY 282 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc ASSERT_EQ(0, fs->Open(Path("/dir"), O_RDONLY, &node)); O_RDONLY 349 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc ASSERT_EQ(0, fs->Open(Path("/file"), O_RDONLY, &node)); O_RDONLY 370 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc EXPECT_EQ(0, fs->Open(Path("/dir"), O_RDONLY, &node)); O_RDONLY 419 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc EXPECT_EQ(0, fs->Open(Path("/dir"), O_RDONLY, &node)); O_RDONLY 432 native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc ASSERT_EQ(0, fs->Open(Path("/"), O_RDONLY, &root)); O_RDONLY 89 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(EIO, fs_.Open(Path("/file"), O_RDONLY, &node)); O_RDONLY 103 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); O_RDONLY 133 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); O_RDONLY 172 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); O_RDONLY 283 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(0, fs.Open(Path("/mydir/foo"), O_RDONLY, &foo)); O_RDONLY 213 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc int pipe_fd = ki_open("/dev/jspipe1", O_RDONLY); O_RDONLY 114 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(0, filesystem->Open(Path("/"), O_RDONLY, &root)); O_RDONLY 296 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd1 = ki_open("/example", O_RDONLY); O_RDONLY 303 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd2 = ki_open("../example", O_RDONLY); O_RDONLY 316 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd4 = ki_open("bar", O_RDONLY); O_RDONLY 363 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_open("/foo/bar", O_RDONLY)); O_RDONLY 375 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_open("/foo/bar", O_RDONLY | O_CREAT | O_EXCL)); O_RDONLY 383 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd3 = ki_open("/foo/bar", O_RDONLY); O_RDONLY 402 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd2 = ki_open("/foo/bar", O_RDONLY); O_RDONLY 420 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd2 = ki_open("/trunc", O_RDONLY); O_RDONLY 444 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc fd1 = ki_open("/trunc", O_RDONLY); O_RDONLY 789 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/dummy", O_RDONLY); O_RDONLY 320 native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc ASSERT_EQ(0, handle.Init(O_RDONLY)); O_RDONLY 172 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int tty_fd = ki_open("/dev/tty", O_RDONLY); O_RDONLY 215 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int tty_fd = ki_open("/dev/tty", O_RDONLY); O_RDONLY 295 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int tty_fd = ki_open("/dev/tty", O_RDONLY); O_RDONLY 328 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int fd = ki_open("/dev/tty", O_RDONLY); O_RDONLY 336 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int tty_fd = ki_open("/dev/tty", O_RDONLY); O_RDONLY 686 ppapi/native_client/src/trusted/plugin/plugin.cc wrapper(wrapper_factory()->MakeFileDesc(info.Release().desc, O_RDONLY)); O_RDONLY 239 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc plugin_->wrapper_factory()->MakeFileDesc(fd, O_RDONLY); O_RDONLY 97 ppapi/native_client/src/trusted/plugin/temporary_file.cc plugin_->wrapper_factory()->MakeFileDesc(read_fd, O_RDONLY)); O_RDONLY 141 ppapi/native_client/tests/nacl_browser/fault_injection/fault_pm_nameservice_test.cc "SecureRandom", O_RDONLY, O_RDONLY 65 remoting/host/linux/audio_pipe_reader.cc pipe_name.value().c_str(), O_RDONLY | O_NONBLOCK)); O_RDONLY 79 sandbox/linux/seccomp-bpf/bpf_tests.h BPF_ASSERT((proc_fd = open("/proc", O_RDONLY | O_DIRECTORY)) >= 0); O_RDONLY 415 sandbox/linux/seccomp-bpf/demo.cc int proc_fd = open("/proc", O_RDONLY|O_DIRECTORY); O_RDONLY 106 sandbox/linux/seccomp-bpf/sandbox_bpf.cc if ((task = openat(proc_fd, "self/task", O_RDONLY | O_DIRECTORY)) < 0 || O_RDONLY 444 sandbox/linux/seccomp-bpf/sandbox_bpf.cc proc_fd_ = open("/proc", O_RDONLY | O_DIRECTORY); O_RDONLY 754 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(broker_process->Open("/proc/denied", O_RDONLY) == -EPERM); O_RDONLY 756 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(broker_process->Open("/proc/allowed", O_RDONLY) == -ENOENT); O_RDONLY 760 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(open("/proc/denied", O_RDONLY) == -1); O_RDONLY 763 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(open("/proc/allowed", O_RDONLY) == -1); O_RDONLY 768 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(openat(AT_FDCWD, "/proc/denied", O_RDONLY) == -1); O_RDONLY 771 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(openat(AT_FDCWD, "/proc/allowed", O_RDONLY) == -1); O_RDONLY 784 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc int cpu_info_fd = open("/proc/cpuinfo", O_RDONLY); O_RDONLY 804 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc COMPILE_ASSERT(O_RDONLY == 0, O_RDONLY_must_be_all_zero_bits); O_RDONLY 834 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT((fd = open("/proc/self/comm", O_RDONLY)) >= 0); O_RDONLY 167 sandbox/linux/seccomp-bpf/syscall_unittest.cc ASSERT_GE(fd = SandboxSyscall(__NR_open, "/proc/self/exe", O_RDONLY, 0L), 0); O_RDONLY 105 sandbox/linux/services/broker_process.cc if (access_mode != O_RDONLY && access_mode != O_WRONLY && O_RDONLY 526 sandbox/linux/services/broker_process.cc case O_RDONLY: O_RDONLY 87 sandbox/linux/services/broker_process_unittest.cc int fd = open_broker.Open(NULL, O_RDONLY); O_RDONLY 119 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListed, O_RDONLY); O_RDONLY 143 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListedButDenied, O_RDONLY); O_RDONLY 166 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kW_WhiteListed, O_RDONLY); O_RDONLY 185 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_RDONLY); O_RDONLY 204 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(k_NotWhitelisted, O_RDONLY); O_RDONLY 224 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_RDONLY | O_WRONLY | O_RDWR); O_RDONLY 282 sandbox/linux/services/broker_process_unittest.cc int cpuinfo_fd = open_broker->Open(kFileCpuInfo, O_RDONLY); O_RDONLY 291 sandbox/linux/services/broker_process_unittest.cc int cpuinfo_fd2 = open(kFileCpuInfo, O_RDONLY); O_RDONLY 383 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(open_broker.Open("/proc/cpuinfo", O_RDONLY) == -ENOMEM); O_RDONLY 384 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(open_broker.Access("/proc/cpuinfo", O_RDONLY) == -ENOMEM); O_RDONLY 400 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kCpuInfo, O_RDONLY); O_RDONLY 408 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kCpuInfo, O_RDONLY | O_CLOEXEC); O_RDONLY 417 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kCpuInfo, O_RDONLY | O_NONBLOCK); O_RDONLY 179 sandbox/linux/services/credentials.cc proc_self_fd = openat(proc_fd, "self/fd", O_DIRECTORY | O_RDONLY); O_RDONLY 181 sandbox/linux/services/credentials.cc proc_self_fd = openat(AT_FDCWD, "/proc/self/fd", O_DIRECTORY | O_RDONLY); O_RDONLY 66 sandbox/linux/services/credentials_unittest.cc int dev_fd = open("/dev", O_RDONLY | O_DIRECTORY); O_RDONLY 76 sandbox/linux/services/credentials_unittest.cc int proc_fd = open("/proc", O_RDONLY | O_DIRECTORY); O_RDONLY 88 sandbox/linux/services/credentials_unittest.cc int dev_fd = open("/dev", O_RDONLY | O_DIRECTORY); O_RDONLY 46 sandbox/linux/services/thread_helpers.cc const int task_fd = open("/proc/self/task/", O_RDONLY | O_DIRECTORY); O_RDONLY 41 sandbox/linux/services/thread_helpers_unittests.cc fd_ = open("/proc/self/task/", O_RDONLY | O_DIRECTORY); O_RDONLY 82 sandbox/linux/services/yama.cc base::ScopedFD yama_scope(HANDLE_EINTR(open(kPtraceScopePath, O_RDONLY))); O_RDONLY 58 sandbox/linux/suid/linux_util.c int new_dir_fd = openat(base_dir_fd, name, O_RDONLY | O_DIRECTORY); O_RDONLY 91 sandbox/linux/suid/linux_util.c proc_pid_fd = open(buf, O_RDONLY | O_DIRECTORY); O_RDONLY 37 sandbox/linux/suid/process_util_linux.c const int dirfd = open(oom_adj, O_RDONLY | O_DIRECTORY); O_RDONLY 219 third_party/bspatch/mbspatch.cc int pfd = _wopen(patch_file, O_RDONLY | _O_BINARY); O_RDONLY 227 third_party/bspatch/mbspatch.cc ofd = _wopen(old_file, O_RDONLY | _O_BINARY); O_RDONLY 169 third_party/leveldatabase/env_chromium_stdio.cc int parent_fd = HANDLE_EINTR(open(parent_dir_.c_str(), O_RDONLY)); O_RDONLY 2753 third_party/libevent/evdns.c fd = open(filename, O_RDONLY); O_RDONLY 110 third_party/libevent/sample/event-test.c socket = open (fifo, O_RDONLY | O_NONBLOCK, 0); O_RDONLY 507 third_party/libusb/src/libusb/os/linux_usbfs.c fd = open(filename, O_RDONLY); O_RDONLY 889 third_party/libusb/src/libusb/os/linux_usbfs.c fd = _get_usbfs_fd(dev, O_RDONLY, 0); O_RDONLY 754 third_party/libusb/src/libusb/os/openbsd_usb.c mode = IS_XFERIN(transfer) ? O_RDONLY : O_WRONLY; O_RDONLY 978 third_party/libxml/src/catalog.c if ((fd = open(filename, O_RDONLY)) < 0) O_RDONLY 86 third_party/libxml/src/runtest.c #define RD_FLAGS O_RDONLY | O_BINARY O_RDONLY 88 third_party/libxml/src/runtest.c #define RD_FLAGS O_RDONLY O_RDONLY 94 third_party/libxml/src/testRelax.c if ((fd = open(argv[i], O_RDONLY)) < 0) O_RDONLY 90 third_party/libxml/src/testSchemas.c if ((fd = open(argv[i], O_RDONLY)) < 0) O_RDONLY 630 third_party/libxml/src/xmlIO.c int d, m = (strstr(mode, "r") ? O_RDONLY : O_RDWR); O_RDONLY 1830 third_party/libxml/src/xmllint.c if ((fd = open(filename, O_RDONLY)) < 0) O_RDONLY 2217 third_party/libxml/src/xmllint.c if ((fd = open(filename, O_RDONLY)) < 0) O_RDONLY 2332 third_party/libxml/src/xmllint.c if ((fd = open(filename, O_RDONLY)) < 0) O_RDONLY 1420 third_party/protobuf/src/google/protobuf/compiler/command_line_interface_unittest.cc int fd = open(filename.c_str(), O_RDONLY); O_RDONLY 446 third_party/protobuf/src/google/protobuf/compiler/importer.cc file_descriptor = open(filename.c_str(), O_RDONLY); O_RDONLY 110 third_party/protobuf/src/google/protobuf/message_unittest.cc int file = open(filename.c_str(), O_RDONLY | O_BINARY); O_RDONLY 123 third_party/protobuf/src/google/protobuf/message_unittest.cc int file = open(filename.c_str(), O_RDONLY | O_BINARY); O_RDONLY 26084 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(zLockFile,O_RDONLY|O_CREAT|O_EXCL,0600); O_RDONLY 27406 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(zDirname, O_RDONLY|O_BINARY, 0); O_RDONLY 29173 third_party/sqlite/amalgamation/sqlite3.c if( isReadonly ) openFlags |= O_RDONLY; O_RDONLY 29194 third_party/sqlite/amalgamation/sqlite3.c openFlags |= O_RDONLY; O_RDONLY 29507 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open("/dev/urandom", O_RDONLY, 0); O_RDONLY 29924 third_party/sqlite/amalgamation/sqlite3.c openFlags = O_RDONLY; O_RDONLY 1943 third_party/sqlite/src/src/os_unix.c fd = robust_open(zLockFile,O_RDONLY|O_CREAT|O_EXCL,0600); O_RDONLY 3265 third_party/sqlite/src/src/os_unix.c fd = robust_open(zDirname, O_RDONLY|O_BINARY, 0); O_RDONLY 5032 third_party/sqlite/src/src/os_unix.c if( isReadonly ) openFlags |= O_RDONLY; O_RDONLY 5053 third_party/sqlite/src/src/os_unix.c openFlags |= O_RDONLY; O_RDONLY 5366 third_party/sqlite/src/src/os_unix.c fd = robust_open("/dev/urandom", O_RDONLY, 0); O_RDONLY 5783 third_party/sqlite/src/src/os_unix.c openFlags = O_RDONLY; O_RDONLY 431 third_party/sqlite/src/src/test_demovfs.c if( flags&SQLITE_OPEN_READONLY ) oflags |= O_RDONLY; O_RDONLY 472 third_party/sqlite/src/src/test_demovfs.c dfd = open(zDir, O_RDONLY, 0); O_RDONLY 808 third_party/sqlite/src/test/threadtest3.c fd1 = open(zFrom, O_RDONLY); O_RDONLY 24 third_party/sqlite/src/tool/diffdb.c db1 = open(argv[1], O_RDONLY); O_RDONLY 29 third_party/sqlite/src/tool/diffdb.c db2 = open(argv[2], O_RDONLY); O_RDONLY 479 third_party/sqlite/src/tool/showdb.c db = open(argv[1], O_RDONLY); O_RDONLY 280 third_party/sqlite/src/tool/showwal.c fd = open(argv[1], O_RDONLY); O_RDONLY 76 third_party/talloc/libreplace/repdir_getdents.c d->fd = open(dname, O_RDONLY); O_RDONLY 78 third_party/talloc/libreplace/repdir_getdirentries.c d->fd = open(dname, O_RDONLY); O_RDONLY 171 third_party/talloc/libreplace/system/filesys.h #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) O_RDONLY 326 third_party/tcmalloc/chromium/src/base/linuxthreads.cc if ((sig_proc = proc = c_open(*proc_path, O_RDONLY|O_DIRECTORY, 0)) < 0) { O_RDONLY 148 third_party/tcmalloc/chromium/src/base/sysinfo.cc int fd = safeopen("/proc/self/environ", O_RDONLY); O_RDONLY 263 third_party/tcmalloc/chromium/src/base/sysinfo.cc int fd = open(file, O_RDONLY); O_RDONLY 334 third_party/tcmalloc/chromium/src/base/sysinfo.cc int fd = open(pname, O_RDONLY); O_RDONLY 763 third_party/tcmalloc/chromium/src/base/sysinfo.cc NO_INTR(fd_ = open(ibuf_, O_RDONLY)); O_RDONLY 771 third_party/tcmalloc/chromium/src/base/sysinfo.cc NO_INTR(fd_ = open(ibuf_, O_RDONLY)); O_RDONLY 778 third_party/tcmalloc/chromium/src/base/sysinfo.cc NO_INTR(fd_ = open(ibuf_, O_RDONLY)); O_RDONLY 87 third_party/tcmalloc/chromium/src/base/vdso_support.cc int fd = open("/proc/self/auxv", O_RDONLY); O_RDONLY 75 third_party/tcmalloc/chromium/src/deep-heap-profile.cc fd = open(filename, O_RDONLY); O_RDONLY 126 third_party/tcmalloc/chromium/src/deep-heap-profile.cc pagemap_fd_ = open(filename, O_RDONLY); O_RDONLY 131 third_party/tcmalloc/chromium/src/deep-heap-profile.cc kpagecount_fd_ = open(filename, O_RDONLY); O_RDONLY 113 third_party/tcmalloc/chromium/src/heap-checker.cc int fd = open("/proc/self/status", O_RDONLY); O_RDONLY 180 third_party/tcmalloc/chromium/src/system-alloc.cc int urandom_fd = open("/dev/urandom", O_RDONLY); O_RDONLY 165 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); O_RDONLY 188 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); O_RDONLY 1175 third_party/tcmalloc/chromium/src/tests/tcmalloc_unittest.cc int fd = open("/dev/zero", O_RDONLY); O_RDONLY 353 third_party/tcmalloc/chromium/src/windows/port.h #ifndef O_RDONLY O_RDONLY 326 third_party/tcmalloc/vendor/src/base/linuxthreads.cc if ((sig_proc = proc = c_open(*proc_path, O_RDONLY|O_DIRECTORY, 0)) < 0) { O_RDONLY 143 third_party/tcmalloc/vendor/src/base/sysinfo.cc int fd = safeopen("/proc/self/environ", O_RDONLY); O_RDONLY 248 third_party/tcmalloc/vendor/src/base/sysinfo.cc int fd = open(file, O_RDONLY); O_RDONLY 319 third_party/tcmalloc/vendor/src/base/sysinfo.cc int fd = open(pname, O_RDONLY); O_RDONLY 607 third_party/tcmalloc/vendor/src/base/sysinfo.cc NO_INTR(fd_ = open(ibuf_, O_RDONLY)); O_RDONLY 615 third_party/tcmalloc/vendor/src/base/sysinfo.cc NO_INTR(fd_ = open(ibuf_, O_RDONLY)); O_RDONLY 622 third_party/tcmalloc/vendor/src/base/sysinfo.cc NO_INTR(fd_ = open(ibuf_, O_RDONLY)); O_RDONLY 87 third_party/tcmalloc/vendor/src/base/vdso_support.cc int fd = open("/proc/self/auxv", O_RDONLY); O_RDONLY 113 third_party/tcmalloc/vendor/src/heap-checker.cc int fd = open("/proc/self/status", O_RDONLY); O_RDONLY 165 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); O_RDONLY 188 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); O_RDONLY 1175 third_party/tcmalloc/vendor/src/tests/tcmalloc_unittest.cc int fd = open("/dev/zero", O_RDONLY); O_RDONLY 350 third_party/tcmalloc/vendor/src/windows/port.h #ifndef O_RDONLY O_RDONLY 121 third_party/tlslite/tlslite/utils/entropy.c if ((fd = open("/dev/urandom", O_RDONLY, 0)) == -1) { O_RDONLY 170 third_party/zlib/gzlib.c O_RDONLY : O_RDONLY 70 tools/android/file_poller/file_poller.cc int fd = open(path, O_RDONLY); O_RDONLY 441 tools/android/memdump/memdump.cc base::StringPrintf("/proc/%d/pagemap", pid).c_str(), O_RDONLY))); O_RDONLY 493 tools/android/memdump/memdump.cc HANDLE_EINTR(open("/proc/kpagecount", O_RDONLY))); O_RDONLY 499 tools/android/memdump/memdump.cc base::ScopedFD page_flags_fd(open("/proc/kpageflags", O_RDONLY)); O_RDONLY 57 ui/events/ozone/evdev/event_factory_evdev.cc int fd = open(path.value().c_str(), O_RDONLY | O_NONBLOCK);