nobu
2c01a07bf4
* ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.
...
* 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
2010-05-08 03:25:17 +00:00
nobu
0f7321eddf
* README: update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 03:12:28 +00:00
wanabe
a8209ffcc7
* win32/win32.c: add declaration of wstati64 for gcc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30 21:45:33 +00:00
usa
6c28f99d88
* merge some patches from win32-uncode-test branch.
...
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
2010-04-30 17:56:23 +00:00
usa
47f35969e0
* win32/Makefile.sub (config.h): define some constants to select
...
collect code for win64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 15:54:18 +00:00
usa
b6847f7acc
* win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with
...
normal file. #1807 , #2510 , #2549
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-22 16:49:39 +00:00
usa
727371f88a
* include/ruby/win32.h: check definition existance before defining
...
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
2010-04-06 05:58:07 +00:00
usa
54da3ecbcb
* include/ruby/win32.h, win32/win32.c (EWOULDBLOCK): VC10 already
...
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
2010-04-05 04:26:33 +00:00
usa
f1c86c1bb2
* win32/mkexports.rb (each_export): VC10 support.
...
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
2010-04-05 04:09:45 +00:00
naruse
b919cb1d93
* include/ruby/ruby.h: replace snprintf and vsnprintf by
...
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
2010-04-04 01:10:53 +00:00
usa
c78dbcd131
* win32/win32.c (init_env): wrong calculation of the head of setenv
...
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
2010-04-02 02:57:05 +00:00
nobu
b3a039a2cb
* win32/win32.c (rb_w32_{read,write}): fix handle leaks. based on
...
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
2010-03-25 05:50:08 +00:00
nobu
cb2f56aaf4
* win32/win32.c (rb_w32_read): limit read size to 16KB if the file
...
seems to be console. [ruby-core:28902]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 05:34:05 +00:00
nobu
3694f1dda7
* ext/tmpdir: split from lib/tmpdir.rb.
...
* 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
2010-03-16 06:20:23 +00:00
nobu
724f1f4a6e
* win32/win32.c (rb_w32_getcwd): remvoed duplicated code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:48:07 +00:00
nobu
772acb9f1d
* win32/win32.c (init_env): get rid of alloca() for outer string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 22:25:22 +00:00
wanabe
131f0a409b
* win32/win32.c (signbit): allow x64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-10 16:36:18 +00:00
usa
de1cd22816
* win32/Makefile.sub (config.h): VC6 has __int64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 16:09:35 +00:00
nobu
4bcae18e37
* io.c (pipe_open): suppressed a warning.
...
* 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
2010-03-05 08:51:12 +00:00
nobu
ee48a91993
* win32/win32.c (signbit): defined on mingw.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 02:59:33 +00:00
nobu
35345f1c09
* win32/win32.c (signbig): defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 21:19:33 +00:00
nobu
d20440ab6f
* win32/Makefile.sub, symbian/setup (config.h): pack.c requires
...
SIZEOF_INT*_T now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 20:49:02 +00:00
nobu
ecc775772a
* common.mk (COMPILE_PRELUDE): rbconfig is loaded on demand.
...
* 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
2010-02-08 07:23:13 +00:00
nobu
9433d94cff
* configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): should be
...
space-separated. [ruby-core:27912]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 05:21:55 +00:00
nobu
ccf67667b8
* version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 08:36:14 +00:00
usa
4301bbbe0f
* win32/win32.c (init_env): use _wputenv() instead of
...
SetEnvironmentVariableW() because latter doesn't set msvcrt's environ
work area, of course.
[Bug #2552 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 05:54:47 +00:00
nobu
9e72f97927
* win32/configure.bat (WIN32DIR): regularise file separators.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-08 23:40:57 +00:00
yugui
295bc2fe25
removes the dtrace support. reverts r26239, r26238 and r26235.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-05 05:59:23 +00:00
usa
7e22f102a6
* win32/Makefile.sub (TRACING_MODEL): follow yugui's previous changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-04 00:31:37 +00:00
usa
3fb4d27a8d
* win32/win32.c (CreateChild): force to inherit standard I/O handles.
...
this change fixes [ruby-core:27273], but other side effects might
exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-28 14:01:12 +00:00
usa
0f406d278f
* win32/configure.bat: now recognize --with-*-{dir,include,lib} options
...
and pass them to mkmf.
* win32/configure.bat: general conversion from ``/'' to ``\'' of
configure_args is not necessary any longer.
* win32/setup.mak: BASERUBY is used as command, so always need to
convert ``/'' to ``\'' within it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 14:53:55 +00:00
nobu
7b5ea0ec2f
* configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved from
...
dln.c:dln_find_1().
* lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not
only EXEEXT. [ruby-core:26821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:54:26 +00:00
usa
39e457b4e7
* win32/{configure.bat, setup.mak, Makefile.sub}: add new configure
...
option ``--with-ntver''.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 08:55:34 +00:00
usa
e569adce47
* win32/Makefile.sub: nmake execute the file named echo if it exists
...
in the PATH. reported by Kenta Murata <mrkn AT mrkn.jp> via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-19 08:04:11 +00:00
wanabe
754462d4f1
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
...
instead of pointer to CloseHandle().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 04:36:33 +00:00
usa
b16e6a93ca
* win32.c (recvmsg, sendmsg, link): shouldn't raise ruby's exceptions
...
in the functions expected as system API. see [ruby-dev:39579] and
[ruby-dev:39582]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 04:15:54 +00:00
nobu
c21350f902
* win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
...
different name from RUBY_ARCH. [ruby-core:26324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 18:45:34 +00:00
nobu
e9af789d35
* configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
...
ruby without current libraries.
* common.mk (rdoc): use XRUBY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 22:32:39 +00:00
usa
55cc90b7e2
* win32/Makefile.sub (enc/unicode/name2ctype.h): no need to create
...
directory if it already exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-19 06:04:10 +00:00
usa
dd5c77f0c9
* win32/win32.c (rb_w32_spawn): `\'' is also quote character.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 07:10:08 +00:00
nobu
66150a89a6
* configure.in, Makefile.in (LIBRUBY_SO), common.mk (ruby.imp),
...
win32/mkexports.rb (each_export): exclude _threadptr_ functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-10 09:19:05 +00:00
usa
4e389756ec
* win32/{setup.mak,Makefile.sub,win32.c},include/ruby/win32.h (RT_VER):
...
split compiler specification and runtime library specification.
* win32/Makefile.sub (LD_SHARED*, config.status): no need to embbed
manifest if not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-01 05:19:19 +00:00
usa
a93b36b3e5
* win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
...
instead of calling MSVCRT's getpid().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-01 04:23:59 +00:00
usa
51cefa387c
* win32/wini32.c (LK_ERR): with overlapped I/O, LockFileEx() returns
...
ERROR_IO_PENDING if the file is locked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-28 10:37:41 +00:00
usa
d70e9a5568
* win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
...
replace MSVCRT's access().
[ruby-core:25761]
* file.c (eaccess): workaround for recent MSVCRT is no longer needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 07:04:25 +00:00
nobu
92fd1940fe
* Makefile.in, win32/Makefile.sub (INSNS): depend on tools.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:43:43 +00:00
usa
2b222204a3
* win32/Makefile.sub (config.status): install-capi needs docdir. And,
...
mandir, infodir and ridir are also depend on datadir like docdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 08:42:48 +00:00
usa
e353346e14
* win32/Makefile.sub: sorry, typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 08:06:24 +00:00
usa
8b70b92841
* win32/Makefile.sub (DOCTARGETS): rdoc is default.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 08:00:07 +00:00
usa
4a21a410d6
* win32/Makefile.sub: typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 07:27:58 +00:00