summaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* * win32/win32.c (getppid): typo. [ruby-dev:36202]usa2008-09-081-15/+15
| | | | | | | | * process.c (get_ppid): mention the return value on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): define SIZE_MAX for VC++6/7.usa2008-09-081-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (filetime_to_unixtime): remove unused variable.usa2008-09-081-1/+0
| | | | | | | | [ruby-dev:36191] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (filetime_to_timeval): new function, split fromusa2008-09-031-28/+23
| | | | | | | | | | | | gettimeofday(). * win32/win32.c (gettimeofday): use above function. * win32/win32.c (filetime_to_unixtime): ditto. [ruby-dev:36135] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c: fix ruby/signal.h depending codes.ko12008-09-031-9/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (COMPILERFLAG): new compiler flag to compileusa2008-09-021-1/+4
| | | | | | | | enc/trans/japanese*.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (miniruby): new target.usa2008-09-021-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (gettimeofday): easier calculation. use the definitionusa2008-09-021-1/+1
| | | | | | | | of the Gregorian calender. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (gettimeofday): calc tv_sec and tv_usec from systemusa2008-09-021-6/+18
| | | | | | | | time by myself. [ruby-dev:36084] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (gettimeofday): shouldn't use mktime(2) because it'susa2008-09-011-11/+2
| | | | | | | | buggy about handling summer time. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_func, try_var, have_struct_member),nobu2008-08-311-0/+3
| | | | | | | | | | | (scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING. * lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main. * win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_open, rb_w32_read, rb_w32_write): fallback tousa2008-08-301-0/+17
| | | | | | | | | MSVCRT if text mode is specified. this case will not be used from ruby itself. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_read): EOF is not error.usa2008-08-301-1/+1
| | | | | | | | ref [ruby-dev:36050] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_read, rb_w32_write): more accurate handlingusa2008-08-281-2/+6
| | | | | | | | of wait result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (set_pioinfo_extra): use MSVCRT's open() and close().usa2008-08-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped fileusa2008-08-281-9/+448
| | | | | | | | | | | | | | | | I/O support. * win32/win32.c, include/ruby/win32.h (rb_w32_pipe): overlapped pipe I/O support. * wn32/win32.c (rb_w32_read, rb_w32_write): overlapped I/O support to enable canceling I/O. * thread_win32.c (ubf_handle): remove workaround. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32.c (init_stdhandle): set binmode.usa2008-08-251-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_substr_append): fix for buffer overrun.nobu2008-08-251-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (parse.h): workaround for nmake.nobu2008-08-141-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),nobu2008-08-091-2/+2
| | | | | | | | | | | | ext/digest/md5/md5.c, ext/openssl/ossl.c (main), ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int. * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is no longer used so long time. based on a patch from Peter Bowen at [ruby-core:18208] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do notnobu2008-08-071-0/+8
| | | | | | | use miniruby. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):nobu2008-08-071-1/+2
| | | | | | | moved clean targets to platfrom makefiles. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.status): export BASERUBY.usa2008-08-061-0/+1
| | | | | | | | * enc/depend: avoid GNU make'ism. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_seekdir): no need to rewind to seek forward.nobu2008-08-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): recalc the rest of timeout for eachnobu2008-07-301-8/+30
| | | | | | | iterations. [ruby-core:18015] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (overlapped_socket_io, fcntl, rb_w32_close): must notnobu2008-07-281-4/+11
| | | | | | | pass a pointer to int which is smaller than st_data_t on mswin64. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild, overlapped_socket_io): suppressnobu2008-07-281-3/+3
| | | | | | | warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (MAXPATHLEN): define before use.usa2008-07-281-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.h (dln_find_exe, dln_find_file): deprecated, use reentrantnobu2008-07-271-1/+2
| | | | | | | versions instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (exit_handler): use st_free_table() to free socklist.usa2008-07-241-16/+42
| | | | | | | | | | * win32/win32.c (rb_w32_pipe_exec, rb_w32_accept, rb_w32_socket, rb_w32_socketpair): should check and release fd and sockets/handles if an error occurs in rb_w32_open_osfhandle(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (overlapped_socket_io): avoid warnings.usa2008-07-241-11/+16
| | | | | | | | * thread_win32.c (ubf_handle): refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (init_func): new function to get API's address whichusa2008-07-221-18/+15
| | | | | | | | | | | is often used and not supported on all Windows. * win32/win32.c (overlapped_socket_io): shouldn't use overlapped I/O if CancelIo() is not supported. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (socklist): table for registering socket optionsusa2008-07-181-97/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (currently only O_NONBLOCK). * win32/win32.c (StartSockets, exit_handler): alloc/free socklist. * win32/win32.c (is_socket): use socklist. * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair): register new socket to socklist. * win32/win32.c (rb_w32_close): remove closing socket from socklist. * win32/win32.c (fcntl): register socket options. * win32/win32.c (overlapped_socket_io): send to/recv from socket with overlapped operation if the socket is not nonblocking mode. [experimental] * win32/win32.c (rb_w32_send, rb_w32_sendto, rb_w32_recv, rb_w32_recvfrom): use overlapped_socket_io(). * win32/win32.c (open_ifs_socket): set overlapped mode. this is the default mode of winsock's socket(), so lacking it is an old bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (ruby_version): follow changes in configure.in.usa2008-07-151-7/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.c (ubf_handle): cancel blocking IO if it can (onlyusa2008-07-151-0/+1
| | | | | | | | | | Vista). see [ruby-dev:35446] * win32/win32.c (errmap): add ERROR_OPERATION_ABORTED as EINTR. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.usa2008-07-121-0/+8
| | | | | | | | * {bcc32,win32}/Makefile.sub: (SIZEOF_SIZE_T, SIZEOF_PTRDIFF_T): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (LIBRUBY_DLDFLAGS): import library which createdusa2008-07-121-1/+1
| | | | | | | | | | with DLL is broken. save import library which created by lib.exe and install it. fixed the problem mentioned at the postscript of [ruby-dev:35448] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): shoudn't pass non-socket handle tousa2008-07-111-0/+4
| | | | | | | | original select(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/setup.rb, win32/Makefile.sub (PLATFORM): use $(PLATFORM)usa2008-07-112-17/+17
| | | | | | | | instead of $(OS) because ENV["OS"] is used in test-all (drb). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair):usa2008-07-111-4/+4
| | | | | | | | prohibit inheritance of sockets, too. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild): the measures for Vista is no longerusa2008-07-111-1/+1
| | | | | | | | unnecessary. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (insert): follow recent changes of globbing.usa2008-07-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h, win32/win32.c (rb_w32_getppid): now supportusa2008-06-241-0/+34
| | | | | | | | | | getppid() on win32 (but only Win2k or later). * process.c (get_ppid): remove win32 special logic. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_osid, rb_w32_osver, CreateChild): XP isusa2008-06-211-3/+15
| | | | | | | | | is different from Vista about pipe handle inheritance. fixed [ruby-core:17367] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn): no longer support P_WAIT.usa2008-06-211-4/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (errmap): add some pipe errors.usa2008-06-181-2/+14
| | | | | | | | | * win32/win32.c (rb_w32_write): set errno when CRT's errno is EINVAL for pipe errors. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (poll_child_status): set EINVAL to errno whenusa2008-06-181-5/+9
| | | | | | | | GetExitCodeProcess() fails with ERROR_INVALID_HANDLE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild): no need to inherit handles here becauseusa2008-06-171-1/+1
| | | | | | | | spawn'ed child cannot detect that STDIN is closed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (COMMON_HEADERS): include ws2tcpip.h.usa2008-06-061-1/+1
| | | | | | | | | | | | * ext/socket/addrinfo.h (addrinfo, getaddrinfo, getnameinfo, freehostent, freeaddrinfo): undef before define because these are macros in some versions of Windows SDK. merged from ruby_1_8. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (miniruby$(EXEEXT)): miniruby cannot benobu2008-06-031-1/+1
| | | | | | | written by miniruby itself. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e