aboutsummaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* * win32/win32.c (rb_w32_open_osfhandle, rb_w32_wopen, rb_w32_pipe):nobu2010-10-121-12/+14
| | | | | | | | | | use uintptr_t instead of long for win64. * win32/win32.c (socketpair_internal): suppress warnings. * win32/win32.c (ftruncate): use HANDLE instead of long for win64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_strerror): get English message first, insteadusa2010-10-121-0/+4
| | | | | | | | of system default. see [ruby-dev:42358]. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_strerror): unmap some range of errno forusa2010-10-121-0/+15
| | | | | | | | workaround of VC10's strerror() and sys_nerr problem. based on a patch from Akio Tajima, [ruby-dev:42355]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29425 ↵nobu2010-10-081-1/+1
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cygwin/GNUmakefile.in, win32/Makefile.sub (RCFILES): depend onnobu2010-10-071-1/+2
| | | | | | | | real config.rb file. [ruby-core:32709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb: revert r29320 and r29402.wanabe2010-10-051-4/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/config.sub: revert r29320, r29324, r29347, r29354, r29365wanabe2010-10-031-10/+2
| | | | | | | | | to automake-1.11.1. [ruby-core:32634] * win32/mkexports.rb: no longer use 'mingw64'. a patch from Luis Lavena at [ruby-core:32678]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_getenv): should return NULL if specified nameusa2010-09-301-2/+2
| | | | | | | is empty. a patch from Heesob Park at [ruby-core:32650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/config.sub: add mingw64.wanabe2010-09-231-1/+12
| | | | | | | | * win32/mkexports.rb (Exports::Mingw64): added. * win32/mkexports.rb (Exports::Mingw32): renamed from Exports::Mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (clean): removes all documents on cleaning.oyugui2010-09-191-1/+3
| | | | | | | | | | | | (CAPIOUT): new variable. (clean-capi, distclean-capi, realclean-capi): new targets * Makefile.in (clean-capi, distclean-capi, realclean-capi): ditto. * win32/Makefile.sub (clean-capi, distclean-capi, realclean-capi): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): don't forget to freeusa2010-09-021-4/+12
| | | | | | | memory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild): unicodize.usa2010-09-021-11/+34
| | | | | | | | * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): convert arguments of CreateChild() from ACP to WideChar. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: read API version from include/ruby/version.h.nobu2010-08-241-3/+3
| | | | | | | | | | * {bcc,win}32/setup.mak (-version-): ditto. * version.h (RUBY_LIB_VERSION): use API version numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, win32/Makefile.sub (test-rubyspec-precheck): splitnobu2010-08-161-0/+6
| | | | | | | | | from test-rubyspec. * common.mk (test-rubyspec): moved from Makefile.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: needs stddef.h for size_t. a patch fromnobu2010-08-011-0/+1
| | | | | | | Akio Tajima at [ruby-dev:41905]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (config.h): add include guard.nobu2010-07-261-0/+5
| | | | | | | * win32/Makefile.sub, bcc32/Makefile.sub (config.h): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (enable-debug-env): option for RUBY_DEBUG env.nobu2010-06-262-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk (clean-ext, clean-enc): clean up cleaningnobu2010-06-141-0/+11
| | | | | | targets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_read): call ReadFile() with len = 0 beforeusa2010-05-271-2/+12
| | | | | | | | | reading really on console, because the first ReadFile() call after PeekConsoleInput() always returns broken data. (Windows's bug). [ruby-core:29018] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (subtract_tv): if the rest is zero, should finish waitingusa2010-05-201-1/+1
| | | | | | | | | | immediately. * win32/win32.c (subtract): ditto. based on a patch from Roger Pack in [ruby-core:27957]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (argv_size): merged into join_argv() to maintain theusa2010-05-171-52/+40
| | | | | | | | | | | | | agreement with it. removed code has a calclulation bug. fixed [Bug#2388] * win32/win32.c (join_argv): calc and return the length of joined argv. the cause of the original bug was clarified by Masaya TARUI <tarui AT prx.jp> and the solution was suggested by him, too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_conv_from_wchar): use ECONV_UNDEF_REPLACE.nobu2010-05-161-8/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (rb_w32_check_imported): check if extension library to benobu2010-05-161-1/+1
| | | | | | | loaded imports from different ruby dll. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: link with ffs.obj.usa2010-05-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): newusa2010-05-101-0/+6
| | | | | | | | | function. * io.c (WAIT_FD_IN_WIN32): check only when it's not cancelable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.nobu2010-05-081-0/+11
| | | | | | | | | * ext/etc/etc.c (etc_sysconfdir): added. * lib/rubygems/config_file.rb, lib/tmpdir.rb: use etc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README: update.nobu2010-05-061-13/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c: add declaration of wstati64 for gcc.wanabe2010-04-301-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merge some patches from win32-uncode-test branch.usa2010-04-301-126/+420
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | see #1685. * file.c, include/ruby/intern.h (rb_str_encode_ospath): new function to convert encoding for pathname. * win32.c, include/ruby/win32.h (rb_w32_ulink, rb_w32_urename, rb_w32_ustati64, rb_w32_uopen, rb_w32_uutime, rb_w32_uchdir, rb_w32_umkdir, rb_w32_urmdir, rb_w32_uunlink): new functions to accept UTF-8 path. * win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime, rb_w32_unlink): use WCHAR path internally. * file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype, chmod_internal, rb_file_chmod, rb_file_chown, utime_internal, rb_file_s_link, unlink_internal, rb_file_s_rename): use UTF-8 version functions on Win32. * file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p, rb_file_readable_p, rb_file_writable_p, rb_file_executable_p, check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown, rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call rb_str_encode_ospath() before passing the path to system. * io.c (rb_sysopen): ditto. * dir.c (dir_chdir, dir_s_mkdir, dir_s_rmdir): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): define some constants to selectusa2010-04-291-0/+16
| | | | | | | collect code for win64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED withusa2010-04-221-3/+0
| | | | | | | normal file. #1807, #2510, #2549 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h: check definition existance before definingusa2010-04-061-2/+36
| | | | | | | | | | errno macros. * win32/win32.c (errmap): define winsock errors mappings. these are VC++10 support. see [ruby-core:29278] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h, win32/win32.c (EWOULDBLOCK): VC10 alreadyusa2010-04-051-1/+2
| | | | | | | | defined EWOULDBLOCK. based on a patch from Charlie Savage, see [ruby-core:29255] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb (each_export): VC10 support.usa2010-04-051-1/+1
| | | | | | | a patch from Charlie Savage in [ruby-core:29254] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: replace snprintf and vsnprintf bynaruse2010-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | ruby_snprintf and ruby_vsnprintf. [ruby-dev:40909] * configure.in: don't check snprintf(3) and vsnprintf(3). * include/ruby/missing.h: don't delare snprintf and vsnprintf. * include/ruby/ruby.h: include stdarg.h. * sprintf.c: include vsnprintf.c * vsnprintf.c: renamed from missing/vsnprintf.c. * vsnprintf.c: remove useless ifdefs. * win32/mkexports.rb: use ruby_snprintf and ruby_vsnprintf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (init_env): wrong calculation of the head of setenvusa2010-04-021-1/+1
| | | | | | | | string. [ruby-core:29216] a patch from Heesob Park in [ruby-core:29218] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_{read,write}): fix handle leaks. based onnobu2010-03-251-0/+2
| | | | | | a patch from Heesob Park in [ruby-core:28919]. [ruby-core:28833] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_read): limit read size to 16KB if the filenobu2010-03-241-2/+17
| | | | | | | seems to be console. [ruby-core:28902] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tmpdir: split from lib/tmpdir.rb.nobu2010-03-161-9/+18
| | | | | | | * win32/win32.c (rb_w32_system_tmpdir): extracted from init_env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_getcwd): remvoed duplicated code.nobu2010-03-161-6/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (init_env): get rid of alloca() for outer string.nobu2010-03-111-11/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (signbit): allow x64.wanabe2010-03-101-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): VC6 has __int64.usa2010-03-051-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_open): suppressed a warning.nobu2010-03-051-4/+5
| | | | | | | | | * win32/win32.c (rb_w32_map_errno, winnt_stat, rb_chsize): ditto. * win32/win32.c (rb_w32_aspawn): get rid of overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (signbit): defined on mingw.nobu2010-03-051-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (signbig): defined.nobu2010-03-022-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub, symbian/setup (config.h): pack.c requiresnobu2010-03-021-2/+9
| | | | | | | SIZEOF_INT*_T now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (COMPILE_PRELUDE): rbconfig is loaded on demand.nobu2010-02-082-2/+2
| | | | | | | | * tool/eval.rb, win32/{mkexports,resource}.rb: miniruby no longer contains "." in $:. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): should benobu2010-01-291-0/+3
| | | | | | | space-separated. [ruby-core:27912] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.nobu2010-01-251-8/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e