summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* change#3373 introduced a handle leak in backticks and piped open()sGurusamy Sarathy2001-11-251-0/+2
| | | | | | | that fail p4raw-link: @3373 on //depot/perl: e446cec8f170ecc3eabea80092ef64589855e167 p4raw-id: //depot/perl@13260
* $$ readonly, take twoMichael G. Schwern2001-11-251-1/+4
| | | | | Message-ID: <20011124195618.A14614@blackrider> p4raw-id: //depot/perl@13252
* v-strings as Objects Step 1John Peacock2001-11-151-0/+73
| | | | | Message-ID: <3BF3FE30.70D7EDCA@rowman.com> p4raw-id: //depot/perl@13028
* a few typo fixes Jeffrey Friedl2001-11-121-1/+1
| | | | | | | | | | | Message-Id: <200111120515.fAC5FIc74795@ventrue.corp.yahoo.com> Patching README.foo instead of pod/perlfoo.pod, not patching Math::BigInt (Tels will take care of that), dropping broken hv.c and sv.h patches, patching libnetcfg.PL and perldoc.PL instead of libnetcfg and perldoc, patching ext/Digest/MD5/t/files.t since MD5.pm was changed. p4raw-id: //depot/perl@12954
* [patch] my_setenv speedup + fixesDoug MacEachern2001-11-101-11/+32
| | | | | Message-Id: <Pine.LNX.4.21.0111091808500.22397-100000@localhost> p4raw-id: //depot/perl@12926
* Integrate change #12752 from maintperl;Jarkko Hietaniemi2001-10-291-0/+3
| | | | | | | | | | | croak(Nullch) wasn't printing the contents of ERRSV if there was no outer eval (bug in change#6125) p4raw-link: @12752 on //depot/maint-5.6/perl: f106aadabce363af9302c25bec7308d85ddd04a2 p4raw-link: @6125 on //depot/perl: 9983fa3c886b6f0a857997142e62341929a9b601 p4raw-id: //depot/perl@12754 p4raw-integrated: from //depot/maint-5.6/perl@12753 'merge in' util.c (@12668..)
* Integrate maintperl changes #12268 and #12669;Jarkko Hietaniemi2001-10-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | final touches to the audit for statics and thread-unsafe code * make DB_File, ODBM_File thread-safe * remove unnecessary/dangerous statics and protect others from not getting accidentally enabled under threaded perls windows support functions get_childdir() et al aren't exported correctly under vanilla build Testing under win32 appreciated since changes there had to be manually merged and I cannot test how badly did I do. p4raw-link: @12268 on //depot/perlio: bb407f0b8769c638c05e60ebfd157a1e676a6c22 p4raw-id: //depot/perl@12678 p4raw-integrated: from //depot/maint-5.6/perl@12677 'copy in' win32/vmem.h (@5902..) 'merge in' ext/DB_File/DB_File.xs (@8693..) win32/win32iop.h (@8917..) ext/ODBM_File/ODBM_File.xs (@8995..) iperlsys.h (@9154..) scope.c (@9584..) makedef.pl (@11425..) gv.c (@12026..) op.c (@12145..) util.c (@12220..) toke.c (@12550..) ext/B/B.xs ext/File/Glob/Glob.xs ext/Opcode/Opcode.xs ext/re/re.xs (@12653..) mg.c win32/win32.c (@12668..)
* Integrate macperl changes from Chris Nandor:Jarkko Hietaniemi2001-09-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12192 11817 11815 11813 11778 11775 Update CPAN.pm to work with new Mac::BuildTools instead of ExtUtils::MM_MacOS "orphan" functions Fix test Make syntax check report in MPW style, fix tests to use Mac::err=unix to get normal-style error messages. More module and test ports from Thomas Wegner et al Fix open of /dev/null for Mac OS Allow for platforms to override formatting of errors on output from Matthias Neeracher (core files) p4raw-id: //depot/perl@12235 p4raw-edited: from //depot/maint-5.6/macperl@12234 'edit in' lib/File/DosGlob.pm t/op/magic.t (@11007..) p4raw-integrated: from //depot/maint-5.6/macperl@12234 'copy in' lib/File/Spec/Mac.pm lib/File/Temp.pm (@11007..) 'merge in' ext/File/Glob/Glob.pm lib/CPAN.pm (@11007..) ext/File/Glob/bsd_glob.c t/base/term.t (@11185..) t/op/runlevel.t (@11198..) t/pod/testp2pt.pl (@11500..) p4raw-integrated: from //depot/maint-5.6/macperl@11815 'merge in' perl.c (@11806..) p4raw-integrated: from //depot/maint-5.6/macperl@11775 'merge in' perl.h pp_ctl.c util.c (@11007..)
* Re: [ID 20010815.012] Unfortunate interaction between -0 cmd line arg & ↵Hugo van der Sanden2001-09-151-2/+1
| | | | | | | (??{CODE}) regex Message-Id: <200109091741.f89HfsM18534@crypt.compulink.co.uk> p4raw-id: //depot/perl@12027
* Fix Cwd::getcwd() not being tainted, as noticedJarkko Hietaniemi2001-09-041-0/+4
| | | | | by Schwern. p4raw-id: //depot/perl@11873
* Changes USE_THREADS to USE_5005THREADS in the entire source.Artur Bergman2001-08-271-11/+11
| | | | | | Thanks to H. Merijn Brand for the patch. Some of the comments and or guards might be removable in perl.h now. p4raw-id: //depot/perl@11758
* Pluggable optimizerSimon Cozens2001-08-011-0/+2
| | | | | Message-ID: <20010801135702.I10442@netthink.co.uk> p4raw-id: //depot/perl@11541
* util.c: return required in Perl_my_forkCraig A. Berry2001-07-231-0/+1
| | | | | Message-Id: <5.1.0.14.0.20010723152732.02ad4470@exchi01> p4raw-id: //depot/perl@11455
* Make perl fork()-safe (in a slightly limited way) even onGurusamy Sarathy2001-07-201-15/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* More accurate line numbers in messagesPaul Johnson2001-07-121-2/+45
| | | | | | | Message-ID: <20010712041411.A3467@pjcj.net> (With prototyping and multiplicity tweaks.) p4raw-id: //depot/perl@11305
* fix the binary compatibility issue when building with/withoutGurusamy Sarathy2001-07-051-0/+31
| | | | | | | | | | usemymalloc by exporting Perl_malloc() et al as simple wrappers around the system functions (this allows most extensions built using one mode to coexist with perls built in the other mode) XXX the Perl_mfree() wrapper might need to do return(free()) on platforms where Free_t isn't "void" p4raw-id: //depot/perl@11152
* Re: POINTERRIGORAndy Dougherty2001-07-031-28/+0
| | | | | Message-ID: <Pine.SOL.4.10.10107031040030.1982-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@11123
* rename s/sv_getcwd/getcwd_sv/ for better conformance to existingGurusamy Sarathy2001-07-021-2/+2
| | | | | | | | | | naming discipline win32 fix: enable getcwd_sv() to work on windows (POSIX.t was failing because of this) fix a warning about "fd" being used without being set in Cwd.xs p4raw-id: //depot/perl@11067
* Fixes compile errors in four filesRichard Soderberg2001-06-291-2/+2
| | | | | Message-ID: <Pine.LNX.4.21.0106290333270.9768-100000@oregonnet.com> p4raw-id: //depot/perl@11021
* DJGPP patches from Laszlo Molnar.Jarkko Hietaniemi2001-06-261-3/+28
| | | p4raw-id: //depot/perl@10951
* Patcho fix.Nick Ing-Simmons2001-06-221-1/+1
| | | p4raw-id: //depot/perlio@10833
* Re: Automated smoke report for patch 10764 (truncated)Doug MacEachern2001-06-221-28/+21
| | | | | | | | Message-ID: <Pine.LNX.4.21.0106211925020.17261-100000@mako.covalent.net> plus reword the getcwd() comment, plus use getcwd() buffer size minus one. p4raw-id: //depot/perl@10810
* Off-by-one. I'm so classic.Jarkko Hietaniemi2001-06-211-1/+1
| | | p4raw-id: //depot/perl@10801
* Replace our implementation of realpath() with OpenBSD'sJarkko Hietaniemi2001-06-201-147/+0
| | | | | (src/lib/libc/stdlib/realpath.c 1.4). p4raw-id: //depot/perl@10750
* No point in going into memory-saving contortionsJarkko Hietaniemi2001-06-201-17/+29
| | | | | | | with getcwd() since there's a danger of buffer overflow. Also make the POSIX extension to use sv_getcwd(). Finally, a missed proto.h fragment. p4raw-id: //depot/perl@10748
* After some reading I don't think we can blindlyJarkko Hietaniemi2001-06-201-48/+39
| | | | | | | | | use systems' realpath(). Too many security problems, too many buggy implementations. TODO: the realpath() emulation code in util.c doesn't seem fully operational? (readlink(), for example?) p4raw-id: //depot/perl@10744
* s/typos//Abhijit Menon-Sen2001-06-191-3/+3
| | | | | | | | Message-ID: <20010620021502.A14541@lustre.linux.in> Without the op.h s/bearword/bareword/ hunk, see http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1998-02/msg00370.html p4raw-id: //depot/perl@10736
* Re: [ID 20010618.006] some end-anchored regexps hang when using study Hugo van der Sanden2001-06-191-0/+6
| | | | | Message-Id: <200106191215.NAA17691@crypt.compulink.co.uk> p4raw-id: //depot/perl@10724
* -Wall strays.Jarkko Hietaniemi2001-06-161-1/+1
| | | p4raw-id: //depot/perl@10650
* NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.Jarkko Hietaniemi2001-06-161-6/+6
| | | p4raw-id: //depot/perl@10643
* splitting util.cHugo van der Sanden2001-06-131-1199/+0
| | | | | Message-Id: <200106132341.AAA24935@crypt.compulink.co.uk> p4raw-id: //depot/perl@10579
* Re: hacking util.c, attrs.xs, and re.xs to compile on VMSCraig A. Berry2001-06-131-3/+2
| | | | | Message-Id: <a05101000b74c8698483b@[172.16.52.1]> p4raw-id: //depot/perl@10555
* VMS DEC C compiler found nits by Peter Prymmer.Jarkko Hietaniemi2001-06-131-2/+3
| | | p4raw-id: //depot/perl@10553
* Small bcopy cleanupAndy Dougherty2001-06-131-1/+1
| | | | | Message-ID: <Pine.SOL.4.10.10106121706360.11034-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@10542
* MPE/iX tweaks from Mark Bixby.Jarkko Hietaniemi2001-06-121-0/+2
| | | p4raw-id: //depot/perl@10539
* gcc -Wall nits picked out by a non-UNIX systemJarkko Hietaniemi2001-06-121-4/+6
| | | | | (courtesy of Mark Bixby) p4raw-id: //depot/perl@10524
* Move the grok_number and its lieutenant grok_numeric_radixJarkko Hietaniemi2001-06-101-9/+202
| | | | | from sv.c statics to util.c and public. p4raw-id: //depot/perl@10505
* Do locale specific separator if only in locale.Jarkko Hietaniemi2001-06-101-1/+1
| | | p4raw-id: //depot/perl@10490
* Numeric conversion tweaks suggested by Hugo and Nicholas.Jarkko Hietaniemi2001-06-091-0/+2
| | | p4raw-id: //depot/perl@10485
* Re: [ID 20010529.006] String plus zero inconsistent across platforms Hugo van der Sanden2001-06-051-17/+12
| | | | | Message-Id: <200106051158.MAA04605@crypt.compulink.co.uk> p4raw-id: //depot/perl@10445
* Re: Not OK: perl@10439 on win32 Prymmer/Kahn2001-06-051-2/+2
| | | | | Message-ID: <Pine.BSF.4.21.0106042136410.26316-100000@shell8.ba.best.com> p4raw-id: //depot/perl@10443
* 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..)
* Unused variables.Jarkko Hietaniemi2001-06-031-2/+0
| | | p4raw-id: //depot/perl@10401
* Re: [ID 20010529.006] String plus zero inconsistent across platformsHugo van der Sanden2001-06-031-19/+116
| | | | | Message-Id: <200106031356.OAA12517@crypt.compulink.co.uk> p4raw-id: //depot/perl@10396
* -Wall cleanup continues.Jarkko Hietaniemi2001-06-021-11/+11
| | | p4raw-id: //depot/perl@10392
* Tweak util.c's atof2 for MULTIPLICITYNick Ing-Simmons2001-06-021-6/+386
| | | p4raw-id: //depot/perlio@10387
* Integrate mainline.Nick Ing-Simmons2001-05-311-7/+16
| | | p4raw-id: //depot/perlio@10359
* More -Wall silencing from Michael Schwern and Jarkko Hietaniemi.Jarkko Hietaniemi2001-05-301-10/+10
| | | p4raw-id: //depot/perl@10335
* IV/UV casting fixes from Nicholas Clark.Jarkko Hietaniemi2001-05-241-56/+50
| | | p4raw-id: //depot/perl@10198
* [LARGE!] symbolic magicDave Mitchell2001-05-201-5/+5
| | | | | Message-Id: <200105191912.UAA23925@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@10168