summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Tied STDERR should catch messages from warn() and die()Audrey Tang2002-02-171-0/+16
| | | | | Message-ID: <20020217194647.A1410@not.autrijus.org> p4raw-id: //depot/perl@14727
* CopFILE / MacPerl_MPWFileNameChris Nandor2002-02-081-1/+1
| | | | | Message-ID: <pudge-10FC3D.16314108022002@onion.valueclick.com> p4raw-id: //depot/perl@14608
* Integrate mainlineNick Ing-Simmons2002-01-251-1/+1
| | | | | All but ../lib/Unicode/UCD.t pass. p4raw-id: //depot/perlio@14412
* Integrate mainlineNick Ing-Simmons2002-01-201-1/+7
| | | p4raw-id: //depot/perlio@14362
* Nearly-working threads re-structuring. Do not integrate,Nick Ing-Simmons2002-01-191-0/+49
| | | | | submit-ing to get to Win32, and as "off site" backup. p4raw-id: //depot/perlio@14352
* Split out core of sv_magic() into sv_magicext().Nick Ing-Simmons2002-01-181-3/+10
| | | | | | | | | | | | | | | | sv_magic provides the extra restictions (no READONLY, only one of each type, canned set of vtables), and sv_magicext() does the actual data twiddling. Also enhances semantics of ->mg_ptr setting via name/namlen to allow either an uncopied ptr (namlen == 0), or a Newz()ed scratch area (namlen > 0 && name == NULL). sv_magicext also returns the MAGIC * it added. sv_magicext is intended mainly for PERL_MAGIC_ext (~) magic. To come sv_unmagicext() - which will remove just one magic of particular type, and additionaly match against ->mg_ptr, or the MAGIC * (need to experiment as to which is more natural). p4raw-id: //depot/perlio@14335
* const-ness fix in savepv's passing of NULLNick Ing-Simmons2002-01-151-3/+3
| | | p4raw-id: //depot/perlio@14268
* Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-4/+26
| | | | | | | | | | | | 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
* If we do have socketpair(), make my_socketpair()Jarkko Hietaniemi2002-01-041-0/+9
| | | | | | | just call the real socketpair(). This way we always have real code behind my_socketpair() and a symbol corresponding to the my_socketpair in global.sym. p4raw-id: //depot/perl@14068
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-0/+11
| | | p4raw-id: //depot/perl@14041
* Win32 stuff:Nick Ing-Simmons2001-12-301-22/+26
| | | | | | | | 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
* VOS tweaks from Paul Green.Jarkko Hietaniemi2001-12-291-0/+6
| | | | | | | The Configure tweaks: the _exe needs to be set after the init; VOS has fd 3 hardwired to /dev/tty; the grep/ln/make substitutions really need to stick. p4raw-id: //depot/perl@13932
* Pod whitespace cleanup, round 0. coral@eekeek.org2001-12-291-2/+2
| | | | | Message-Id: <200112290058.fBT0wMD26750@eekeek.org> p4raw-id: //depot/perl@13930
* socketpair tweaks from Nicholas Clark.Jarkko Hietaniemi2001-12-291-3/+5
| | | p4raw-id: //depot/perl@13921
* Re: [ PATCH ] Cygwin groups.t (PLEASE CHECK)Nicholas Clark2001-12-261-3/+3
| | | | | | | Message-ID: <20011226190732.J48842@plum.flirble.org> socketpair() (un)signedness nit. p4raw-id: //depot/perl@13893
* No AF_UNIX in BeOS.Jarkko Hietaniemi2001-12-261-1/+5
| | | p4raw-id: //depot/perl@13887
* Re: Not OK 13881John Peacock2001-12-251-0/+19
| | | | | Message-ID: <3C285CB4.8040006@rowman.com> p4raw-id: //depot/perl@13883
* socketpair emulationNicholas Clark2001-12-231-0/+221
| | | | | Message-ID: <20011222183817.A12020@Bagpuss.unfortu.net> p4raw-id: //depot/perl@13858
* OS/2 buildIlya Zakharevich2001-12-191-0/+3
| | | | | | | Message-ID: <20011219024541.A29803@math.ohio-state.edu> (skipped the t/TEST change) p4raw-id: //depot/perl@13805
* alarm.t with -Uuseperlio fixNick Ing-Simmons2001-12-191-2/+2
| | | | | | - SA_RESTART should only be function of PERL_OLD_SIGNALS not USE_PERLIO p4raw-id: //depot/perlio@13796
* Fix for alarm() breaking into wait*().Nick Ing-Simmons2001-12-171-6/+9
| | | | | | Call PERL_ASYNC_CHECK() on EINTR in Perl_wait4pid(), to dispatch signal handler before caller re-does the system call. p4raw-id: //depot/perlio@13724
* Various small nits found by DJGPP build.Jarkko Hietaniemi2001-12-021-1/+1
| | | p4raw-id: //depot/perl@13427
* 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