diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -29,7 +29,7 @@ # include <sys/socket.h> #endif -#if defined(MSDOS) || defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__human68k__) || defined(__EMX__) || defined(__BEOS__) +#if defined(MSDOS) || defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__EMX__) || defined(__BEOS__) # define NO_SAFE_RENAME #endif @@ -46,7 +46,7 @@ #endif #include <sys/types.h> -#if defined(HAVE_SYS_IOCTL_H) && !defined(DJGPP) && !defined(_WIN32) && !defined(__human68k__) +#if defined(HAVE_SYS_IOCTL_H) && !defined(DJGPP) && !defined(_WIN32) #include <sys/ioctl.h> #endif #if defined(HAVE_FCNTL_H) || defined(_WIN32) @@ -6400,7 +6400,7 @@ rb_f_select(int argc, VALUE *argv, VALUE obj) } -#if !defined(MSDOS) && !defined(__human68k__) +#if !defined(MSDOS) static int io_cntl(int fd, int cmd, long narg, int io_p) { @@ -6425,7 +6425,7 @@ io_cntl(int fd, int cmd, long narg, int io_p) static VALUE rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p) { -#if !defined(MSDOS) && !defined(__human68k__) +#if !defined(MSDOS) int cmd = NUM2ULONG(req); rb_io_t *fptr; long len = 0; @@ -6768,10 +6768,6 @@ io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt) static VALUE rb_io_s_pipe(int argc, VALUE *argv, VALUE klass) { -#ifdef __human68k__ - rb_notimplement(); - return Qnil; /* not reached */ -#else int pipes[2], state; VALUE r, w, args[3], v1, v2; VALUE opt; @@ -6804,7 +6800,6 @@ rb_io_s_pipe(int argc, VALUE *argv, VALUE klass) rb_io_synchronized(RFILE(w)->fptr); return rb_assoc_new(r, w); -#endif } struct foreach_arg { @@ -8423,7 +8418,7 @@ Init_IO(void) rb_define_hooked_variable("$-i", &argf, opt_i_get, opt_i_set); rb_define_hooked_variable("$*", &argf, argf_argv_getter, 0); -#if defined (_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) +#if defined (_WIN32) || defined(DJGPP) || defined(__CYGWIN__) atexit(pipe_atexit); #endif |