/linux-4.1.27/tools/testing/selftests/exec/ |
D | execveat.c | 139 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() 181 fd = open(longpath, O_RDONLY); in check_execveat_pathmax() 217 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests() 219 O_DIRECTORY|O_RDONLY); in run_tests() 220 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests() 221 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 222 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests() 223 int fd = open_or_die("execveat", O_RDONLY); in run_tests() 224 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() 225 int fd_symlink = open_or_die("execveat.symlink", O_RDONLY); in run_tests() [all …]
|
/linux-4.1.27/tools/testing/selftests/efivarfs/ |
D | open-unlink.c | 19 fd = open(path, O_RDONLY); in set_immutable() 50 fd = open(path, O_RDONLY); in get_immutable() 114 fd = open(path, O_RDONLY); in main()
|
/linux-4.1.27/Documentation/timers/ |
D | hpet_example.c | 88 fd = open(argv[0], O_RDONLY); in hpet_open_close() 108 fd = open(argv[0], O_RDONLY); in hpet_info() 148 fd = open(argv[0], O_RDONLY); in hpet_poll() 242 fd = open(argv[0], O_RDONLY); in hpet_fasync()
|
/linux-4.1.27/Documentation/laptops/ |
D | freefall.c | 43 int fd = open(unload_heads_path, O_RDONLY); in valid_disk() 126 fd = open("/dev/freefall", O_RDONLY); in main()
|
D | dslm.c | 147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) { in main()
|
/linux-4.1.27/tools/testing/selftests/timers/ |
D | clocksource-switch.c | 58 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); in get_clocksources() 90 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); in get_cur_clocksource()
|
D | mqueue-lat.c | 77 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|
D | rtctest.c | 52 fd = open(rtc, O_RDONLY); in main()
|
/linux-4.1.27/kernel/power/ |
D | user.c | 71 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open() 75 data->mode = O_RDONLY; in snapshot_open() 126 pm_notifier_call_chain(data->mode == O_RDONLY ? in snapshot_release() 251 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl()
|
/linux-4.1.27/fs/ncpfs/ |
D | file.c | 62 case O_RDONLY: in ncp_make_open() 63 finfo.access = O_RDONLY; in ncp_make_open() 120 error = ncp_make_open(inode, O_RDONLY); in ncp_file_read_iter()
|
D | mmap.c | 55 if (ncp_make_open(inode, O_RDONLY) >= 0) { in ncp_file_mmap_fault()
|
D | symlink.c | 54 if (ncp_make_open(inode,O_RDONLY)) in ncp_symlink_readpage()
|
/linux-4.1.27/arch/cris/boot/tools/ |
D | build.c | 145 if ((id=open(argv[1],O_RDONLY,0))<0) in main() 174 if ((id=open(argv[2],O_RDONLY,0))<0) in main() 231 if ((id=open(argv[3],O_RDONLY,0))<0) in main()
|
/linux-4.1.27/fs/ecryptfs/ |
D | kthread.c | 148 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open() 152 if ((flags & O_ACCMODE) == O_RDONLY) { in ecryptfs_privileged_open()
|
D | file.c | 218 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { in ecryptfs_open()
|
/linux-4.1.27/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 24 fd = open(path, O_RDONLY); in sysfs_read_file() 71 fd = open(path, O_RDONLY); in sysfs_is_cpu_online() 135 fd = open(path, O_RDONLY); in sysfs_idlestate_read_file()
|
D | msr.c | 32 fd = open(msr_file_name, O_RDONLY); in read_msr()
|
/linux-4.1.27/samples/bpf/ |
D | bpf_load.c | 91 efd = open(buf, O_RDONLY, 0); in load_and_attach() 202 fd = open(path, O_RDONLY, 0); in load_bpf_file() 298 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe()
|
/linux-4.1.27/tools/power/acpi/tools/ec/ |
D | ec_access.c | 209 int file_mode = O_RDONLY; in main() 217 file_mode = O_RDONLY; in main()
|
/linux-4.1.27/Documentation/filesystems/ |
D | dnotify_test.c | 25 fd = open(".", O_RDONLY); in main()
|
D | dlmfs.txt | 101 O_RDONLY Shared Read 108 You must provide exactly one of O_RDONLY or O_RDWR.
|
D | overlayfs.txt | 189 On a file opened with O_RDONLY fchmod(2), fchown(2), futimesat(2) and
|
/linux-4.1.27/tools/perf/tests/ |
D | open-syscall.c | 38 fd = open("/etc/passwd", O_RDONLY); in test__open_syscall_event()
|
D | open-syscall-tp-fields.c | 21 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_open_tp_fields()
|
D | open-syscall-all-cpus.c | 69 fd = open("/etc/passwd", O_RDONLY); in test__open_syscall_event_on_all_cpus()
|
D | dso-data.c | 333 fd_extra = open("/dev/null", O_RDONLY); in test__dso_data_reopen()
|
/linux-4.1.27/arch/um/os-Linux/ |
D | process.c | 33 fd = open(proc_stat, O_RDONLY, 0); in os_process_pc() 68 fd = open(stat, O_RDONLY, 0); in os_process_parent()
|
D | file.c | 179 f = O_RDONLY; in os_open_file() 300 fd = open(file, O_RDONLY, 0); in os_file_size()
|
D | umid.c | 147 fd = open(file, O_RDONLY); in is_umdir_used()
|
/linux-4.1.27/tools/cgroup/ |
D | cgroup_event_listener.c | 33 cfd = open(argv[1], O_RDONLY); in main()
|
/linux-4.1.27/net/ceph/ |
D | ceph_fs.c | 44 case O_RDONLY: in ceph_flags_to_mode()
|
/linux-4.1.27/tools/power/cpupower/debug/i386/ |
D | powernow-k8-decode.c | 40 fd = open(file, O_RDONLY); in get_fidvid()
|
D | centrino-decode.c | 43 fd = open(file, O_RDONLY); in rdmsr()
|
D | dump_psb.c | 178 fd = open("/dev/mem", O_RDONLY); in main()
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
D | osunixmap.c | 104 fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY); in acpi_os_map_memory()
|
/linux-4.1.27/arch/um/drivers/ |
D | tty.c | 48 mode = O_RDONLY; in tty_open()
|
D | mconsole_kern.c | 136 file = file_open_root(mnt->mnt_root, mnt, ptr, O_RDONLY, 0); in mconsole_proc()
|
/linux-4.1.27/tools/virtio/virtio-trace/ |
D | trace-agent-ctl.c | 38 ctl_fd = open(ctl_path, O_RDONLY); in rw_ctl_init()
|
D | trace-agent-rw.c | 51 rw_ti->in_fd = open(in_path, O_RDONLY); in rw_thread_init()
|
/linux-4.1.27/tools/perf/util/ |
D | zlib.c | 29 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file()
|
D | symbol-minimal.c | 226 fd = open(filename, O_RDONLY); in sysfs__read_build_id() 252 int fd = open(name, O_RDONLY); in symsrc__init()
|
D | pmu.c | 104 fd = open(path, O_RDONLY); in perf_pmu__parse_scale() 147 fd = open(path, O_RDONLY); in perf_pmu__parse_unit() 174 fd = open(path, O_RDONLY); in perf_pmu__parse_per_pkg() 192 fd = open(path, O_RDONLY); in perf_pmu__parse_snapshot()
|
D | data.c | 55 fd = open(file->path, O_RDONLY); in open_file_read()
|
D | symbol-elf.c | 436 fd = open(filename, O_RDONLY); in filename__read_build_id() 462 fd = open(filename, O_RDONLY); in sysfs__read_build_id() 511 fd = open(filename, O_RDONLY); in filename__read_debuglink() 646 fd = open(name, O_RDONLY); in symsrc__init() 1228 kcore->fd = open(filename, O_RDONLY); in kcore__open() 1582 from = open(from_filename, O_RDONLY); in kcore_copy__compare_files() 1586 to = open(to_filename, O_RDONLY); in kcore_copy__compare_files()
|
D | cgroup.c | 69 fd = open(path, O_RDONLY); in open_cgroup()
|
D | util.c | 118 fromfd = open(from, O_RDONLY); in copyfile_mode() 497 fd = open(filename, O_RDONLY); in filename__read_str()
|
D | trace-event-info.c | 68 fd = open(file, O_RDONLY); in record_file()
|
D | parse-events.c | 144 fd = open(evt_path, O_RDONLY); in tp_event_has_id() 189 fd = open(evt_path, O_RDONLY); in tracepoint_id_to_path()
|
D | symbol.c | 1128 fd = open(kcore_filename, O_RDONLY); in dso__load_kcore() 1655 fd = open("/proc/kcore", O_RDONLY); in dso__find_kallsyms()
|
D | dso.c | 290 fd = open(name, O_RDONLY); in do_open()
|
D | event.c | 70 fd = open(filename, O_RDONLY); in perf_event__get_comm_ids()
|
D | probe-event.c | 424 fd = open(exec, O_RDONLY); in get_text_start_address() 1959 ret = open(buf, O_RDONLY, 0); in open_probe_events()
|
D | probe-finder.c | 65 fd = open(path, O_RDONLY); in debuginfo__init_offline_dwarf()
|
/linux-4.1.27/scripts/basic/ |
D | fixdep.c | 287 fd = open(filename, O_RDONLY); in do_config_file() 405 fd = open(depfile, O_RDONLY); in print_deps()
|
/linux-4.1.27/init/ |
D | do_mounts_rd.c | 202 in_fd = sys_open(from, O_RDONLY, 0); in rd_load_image() 271 in_fd = sys_open(from, O_RDONLY, 0); in rd_load_image()
|
D | initramfs.c | 568 fd = sys_open("/", O_RDONLY, 0); in clean_rootfs()
|
/linux-4.1.27/tools/testing/selftests/memfd/ |
D | fuse_mnt.c | 65 if ((fi->flags & 3) != O_RDONLY) in memfd_open()
|
D | fuse_test.c | 243 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
|
D | memfd_test.c | 822 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
|
/linux-4.1.27/Documentation/mic/mpssd/ |
D | sysfs.c | 40 fd = open(filename, O_RDONLY); in readsysfs()
|
D | mpssd.c | 1408 fd = open(pathname, O_RDONLY); in mic_config() 1500 fd = open(system_map, O_RDONLY); in set_log_buf_info()
|
/linux-4.1.27/drivers/tty/serial/ |
D | kgdb_nmi.c | 280 if (!ret && (mode == O_RDONLY || mode == O_RDWR)) in kgdb_nmi_tty_open() 291 if (mode == O_RDONLY || mode == O_RDWR) in kgdb_nmi_tty_close()
|
/linux-4.1.27/tools/testing/selftests/vm/ |
D | hugetlbfstest.c | 22 fd = open("/proc/self/statm", O_RDONLY); in read_rss()
|
D | transhuge-stress.c | 84 pagemap_fd = open("/proc/self/pagemap", O_RDONLY); in main()
|
/linux-4.1.27/include/uapi/asm-generic/ |
D | fcntl.h | 19 #define O_RDONLY 00000000 macro
|
/linux-4.1.27/tools/vm/ |
D | page-types.c | 676 kpageflags_fd = checked_open(PROC_KPAGEFLAGS, O_RDONLY); in walk_addr_ranges() 774 pagemap_fd = checked_open(buf, O_RDONLY); in parse_pid() 859 fd = checked_open(name, O_RDONLY|O_NOATIME|O_NOFOLLOW); in walk_file() 940 kpageflags_fd = checked_open(PROC_KPAGEFLAGS, O_RDONLY); in walk_page_cache() 941 pagemap_fd = checked_open("/proc/self/pagemap", O_RDONLY); in walk_page_cache()
|
/linux-4.1.27/tools/testing/selftests/powerpc/ |
D | harness.c | 129 fd = open("/proc/self/auxv", O_RDONLY); in get_auxv_entry()
|
/linux-4.1.27/arch/alpha/boot/tools/ |
D | mkbb.c | 107 fd = open(argv[2], O_RDONLY); in main()
|
D | objstrip.c | 90 fd = open(inname, O_RDONLY); in main()
|
/linux-4.1.27/arch/powerpc/boot/ |
D | mktree.c | 81 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main()
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
D | av7110_av.c | 949 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in dvb_video_poll() 957 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_poll() 979 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_video_write() 1107 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_video_ioctl() 1319 if (((file->f_flags & O_ACCMODE) == O_RDONLY) && in dvb_audio_ioctl() 1470 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_open() 1491 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_release()
|
/linux-4.1.27/tools/lib/api/fs/ |
D | fs.c | 174 int fd = open(filename, O_RDONLY), err = -1; in filename__read_int()
|
/linux-4.1.27/arch/mn10300/boot/tools/ |
D | build.c | 58 fd = open(name, O_RDONLY, 0); in file_open()
|
/linux-4.1.27/security/keys/ |
D | big_key.c | 182 file = dentry_open(path, O_RDONLY, current_cred()); in big_key_read()
|
/linux-4.1.27/arch/arm/vdso/ |
D | vdsomunge.c | 151 infd = open(infile, O_RDONLY); in main()
|
/linux-4.1.27/arch/sparc/boot/ |
D | piggyback.c | 262 if ((tail = open(argv[4], O_RDONLY)) < 0) in main()
|
/linux-4.1.27/fs/coda/ |
D | coda_linux.c | 47 if ((flags & O_ACCMODE) == O_RDONLY) in coda_flags_to_cflags()
|
/linux-4.1.27/security/integrity/ |
D | iint.c | 216 file = filp_open(path, O_RDONLY, 0); in integrity_read_file()
|
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 195 fd = open(msr_path, O_RDONLY); in get_msr()
|
/linux-4.1.27/tools/usb/usbip/libsrc/ |
D | usbip_host_driver.c | 50 fd = open(status_attr_path, O_RDONLY); in read_attr_usbip_status()
|
/linux-4.1.27/arch/x86/vdso/ |
D | vdso2c.c | 189 int fd = open(name, O_RDONLY); in map_input()
|
/linux-4.1.27/arch/x86/tools/ |
D | insn_sanity.c | 126 fd = open("/dev/urandom", O_RDONLY); in init_random_seed()
|
/linux-4.1.27/firmware/ |
D | ihex2fw.c | 100 infd = open(argv[optind], O_RDONLY); in main()
|
/linux-4.1.27/sound/core/ |
D | info.c | 319 if (mode == O_RDONLY || mode == O_RDWR) { in snd_info_entry_open() 341 if (mode == O_RDONLY || mode == O_RDWR) { in snd_info_entry_open() 375 (mode == O_RDONLY || mode == O_RDWR)) { in snd_info_entry_open()
|
D | compress_offload.c | 94 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) in snd_compr_open()
|
/linux-4.1.27/drivers/media/dvb-core/ |
D | dvbdev.c | 116 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_open() 139 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_release()
|
D | dmxdev.c | 146 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_dvr_open() 195 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_dvr_release() 1192 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_dvr_poll()
|
D | dvb_frontend.c | 2034 if ((file->f_flags & O_ACCMODE) == O_RDONLY && in dvb_frontend_ioctl() 2621 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_frontend_open() 2659 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_frontend_release()
|
D | dvb_net.c | 1318 if (((file->f_flags&O_ACCMODE)==O_RDONLY))
|
/linux-4.1.27/tools/iio/ |
D | generic_buffer.c | 297 fp = open(buffer_access, O_RDONLY | O_NONBLOCK); in main()
|
/linux-4.1.27/fs/cifs/ |
D | fscache.c | 103 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in cifs_fscache_set_inode_cookie()
|
D | file.c | 49 if ((flags & O_ACCMODE) == O_RDONLY) in cifs_convert_flags() 69 if ((flags & O_ACCMODE) == O_RDONLY) in cifs_posix_convert_flags() 3817 break_lease(inode, O_RDONLY); in cifs_oplock_break()
|
/linux-4.1.27/drivers/s390/char/ |
D | hmcdrv_dev.c | 125 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
|
D | vmur.c | 732 if (((accmode == O_RDONLY) && (urd->class != DEV_CLASS_UR_I)) || in ur_open() 787 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in ur_llseek()
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
D | cx25821-audio-upstream.c | 274 file = filp_open(dev->_audiofilename, O_RDONLY | O_LARGEFILE, 0); in cx25821_get_audio_data() 329 file = filp_open(dev->_audiofilename, O_RDONLY | O_LARGEFILE, 0); in cx25821_openfile_audio()
|
/linux-4.1.27/fs/overlayfs/ |
D | readdir.c | 245 realfile = ovl_path_open(realpath, O_RDONLY | O_DIRECTORY); in ovl_dir_read() 455 realfile = ovl_path_open(&upperpath, O_RDONLY); in ovl_dir_fsync()
|
D | copy_up.c | 95 old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); in ovl_copy_up_data()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | u_uac1.c | 245 snd->filp = filp_open(fn_cap, O_RDONLY, 0); in gaudio_open_snd_dev()
|
D | storage_common.c | 204 filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0); in fsg_lun_open()
|
/linux-4.1.27/arch/x86/boot/tools/ |
D | build.c | 382 fd = open(argv[2], O_RDONLY); in main()
|
/linux-4.1.27/tools/hv/ |
D | hv_vss_daemon.c | 51 int ret, fd = open(dir, O_RDONLY); in vss_do_freeze()
|
/linux-4.1.27/security/tomoyo/ |
D | tomoyo.c | 136 O_RDONLY); in tomoyo_bprm_check_security()
|
/linux-4.1.27/scripts/dtc/ |
D | util.c | 210 fd = open(filename, O_RDONLY); in utilfdt_read_err_len()
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 308 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open() 529 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_gang_open()
|
/linux-4.1.27/drivers/misc/genwqe/ |
D | card_dev.c | 1095 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl() 1131 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl() 1154 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
|
/linux-4.1.27/fs/9p/ |
D | cache.c | 248 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in v9fs_cache_inode_set_cookie()
|
D | vfs_inode.c | 182 case O_RDONLY: in v9fs_uflags2omode() 887 ((flags & O_ACCMODE) != O_RDONLY)) { in v9fs_vfs_atomic_open()
|
D | vfs_file.c | 95 ((file->f_flags & O_ACCMODE) != O_RDONLY)) { in v9fs_file_open()
|
D | vfs_inode_dotl.c | 334 ((flags & O_ACCMODE) != O_RDONLY)) { in v9fs_vfs_atomic_open_dotl()
|
/linux-4.1.27/fs/hostfs/ |
D | hostfs_user.c | 75 mode = O_RDONLY; in open_file()
|
/linux-4.1.27/sound/core/seq/oss/ |
D | seq_oss_init.c | 299 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode()
|
/linux-4.1.27/fs/exportfs/ |
D | expfs.c | 305 file = dentry_open(path, O_RDONLY, cred); in get_name()
|
/linux-4.1.27/usr/ |
D | gen_init_cpio.c | 310 file = open (location, O_RDONLY); in cpio_mkfile()
|
/linux-4.1.27/Documentation/accounting/ |
D | getdelays.c | 426 cfd = open(containerpath, O_RDONLY); in main()
|
/linux-4.1.27/drivers/iio/ |
D | industrialio-event.c | 183 indio_dev, O_RDONLY | O_CLOEXEC); in iio_event_getfd()
|
/linux-4.1.27/tools/lguest/ |
D | lguest.c | 342 int fd = open_or_die("/dev/zero", O_RDONLY); in map_zeroed_pages() 561 ifd = open_or_die(name, O_RDONLY); in load_initrd() 3113 rng_info->rfd = open_or_die("/dev/urandom", O_RDONLY); in setup_rng() 3312 start = load_kernel(open_or_die(argv[optind+1], O_RDONLY)); in main()
|
/linux-4.1.27/tools/power/cpupower/lib/ |
D | sysfs.c | 29 fd = open(path, O_RDONLY); in sysfs_read_file()
|
/linux-4.1.27/Documentation/target/ |
D | tcmu-design.txt | 280 fd = open("/sys/class/uio/uio0/name", O_RDONLY); 291 fd = open(/sys/class/uio/%s/maps/map0/size, O_RDONLY);
|
/linux-4.1.27/fs/autofs4/ |
D | dev-ioctl.c | 253 filp = dentry_open(&path, O_RDONLY, current_cred()); in autofs_dev_ioctl_open_mountpoint()
|
/linux-4.1.27/fs/notify/inotify/ |
D | inotify_user.c | 687 O_RDONLY | flags); in SYSCALL_DEFINE1()
|
/linux-4.1.27/fs/ |
D | fcntl.c | 744 O_RDONLY | O_WRONLY | O_RDWR | in fcntl_init()
|
D | exec.c | 115 .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, in SYSCALL_DEFINE1() 759 .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, in do_open_execat()
|
D | pipe.c | 710 res[0]->f_flags = O_RDONLY | (flags & O_NONBLOCK); in create_pipe_files()
|
D | namei.c | 2643 if ((flag & O_ACCMODE) != O_RDONLY && !(flag & O_APPEND)) in may_open() 2752 (open_flag & O_ACCMODE) != O_RDONLY) && unlikely(!got_write)) { in atomic_open()
|
D | locks.c | 1394 int want_write = (mode & O_ACCMODE) != O_RDONLY; in __break_lease()
|
/linux-4.1.27/tools/testing/selftests/net/ |
D | psock_tpacket.c | 719 fd = open("/proc/kallsyms", O_RDONLY); in test_kernel_bit_width()
|
/linux-4.1.27/arch/mips/boot/ |
D | elf2ecoff.c | 298 if ((infile = open(argv[1], O_RDONLY)) < 0) { in main()
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | book3s_64_mmu_hv.c | 1474 rwflag = (ghf->flags & KVM_GET_HTAB_WRITE) ? O_WRONLY : O_RDONLY; in kvm_vm_ioctl_get_htab_fd() 1481 if (rwflag == O_RDONLY) { in kvm_vm_ioctl_get_htab_fd()
|
/linux-4.1.27/fs/hppfs/ |
D | hppfs.c | 414 return O_RDONLY; in file_mode()
|
/linux-4.1.27/Documentation/input/ |
D | joystick-api.txt | 19 int fd = open ("/dev/input/js0", O_RDONLY);
|
/linux-4.1.27/fs/notify/fanotify/ |
D | fanotify_user.c | 710 case O_RDONLY: in SYSCALL_DEFINE2()
|
/linux-4.1.27/Documentation/x86/ |
D | mtrr.txt | 170 if ( ( fd = open ("/proc/mtrr", O_RDONLY, 0) ) == -1 )
|
/linux-4.1.27/drivers/misc/carma/ |
D | carma-fpga-program.c | 827 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in fpga_llseek()
|
/linux-4.1.27/fs/nfsd/ |
D | nfs4state.c | 330 ret = __nfs4_get_fd(f, O_RDONLY); in find_readable_file_locked() 358 ret = __nfs4_get_fd(f, O_RDONLY); in find_any_file() 408 atomic_inc(&fp->fi_access[O_RDONLY]); in __nfs4_file_get_access() 437 atomic_read(&fp->fi_access[O_RDONLY])) in nfs4_file_check_deny() 473 __nfs4_file_put_access(fp, O_RDONLY); in nfs4_file_put_access() 992 return O_RDONLY; in nfs4_access_to_omode() 999 return O_RDONLY; in nfs4_access_to_omode()
|
D | vfs.c | 667 mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY; in nfsd_open_break_lease() 684 int flags = O_RDONLY|O_LARGEFILE; in nfsd_open()
|
D | nfs4recover.c | 470 nn->rec_file = filp_open(user_recovery_dirname, O_RDONLY | O_DIRECTORY, 0); in nfsd4_init_recdir()
|
/linux-4.1.27/Documentation/sound/alsa/ |
D | OSS-Emulation.txt | 291 input_handle = open("device", O_RDONLY)
|
/linux-4.1.27/drivers/infiniband/core/ |
D | uverbs_main.c | 575 ev_file, O_RDONLY); in ib_uverbs_alloc_event_file()
|
/linux-4.1.27/fs/nfs/ |
D | dir.c | 1450 if ((flags & O_ACCMODE) != O_RDONLY) in flags_to_mode() 2436 if ((openflags & O_ACCMODE) != O_RDONLY) in nfs_open_permission_mask()
|
/linux-4.1.27/kernel/ |
D | sysctl_binary.c | 1317 flags = O_RDONLY; in binary_sysctl()
|
/linux-4.1.27/tools/net/ |
D | bpf_dbg.c | 949 pcap_fd = open(file, O_RDONLY); in try_load_pcap()
|
/linux-4.1.27/drivers/base/ |
D | firmware_class.c | 336 file = filp_open(path, O_RDONLY, 0); in fw_get_filesystem_firmware()
|
/linux-4.1.27/scripts/ |
D | asn1_compiler.c | 565 fd = open(filename, O_RDONLY); in main()
|
/linux-4.1.27/tools/perf/ |
D | builtin-script.c | 1790 input = open(file.path, O_RDONLY); /* input_name */ in cmd_script()
|
/linux-4.1.27/Documentation/cdrom/ |
D | ide-cd | 402 fd = open(device, O_RDONLY | O_NONBLOCK);
|
D | cdrom-standard.tex | 676 \item If no other flags are set than $O_RDONLY$, the device is opened
|
/linux-4.1.27/Documentation/ia64/ |
D | err_inject.txt | 474 fd=open(fn, O_RDONLY);
|
/linux-4.1.27/drivers/ide/ |
D | ide-tape.c | 1513 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in idetape_chrdev_open()
|
/linux-4.1.27/scripts/mod/ |
D | modpost.c | 350 fd = open(filename, O_RDONLY); in grab_file()
|
/linux-4.1.27/tools/power/x86/turbostat/ |
D | turbostat.c | 268 fd = open(pathname, O_RDONLY); in get_msr()
|
/linux-4.1.27/drivers/scsi/ |
D | sg.c | 283 if ((flags & O_EXCL) && (O_RDONLY == (flags & O_ACCMODE))) in sg_open()
|
D | st.c | 1247 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()
|
D | osst.c | 4504 STp->write_prot = ((flags & O_ACCMODE) == O_RDONLY); in __os_scsi_tape_open()
|
/linux-4.1.27/arch/ia64/kernel/ |
D | perfmon.c | 2210 file->f_flags = O_RDONLY; in pfm_alloc_file()
|