diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-12 08:41:12 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-12 08:41:12 +0000 |
commit | e79f7907987d9dc2445892b7b571a621208d29bf (patch) | |
tree | 95ff413eade0dc711ee9fc3ff585c284635420e4 /win32 | |
parent | 2d0c7e37bf51191f20f06362763f3e8661641217 (diff) | |
download | ruby-e79f7907987d9dc2445892b7b571a621208d29bf.tar.gz |
* configure.in: removes AC_CHECK_FUNC(fseeko, fseeko64, ftello,
ftello64). They are not used from anywhere.
* win32/win32.c (fseeko): removes.
* win32/win32.c (rb_w32_ftello): removes.
* include/ruby/win32.h: removes declarations of rb_w32_ftello and
rb_w32_fseeko.
* win32/Makefile.sub: removes '#define HAVE_FTELLO 1'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 1 | ||||
-rw-r--r-- | win32/win32.c | 32 |
2 files changed, 0 insertions, 33 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 70d27d6816..f7771616bc 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -656,7 +656,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define HAVE_TRUNCATE 1 #define HAVE_FTRUNCATE 1 #define HAVE_FSEEKO 1 -#define HAVE_FTELLO 1 #define HAVE_TIMES 1 #define HAVE_FCNTL 1 #define HAVE_LINK 1 diff --git a/win32/win32.c b/win32/win32.c index 002535bdc9..6615437cb9 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4889,38 +4889,6 @@ _lseeki64(int fd, off_t offset, int whence) #endif /* License: Ruby's */ -int -fseeko(FILE *stream, off_t offset, int whence) -{ - off_t pos; - switch (whence) { - case SEEK_CUR: - if (fgetpos(stream, (fpos_t *)&pos)) - return -1; - pos += offset; - break; - case SEEK_END: - if ((pos = _filelengthi64(fileno(stream))) == (off_t)-1) - return -1; - pos += offset; - break; - default: - pos = offset; - break; - } - return fsetpos(stream, (fpos_t *)&pos); -} - -/* License: Ruby's */ -off_t -rb_w32_ftello(FILE *stream) -{ - off_t pos; - if (fgetpos(stream, (fpos_t *)&pos)) return (off_t)-1; - return pos; -} - -/* License: Ruby's */ static long filetime_to_clock(FILETIME *ft) { |