summaryrefslogtreecommitdiff
path: root/perl.c
Commit message (Collapse)AuthorAgeFilesLines
* Re: [PATCH] Re: Storing &PL_sv_undef as a hash key with perl-5.8.xMarcus Holland-Moritz2003-07-271-0/+6
| | | | | | From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <006801c34efe$8aac1920$0c2f1fac@R2D2> p4raw-id: //depot/perl@20224
* This should make Stas happy.Jarkko Hietaniemi2003-07-231-1/+2
| | | p4raw-id: //depot/perl@20182
* Rename get_seed() to get_hash_seed(), as suggested byRafael Garcia-Suarez2003-07-181-1/+1
| | | | | Eric J Kidder, to solve a name conflict on HP_UX 11.00. p4raw-id: //depot/perl@20170
* I think the API for mod_perl v2 should be simply thatJarkko Hietaniemi2003-07-111-1/+3
| | | | | | PL_modperl sets the PL_hash_seed (and PL_hash_seed_set) itself, hopefully from a good source of random bits. p4raw-id: //depot/perl@20145
* Chicken out: the hash randomisation is not on by default.Jarkko Hietaniemi2003-07-111-24/+11
| | | | | | | | | | We switch over to the explicit mode: in other words, if the $ENV{PERL_HASH_SEED} is on, we randomise. Also, we randomise only if PL_hash_seed_set is FALSE (this means one can use PERL_HASH() before perl_run.) Also, since now PERL_HASH_SEED is okay even under -T, all should be fine. (Ha!) p4raw-id: //depot/perl@20135
* Check PERL_HASH_SEED even when tainted.Jarkko Hietaniemi2003-07-101-5/+1
| | | p4raw-id: //depot/perl@20134
* [comment patch]Stas Bekman2003-07-101-1/+1
| | | | | Message-ID: <3F0DD85A.1070902@stason.org> p4raw-id: //depot/perl@20129
* Restore SIGFPE on exec()Chip Salzenberg2003-07-101-0/+6
| | | | | Message-ID: <20030710171319.GA21588@perlsupport.com> p4raw-id: //depot/perl@20117
* Mark Bixby ++.Jarkko Hietaniemi2003-07-071-1/+1
| | | p4raw-id: //depot/perl@20062
* DProf fixesRadu Greab2003-07-061-7/+7
| | | | | Message-ID: <16136.22456.99575.573777@ix.netsoft.ro> p4raw-id: //depot/perl@20034
* The logic for additional randomisation for 64-bit UVJarkko Hietaniemi2003-07-051-6/+6
| | | | | cases was wrong. p4raw-id: //depot/perl@20009
* IIRC gcc would complain about if (s = ...).Jarkko Hietaniemi2003-07-051-1/+1
| | | p4raw-id: //depot/perl@20008
* Allow $ENV{PERL_HASH_SEED_DEBUG} to work even under taint;Jarkko Hietaniemi2003-07-051-1/+1
| | | | | | | since CGI scripts are (should be) run under -T, being able to show the HASH_SEED in case of problems is good. The $ENV{PERL_HASH_SEED} is still ignored under taint. p4raw-id: //depot/perl@20007
* Remove PL_earlytaint since the hash seed codeJarkko Hietaniemi2003-07-041-35/+36
| | | | | can be delayed until perl_parse(). p4raw-id: //depot/perl@19979
* Do the "aligned contiguous" check only if the argumentsJarkko Hietaniemi2003-07-011-28/+60
| | | | | | look like aligned; re-introduce the "traditional contiguous" checks with OS/2 special quirks and all. p4raw-id: //depot/perl@19906
* Switch on PERL_IMPLICIT_SYS, not on Win32.Jarkko Hietaniemi2003-07-011-4/+10
| | | p4raw-id: //depot/perl@19903
* Win32 hack for doing_taint()Nick Ing-Simmons2003-06-301-1/+4
| | | p4raw-id: //depot/perlio@19895
* Integrate mainlineNick Ing-Simmons2003-06-301-18/+90
|\ | | | | p4raw-id: //depot/perlio@19894
| * int is not UV.Jarkko Hietaniemi2003-06-301-2/+2
| | | | | | p4raw-id: //depot/perl@19890
| * The 'contiguous' test for argv[], envp[] was bogusJarkko Hietaniemi2003-06-301-22/+39
| | | | | | | | | | | | | | | | | | since those need not be in memory end-to-end, e.g. in Tru64 they are aligned by eight. Loosen the test so that 'contiguousness' is fulfilled if the elements are within PTRSIZE alignment. This makes Tru64 to pass the join.t, too. p4raw-id: //depot/perl@19889
| * The joy of $0. Undoing the #16399 makes Andreas'Jarkko Hietaniemi2003-06-291-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | tests (see [perl #22811]) pass (yes, padding with space instead of nul makes no sense, but that seems to work, maybe Linux does some deep magic in ps(1)?); moving the PL_origalen computation earlier makes also the threaded-first case fully pass. But in general modifying the argv[] is very non-portable. (e.g. in Tru64 it seems to be limited to the size of the original argv[0] since the argv[] are not contiguous?) Everybody should just have setproctitle(). p4raw-id: //depot/perl@19884
| * Two debugging patches.Dave Mitchell2003-06-281-18/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first allows to hold symbolic switches in $^D and more generally fixes assignment to $^D. The second one improves the information given by -Dl. Subject: [PATCH] allow $^D = "flags" Date: Fri, 27 Jun 2003 22:26:24 +0100 Message-ID: <20030627212624.GB12887@fdgroup.com> Subject: [PATCH] make -Dl show more scope info From: Dave Mitchell <davem@fdgroup.com> Date: Fri, 27 Jun 2003 23:00:36 +0100 Message-ID: <20030627220036.GC12887@fdgroup.com> p4raw-id: //depot/perl@19870
* | "Missing" dTHX for Win32's re-direction of getuid etc.Nick Ing-Simmons2003-06-301-0/+1
|/ | | p4raw-id: //depot/perlio@19892
* atoi() doesn't cut the mustard if the PERL_HASH_SEEDJarkko Hietaniemi2003-06-271-1/+1
| | | | | is larger than INT_MAX (atoi() returns -1 in that case). p4raw-id: //depot/perl@19865
* Use the PL_earlytaint. (PL_earlytaint is a global,Jarkko Hietaniemi2003-06-271-2/+2
| | | | | | | not per-interp, since perl_construct() is not passed the argc, argv, and therefore it can't set the per-interp PL_tainting.) p4raw-id: //depot/perl@19864
* Introduce (global) variable PL_earlytaint whichJarkko Hietaniemi2003-06-271-9/+9
| | | | | | | is set very early in main(), before perl_parse() has been called and PL_tainting (or PL_taint_warn) might have been set. p4raw-id: //depot/perl@19863
* Make doing_taint() always available (though notJarkko Hietaniemi2003-06-271-3/+3
| | | | | part of the public API). p4raw-id: //depot/perl@19862
* Do not obey PERL_HASH_SEED or PERL_HASH_SEED_DEBUGJarkko Hietaniemi2003-06-271-2/+5
| | | | | | | | if tainting-- but is this a good thing or a bad thing? (At least it makes debugging lib/Hash/Util.t harder, since it has, for no apparent good reason, -T: one must make a copy of it without the -T.) p4raw-id: //depot/perl@19861
* Hash/Util.t and Encode/t/Aliases.t seem to be havingJarkko Hietaniemi2003-06-271-0/+3
| | | | | | | | random failures. To make these easier to reproduce, add a variable, PERL_HASH_SEED_DEBUG, to display the hash seed. E.g. in Debian/x86 Linux 3.0 PERL_HASH_SEED of 82972356 makes the first one to fail. p4raw-id: //depot/perl@19859
* Bite the bullet and apply the hash randomisation patch.Jarkko Hietaniemi2003-06-261-0/+27
| | | | | [perl #22371] Algorimic Complexity Attack on Perl 5.6.1, 5.8.0 p4raw-id: //depot/perl@19854
* More Perl malloc debugging magic from Ilya. Seems to work inJarkko Hietaniemi2003-06-201-2/+33
| | | | | | | | | | Linux, Solaris, AIX. Had to do #ifdef OS2 for the <io.h> in malloc.c, found in AIX since there is no such header. In Tru64 miniperl fails an assert: "free()ed/realloc()ed-away memory was overwritten?" (In IRIX compiles but that doesn't prove much since in IRIX Perl's malloc is simply not used.) p4raw-id: //depot/perl@19831
* Retract #19785 and #19756: JPL nowadays works without thisJarkko Hietaniemi2003-06-201-32/+0
| | | | | (verified by a true JPL user). p4raw-id: //depot/perl@19830
* Most often unused variables.Jarkko Hietaniemi2003-06-151-0/+2
| | | p4raw-id: //depot/perl@19785
* The changes #8803 and #8896 that fixed JPL for use withJarkko Hietaniemi2003-06-131-0/+30
| | | | | | JDK 1.2/1.3 had somehow disappeared. p4raw-link: @8803 on //depot/perl: 103a71894980ab015937511f33d840c7f030e8a4 p4raw-id: //depot/perl@19756
* Integrate from maint:Marcus Holland-Moritz2003-06-111-1/+1
| | | | | | | | | | | | | | | [ 19738] Subject: Re: [PATCH: maint @ 19733] CL compiler warnings on MSWin32 From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <011701c32f8c$62d85ee0$0c2f1fac@R2D2> p4raw-link: @19738 on //depot/perl: 5a1dd2ab5c9ca51eda95e7e0025702bdfcd91d9fon //depot/maint-5.8/perl: c43a4d73e4c3d92928dd743544b60e43ce02ee9c p4raw-id: //depot/perl@19739 p4raw-integrated: from //depot/maint-5.8/perl@19738 'copy in' ext/Encode/encengine.c (@18665..) ext/List/Util/Util.xs (@18791..) ext/Storable/Storable.xs (@19551..) ext/POSIX/POSIX.xs (@19704..) ext/threads/threads.xs (@19722..) 'merge in' ext/Thread/Thread.xs (@18145..) pp.h (@19400..) sv.c (@19653..) perl.c (@19704..) op.c (@19732..)
* RE: maint @ 19683Robin Barker2003-06-051-1/+1
| | | | | | | Message-ID: <533D273D4014D411AB1D00062938C4D904046564@hotel.npl.co.uk> (skipped the MIME::Base64 part, leaving that to Gisle) p4raw-id: //depot/perl@19694
* allow recursive FETCHesDave Mitchell2003-04-191-1/+1
| | | | | Message-ID: <20030407100041.A1617@fdgroup.com> p4raw-id: //depot/perl@19268
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+2
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* Noted by Nat: -0 didn't work that well with Unicode.Jarkko Hietaniemi2003-04-101-13/+36
| | | p4raw-id: //depot/perl@19185
* Add packname->stash cache before the check if a packname is aArtur Bergman2003-04-021-0/+5
| | | | | | | | | filehandle or a package, it works because only packnames that have been resolved to stashes are added to the cache, and when a newIO is created we clean the cache. Results in roughly 1.8 speed increase for class->method() calls. p4raw-id: //depot/perl@19133
* fix for switchC.t test#6 failure on windowsGurusamy Sarathy2003-03-141-4/+0
| | | p4raw-id: //depot/perl@18968
* Cygwin doesn't like initing the $0 mutex in perl_construct()Jarkko Hietaniemi2003-03-121-3/+1
| | | | | | | | (Too early? If inited there the pthread_mutex_init() returns an integer much too large be an errno), but initing the mutex later, in perl_alloc(), seems to be okay with Cygwin, and also with Linux. p4raw-id: //depot/perl@18950
* WinCE tweaks from Vadim Konovalov.Jarkko Hietaniemi2003-03-111-2/+2
| | | p4raw-id: //depot/perl@18935
* clear PL_exitlist in perl_destructCraig A. Berry2003-03-111-0/+3
| | | | | | From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <3E6D837F.7000506@mac.com> p4raw-id: //depot/perl@18910
* Bunch of doc patches from Stas; plus regen.Stas Bekman2003-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [doc patch] perl.c's pod api entry Date: Mon, 10 Mar 2003 12:35:52 +1100 Message-ID: <3E6BEBF8.80402@stason.org> Subject: Re: [patch] perlguts.pod From: Stas Bekman <stas@stason.org> Date: Mon, 10 Mar 2003 12:38:57 +1100 Message-ID: <3E6BECB1.7050009@stason.org> Subject: Re: [PATCH ext/DynaLoader/DynaLoader_pm.PL] doc fix: s/dl_loadflags/dl_load_flags/ From: Stas Bekman <stas@stason.org> Date: Mon, 10 Mar 2003 12:41:46 +1100 Message-ID: <3E6BED5A.801@stason.org> Subject: Re: [patch] perlapi.pod fix From: Stas Bekman <stas@stason.org> Date: Mon, 10 Mar 2003 12:43:33 +1100 Message-ID: <3E6BEDC5.6010405@stason.org> Subject: Re: [docs patch] replace gets() with fgets() in example From: Stas Bekman <stas@stason.org> Date: Mon, 10 Mar 2003 12:45:41 +1100 Message-ID: <3E6BEE45.9030901@stason.org> Subject: [doc patch] perlrun.pod From: Stas Bekman <stas@stason.org> Date: Mon, 10 Mar 2003 14:49:59 +1100 Message-ID: <3E6C0B67.4050606@stason.org> p4raw-id: //depot/perl@18873
* Make the -A switch work without an assertion name.Rafael Garcia-Suarez2003-03-061-4/+4
| | | | | by Salvador FandiƱo. p4raw-id: //depot/perl@18843
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-2/+2
| | | p4raw-id: //depot/perl@18801
* The -CI cannot be easily tested under UTF-8 locale withJarkko Hietaniemi2003-03-021-6/+7
| | | | | | the t/test.pl (the 'stdin' data gets doubly UTF-8-ied). Also other small tweaks in the -C neighbourhood. p4raw-id: //depot/perl@18799
* PERL_SIGNALS=unsafe enables the old unsafe/immediate signals.Jarkko Hietaniemi2003-02-241-0/+9
| | | p4raw-id: //depot/perl@18766
* Make also the -CAL conditional on locale.Jarkko Hietaniemi2003-02-171-2/+4
| | | p4raw-id: //depot/perl@18730