summaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* * 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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@8780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reordered just for diffing.ocean2005-07-141-16/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@8506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (NtInitialize): fix typo.usa2005-05-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@8367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk: miniruby depens on MINIOBJS.nobu2005-04-201-1/+2
| | | | | | | | | | * dmydln.c (dln_load): dummy function to raise LoadError. * cygwin/GNUmakefile.in, {bcc32,win32,wince}/Makefile.sub: miniruby can't load extensions on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/ifchange.bat: delete testing files.nobu2005-04-201-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/configure.bat, {bcc32,win32,wince}/setup.mak:nobu2005-04-192-0/+9
| | | | | | | | | add extout option. * bcc32/setup.mak: make configuration variables overridable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (mingw32): use actual runtime DLL name as ruby DLLnobu2005-04-132-9/+68
| | | | | | | | | name and default load path. * win32/Makefile.sub, win32/setup.mak: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * wince/configure.bat, wince/setup.mak: add prefix, extstatic andnobu2005-04-021-2/+3
| | | | | | | rdoc options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/rm.bat: $Id doesn't work on -kb file.ocean2005-03-301-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob): fixed mismatch of argument.ocean2005-03-051-4/+0
| | | | | | | | | * dir.c (fnmatch): removed unnecessary code. (by string.c 1.219) * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.117) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (eaccess): workaround for VC++8 runtime.usa2005-03-041-0/+4
| | | | | | | * win32/win32.c (ioinfo): VC++8 support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/Makefile.sub (config.h): check if affectednobu2005-03-033-11/+68
| | | | | | | | | | | | | | when makefiles are modified. * {bcc32,win32,wince}/Makefile.sub (config.status): add variables for tests. * win32/ifchange.bat: try to update a file only if modified. * win32/resource.rb: more descriptions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, lib/mkmf.rb: use simple commands if available.nobu2005-02-221-1/+2
| | | | | | | | | | | | | * mkconfig.rb: remove autoconf internal variables from rbconfig.rb. * lib/mkmf.rb (create_makefile): substitute implicit rules in depend file. * {bcc32,win32,wince}/Makefile.sub (COMPILE_RULES, RULE_SUBST): include $(topdir) and $(hdrdir) to search path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_fdopen): suppress warning.nobu2005-02-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, win32/Makefile.sub (LIBS, COMMON_HEADERS): useusa2005-02-103-11/+7
| | | | | | | | | | | | | winsock2 on mswin32/mingw. * ext/socket/extconf.rb: ditto. * win32/win32.c (StartSockets): ditto. * win32/win32.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/Makefile.sub (COMMON_LIBS): add libraries included innobu2005-02-102-2/+18
| | | | | | | | | | | | | import32.lib. * lib/mkmf.rb (create_makefile): restrict prefixing with srcdir to rule lines, add search path to implicit rules, and set Borland make special macros for search path. * win32/win32.c, win32/win32.h (read): aboid a BCC runtime bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (init_stdhandle): assign standard file handles.nobu2005-02-101-0/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (flock_winnt, flock_win95): unlock file even ifusa2005-01-261-0/+2
| | | | | | | LOCK_NB is specified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_close): didn't close socket handle.ocean2005-01-061-1/+15
| | | | | | | | * win32/win32.c (rb_w32_open_osfhandle): bcc32's _open_osfhandle never set EMFILE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (BITSTACK_POP): workaround for bcc32 compiler's bug.ocean2005-01-052-1/+6
| | | | | | | | | | | shift assignment operator '>>=' for __int64 in struct may generate collapsed code. [ruby-dev:25342] * win32/win32.[ch]: failed to compile on bcc32 (and probably wince) [ruby-dev:25306] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_fdisset): check whether the handle is valid.usa2004-12-151-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_close): need to reset osfhnd().usa2004-12-141-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_pipe_exec): need to close original socketusa2004-12-081-3/+1
| | | | | | | handle. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e