Home
last modified time | relevance | path

Searched refs:fsync (Results 1 - 25 of 142) sorted by relevance

123456

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dfsync.c24 * @tc.desc : Tests of fsync on file descriptors in different modes
32 int result = fsync(fd); in fsync_0100()
37 result = fsync(fd); in fsync_0100()
54 int result = fsync(fd); in fsync_0200()
67 int result = fsync(-1); in fsync_0300()
/third_party/NuttX/fs/vfs/
H A Dfs_fsync.c44 * Equivalent to the standard fsync() function except that is accepts a
67 if (!filep || !filep->ops || !filep->ops->fsync) in file_fsync()
75 ret = filep->ops->fsync(filep); in file_fsync()
89 * Name: fsync
96 int fsync(int fd) in fsync() function
109 /* Perform the fsync operation */ in fsync()
/third_party/skia/tools/fonts/
H A Dcreate_test_font_color.cpp26 cbdt.fsync(); in export_ttx()
31 sbix.fsync(); in export_ttx()
36 colr.fsync(); in export_ttx()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/
H A Dunistd_fsync_test.cpp17 * @tc.desc: Verify whether the fsync function behaves as expected under different file descriptor states.
25 EXPECT_EQ(0, fsync(fd)); in HWTEST_F()
29 EXPECT_EQ(-1, fsync(fd)); in HWTEST_F()
/third_party/f2fs-tools/scripts/
H A Dspo_test.sh27 echo Start checking F2FS without fsync
34 echo Start checking F2FS with fsync
56 $F2FS_DIR/stress_test/fsstress/fsstress -z -f link=0 -f mkdir=3 -f mknod=3 -f rmdir=2 -f symlink=3 -f truncate=4 -f write=10 -f creat=10 -f unlink=5 -f rename=5 -f fsync=10 -p 10 -n 10000 -l 0 -d $MNT &
/third_party/ltp/testcases/kernel/fs/fs_di/
H A Dfrag.c27 /* reaches EOF of data file. In a loop fsync, fclose is called, */
99 fsync(fd1); in main()
100 fsync(fd2); in main()
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dtsimpleinj.c115 expecterr("fsync expect error", fsync(fd)); in main()
127 expecterr("hole fsync expect error", fsync(fd)); in main()
152 expecterr("rfp fsync expect error", fsync(fd)); in main()
H A Dtinjpage.c388 fsync(fd); in do_file_clean()
447 optionalerr("fsync expect error", fsync(fd) < 0); in do_file_dirty()
476 optionalerr("hole fsync expect error", fsync(fd) < 0); in file_hole()
504 expecterr("rfp fsync expect error", fsync(fd) < 0); in nonlinear()
579 expecterr("write under io", fsync(fd) < 0); in under_io_dirty()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
H A Dtsimpleinj.c115 expecterr("fsync expect error", fsync(fd)); in main()
127 expecterr("hole fsync expect error", fsync(fd)); in main()
152 expecterr("rfp fsync expect error", fsync(fd)); in main()
H A Dtinjpage.c388 fsync(fd); in do_file_clean()
447 optionalerr("fsync expect error", fsync(fd) < 0); in do_file_dirty()
476 optionalerr("hole fsync expect error", fsync(fd) < 0); in file_hole()
504 expecterr("rfp fsync expect error", fsync(fd) < 0); in nonlinear()
579 expecterr("write under io", fsync(fd) < 0); in under_io_dirty()
/third_party/ltp/testcases/kernel/syscalls/sync_file_range/
H A Dsync_file_range02.c66 fsync(fd); in verify_sync_file_range()
114 fsync(fd); in setup()
/third_party/node/test/parallel/
H A Dtest-trace-events-fs-async.js98 function fsync() { function
102 fs.fsync(fd, () => {
279 tests.fsync = wrapper(fsync);
/third_party/node/deps/npm/node_modules/write-file-atomic/lib/
H A Dindex.js119 if (options.fsync !== false) {
120 await promisify(fs.fsync)(fd)
225 if (options.fsync !== false) {
/third_party/musl/src/unistd/
H A Dfsync.c4 int fsync(int fd) in fsync() function
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest05.c29 * truncate, ftruncate, fsync, sync, fstat
245 char *m_str[] = { "fsync", "trunc", "sync", "fstat" };
422 fsync(fd); in dotest()
448 fsync(fd); in dotest()
472 if (fsync(fd) < 0) { in domisc()
473 tst_resm(TFAIL | TERRNO, "\tTest[%d]: fsync error", me); in domisc()
H A Dftest08.c29 * fsync, sync, lseek64, read, write
215 char *m_str[] = { "fsync", "sync" };
427 fsync(fd); in dotest()
475 fsync(fd); in dotest()
503 if (fsync(fd) < 0) { in domisc()
504 tst_brkm(TFAIL, NULL, "\tTest[%d]: fsync error %d.", in domisc()
H A Dftest04.c26 * fsync, sync, lseek, read, write
202 char *m_str[] = { "fsync", "sync" };
410 fsync(fd); in dotest()
455 fsync(fd); in dotest()
471 if (fsync(fd) < 0) { in domisc()
472 tst_brkm(TFAIL, NULL, "\tTest[%d]: fsync error %d.", me, in domisc()
H A Dftest01.c27 * truncate, ftruncate, fsync, sync, fstat
244 char *m_str[] = { "fsync", "trunc", "sync", "fstat" };
433 fsync(fd); in dotest()
458 fsync(fd); in dotest()
481 if (fsync(fd) < 0) { in domisc()
483 "Test[%d]: fsync failed.", me); in domisc()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/unistd_h/
H A D1-1-buildonly.c9 * int fsync(int fildes);
19 dummyvar = fsync; in dummyfcn()
/third_party/toybox/toys/other/
H A Dfsync.c0 /* fsync.c - Synchronize a file's in-core state with storage device.
7 USE_FSYNC(NEWTOY(fsync, "<1d", TOYFLAG_BIN))
10 bool "fsync"
13 usage: fsync [-d] [FILE...]
25 if (((toys.optflags & FLAG_d) ? fdatasync(fd) : fsync(fd))) in do_fsync()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/
H A D5-1.c7 * The fsync() function shall fail if:
30 if (fsync(fd) == -1 && errno == EBADF) { in main()
H A D7-1.c7 * The fsync() function shall fail if:
13 * 2. fsync on the pipe, should fail with EINVAL;
28 #define TNAME "fsync/7-1.c"
40 if (fsync(fd[1]) == -1 && errno == EINVAL) { in main()
41 printf("Got EINVAL when fsync on pipe\n"); in main()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
H A Ddirty.c53 fsync(fd); in main()
/third_party/ltp/testcases/kernel/syscalls/fsync/
H A Dfsync01.c25 TEST(fsync(fd)); in verify_fsync()
28 tst_res(TFAIL | TTERRNO, "fsync failed"); in verify_fsync()
30 tst_res(TPASS, "fsync() returned %ld", TST_RET); in verify_fsync()
/third_party/ntfs-3g/libntfs-3g/
H A Dunix_io.c75 * fsync replacement which makes every effort to try to get the data down to
77 * it issues the proper fcntl for Mac OS X or does fsync where it is available
78 * or as a last resort calls the fsync function. Information on this problem
90 * Apple has disabled fsync() for internal disk drives in OS X. in ntfs_fsync()
98 * then fall back to a plain fsync. in ntfs_fsync()
100 ret = fsync(fildes); in ntfs_fsync()
103 ret = fsync(fildes); in ntfs_fsync()
214 ntfs_log_perror("Failed to fsync device %s", dev->d_name); in ntfs_device_unix_io_close()

Completed in 11 milliseconds

123456