summaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* * win32/win32.c (ioinfo): revert previous commit. sorry.usa2006-01-061-4/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (ioinfo): VC++8 support, forgotten to commit.usa2006-01-051-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_seekdir): should not segfault even if passedocean2006-01-011-12/+33
| | | | | | | | | the location which rb_w32_telldir didn't return. [ruby-core:7035] * test/ruby/test_dir.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: VC++8 support.nobu2005-12-301-2/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (eaccess): workaround for VC++8 runtime.usa2005-12-291-0/+4
| | | | | | | * win32/win32.c (ioinfo): VC++8 support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_strerror): remove all CR and LF. (avoid brokenocean2005-11-281-3/+3
| | | | | | | error message on bccwin32 + winsock) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (test_identical): test if two files are identical.nobu2005-11-222-22/+21
| | | | | | | | | | * file.c (rb_f_test): support DOSISH systems where st_ino is not reliable. fixed: [ruby-core:06672] * win32.h, win32.c (rb_w32_osid): check the running platform. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (winnt_stat): set mapped errno instead of ENOENT.ocean2005-11-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_stat): Dir.chdir('//server/shared');ocean2005-11-221-1/+106
| | | | | | | | p Dir.glob('*') should work on WinNT. (implemented our own stat(2) on WinNT) [ruby-list:41552] [ruby-dev:27711] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/setup.mk: findstr doesn't exist on win9x.ocean2005-11-211-1/+1
| | | | | | | fixed: [ruby-dev:27756] (written by nobu) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.h (S_IFIFO): r,w = IO.pipe; r.stat.pipe? nowocean2005-11-181-0/+4
| | | | | | | returns true on VisualC++6. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_EXTERN): macro to export symbols in sharednobu2005-10-251-0/+1
| | | | | | | | | | | | library. [ruby-core:05528] * defines.h, {bcc32,win32,wince}/Makefile.sub (RUBY_EXTERN): moved to configuration pass. * ext/extmk.rb (extmake): RUBY_EXTERN for static linked extensions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (ioctl): should set errno.usa2005-10-141-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.h (rb_w32_stat): added prototype.ocean2005-09-151-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (ruby_glob): glob function not using ruby exception system.nobu2005-09-141-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9158 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/branches/ruby_1_8@9060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/Makefile.sub (COMMON_HEADERS): reverted 1.42.2.24.ocean2005-08-181-0/+5
| | | | | | | | | | I misunderstood, bccwin32 on ruby_1_8 uses winsock2 originally. [ruby-dev:26806] * win32/win32.h: include winsock2.h instead of winsock.h. (bcc32) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c: just uniformed method style.ocean2005-08-051-36/+40
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, Makefile.in, {bcc32,win32,wince}/Makefile.sub: integratednobu2005-08-031-5/+2
| | | | | | | | | | | 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/branches/ruby_1_8@8902 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/branches/ruby_1_8@8834 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/branches/ruby_1_8@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/branches/ruby_1_8@8756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/erf.c: need to include some headers for some platforms.matz2005-07-011-0/+6
| | | | | | | | | | | | | * win32/win32.h (copysign, scalb): define for compatibility with other platforms. [ruby-dev:26430] * missing/crypt.c: modified to make it compilable on platforms other than BSD. [ruby-dev:26430] * missing/erf.c: ditto. code from <exp.c> merged. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8692 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. fixed: [ruby-dev:26360] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): get rid of using String. [ruby-dev:26180]nobu2005-05-181-0/+10
| | | | | | | | | | * dir.c (push_braces): should skip balanced braces. * 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/branches/ruby_1_8@8480 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/branches/ruby_1_8@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/branches/ruby_1_8@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/branches/ruby_1_8@8467 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/branches/ruby_1_8@8459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Check for the availability of pid_t, gid_t and uid_t andnobu2005-05-142-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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/branches/ruby_1_8@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/branches/ruby_1_8@8451 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/branches/ruby_1_8@8389 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/branches/ruby_1_8@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/branches/ruby_1_8@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/branches/ruby_1_8@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/branches/ruby_1_8@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/branches/ruby_1_8@8316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/Makefile.sub: ri data was not installedocean2005-04-111-1/+1
| | | | | | | | | | | into correct path. [ruby-dev:26011] * bcc32/Makefile.sub: defaulted install-nodoc. [ruby-dev:26011] * dir.c: rdoc fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.{h,c} (rb_w32_fdopen): avoid warning on bcc32.ocean2005-04-032-3/+3
| | | | | | | (backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/{Makefile.sub,setup.mak}: leave prefix empty innobu2005-04-023-6/+10
| | | | | | | config.status for backward compatibility. fixed: [ruby-core:04649] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8243 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/branches/ruby_1_8@8220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,nobu2005-03-302-320/+122
| | | | | | | | common.mk, configure.in, ext/extmk.rb, lib/mkmf.rb, instruby.rb, runruby.rb: backport extout. [ruby-dev:25963] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-03-071-0/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (fnmatch): removed unnecessary code. (ruby_1_8 didn't haveocean2005-03-051-4/+0
| | | | | | | | | String#clear, so [ruby-dev:24749] didn't affect it) * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.101.2.14) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/Makefile.sub (config.h): add fcntl.usa2005-02-213-2/+52
| | | | | | | | | | | | | | * win32/win32.[ch] (fcntl): ditto. * win32/win32.c (rb_w32_connect): support nonblocking mode. * ext/socket/socket.c (wait_connectable, ruby_connect): support nonblocking connect on various platforms. all changes are backported from CVS HEAD. [ruby-core:3154], [ruby-core:4364]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (COMMON_HEADERS): shouldn't include winsock2.h.usa2005-02-101-1/+1
| | | | | | | | * ext/socket/extconf.rb (sockaddr_storage): remove workaround for mswin32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (flock_winnt, flock_win95): unlock file even ifusa2005-01-261-0/+2
| | | | | | | LOCK_NB is specified. (backported from CVS HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): shoudn't set $extflags on mswin32.usa2005-01-201-3/+4
| | | | | | | | | * win32/Makefile.sub (LIBRUBY_SO): should use $DLDOBJS instead of $EXTOBJS. fixed: [ruby-core:04290] (backported from CVS HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7792 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/branches/ruby_1_8@7737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (dir_s_mkdir): win32 special processing doesn't need anyusa2005-01-052-0/+45
| | | | | | | | | | | | | longer. (backported from CVS HEAD) * win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible interface. (backported from CVS HEAD) * win32/win32.[ch] (rb_w32_rmdir): new function. (backported from CVS HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e