summaryrefslogtreecommitdiff
path: root/perlio.c
Commit message (Collapse)AuthorAgeFilesLines
* We need mutex protection in PerlIOStdio_close() for the duration ofNicholas Clark2008-03-121-1/+22
| | | | | | | | | | holding our true love file handle open, to stop anything else temporarily using it for a quick dup() fling, and then closing the file handle underneath us. I suspect that the lack of this protection was the cause of the threads free.t and blocks.t failures on OS X on 5.8.x, where usefaststdio is the default, and PerlIO is unable to "invalidate" the FILE *. p4raw-id: //depot/perl@33492
* Correct logic error in PerlIOStdio_close() - 0 is an acceptable valueNicholas Clark2008-03-121-2/+2
| | | | | from dup(), so it can't also be the "don't do anything later" value. p4raw-id: //depot/perl@33491
* Silence Borland compiler warnings (except for warnings from zlib) here:Steve Hay2008-02-251-1/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/2008/02/msg53937.html p4raw-id: //depot/perl@33370
* Unused var in perlio.c (revised)Jerry D. Hedden2008-02-131-0/+3
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510802120700q689fb457ya5939bb440626157@mail.gmail.com> p4raw-id: //depot/perl@33296
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-0/+6
| | | | | | | | | | | | ability to create landmines that will explode under someone in the future when they upgrade their compiler to one with better optimisation. We've already done this at least twice. (Yes, some of the assertions are after code that would already have SEGVd because it already deferences a pointer, but they are put in to make it easier to automate checking that each and every case is covered.) Add a tool, checkARGS_ASSERT.pl, to check that every case is covered. p4raw-id: //depot/perl@33291
* Remove an unneeded if statement.Steve Peters2008-02-081-3/+1
| | | p4raw-id: //depot/perl@33261
* Remove redundant checkRafael Garcia-Suarez2008-02-081-4/+2
| | | p4raw-id: //depot/perl@33248
* In XS_PerlIO_get_layers() take advantage of the implementation ofNicholas Clark2008-02-021-0/+5
| | | | | | PerlIO_get_layers(), by co-opting the new SVs it creates, rather than copying them. p4raw-id: //depot/perl@33182
* Disable debugging output in PerlIO_teardown;Dave Mitchell2007-11-071-0/+7
| | | | | it still relies on an interpreter being present. p4raw-id: //depot/perl@32235
* As reported in bug #46207, change 30633 to PerlIO_exportFILE() andNicholas Clark2007-11-051-1/+14
| | | | | | | | | | | | | PerlIO_releaseFILE() to manage the reference counts of fds correctly has the side effect of making some XS modules "leak" descriptors. This is because the typemap calls PerlIO_findFILE(), which sometimes (but not always) calls PerlIO_exportFILE(). To be consistent, PerlIO_fildFILE() needs to either always give you a reference, or always not give you a reference. It seems better to do the latter as the call to PerlIO_exportFILE() is only an implementation detail, so arrange for it to immediately free up the reference that PerlIO_exportFILE() created. p4raw-id: //depot/perl@32224
* Re: building mod_perl-2.0.3 with Perl 5.10.0 (DEVEL32096)Jarkko Hietaniemi2007-11-031-4/+11
| | | | | | | | Message-Id: <472BD128.9080105@iki.fi> PerlIO_teardown is called when there may no longer be an interpreter available p4raw-id: //depot/perl@32215
* Use vnewSVpvf() rather than sv_vcatpvf() onto a newly created emptyNicholas Clark2007-10-061-3/+3
| | | | | string. p4raw-id: //depot/perl@32044
* Directly create the SV with Perl_newSVpvf() rather than usingNicholas Clark2007-10-061-3/+2
| | | | | Perl_catSVpvf() to extend a zero-length SV. p4raw-id: //depot/perl@32042
* When dup'ing a filehandle, retain the :utf8 layerRafael Garcia-Suarez2007-03-301-0/+2
| | | p4raw-id: //depot/perl@30781
* PerlIO_exportFILE() and PerlIO_releaseFILE() should manage the fdNicholas Clark2007-03-191-0/+4
| | | | | reference counts correctly. p4raw-id: //depot/perl@30633
* PerlIO_importFILE() should increase the reference count on the fdNicholas Clark2007-03-171-0/+1
| | | | | | that it brings into PerlIO managed space. (A long standing problem reported by Steve Hay) p4raw-id: //depot/perl@30610
* Compilation warnings fixes by Jerry D. HeddenRafael Garcia-Suarez2007-03-031-0/+7
| | | p4raw-id: //depot/perl@30447
* perlio.c (PerlIO_tmpfile): fix memory leakAlexey Tourbin2007-02-241-1/+1
| | | | | Message-ID: <20070224114735.GA3454@localhost.localdomain> p4raw-id: //depot/perl@30389
* Split the storage of the layers specificied by open.pm into one hintNicholas Clark2007-02-171-20/+20
| | | | | | | for input, and one for output, as this better reflects how they are used. The original "concatenate with \0" plan was really only a compramise to avoid needing to increase every COP by 2 pointers. p4raw-id: //depot/perl@30334
* The last parameter to gv_stashpv/gv_stashpvn/gv_stashsv is a bitmaskNicholas Clark2007-01-251-1/+1
| | | | | of flags, not a boolean, so correct the documenation and callers. p4raw-id: //depot/perl@29977
* Re: Race condition in IPC::Open3 / Mac OS?Bo Lindbergh2007-01-201-3/+9
| | | | | Message-Id: <D256CF03-D814-4973-9DF6-60EA4F26FE10@hagernas.com> p4raw-id: //depot/perl@29894
* Add get_cvn_flags(), which is like get_cv() but takes a length. ThisNicholas Clark2007-01-151-1/+1
| | | | | allows symbolic code references with embeded NULs to work. p4raw-id: //depot/perl@29830
* Normalize copyright of perlio.c for years >= 2006Rafael Garcia-Suarez2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29700
* Update copyright for perlio.cRafael Garcia-Suarez2007-01-051-3/+6
| | | p4raw-id: //depot/perl@29694
* Re: [PATCH] perlio.c repairBo Lindbergh2007-01-051-23/+26
| | | | | Message-Id: <E22DC961-6821-4AC2-BA2F-9B5B06927758@hagernas.com> p4raw-id: //depot/perl@29691
* 4th patch from: Marcus Holland-Moritz2007-01-041-5/+7
| | | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Introduce an SVfARG() macro for %SVf (%-p here) arguments to perl's printf p4raw-id: //depot/perl@29687
* The first three patches from:Marcus Holland-Moritz2007-01-041-9/+9
| | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Adds (void*) casts to %-p and %p printf arguments p4raw-id: //depot/perl@29686
* Symbian port: add Series 90 supportJarkko Hietaniemi2007-01-011-3/+1
| | | | | Message-ID: <4599114F.8020307@iki.fi> p4raw-id: //depot/perl@29650
* Re: When should PERL_SYS_TERM() be called? [was: Re: [PATCH] Re: [PATCH] Re: ↵Jarkko Hietaniemi2006-12-061-10/+6
| | | | | | | | | | | | | | | | | [PATCH] abstract mempool header testing] Message-ID: <4575DFD1.1060108@iki.fi> Fixes a problem spotted by Jan Dubois: The PerlMemShared pool is only shared between the interpreters that can share data structures (interpreters created by perl_clone(), which mean pseudo-fork, and threads.xs). The pool is not shared between interpreters that are created separately by perl_alloc(). [...] I guess this means PL_perlio_fd_refcnt needs to be allocated and freed by standard malloc() and not go through any abstraction. p4raw-id: //depot/perl@29477
* Re: When should PERL_SYS_TERM() be called? [was: Re: [PATCH] Re: [PATCH] Re: ↵Jarkko Hietaniemi2006-12-051-7/+7
| | | | | | | | | | | [PATCH] abstract mempool header testing] Message-ID: <4574ED1F.40508@iki.fi> Re-instates #29424 (previously reverted by #29451), now fixed to work with PERL_IMPLICIT_SYS, thanks to Jan Dubois. Also adds PERLIO_TERM to the Symbian port. p4raw-id: //depot/perl@29465
* Re: [PATCH] Re: [PATCH] Re: [PATCH] abstract mempool header testingYves Orton2006-12-031-12/+5
| | | | | Message-ID: <9b18b3110612020548l7c5aefd4m19cb0b5c4395abb4@mail.gmail.com> p4raw-id: //depot/perl@29442
* Tweaks needed to get Perl compiling with g++ on OpenBSD.Steve Peters2006-11-181-1/+1
| | | p4raw-id: //depot/perl@29313
* Initial cleanups to support compiling Win32 with MinGW g++.Steve Peters2006-10-301-1/+1
| | | p4raw-id: //depot/perl@29155
* Change the non-mkstemp, non-win32 code path of PerlIO_tmpfileCraig A. Berry2006-10-301-10/+3
| | | | | | to use PerlIO_fdopen so that when the tmpfile is closed we do not decrement a ref count that doesn't exist or is zero. p4raw-id: //depot/perl@29143
* No warning was produced if perl failed to load PerlIO::scalarRafael Garcia-Suarez2006-10-241-2/+8
| | | | | (contrary to other PerlIO layers.) p4raw-id: //depot/perl@29097
* Enable perlio mutexes under threads (by Jarkko)Rafael Garcia-Suarez2006-10-201-20/+28
| | | p4raw-id: //depot/perl@29065
* More leak fixes, by JarkkoRafael Garcia-Suarez2006-10-201-27/+27
| | | p4raw-id: //depot/perl@29060
* Memory leak fix, by JarkkoRafael Garcia-Suarez2006-10-191-0/+21
| | | p4raw-id: //depot/perl@29050
* Remove free() part of change #29045, which causesRafael Garcia-Suarez2006-10-191-9/+0
| | | | | | panics from miniperl in FreeBSD/multithreaded p4raw-link: @29045 on //depot/perl: e47547a83f24974bde05453531e68d7dd8c5ec87 p4raw-id: //depot/perl@29046
* blead valgrind findingJarkko Hietaniemi2006-10-191-0/+23
| | | | | Message-ID: <4536C1DA.4060600@iki.fi> p4raw-id: //depot/perl@29045
* In PerlIO_debug(), if tainting or set*id, set PL_perlio_debug_fd to -1Nicholas Clark2006-10-011-5/+12
| | | | | first time through to reduce the checks on subsequent calls. p4raw-id: //depot/perl@28911
* RE: Combining UTF-16 output with :crlf is awkwardJan Dubois2006-09-211-1/+18
| | | | | | From: "Jan Dubois" <jand@ActiveState.com> Message-ID: <0bbe01c659e3$d0c334a0$2217a8c0@candy> p4raw-id: //depot/perl@28879
* C++: Solaris CC now compiles "perl"Jarkko Hietaniemi2006-09-111-1/+8
| | | | | Message-ID: <4502B398.6060505@iki.fi> p4raw-id: //depot/perl@28814
* ; was RE: [PATCH perlio.c pp.c regcomp.c] silence format and comparison warningsRobin Barker2006-09-051-0/+1
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226120A21@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@28786
* Re: A large-ish C++ TODO (Re: [PATCH] g++ stage 1 reached)Jarkko Hietaniemi2006-08-171-0/+3
| | | | | Message-ID: <44E49649.9090307@iki.fi> p4raw-id: //depot/perl@28734
* g++ large patchJarkko Hietaniemi2006-08-071-2/+2
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* more g++ in Tru64Jarkko Hietaniemi2006-08-031-0/+5
| | | | | Message-ID: <44D191FD.9030902@iki.fi> p4raw-id: //depot/perl@28654
* Proper use of enumsAndy Lester2006-06-121-1/+2
| | | | | Message-ID: <20060612034434.GA21588@petdance.com> p4raw-id: //depot/perl@28381
* Revert change 28322, which makes ithreads panicRafael Garcia-Suarez2006-05-291-2/+0
| | | p4raw-id: //depot/perl@28329
* perlio.c: nobody was freeing PL_perlio_fd_refcnt, now PerlIO_cleanup() isJarkko Hietaniemi2006-05-291-0/+2
| | | | | Message-Id: <20060528151535.BEA3E6D08C@seth.hut.fi> p4raw-id: //depot/perl@28322