Home
last modified time | relevance | path

Searched refs:O_FSYNC (Results 1 – 10 of 10) sorted by relevance

/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c207 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in try_file_ops()
208 CHECK_RESULT(openat(O_FSYNC | O_RDONLY), in try_file_ops()
211 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
212 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), in try_file_ops()
215 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops()
216 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND), in try_file_ops()
268 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY); in try_file_ops()
269 CHECK_RESULT(openat(O_FSYNC | O_WRONLY), in try_file_ops()
272 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR); in try_file_ops()
273 CHECK_RESULT(openat(O_FSYNC | O_RDWR), in try_file_ops()
/freebsd/sys/sys/
H A Dfcntl.h95 #define O_FSYNC 0x0080 /* synchronous writes */ macro
192 #define FFSYNC O_FSYNC /* kernel */
/freebsd/bin/dd/
H A Ddd.c173 oflags |= O_FSYNC; in setup()
182 oflags |= O_FSYNC; in setup()
/freebsd/sbin/ggate/ggatel/
H A Dggatel.c173 fd = open(path, g_gate_openflags(flags) | O_DIRECT | O_FSYNC); in g_gatel_create()
/freebsd/contrib/capsicum-test/
H A Dcapability-fd.cc715 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in TryDirOps()
720 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in TryDirOps()
725 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in TryDirOps()
783 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY); in TryDirOps()
789 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR); in TryDirOps()
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c314 #ifdef O_FSYNC
315 { O_FSYNC, "O_FSYNC" },
/freebsd/sys/compat/linux/
H A Dlinux_file.c128 bsd_flags |= O_FSYNC; in linux_common_openflags()
1338 if (result & O_FSYNC) in fcntl_common()
1359 arg |= O_FSYNC; in fcntl_common()
/freebsd/sys/fs/devfs/
H A Ddevfs_vnops.c1933 ioflag = fp->f_flag & (O_NONBLOCK | O_DIRECT | O_FSYNC); in devfs_write_f()
2141 CTASSERT(O_FSYNC == IO_SYNC);
/freebsd/sys/kern/
H A Dvfs_vnops.c945 if ((fp->f_flag & O_FSYNC) != 0 || in get_write_ioflag()
1655 error = vn_truncate_locked(vp, length, (fp->f_flag & O_FSYNC) != 0, in vn_truncate()
H A Dvfs_syscalls.c1070 if (flags & (O_SYNC | O_FSYNC)) in flags_to_rights()