mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* dln.c: Ruby no longer supports MS-DOS.
* ext/sdbm/_sdbm.c: ditto. * ext/sdbm/sdbm.h: ditto. * gc.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * include/ruby/util.h: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * strftime.c: ditto. * util.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8dd118c0db
commit
ae7ea3332b
13 changed files with 45 additions and 65 deletions
11
io.c
11
io.c
|
@ -29,11 +29,11 @@
|
|||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#if defined(MSDOS) || defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__EMX__) || defined(__BEOS__)
|
||||
#if defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__EMX__) || defined(__BEOS__)
|
||||
# define NO_SAFE_RENAME
|
||||
#endif
|
||||
|
||||
#if defined(MSDOS) || defined(__CYGWIN__) || defined(_WIN32)
|
||||
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||
# define NO_LONG_FNAME
|
||||
#endif
|
||||
|
||||
|
@ -6397,7 +6397,6 @@ rb_f_select(int argc, VALUE *argv, VALUE obj)
|
|||
|
||||
}
|
||||
|
||||
#if !defined(MSDOS)
|
||||
static int
|
||||
io_cntl(int fd, int cmd, long narg, int io_p)
|
||||
{
|
||||
|
@ -6417,12 +6416,10 @@ io_cntl(int fd, int cmd, long narg, int io_p)
|
|||
#endif
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
|
||||
{
|
||||
#if !defined(MSDOS)
|
||||
int cmd = NUM2ULONG(req);
|
||||
rb_io_t *fptr;
|
||||
long len = 0;
|
||||
|
@ -6488,10 +6485,6 @@ rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
|
|||
}
|
||||
|
||||
return INT2NUM(retval);
|
||||
#else
|
||||
rb_notimplement();
|
||||
return Qnil; /* not reached */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue