summaryrefslogtreecommitdiff
path: root/rubyio.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-16 02:52:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-16 02:52:25 +0000
commit2229b70615ce502c567d6c27357ac2ccfa70eefd (patch)
tree6036f34b37a752dbc9708aa110a936a13484b5a7 /rubyio.h
parent3d923fb9285b4bae77925d362118a463e00867e4 (diff)
* io.c (rb_io_fread): renamed from io_fread and made extern.
* marshal.c (r_bytes0): check if successfully read, use rb_io_fread() instead of fread() to be preemptive. (ruby-bugs-ja:PR#294, 295) * rubyio.h (rb_io_fread): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r--rubyio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rubyio.h b/rubyio.h
index 3ec91680b5..8d2a307514 100644
--- a/rubyio.h
+++ b/rubyio.h
@@ -57,6 +57,7 @@ typedef struct OpenFile {
FILE *rb_fopen _((const char*, const char*));
FILE *rb_fdopen _((int, const char*));
int rb_getc _((FILE*));
+long rb_io_fread _((char *, long, FILE *));
int rb_io_mode_flags _((const char*));
void rb_io_check_writable _((OpenFile*));
void rb_io_check_readable _((OpenFile*));