summaryrefslogtreecommitdiff
path: root/pp_sys.c
Commit message (Collapse)AuthorAgeFilesLines
* Make perl fork()-safe (in a slightly limited way) even onGurusamy Sarathy2001-07-201-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | platforms that don't have pthread_atfork() (extension of the fix in change#11151). Note that this will not help extensions that call fork() directly in C, or that link to libraries that call fork() directly. Such cases must be fixed to either call PerlProc_fork(), or call atfork_lock() in parent before the calling the function that forks and call atfork_unlock() in both parent and child immediately after the fork(). (There are no worries if C code calls exec() in the child immediately after a fork(). Only cases where the child calls perl's API functions (including New()) after the fork() are problematic.) This change also eliminates the use of vfork() from perl, since all such uses were violating the severe restrictions on modifying the state of the process between the vfork() and the exec(). This is a modified version of patches suggested by Abhijit Menon-Sen and Richard Soderberg. p4raw-link: @11151 on //depot/perl: 50dd6e574ff39b609595ddb16b2fe9f625a26f8c p4raw-id: //depot/perl@11423
* fix PTHREAD_ATFORK croaking too early, too oftenCoral2001-07-171-0/+4
| | | | | Message-Id: <200107162125.f6GLPJ345261@moonlight.crystalflame.net> p4raw-id: //depot/perl@11392
* Re: ActivePerl 628 + warnings + fork + exec = spurious "Can't exec"?Barrie Slaymaker2001-07-121-5/+0
| | | | | Message-ID: <20010711151146.G24560@jester.slaysys.com> p4raw-id: //depot/perl@11282
* Small fix to pp_gmtimeArtur Bergman2001-07-111-3/+5
| | | | | Message-ID: <B7710E0B.21C5%artur@contiller.se> p4raw-id: //depot/perl@11264
* Re: [PATH] shared -> unique;Abhijit Menon-Sen2001-07-021-3/+3
| | | | | Message-ID: <20010627035127.A17623@lustre.lustre.dyn.wiw.org> p4raw-id: //depot/perl@11089
* gcc -Wall lint after #11051.Jarkko Hietaniemi2001-06-301-1/+0
| | | p4raw-id: //depot/perl@11054
* Code cleanup based on turning off the -woffs in IRIX.Jarkko Hietaniemi2001-06-301-5/+0
| | | | | | | | Not all of the gripes cleaned up (hairy code in hv.c and regcomp.c; unused newsp, gimme, and optype from cop.h macros; unused 'key' arguments in ?DBM_File.xs) (and the -woffs left to the IRIX hints) p4raw-id: //depot/perl@11051
* Microperl findings.Jarkko Hietaniemi2001-06-251-62/+62
| | | p4raw-id: //depot/perl@10941
* Re: [PATCH 5.6.1] misprintsIlya Zakharevich2001-06-251-1/+1
| | | | | Message-ID: <20010625045049.A23965@math.ohio-state.edu> p4raw-id: //depot/perl@10916
* RETURN requires dSP in pp_sys.cCraig A. Berry2001-06-251-1/+2
| | | | | Message-Id: <a0510100db75c6d44e34c@[172.16.52.1]> p4raw-id: //depot/perl@10912
* Undo the filetests part of #10900, under multiplicityJarkko Hietaniemi2001-06-241-20/+20
| | | | | weird errors take place. p4raw-id: //depot/perl@10901
* Misplaces dSPs and the like revealed by MPE/iX and Cygwin.Jarkko Hietaniemi2001-06-241-70/+66
| | | p4raw-id: //depot/perl@10900
* Patch: pp_system() bounces out of Cygwin subsystemBrian Jepson2001-06-241-1/+1
| | | | | Message-ID: <Pine.GSO.4.21.0106241044110.15051-200000@sol.east.ora.com> p4raw-id: //depot/perl@10898
* The #10881 was too vigorous in pp_system() in moving 'unused'Jarkko Hietaniemi2001-06-241-2/+2
| | | | | variables. p4raw-id: //depot/perl@10890
* Remove tautology in error messagesMike Guy2001-06-241-7/+7
| | | | | Message-Id: <E15E92a-0006em-00@draco.cus.cam.ac.uk> p4raw-id: //depot/perl@10885
* Re: [PATCH 5.6.1] pp_sys.c warningsIlya Zakharevich2001-06-241-14/+23
| | | | | | | Message-ID: <20010624053450.A27856@math.ohio-state.edu> Pacify compiler warnings. p4raw-id: //depot/perl@10881
* MPE/iX prototype nits from Mark Bixby.Jarkko Hietaniemi2001-06-221-2/+2
| | | p4raw-id: //depot/perl@10830
* Security tweak on readlink().Jarkko Hietaniemi2001-06-201-1/+1
| | | p4raw-id: //depot/perl@10753
* NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.Jarkko Hietaniemi2001-06-161-0/+4
| | | p4raw-id: //depot/perl@10643
* gcc -Wall nits picked out by a non-UNIX systemJarkko Hietaniemi2001-06-121-58/+56
| | | | | (courtesy of Mark Bixby) p4raw-id: //depot/perl@10524
* Integrate change #10412 from maintperl; locale is nowJarkko Hietaniemi2001-06-031-1/+1
| | | | | | | | | | | | | | | per-cop, not per-op; plus retweak the locale.t to always list the skipped utf8 locales. p4raw-link: @10412 on //depot/maint-5.6/perl: 71d0b827413df9e881d1c54d2d968823ed50c75b p4raw-id: //depot/perl@10413 p4raw-edited: from //depot/maint-5.6/perl@10411 'edit in' t/pragma/locale.t (@8600..) p4raw-integrated: from //depot/maint-5.6/perl@10411 'merge in' lib/locale.pm (@5902..) opcode.h pp.sym pp_proto.h (@8620..) opcode.pl (@8998..) op.h perl.h (@9288..) pp_sys.c (@9524..) util.c (@9538..) embed.h (@9584..) op.c (@9950..) pp.c (@10091..) pp_ctl.c (@10100..)
* Salvage bits and pieces from the experimental 'utf8 everywhere'Jarkko Hietaniemi2001-05-311-2/+2
| | | | | | patch: rename HINT_BYTE and IN_BYTE to HINT_BYTES and IN_BYTES to match the pragma name; various robustness cleanups. p4raw-id: //depot/perl@10339
* Medley of -Wall cleanups from Michael Schwen, Hugo van der Sanden,Jarkko Hietaniemi2001-05-301-2/+2
| | | | | and Abhijit Menon-Sen. p4raw-id: //depot/perl@10321
* IV/UV casting fixes from Nicholas Clark.Jarkko Hietaniemi2001-05-241-2/+2
| | | p4raw-id: //depot/perl@10198
* [LARGE!] symbolic magicDave Mitchell2001-05-201-18/+22
| | | | | Message-Id: <200105191912.UAA23925@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@10168
* If wait() or waitpid() ends due to EINTR despatch perl interrupt handlerNick Ing-Simmons2001-05-091-0/+12
| | | | | and re-try. Fixes "perl 5.7.x prefers suicide over killing more than one child." p4raw-id: //depot/perlio@10048
* Multiplicity and thread fixes for VMSDan Sugalski2001-05-021-1/+3
| | | | | Message-Id: <5.0.2.1.0.20010502112909.01f24e28@24.8.96.48> p4raw-id: //depot/perl@9960
* Based onOlaf Flebbe2001-04-021-0/+4
| | | | | | Subject: [foolperl] EPOC fix Message-ID: <Pine.LNX.4.02.10104022335380.5547-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@9519
* Re: [ID 20010215.006] Bad arg length for Socket::unpack_sockaddr_un, length ↵Radu Greab2001-03-301-24/+0
| | | | | | | | | is 14 ... Message-ID: <15044.30562.566390.559726@ix.netsoft.ro> Replace #9352. p4raw-id: //depot/perl@9470
* Too much cut-and-paste in #9363.Jarkko Hietaniemi2001-03-261-2/+4
| | | p4raw-id: //depot/perl@9367
* socket() leaks file descriptorsBenjamin Sugars2001-03-261-0/+6
| | | | | | | Message-ID: <Pine.LNX.4.21.0103261315510.2729-100000@marmot.rim.canoe.ca> Also sockpair() fixed similarly. p4raw-id: //depot/perl@9363
* Re: [ID 20010215.006] Bad arg length for Socket::unpack_sockaddr_un, length ↵Radu Greab2001-03-251-0/+24
| | | | | | | is 14 ... Message-ID: <15035.41139.646781.478457@ix.netsoft.ro> p4raw-id: //depot/perl@9352
* If stdin, stdout or stderr get opened in unexpected read/write stateNick Ing-Simmons2001-03-221-2/+1
| | | | | then warn at time of open not at time of use. p4raw-id: //depot/perlio@9295
* downgrading to bytes for common functionsAndrew Pimlott2001-03-071-7/+7
| | | | | Message-ID: <20010307023655.J24024@pimlott.ne.mediaone.net> p4raw-id: //depot/perl@9071
* Some tests for Camel 3rd edition features.Nick Ing-Simmons2001-03-051-2/+2
| | | | | Make gethostbyaddr() test in above work. p4raw-id: //depot/perlio@9042
* [perl-5.6.x, perl-current] accept for EPOCOlaf Flebbe2001-03-031-1/+2
| | | | | Message-ID: <Pine.LNX.4.02.10103031635190.4825-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@9002
* Re: sync sync sync: have I missed any patches?Tim Jenness2001-02-281-125/+125
| | | | | | | | 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-current] EPOC Olaf Flebbe2001-02-271-0/+4
| | | | | Message-ID: <Pine.LNX.4.02.10102262333490.3781-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@8956
* [patch] -WallDoug MacEachern2001-02-171-5/+3
| | | | | Message-ID: <Pine.LNX.4.21.0102161519500.30352-100000@mako.covalent.net> p4raw-id: //depot/perl@8815
* [patch] GvSHAREDDoug MacEachern2001-02-101-0/+5
| | | | | Message-ID: <Pine.LNX.4.21.0102101047320.15298-100000@mako.covalent.net> p4raw-id: //depot/perl@8760
* Tweak the mkdir trailing slash code some more.Jarkko Hietaniemi2001-01-211-4/+12
| | | | | | | TO DO: the same handling should probably be done for all the other filesystem functions that can have directories as their arguments. p4raw-id: //depot/perl@8509
* Infrastructure to allow:Nick Ing-Simmons2001-01-201-19/+20
| | | | | | | | | | open($fh,"|-",@array); to be implemented i.e. mark pp_open as needing a stack mark, and make pp_open process its args in that style (and pass them _all_ to tied handles OPEN). Invent do_openn() which takes SV ** at allow it to see multiple args. Note this does not _do_ anything yet. p4raw-id: //depot/perlio@8484
* Allow for one trailing slash in the directory of mkdir().Jarkko Hietaniemi2001-01-171-2/+12
| | | p4raw-id: //depot/perl@8461
* UTF-8 cleanup.Jarkko Hietaniemi2001-01-051-2/+2
| | | p4raw-id: //depot/perl@8328
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* Fix for 20001210.003, "write(FH) on closed FH causes segv".Jarkko Hietaniemi2000-12-211-0/+3
| | | p4raw-id: //depot/perl@8214
* Add test for #8145 (binmode() warning), add warning forJarkko Hietaniemi2000-12-171-18/+35
| | | | | | | ioctl() and sockpair(), document them. (fileno() cannot be tripwired with the same kind of warning because 'defined fileno($foo)' seems to be an idiom.) p4raw-id: //depot/perl@8147
* Re: The long awaited feature ...Simon Cozens2000-12-171-2/+4
| | | | | | | | Message-ID: <20001217123156.A3891@deep-dark-truthful-mirror.perlhacker.org> Add a warning to binmode() about using bad filehandles (can happen e.g. if someone forgets the filehandle argument) p4raw-id: //depot/perl@8145
* Re: [ID 20001202.002] [BUG all] 'die qr{pattern}' does not check terminationSimon Cozens2000-12-101-1/+1
| | | | | Message-ID: <20001210005537.B16221@deep-dark-truthful-mirror.perlhacker.org> p4raw-id: //depot/perl@8066
* Pacify fussy compiler.Jarkko Hietaniemi2000-12-101-1/+1
| | | p4raw-id: //depot/perl@8061