Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 70 of 70) sorted by relevance

/linux-4.1.27/fs/ncpfs/
Dfile.c68 case O_WRONLY: in ncp_make_open()
69 finfo.access = O_WRONLY; in ncp_make_open()
183 errno = ncp_make_open(inode, O_WRONLY); in ncp_file_write_iter()
Dsymlink.c161 if (ncp_make_open(inode, O_WRONLY)) in ncp_symlink()
Dinode.c964 if ((result = ncp_make_open(inode, O_WRONLY)) < 0) { in ncp_notify_change()
Ddir.c951 opmode = O_WRONLY; in ncp_create_new()
/linux-4.1.27/Documentation/watchdog/src/
Dwatchdog-simple.c8 int fd = open("/dev/watchdog", O_WRONLY); in main()
Dwatchdog-test.c45 fd = open("/dev/watchdog", O_WRONLY); in main()
/linux-4.1.27/tools/usb/usbip/libsrc/
Dsysfs_utils.c15 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/linux-4.1.27/tools/cgroup/
Dcgroup_event_listener.c42 event_control = open(event_control_path, O_WRONLY); in main()
/linux-4.1.27/net/ceph/
Dceph_fs.c41 case O_WRONLY: in ceph_flags_to_mode()
/linux-4.1.27/arch/um/drivers/
Dtty.c50 mode = O_WRONLY; in tty_open()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
Dmsr.c61 fd = open(msr_file_name, O_WRONLY); in write_msr()
Dsysfs.c170 fd = open(path, O_WRONLY); in sysfs_idlestate_write_file()
/linux-4.1.27/include/uapi/asm-generic/
Dfcntl.h20 #define O_WRONLY 00000001 macro
/linux-4.1.27/tools/testing/selftests/efivarfs/
Dopen-unlink.c88 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/linux-4.1.27/tools/testing/selftests/timers/
Dclocksource-switch.c102 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); in change_clocksource()
/linux-4.1.27/kernel/power/
Duser.c88 data->mode = O_WRONLY; in snapshot_open()
266 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
/linux-4.1.27/tools/virtio/virtio-trace/
Dtrace-agent-rw.c60 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
/linux-4.1.27/tools/usb/usbip/src/
Dusbip_attach.c71 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
/linux-4.1.27/fs/coda/
Dcoda_linux.c53 if ((flags & O_ACCMODE) == O_WRONLY) in coda_flags_to_cflags()
/linux-4.1.27/tools/power/acpi/tools/ec/
Dec_access.c215 file_mode = O_WRONLY; in main()
/linux-4.1.27/tools/testing/selftests/ipc/
Dmsgque.c38 fd = open("/proc/sys/kernel/msg_next_id", O_WRONLY); in restore_queue()
/linux-4.1.27/arch/alpha/boot/tools/
Dobjstrip.c98 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
/linux-4.1.27/firmware/
Dihex2fw.c119 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); in main()
/linux-4.1.27/drivers/s390/char/
Dhmcdrv_dev.c225 if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || in hmcdrv_dev_read()
Dvmur.c733 ((accmode == O_WRONLY) && (urd->class != DEV_CLASS_UR_O))) { in ur_open()
/linux-4.1.27/init/
Dinitramfs.c338 int openflags = O_WRONLY|O_CREAT; in do_name()
629 O_WRONLY|O_CREAT, 0700); in populate_rootfs()
/linux-4.1.27/drivers/usb/gadget/function/
Du_uac1.c230 snd->filp = filp_open(fn_play, O_WRONLY, 0); in gaudio_open_snd_dev()
/linux-4.1.27/tools/testing/selftests/mount/
Dunprivileged-remount-test.c72 fd = open(filename, O_WRONLY); in vmaybe_write_file()
/linux-4.1.27/security/tomoyo/
Dtomoyo.c317 O_WRONLY | (arg & O_APPEND)); in tomoyo_file_fcntl()
/linux-4.1.27/scripts/dtc/
Dutil.c281 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); in utilfdt_write_err()
/linux-4.1.27/security/integrity/ima/
Dima_fs.c311 if (!(filp->f_flags & O_WRONLY)) in ima_open_policy()
/linux-4.1.27/fs/hostfs/
Dhostfs_user.c77 mode = O_WRONLY; in open_file()
/linux-4.1.27/drivers/media/dvb-core/
Ddmxdev.c161 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_open()
190 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_release()
226 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in dvb_dvr_write()
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_init.c301 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in translate_mode()
/linux-4.1.27/fs/overlayfs/
Dcopy_up.c99 new_file = ovl_path_open(new, O_LARGEFILE | O_WRONLY); in ovl_copy_up_data()
/linux-4.1.27/tools/vm/
Dpage-types.c498 hwpoison_inject_fd = checked_open(buf, O_WRONLY); in prepare_hwpoison_fd()
504 hwpoison_forget_fd = checked_open(buf, O_WRONLY); in prepare_hwpoison_fd()
/linux-4.1.27/sound/core/
Dinfo.c326 if (mode == O_WRONLY || mode == O_RDWR) { in snd_info_entry_open()
351 if (mode == O_WRONLY || mode == O_RDWR) { in snd_info_entry_open()
Dcompress_offload.c92 if ((f->f_flags & O_ACCMODE) == O_WRONLY) in snd_compr_open()
/linux-4.1.27/Documentation/accounting/
Dgetdelays.c370 fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, in main()
/linux-4.1.27/scripts/kconfig/
Dconfdata.c918 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
938 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
/linux-4.1.27/arch/um/os-Linux/
Dfile.c181 f = O_WRONLY; in os_open_file()
/linux-4.1.27/fs/
Dopen.c99 error = break_lease(inode, O_WRONLY); in vfs_truncate()
1053 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); in SYSCALL_DEFINE2()
Dfcntl.c744 O_RDONLY | O_WRONLY | O_RDWR | in fcntl_init()
Dpipe.c701 f->f_flags = O_WRONLY | (flags & (O_NONBLOCK | O_DIRECT)); in create_pipe_files()
Dnamei.c3000 if (op->open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) { in do_last()
/linux-4.1.27/kernel/
Dacct.c204 file = file_open_name(pathname, O_WRONLY|O_APPEND|O_LARGEFILE, 0); in acct_on()
Dsysctl_binary.c1315 flags = O_WRONLY; in binary_sysctl()
/linux-4.1.27/fs/ocfs2/dlmfs/
Ddlmfs.c120 if (open_flags & (O_WRONLY|O_RDWR)) in dlmfs_decode_open_flags()
/linux-4.1.27/tools/power/cpupower/lib/
Dsysfs.c73 fd = open(path, O_WRONLY); in sysfs_cpufreq_write_file()
/linux-4.1.27/fs/cifs/
Dfile.c51 else if ((flags & O_ACCMODE) == O_WRONLY) in cifs_convert_flags()
71 else if ((flags & O_ACCMODE) == O_WRONLY) in cifs_posix_convert_flags()
2996 if ((file->f_flags & O_ACCMODE) == O_WRONLY) in cifs_user_readv()
3158 if ((file->f_flags & O_ACCMODE) == O_WRONLY) in cifs_read()
3733 if ((file->f_flags & O_ACCMODE) != O_WRONLY && !oncethru) { in cifs_write_begin()
3819 break_lease(inode, O_WRONLY); in cifs_oplock_break()
/linux-4.1.27/include/linux/
Dfs.h2095 ret = break_deleg(inode, O_WRONLY|O_NONBLOCK); in try_break_deleg()
2107 ret = break_deleg(*delegated_inode, O_WRONLY); in break_deleg_wait()
2118 wait ? O_WRONLY : O_WRONLY | O_NONBLOCK, in break_layout()
/linux-4.1.27/arch/mips/boot/
Delf2ecoff.c505 if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) { in main()
/linux-4.1.27/fs/hppfs/
Dhppfs.c416 return O_WRONLY; in file_mode()
/linux-4.1.27/fs/notify/fanotify/
Dfanotify_user.c712 case O_WRONLY: in SYSCALL_DEFINE2()
/linux-4.1.27/Documentation/x86/
Dmtrr.txt283 if ( ( fd = open ("/proc/mtrr", O_WRONLY, 0) ) == -1 )
/linux-4.1.27/fs/nfsd/
Dvfs.c667 mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY; in nfsd_open_break_lease()
736 flags = O_WRONLY|O_LARGEFILE; in nfsd_open()
Dnfs4state.c306 ret = __nfs4_get_fd(f, O_WRONLY); in find_writeable_file_locked()
356 ret = __nfs4_get_fd(f, O_WRONLY); in find_any_file()
406 atomic_inc(&fp->fi_access[O_WRONLY]); in __nfs4_file_get_access()
441 atomic_read(&fp->fi_access[O_WRONLY])) in nfs4_file_check_deny()
471 __nfs4_file_put_access(fp, O_WRONLY); in nfs4_file_put_access()
994 return O_WRONLY; in nfs4_access_to_omode()
/linux-4.1.27/Documentation/sound/alsa/
DOSS-Emulation.txt292 output_handle = open("device", O_WRONLY)
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dtracefile.c686 filp = filp_open(filename, O_CREAT|O_EXCL|O_WRONLY|O_LARGEFILE, 0600); in cfs_tracefile_dump_all_pages()
/linux-4.1.27/fs/nfs/
Ddir.c1448 if ((flags & O_ACCMODE) != O_WRONLY) in flags_to_mode()
2434 if ((openflags & O_ACCMODE) != O_WRONLY) in nfs_open_permission_mask()
/linux-4.1.27/fs/9p/
Dvfs_inode.c186 case O_WRONLY: in v9fs_uflags2omode()
/linux-4.1.27/fs/ceph/
Dfile.c51 if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) in prepare_open_request()
/linux-4.1.27/ipc/
Dmqueue.c767 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) in do_open()
/linux-4.1.27/tools/perf/util/
Dsymbol-elf.c1261 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400); in kcore__init()
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c1474 rwflag = (ghf->flags & KVM_GET_HTAB_WRITE) ? O_WRONLY : O_RDONLY; in kvm_vm_ioctl_get_htab_fd()
/linux-4.1.27/drivers/ide/
Dide-tape.c1520 if ((filp->f_flags & O_ACCMODE) == O_WRONLY || in idetape_chrdev_open()
/linux-4.1.27/kernel/printk/
Dprintk.c758 if ((file->f_flags & O_ACCMODE) == O_WRONLY) in devkmsg_open()
/linux-4.1.27/Documentation/trace/
Dftrace.txt1711 trace_fd = open(tracing_file("tracing_on"), O_WRONLY);
1823 ffd = open(tracing_file("current_tracer"), O_WRONLY);
1828 fd = open(tracing_file("set_ftrace_pid"), O_WRONLY);
/linux-4.1.27/drivers/scsi/
Dst.c1147 ((st_flags & O_ACCMODE) == O_WRONLY || in check_tape()
Dosst.c4765 if ((flags & O_ACCMODE) == O_WRONLY || (flags & O_ACCMODE) == O_RDWR) { in __os_scsi_tape_open()