summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-22 16:25:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-22 16:25:50 +0000
commit97389ba93cb9bf3633eee63ae17d5c7ba38b3d6d (patch)
treef07fdbe6b901e7f7c2169d7c1f084a4dba20d461
parent5b1896cad090257b3dc308890e65ee42d8ca7fbc (diff)
downloadruby-97389ba93cb9bf3633eee63ae17d5c7ba38b3d6d.tar.gz
ruby-97389ba93cb9bf3633eee63ae17d5c7ba38b3d6d.tar.xz
ruby-97389ba93cb9bf3633eee63ae17d5c7ba38b3d6d.zip
update rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/io.c b/io.c
index eebaa0982..aa2d49a6b 100644
--- a/io.c
+++ b/io.c
@@ -1294,11 +1294,13 @@ rb_io_set_sync(VALUE io, VALUE sync)
* ios.fsync => 0 or nil
*
* Immediately writes all buffered data in <em>ios</em> to disk.
- * Returns <code>nil</code> if the underlying operating system does not
- * support <em>fsync(2)</em>. Note that <code>fsync</code> differs from
+ * Note that <code>fsync</code> differs from
* using <code>IO#sync=</code>. The latter ensures that data is flushed
* from Ruby's buffers, but doesn't not guarantee that the underlying
* operating system actually writes it to disk.
+ *
+ * <code>NotImplementedError</code> is raised
+ * if the underlying operating system does not support <em>fsync(2)</em>.
*/
static VALUE
@@ -1325,8 +1327,9 @@ rb_io_fsync(VALUE io)
* ios.fdatasync => 0 or nil
*
* Immediately writes all buffered data in <em>ios</em> to disk.
- * Returns <code>nil</code> if the underlying operating system does not
- * support <em>fdatasync(2)</em>.
+ *
+ * <code>NotImplementedError</code> is raised
+ * if the underlying operating system does not support <em>fdatasync(2)</em>.
*/
static VALUE