summaryrefslogtreecommitdiff
path: root/win32/perlhost.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "add CLONEf_KEEP_PTR_TABLE to win fork emulation."David Mitchell2009-08-051-2/+1
| | | | | | This reverts commit 240bfeb992996de28603a7f9e3ee34ecc6e3f286. (its now fixed in a better way in 136e7e597c0d85149921561591710bc54123b221)
* add CLONEf_KEEP_PTR_TABLE to win fork emulation.David Mitchell2009-08-051-1/+2
| | | | | | | | | This keeps the ptr-table table around after the thread has been created. This has been on for user threads for a while now, but not for Windows forks. Turns out that Variable::Magic relies on the table still being there, so crashes under windows forks. This increases memory usage per fork, but stops things crashing. Sigh. [perl #66158]
* win32/perlhost.h: use symbolic constantDavid Mitchell2009-08-051-1/+2
| | | | CLONEf_COPY_STACKS rather than 1
* Add a parameter to win32_get_{priv,site,vendor}lib(), to return the length,Nicholas Clark2009-02-201-9/+11
| | | | | as we already know it, and use it in S_init_perllib() to save a strlen() in S_incpush_use_sep().
* Silence Borland compiler warnings (except for warnings from zlib) here:Steve Hay2008-02-251-3/+3
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/2008/02/msg53937.html p4raw-id: //depot/perl@33370
* Eliminate use of Nullop in the core code. Dual life uses remain.Nicholas Clark2008-02-101-2/+2
| | | p4raw-id: //depot/perl@33269
* Nullch and others were still alive and well in some of the operatingSteve Peters2007-12-231-2/+2
| | | | | | system specific directories. I think I've chainsawed all of them now, but I can't guarantee that it compiles anywhere from win32. p4raw-id: //depot/perl@32713
* Change #31426 should also be applied to the PERL_IMPLICIT_SYSSteve Hay2007-06-201-1/+8
| | | | | version of ioctl() p4raw-id: //depot/perl@31428
* [PATCH] Use short pathnames in $^X and @INC if the long form cannot be ↵Jan Dubois2007-01-031-35/+2
| | | | | | | | | | | | | represented in the current codepage Date: Thu, 28 Dec 2006 18:59:40 -0800 Message-ID: <vq09p2p09k6rcu6c9t0mab3vnc335ghg9m@4ax.com> Subject: Re: [PATCH] Use short pathnames in $^X and @INC if the long form cannot be represented in the current codepage From: Jan Dubois <jand@ActiveState.com> Date: Wed, 03 Jan 2007 08:12:35 -0800 Message-ID: <orknp2pj17265modfosjkp2qtt4bdgtgjp@4ax.com> p4raw-id: //depot/perl@29675
* Implement killpg() for MSWin32Jan Dubois2006-12-211-3/+1
| | | | | Message-ID: <m8hjo2pasv3hdbhd1sj9sasen7tm38hrhp@4ax.com> p4raw-id: //depot/perl@29605
* Update cwd() to return the "short" pathname if the long one doesn't fit the ↵Jan Dubois2006-12-201-9/+45
| | | | | | | codepage Message-ID: <3rteo219or8hqr511e4vg1fnsgvgemb4sh@4ax.com> p4raw-id: //depot/perl@29598
* Merge WinCE and Win32 directories -- Initial patchYves Orton2006-04-281-0/+12
| | | | | Message-ID: <9b18b3110604271430k4de84685jec6535ded195ed94@mail.gmail.com> p4raw-id: //depot/perl@28003
* Make Borland and MinGW happy with change 26379Steve Hay2006-01-041-1/+1
| | | | | | (They both complain "invalid conversion from `void*' to `HWND__*'" otherwise) p4raw-id: //depot/perl@26637
* RE: PeekMessage() call in win32\win32.c win32_async_checkJan Dubois2005-12-161-0/+12
| | | | | | | Message-ID: <015901c60207$abd64210$d563a8c0@candy> (Without the proposed alarm.t test) p4raw-id: //depot/perl@26379
* Remove unused USING_WIDE code from win32 and wince branchesJan Dubois2005-11-081-7/+1
| | | | | | From: "Jan Dubois" <jand@ActiveState.com> Message-ID: <078001c5e41e$585c4140$6401a8c0@candy> p4raw-id: //depot/perl@26041
* Make PerlLIOUtime()'s filename constSteve Hay2005-11-011-1/+1
| | | | | | | | | Fixes a warning brought about by change #25941 (which made the filename argument const). The various implementations of PerlLIOUtime() (in NetWare/, win32/ and wince/) already take a const filename. p4raw-link: @25941 on //depot/perl: e96b369dc61077fe31b75895167f55dbce4d7519 p4raw-id: //depot/perl@25945
* Win32 fix for change #25850. I don't know if this define will everSteve Peters2005-10-271-0/+2
| | | | | | be used on Win32, but it does fix the problem at hand. p4raw-link: @25850 on //depot/perl: ca0c25f67f45e5dccb746852d8545d7ae29ed067 p4raw-id: //depot/perl@25859
* Re: $^CHILD_ERROR_NATIVE issues (with attachment)Gisle Aas2005-10-041-1/+1
| | | | | Message-ID: <lrd5ml7i8s.fsf@caliper.activestate.com> p4raw-id: //depot/perl@25688
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-2/+2
| | | | | | | | Message-ID: <42CC3CE9.5050606@divsol.com> (reverted all dual-lived modules since they must work with older perls too so must wait for a new Devel::PPPort) p4raw-id: //depot/perl@25101
* Make opendir() filename const in Win32-land & friendsSteve Hay2005-06-241-1/+1
| | | | | | | | That fact that it wasn't const already was highlighted by a warning from pp_open_dir() generated by change 24743. Rather than undo the const change in pp_open_dir(), this seems to make more sense. Hope I haven't broken Netware or WinCE. p4raw-id: //depot/perl@24974
* windows: fix memory leak in %ENV handling (shows up as aGurusamy Sarathy2003-06-091-12/+20
| | | | | | leak even in the simplest fork() loop, because perl_construct() now does the equivalent of %ENV assignments using mg_set()) p4raw-id: //depot/perl@19717
* Use PL_{argv,stdin,stdout}gv to avoid unnecessary gv_fetch calls.Chip Salzenberg2003-02-241-3/+3
| | | p4raw-id: //depot/perl@18763
* windows: support for large filesGurusamy Sarathy2002-12-181-2/+2
| | | | | | | | note that this change will break binary compatibility with the default 5.8.0 build options; nevertheless I think it is worth having in 5.8.1 (people who want the compatibility can disable the option in the makefile) p4raw-id: //depot/perl@18327
* integrate a variant of change#17568 from maint-5.6 branch (theGurusamy Sarathy2002-07-161-23/+0
| | | | | | | do_exec parts elided so that change is restricted strictly to windows; binary compatibility stubs not needed) p4raw-link: @17568 on //depot/maint-5.6/perl: 07691bcd6c6d7fd92f508fd5268e700370ea47c2 p4raw-id: //depot/perl@17570
* make the gettimeofday() implementation in Time::HiRes availableGurusamy Sarathy2002-05-081-1/+8
| | | | | from perl p4raw-id: //depot/perl@16503
* Windows 64-bit support:Gurusamy Sarathy2002-04-211-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * support for building it in the regular makefiles * large files support via the _*i64() functions (this should be portable to the 32-bit universe too, but quite untested and and binary-incompatible, therefore not enabled there) * three additional test failures in addition to the t/end.t one (see README.win32) * sprintf() on Windows gets %I{32,64,}[xoud] format that parallel the ones available from the CRT (needed because Perl uses the UVxf macros in both sprintf() *and* in sv_catpvf() et al.) * add a few 64-bit notes to README.win32 The following general problems were also fixed: * s/struct stat/Stat_t/g * Data::Dumper had some naughty 'long' typecasts * Errno_pm.PL didn't work safe when winsock.h was not in the same directory as errno.h * various tell/seek things were incorrectly prototyped * squelch ugly looking noise when running tests * Embed.t wasn't linking in all the libraries * perl57.dll is now perl58.dll (anticipating 5.8.0-RC1) * re-enable all the disabled warnings (additional fixes may be needed for the warnings uncovered by this) p4raw-id: //depot/perl@16033
* Win32 signal emulation cleanup.Nick Ing-Simmons2002-01-261-5/+4
| | | p4raw-id: //depot/perlio@14428
* Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-4/+2
| | | | | | | | | | | | Need to use CopXXXXX macros everywhere and add CopSTASH_free Add new scope type and add support for it to scope.c and scope stack dup-er in sv.c. Add savesharedpv(). Also zealous version of Win32's vmem.h to catch all the abuses. With this t/op/fork.t passes even with zealous checking and checker is point a finger at various threads/shared issues. PL_curcop->cop_io is still an issue. p4raw-id: //depot/perlio@14259
* Win32 fixes:Nick Ing-Simmons2002-01-131-2/+25
| | | | | | - vmem.h hack to handle free-by-wrong-thread after eval "". - Initialize timerid p4raw-id: //depot/perlio@14232
* Integrate perlio:Jarkko Hietaniemi2001-12-301-5/+7
|\ | | | | | | | | | | | | | | | | | | | | | | [ 13959] Win32 stuff: A. Use Perl_my_socketpair() B. Use PerlSock_xxxx() rather than raw xxxx() so we get to load winsock. C. (In passing) work round fact that $$ is now SvREADONLY so we need to take special measures to set it during pseudo-fork. p4raw-link: @13959 on //depot/perlio: e10bb1e95b6ccccae69758ba14c120c19396b201 p4raw-id: //depot/perl@13961
| * Win32 stuff:Nick Ing-Simmons2001-12-301-5/+7
| | | | | | | | | | | | | | | | A. Use Perl_my_socketpair() B. Use PerlSock_xxxx() rather than raw xxxx() so we get to load winsock. C. (In passing) work round fact that $$ is now SvREADONLY so we need to take special measures to set it during pseudo-fork. p4raw-id: //depot/perlio@13959
* | Sarathy thinks undoing C++ comments from C++ filesJarkko Hietaniemi2001-12-301-28/+28
|/ | | | | is a bit too zealous. p4raw-id: //depot/perl@13951
* from the non-ANSI comment police (was: it won't compile on win32) H.Merijn Brand2001-12-291-28/+28
| | | | | | | Message-Id: <20011229203646.24CF.H.M.BRAND@hccnet.nl> (NetWare tree not touched because it's very //) p4raw-id: //depot/perl@13939
* integrate change#13453 from maint-5.6Gurusamy Sarathy2001-12-041-3/+7
| | | | | | | | | | | | | tweak change#11399 to use an explicit flag rather than ass_u_ming w32_pseudo_id will only be zero for the real toplevel interpreter; avoids multiple hosts from diddling the environment at the same time p4raw-link: @13453 on //depot/maint-5.6/perl: 829f00ecc11a9cddae48275231aee0af40ec2be6 p4raw-link: @11399 on //depot/maint-5.6/perl: 0f7fbaf2aaedb3ed60637203319f491dc1812a50 p4raw-id: //depot/perl@13457 p4raw-integrated: from //depot/maint-5.6/perl@13456 'merge in' win32/perlhost.h (@12200..)
* Fix typos in new locking on MemSharedNick Ing-Simmons2001-10-201-3/+3
| | | | | | | Make buffers in PerlIOBuf_* in per-thread heap (they are cloned after all...) - seems to make segfaults more deterministic - suspect they are attempt to free() after Interp and Host have gone. p4raw-id: //depot/perlio@12541
* Use locks on MemSharedNick Ing-Simmons2001-10-201-14/+35
| | | p4raw-id: //depot/perlio@12539
* Integrate change #12200 from maintperl;Jarkko Hietaniemi2001-09-251-5/+6
| | | | | | | | | | on windows, virtualized environment could propagate deleted variables into children if they happen to be at the very end of the table p4raw-link: @12200 on //depot/maint-5.6/perl: a54e6844a84a87ee0c736e691b5bedbfcbccb5bd p4raw-id: //depot/perl@12201 p4raw-integrated: from //depot/maint-5.6/perl@12199 'merge in' win32/perlhost.h (@12146..)
* Integrate change #12146 from maintperl;Jarkko Hietaniemi2001-09-221-0/+4
| | | | | | | | | win32_chdir() et al don't handle a NULL argument gracefully p4raw-link: @12146 on //depot/maint-5.6/perl: 4e267243e0f1e4a79c99c8aa048aeec9c0d5cd6f p4raw-id: //depot/perl@12147 p4raw-integrated: from //depot/maint-5.6/perl@12144 'merge in' win32/perlhost.h (@11401..) win32/win32.c (@12026..)
* remove deprecated PERL_OBJECT cruft, it has long since stoppedGurusamy Sarathy2001-08-311-32/+20
| | | | | working in 5.7.x p4raw-id: //depot/perl@11803
* Integrate win32/perlhost.h from maintenance branch.Nick Ing-Simmons2001-07-191-1/+1
| | | | | | | (Rest of $ENV{PATH} / system() fix.) p4raw-id: //depot/perl@11412 p4raw-integrated: from //depot/maint-5.6/perl@11411 'merge in' win32/perlhost.h (@11400..)
* Integrate Sarathy's Win32 $ENV{'PATH'}/system fixes (11399, 11400)Nick Ing-Simmons2001-07-181-10/+14
| | | | | | | | | from perl5.6* p4raw-id: //depot/perl@11405 p4raw-integrated: from //depot/maint-5.6/perl@11404 'merge in' win32/win32.c (@8917..) p4raw-integrated: from //depot/maint-5.6/perl@11400 'merge in' win32/perlhost.h (@11399..)
* PerlIO fixups for Win32:Nick Ing-Simmons2001-03-241-1/+10
| | | | | | | | | - provide win33_popenlist() - non-functional as yet. - avoid need for aTHX in PerlIO_debug calls - even if not enabled args are still evaluated so Win32 has trouble during fork(). - Add PerlIO/Scalar to list of extensions in win32/makefile.mk - Fixup makedef.pl for latest set of symbols. p4raw-id: //depot/perlio@9321
* Integrate change #9116 from maintperl into mainline.Jarkko Hietaniemi2001-03-131-4/+4
| | | | | | | | | | Win32::GetCwd() returns C: instead of C:\ in the root directory under ithreads p4raw-link: @9116 on //depot/maint-5.6/perl: 864201fef66f086d79f15d5f6659d358d38b3288 p4raw-id: //depot/perl@9119 p4raw-integrated: from //depot/maint-5.6/perl@9118 'merge in' win32/perlhost.h (@8167..)
* Re: sync sync sync: have I missed any patches?Tim Jenness2001-02-281-1/+1
| | | | | | | | In-Reply-To: <20010227140737.Y10633@chaos.wustl.edu> Message-ID: <Pine.LNX.4.30.0102271322070.8623-100000@lapaki.jach.hawaii.edu> Replace djSP with dSP. p4raw-id: //depot/perl@8963
* PERL_IMPLICIT_SYS (almost) works - something odd with "signal"Nick Ing-Simmons2000-12-041-0/+21
| | | p4raw-id: //depot/perlio@7983
* PERL_IMPLICIT_SYS compiles but does not work.Nick Ing-Simmons2000-12-031-90/+89
| | | p4raw-id: //depot/perlio@7970
* Missing change from #7362.Jarkko Hietaniemi2000-10-181-1/+1
| | | p4raw-id: //depot/perl@7363
* trailing new %ENV entries weren't being pushed into the realGurusamy Sarathy2000-08-171-1/+11
| | | | | environment of subprocesses on Windows p4raw-id: //depot/perl@6662
* waitpid() now handles externally spawned pids correctly;Gurusamy Sarathy2000-08-171-0/+10
| | | | | | | | | | fixes for backtick/wait/waitpid failures on Windows 9x these changes make the pid returned by process functions on Windows 9x always positive by clearing the high bit (which is always set on Win9x); pseudo-process PIDs are likewise always negative now on Win9x (just as on NT/2000) p4raw-id: //depot/perl@6661
* check that the number pseudo children doesn't exceedGurusamy Sarathy2000-08-161-1/+7
| | | | | | | | | | | MAXIMUM_WAIT_OBJECTS, which is currently 64 (avoids overflowing the WaitForMultipleObjects() limit that would cause wait() to crash) wait() and waitpid() could potentially be rewritten to use more than one thread to do the waiting to eliminate this limitation p4raw-id: //depot/perl@6656