summaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* * win32/win32.c (rb_w32_readdir_with_enc): fallback to OS convertionusa2009-02-061-1/+4
| | | | | | | | when ASCII-8BIT is passed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/{dir.h, win32.c} (rb_w32_readdir_with_enc): new function tousa2009-02-062-35/+96
| | | | | | | | | | | | | | | read entry with specified enc. * win32/win32.c (readdir_internal): extract from rb_w32_opendir(). * win32/win32.c (opendir_internal): extract from rb_w32_readdir(). * dir.c (dir_read, dir_each): use new READDIR macro instead of readdir() to pass enc for special version of readdir, such as above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): follow recent changes about paths.usa2009-02-051-5/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb: shouldn't export DllMain.usa2009-02-041-2/+3
| | | | | | | | reported at http://pc11.2ch.net/test/read.cgi/tech/1233686068/21 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cygwin/GNUmakefile.in (RUBYDEF): uses mkexports.rb on cygwin too.nobu2009-02-021-4/+10
| | | | | | | * win32/mkexports.rb (Exports::Cygwin): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_write): use of cast expressions as lvaluesnobu2009-02-021-1/+1
| | | | | | | is deprecated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb: patchlevel is somtimes minus.usa2009-02-021-3/+4
| | | | | | | | * win32/resource.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/dir.h: forgot to commit.usa2009-02-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (open_dir_handle, rb_w32_opendir, move_to_next_entry,usa2009-02-021-27/+37
| | | | | | | | rb_w32_readdir, check_valid_dir): change backend API from A to W. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_write): limit write size to 32KB if the fileusa2009-01-301-2/+17
| | | | | | | | seems to be console. [ruby-core:21613] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to exportnobu2009-01-271-1/+1
| | | | | | | | | non-function symbols. [ruby-core:21582] * win32/mkexports.rb (Exports::Mingw#each_export): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_header): checks the header depending onnobu2009-01-271-0/+1
| | | | | | | | | | | | platform. * lib/mkmf.rb (have_header, find_header): use try_header. * win32/Makefile.sub (try_header): uses try_compile to get rid of slow -E option of VC. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (distclean-enc, realclean-enc): do not call clean ofnobu2009-01-272-8/+3
| | | | | | | | | | | | | | | | | | | enc.mk twice or more. * enc/depend (cleanobjs): added deffile. * lib/mkmf.rb (create_makefile): removes deffile at clean instead of distclean. * win32/Makefile.sub (miniruby, LIBRUBY_SO): removes lib and exp files. * win32/Makefile.sub (clean, distclean): have moved to common.mk. * win32/rmdirs.bat: omits `not empty' message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (clean-ext): condition of EXTS was inverted.nobu2009-01-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (clean-extout): removes extout directory.nobu2009-01-251-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, win32/Makefile.sub (RMDIRS): remove directory andnobu2009-01-253-4/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parents. * Makefile.in, win32/Makefile.sub (distclean-rdoc): added to remove temprary rdoc. * Makefile.in, win32/Makefile.sub (distclean): removes extout directory. * Makefile.in, win32/Makefile.sub (clean-ext): skips non-existent directories. * common.mk (clean, distclean): cleans rdoc. * configure.in (RMDIRS, RMALL): added to clean extout. * lib/fileutils.rb (FileUtils#rmdir): added :parents option. * lib/mkmf.rb (create_makefile): cleans installed files at clean instead of distclean. * lib/mkmf.rb (create_makefile): added clean-so and clean-rb. * lib/mkmf.rb (def init_mkmf): added DISTCLEANDIRS. * lib/un.rb (rmdir): added -p option. * tool/rmdirs, win32/rmdirs.bat: removes directory and the parents. * win32/rm.bat: added -r option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * revert previous revision. it's already out-of-date.usa2009-01-221-9/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h, win32/win32.c (rb_w32_is_valid_fd): new functionusa2009-01-221-0/+9
| | | | | | | | | | to validate fd. * io.c (rb_io_initialize): check fd with above function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (miniruby): renames and then removes, to get rid ofnobu2009-01-201-5/+1
| | | | | | | | | | | | | | | | | EPERM on cygwin and mingw. * Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy. * configure.in (DLDFLAGS): do not export all symbols. * cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixex with Init_. * win32/mkexports.rb (Exports::Mingw): includes all symbols except for prefixed with Init_ as well as mswin32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (VCSUP): fixed the cases for git-svn or git.yugui2009-01-171-2/+2
| | | | | | | | * win32/Makefile.sub (VCSUP): ditto. * Makefile.in (up): `cd' is necessary for git and git-svn. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (up): tell nmake that need to run command viausa2009-01-161-1/+1
| | | | | | | | shell. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (Makefile): set VCS and VCSUP.nobu2009-01-161-0/+14
| | | | | | | * Makefile.in, win32/Makefile.sub (up): split from common.mk. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,usa2009-01-161-26/+11
| | | | | | | | | | | | miniprelude.c, newline.c): if dependencies is newer than targets or targets don't exist, try to create targets with BASERUBY. no need to detect errors there because the absence of BASERUBY is not abnormal. after the try, if the targets still don't exist, copy them from $(srcdir). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.usa2009-01-161-0/+4
| | | | | | | | | | | if not, cause compile error in using PRI?VALUE. * win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and SIZEOF_UINTPTR_T for SIZEOF_VALUE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,usa2009-01-151-6/+6
| | | | | | | | | | | miniprelude.c, newline.c): shoudn't copy when $(srcdir) != ".", too. (this is a workaround. we need more strict check.) * win32/Makefile.sub ($(INSNS)): shound't remove BASERUBY. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (COMPILERFLAG): for enc/trans/gb18030.c.usa2009-01-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, win32/Makefile.sub (MISSING): added langinfo on mingwnobu2009-01-151-1/+1
| | | | | | | | | | | | and mswin. * encoding.c (rb_locale_charmap): use environments on mingw and mswin. * missing/langinfo.c (nl_langinfo_codeset): MS-Windows Japanese environment uses Windows-31J derived from Shift_JIS, not EUC-JP. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,usa2009-01-151-6/+6
| | | | | | | | miniprelude.c, newline.c): copy only when $(srcdir) != pwd. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_aspawn): should not escape with carretnobu2009-01-141-2/+3
| | | | | | | unless using cmd.exe. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,usa2009-01-132-39/+63
| | | | | | | | | | | | | | | rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset, rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type, functions, and macros for Windows. * win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand fd_array if needed. [ruby-core:19946] * win32/win32.c (copy_fd): new funcion for rb_w32_select(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (internal_cmd_match): extracted fromnobu2009-01-121-14/+34
| | | | | | | | | | | | | is_internal_cmd. * win32/win32.c (argv_size, join_argv): escapes redirection, pipe and carret punctuations with carrets. * win32/win32.c (rb_w32_aspawn): ditto, and redirections and pipe have no meanings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (open_dir_handle): extracted from rb_w32_opendir.nobu2009-01-121-28/+67
| | | | | | | | * win32/win32.c (winnt_stat): gets rid of strange behavior of GetFileAttributes(). [ruby-core:21269] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (init_env): use user profile folder than personalnobu2009-01-051-7/+24
| | | | | | | folder. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, Makefile.in, win32/Makefile.sub (INSNS): move the macrousa2009-01-031-2/+5
| | | | | | | | | definition from common.mk to {Makefile.in,win32/Makefile.sub}. [ruby-dev:37678] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, Makefile.in, win32/Makefile.sub ($(INSNS), node_name.inc,usa2009-01-021-0/+36
| | | | | | | | | | known_errors.inc, miniprelude.c, newline.c): move rules from common.mk to {Makefile.in,win32/Makefile.sub) for nmake. [ruby-core:20993] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (distclean-ext, realclean-ext): use EXTS as default.nobu2008-12-311-1/+5
| | | | | | | | * win32/Makefile.sub (distclean-ext, realclean-ext): try to remove ext directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): do not use snprintf/vsnprintf innobu2008-12-281-4/+0
| | | | | | | msvcrt. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's sizeusa2008-12-271-1/+1
| | | | | | | | is 2, not 0, because it will be converted to "". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn): deals with quoted commands.nobu2008-12-231-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn): support normal commands with arguments.usa2008-12-231-17/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rbnobu2008-12-221-0/+5
| | | | | | | (Exports#exports): added VERSION. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (mingw): no longer uses snprintf and vsnprintf ofnobu2008-12-223-20/+4
| | | | | | | | | | | | | | | | | | msvcrt. * win32/win32.c (rb_w32_vsnprintf, rb_w32_snprintf): removed. * win32/Makefile.sub (config.h): vsnprintf exists in VC7 or later. * win32/mkexports.rb (Exports#initialize): aliases rb_w32_vsnprintf and rb_w32_snprintf for binary compatibility. * sprintf.c (rb_str_format): uses snprintf instead of sprintf. * numeric.c (flo_to_s, rb_num2long, rb_num2ll): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): supplements an extension for executablenobu2008-12-201-182/+122
| | | | | | | | | | | | | | | | | files on DOSish platforms. * io.c (pipe_open): use rb_w32_aspawn() for array form. * win32/win32.c (rb_w32_pipe_exec): no longer used. * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): deals with batch files and commands with extensions. [ruby-core:20695] * win32/win32.c (has_redirection): supports environment variables references. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): define CANONICALIZATION_FOR_MATHNusa2008-12-151-0/+1
| | | | | | | | to follow r20683. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_read, rb_w32_write, rb_w32_isatty): checkusa2008-12-051-0/+12
| | | | | | | | whether fd is valid. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_read): ERROR_BROKEN_PIPE is not a real errorusa2008-12-041-2/+6
| | | | | | | | | | | at this point. * io.c (pipe_open): use rb_w32_spawn() instead of rb_w32_pipe_exec() to use our own redirection scheme. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (waitpid): fix bug of checking child slot.usa2008-12-041-1/+13
| | | | | | | | * win32/win32.c (FindChildSlotByHandle): new. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_accept): secure fd before accept because ifusa2008-11-111-11/+19
| | | | | | | | | | error causes in securing, cannot restore the state of accepted socket. fixed [ruby-core:19728] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (ifs_open_socket): should retry without proto_bufferusa2008-11-101-0/+2
| | | | | | | | | if cannot find the suitable protocol. a patch from Heesob Park. fixed [ruby-core:19713] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/Makefile.sub: add RUNRUBYOPT. [ruby-dev:37009]suke2008-11-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e