github.com/ooni/psiphon/tunnel-core@v0.0.0-20230105123940-fe12a24c96ee/oovendor/bolt/boltsync_unix.go (about)

     1  // +build !windows,!plan9,!linux,!openbsd
     2  
     3  package bolt
     4  
     5  // fdatasync flushes written data to a file descriptor.
     6  func fdatasync(db *DB) error {
     7  	return db.file.Sync()
     8  }