Home
last modified time | relevance | path

Searched refs:O_SYNC (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/tcsh/
H A Ddotlock.c29 #ifndef O_SYNC
30 #define O_SYNC 0 macro
79 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC, 0); in create_exclusive()
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c219 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY); in try_file_ops()
220 CHECK_RESULT(openat(O_SYNC | O_RDONLY), in try_file_ops()
223 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops()
224 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), in try_file_ops()
227 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND); in try_file_ops()
228 CHECK_RESULT(openat(O_SYNC | O_RDWR | O_APPEND), in try_file_ops()
276 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY); in try_file_ops()
277 CHECK_RESULT(openat(O_SYNC | O_WRONLY), in try_file_ops()
280 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR); in try_file_ops()
281 CHECK_RESULT(openat(O_SYNC | O_RDWR), in try_file_ops()
/freebsd/tests/sys/cddl/zfs/bin/
H A Ddir_rd_update.c79 testdd = open(dirpath, O_RDONLY|O_SYNC); in main()
90 int fd = open(dirpath, O_RDONLY|O_SYNC); in main()
H A Dfile_write.c168 oflag = oflag | O_SYNC; in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddir_rd_update.c81 testdd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main()
91 int fd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main()
/freebsd/cddl/lib/libdtrace/
H A Dio.d108 inline int O_SYNC = 0x0080; variable
109 #pragma D binding "1.1" O_SYNC
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvnode.h50 #define O_DSYNC O_SYNC
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c85 O_NOCTTY | O_NONBLOCK | O_NDELAY | O_SYNC | O_TRUNC | 0666); in main()
/freebsd/lib/libc/db/db/
H A Ddb.c60 O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC | O_CLOEXEC) in dbopen()
/freebsd/lib/libc/tests/stdio/
H A Dmkostemp_test.c46 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
/freebsd/lib/libc/stdio/
H A Dmktemp.c123 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC | in _gettemp()
/freebsd/tests/sys/fs/fusefs/
H A Dfsyncdir.cc106 ASSERT_EQ(0, aio_fsync(O_SYNC, &iocb)) << strerror(errno); in TEST_F()
H A Dfsync.cc116 ASSERT_EQ(0, aio_fsync(O_SYNC, &iocb)) << strerror(errno); in TEST_F()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_write.c190 oflag = oflag | O_SYNC; in main()
/freebsd/sys/sys/
H A Dfcntl.h97 #define O_SYNC 0x0080 /* POSIX synonym for O_FSYNC */ macro
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_config.c177 (void) zfs_file_fsync(fp, O_SYNC); in spa_config_remove()
222 err = zfs_file_fsync(fp, O_SYNC); in spa_config_write()
H A Dvdev_file.c246 zio->io_error = zfs_file_fsync(vf->vf_file, O_SYNC | O_DSYNC); in vdev_file_io_fsync()
/freebsd/contrib/capsicum-test/
H A Dcapability-fd.cc730 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY); in TryDirOps()
735 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in TryDirOps()
740 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND); in TryDirOps()
795 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY); in TryDirOps()
801 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR); in TryDirOps()
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_io.c235 RL(fd = rump_sys_open("file", O_RDONLY | O_SYNC | O_RSYNC)); in read_fault()
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c317 #ifdef O_SYNC
318 { O_SYNC, "O_SYNC" },
/freebsd/tests/sys/aio/
H A Daio_test.c1504 ATF_CHECK_EQ(-1, aio_fsync(O_SYNC, &iocb)); in ATF_TC_BODY()
1598 aio_fsync_test(O_SYNC); in ATF_TC_BODY()
1799 ATF_CHECK_EQ(0, aio_fsync(O_SYNC, &iocb)); in ATF_TC_BODY()
/freebsd/usr.sbin/bhyve/
H A Dblock_if.c511 extra |= O_SYNC; in blockif_open()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_file.c186 flags |= O_SYNC; in zfs_io_flags()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/perf/
H A Dperf.shlib161 # PERF_SYNC_TYPES: Whether to use (O_SYNC) or not. 1 is sync IO, 0 is async IO.
/freebsd/contrib/sendmail/src/
H A Dconf.c2024 afd = open(_PATH_AVENRUN, O_RDONLY|O_SYNC); in getla()
3013 # ifdef O_SYNC
3014 return fcntl(fd, F_SETFL, O_SYNC);

12