D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Filename :
fsync-i.ri
back
Copy
U:RDoc::AnyMethod[iI" fsync:ETI" IO#fsync;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"AImmediately writes to disk all data buffered in the stream, ;TI"2via the operating system's <tt>fsync(2)</tt>.;To:RDoc::Markup::BlankLine o; ; [I"Note this difference:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"PIO#sync=: Ensures that data is flushed from the stream's internal buffers, ;TI"Wbut does not guarantee that the operating system actually writes the data to disk.;To;;0; [o; ; [I"HIO#fsync: Ensures both that data is flushed from internal buffers, ;TI"&and that data is written to disk.;T@o; ; [I"TRaises an exception if the operating system does not support <tt>fsync(2)</tt>.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"fsync -> 0 ;T0[ I"();T@$FI"IO;TcRDoc::NormalClass00