aboutsummaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* * win32/setup.mk: findstr doesn't exist on win9x.ocean2005-11-211-2/+2
| | | | | | | fixed: [ruby-dev:27756] (written by nobu) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.h (S_IFIFO): r,w = IO.pipe; r.stat.pipe? nowocean2005-11-181-0/+4
| | | | | | | returns true on VisualC++6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, cygwin/GNUmakefile.in (mingw): use def file to aliasnobu2005-11-053-160/+220
| | | | | | | | | | | | symbols. [ruby-dev:27532] * bcc32/mkexports.rb, win32/mkexports.rb: make aliases in DLL. * win32/win32.c, win32/win32.h: replace symbols only when RUBY_EXPORT is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_EXTERN): macro to export symbols in sharednobu2005-10-251-0/+1
| | | | | | | | | | | | library. [ruby-core:05528] * defines.h, {bcc32,win32,wince}/Makefile.sub (RUBY_EXTERN): moved to configuration pass. * ext/extmk.rb (extmake): RUBY_EXTERN for static linked extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,usa2005-10-181-1/+1
| | | | | | | | | | ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend, use $distcleanfiles in extconf.rb. * win32/Makefile.sub (distclean-local): should remove .config.h.time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb: fixup configure_args for mswin32 configure.usa2005-10-171-2/+2
| | | | | | | * win32/configure.bat (srcdir, target): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/configure.bat: remove unnecessary line which preventsusa2005-10-151-1/+0
| | | | | | | creating Makefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (MKFILES): update MKFILES if configure files getnobu2005-10-143-3/+57
| | | | | | | | | | changed. * win32/configure.bat, win32/setup.mak (configure_args): store arguments to configure files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (ioctl): should set errno.usa2005-10-141-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (do_select, rb_w32_select): brush up.usa2005-10-011-48/+71
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): documented problem.ocean2005-09-171-6/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): fixed deadlock bug.ocean2005-09-171-33/+37
| | | | | | | | because select(2) modifies its fd_set arguments, it must be restored sometimes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): I hope performance problem wasocean2005-09-171-8/+24
| | | | | | | solved. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): console support is back.ocean2005-09-171-1/+42
| | | | | | | | | | | but still has performance problem because I loosely took 1 second for wait time. I'll fix it later. (The reason I drastically changed the code is that I wanted to implement the fileset management as single function, and I was worried that if pipe or console was always available, socket may not be processed any time) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): select for socket didn't work.ocean2005-09-171-223/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this caused deadlock in drb test. this happened because GetFileType for socket handle returns FILE_TYPE_PIPE. Of course, it's not a pipe. So socket handle didn't reach winsock's select function. * win32/win32.c (rb_w32_select): read for pipe still kept brocking even if writer handle was closed. r,w = IO.pipe Thread.new { sleep 3; puts "------- 1" w.puts("foo") sleep 3; puts "------- 2" w.puts("boo") sleep 3; puts "------- 3" w.close } until r.eof? # should break by w.close but didn't. puts r.gets end * win32/win32.c (rb_w32_select): temprary reverted console support but it'll be back soon. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_push_glob): fix delimiter bug. fixed: [ruby-dev:27105]nobu2005-09-161-1/+1
| | | | | | | | | | * dir.c (dir_s_aref, dir_s_glob): allow multiple patterns. [ruby-dev:27110] * win32/win32.c (cmdglob): enable brace expansion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_pipe_exec): remove unnecessary CloseHandle().usa2005-09-151-9/+94
| | | | | | | | | * win32/win32.c (extract_console_fd, peek_console): new functions. * win32/win32.c (rb_w32_select): check consoles by polling them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (collect_file_fd): rename from extract_file_fd.usa2005-09-142-11/+128
| | | | | | | | | * win32/win32.c (extract_pipe_fd, peek_pipe): new functions. * win32/win32.c (rb_w32_select): check pipes by polling them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (ruby_glob): glob function not using ruby exception system.nobu2005-09-141-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[hc] (rb_w32_argv_size, ...): reverted my latest changeocean2005-09-122-10/+11
| | | | | | | to avoid incompatible pointer warning. (mingw32) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[hc] (rb_w32_utime): constified.ocean2005-09-072-19/+16
| | | | | | | | | | * win32/win32.h (rb_w32_stat): added prototype. * win32/win32.[hc] (rb_w32_argv_size,rb_w32_join_argv,rb_w32_aspawn): changed `char *const *' to `const char *const *'. (constify string) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (OPTFLAGS): default global optimization tousa2005-08-311-4/+1
| | | | | | | disabled for all VC++ versions. fixed: [ruby-dev:26897] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (socketpair_internal): need to call open_ifs_socket()usa2005-08-181-2/+2
| | | | | | | | to create sockets instead of winsock's socket(). fixed: [yarv-dev:581] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, Makefile.in, {bcc32,win32,wince}/Makefile.sub: integratednobu2005-08-031-7/+4
| | | | | | | | | | | macro definitions. * bcc32/Makefile.sub: LIBRUBY_SO should use DLDOBJS, not EXTOBJS. * {win32,wince}/Makefile.sub: separate config.h for compiler versions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, {bcc32,win32,wince}/Makefile.sub (HAVE_SNPRINTF,usa2005-08-033-0/+27
| | | | | | | | | | HAVE_VSNPRINTF): use win32/win32.c's implementation instead of missing/vsnprintf.c's. * win32/win32.[ch] (rb_w32_snprintf, rb_w32_vsnprintf): reverted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[ch]: (rb_w32_vsnprintf, rb_w32_snprintf): removed.usa2005-07-252-21/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/Makefile.sub: moved CPPFLAGS only for rubynobu2005-07-251-4/+1
| | | | | | | source to XCFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Borland MAKE doesn't look for file names which have pathsnobu2005-07-251-1/+0
| | | | | | | | | | | from VPATH. fixed: [ruby-dev:26604] * ruby.h (NORETURN, DEPRECATED): moved just after config.h. * {win32,wince}/Makefile.sub: vsnprintf() is in missing now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,nobu2005-07-232-7/+3
| | | | | | | | | using missing/vsnprintf.c. [ruby-dev:26580] * missing/vsnprintf.c: made the output changeable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[hc]: constified socket functions. [ruby-dev:26553]ocean2005-07-162-31/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reordered just for diffing.ocean2005-07-141-16/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_strerror): should return correct messageocean2005-07-141-6/+19
| | | | | | | | | | for ENAMETOOLONG and ENOTEMPTY. (bcc32) [ruby-dev:26533] * win32/win32.c (rb_w32_strerror): stripped CR LF on the tail. (bcc32) [ruby-dev:26533] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_mkdir): should set EEXIST (not EACCES)ocean2005-07-131-23/+23
| | | | | | | | | | | | | if file or directory already exists. (bcc32) * win32/win32.c (rb_w32_rmdir): should set ENOTDIR (not EINVAL) if it is not directory. (bcc32, win32) * win32/win32.c (rb_w32_rmdir, rb_w32_unlink): restore FILE_ATTRIBUTE_READONLY flag on function failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (StartSockets): iSockOpt is no longer used.nobu2005-07-081-5/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (open_ifs_socket): new function.usa2005-07-061-16/+44
| | | | | | | | | * win32/win32.c (StartSockets, rb_w32_socket): use open_ifs_socket() instead of socket(). all changes are derived from [ruby-core:5388]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/erf.c: need to include some headers for some platforms.usa2005-07-011-0/+6
| | | | | | | | * win32/win32.c (copysign, scalb): define for compatibility with other platforms. [ruby-dev:26430] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?usa2005-06-202-0/+23
| | | | | | | | | | | | | | | | * ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed? * ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed? * test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb (teardown): close all db objects before deleting data files. * win32/win32.{ch} (unlink): hook runtime function to change file attribute before unlinking. merge from 1.8, see [ruby-dev:26360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub ($(PROGRAM)): add dependency on $(LIBRUBY_SO).usa2005-05-231-1/+1
| | | | | | | [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (NtInitialize): fix typo.usa2005-05-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): get rid of using String. [ruby-dev:26180]nobu2005-05-181-0/+10
| | | | | | | | * eval.c (ruby_options), win32/win32.c (NtInitialize): move argument intialization back. [ruby-dev:26180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (unixtime_to_filetime): use localtime() instaed ofusa2005-05-171-1/+1
| | | | | | | gmtime() when using FileLocalTimeToFileTime(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.h, {bcc32,win32,wince}/Makefile.sub: moved rb_[ugp]id_tnobu2005-05-162-3/+3
| | | | | | | to get rid of redefinition warnings on mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.{h,c}: define rb_{p,g,u}id_t.ocean2005-05-152-18/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (unixtime_to_filetime): deal with DST.nobu2005-05-151-1/+3
| | | | | | | [ruby-talk:141817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Check for the availability of pid_t, gid_t and uid_t andnobu2005-05-142-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | remove AC_TYPE_UID_T. fixed: [ruby-core:04745] * defines.h: Remove pid_t typedef. * ruby.h: Define rb_pid_t, rb_gid_t and rb_uid_t in accordance with the available system types. * process.c: Change instances of pid_t and gid_t to their rb_* counterparts. * ext/pty/pty.c: Change pid_t to rb_pid_t. * vms/config.h: Define HAVE_{P,G,U}ID_T to 1. * win32/Makefile.sub: Remove #define for {g,u}id_t. * win32/win32.c: Change pid_t to rb_pid_t. * wince/Makefile.sub: Remove #define for {g,u}id_t. * wince/sys/types.h: Remove definitions of {p,g,u}id_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: keep srcdir unexpanded.nobu2005-05-131-0/+2
| | | | | | | | | | | | * lib/mkmf.rb (create_makefile): quote topdir and hdrdir if necessary. fixed: [ruby-core:04932] * lib/mkmf.rb (configuration), {bcc32,win32,wince}/Makefile.sub: make also INSTALL_PROG and INSTALL_DATA system dependent. fixed: [ruby-core:04931] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_FUNC_ATTRIBUTE): check for function attribute.nobu2005-04-301-0/+4
| | | | | | | | | | | | | | | | [ruby-dev:26109] * eval.c, gc.c: moved noinline to configure.in. * rubyio.h (DEPRECATED): moved to configure.in. * ruby.h (DEPRECATED, NOINLINE): default definition. * win{32,ce}/Makefile.sub (config.h): deprecated and noinline for __declspec() are available for VC++7 or later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (OPTFLAGS): default global optimization tonobu2005-04-272-1/+5
| | | | | | | disabled only for VC++6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, lib/mkmf.rb, {bcc32,win32,wince}/Makefile.sub: improvenobu2005-04-201-0/+5
| | | | | | | C++ support. [ruby-dev:26089] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): support platforms have file separatornobu2005-04-201-0/+3
| | | | | | | | | | | | other than /. * {bcc32,win32,wince}/Makefile.sub (BUILD_FILE_SEPARATOR): separator of building platform. * {bcc32,win32,wince}/Makefile.sub (CP, INSTALL): use COPY command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e