summaryrefslogtreecommitdiff
path: root/doio.c
Commit message (Collapse)AuthorAgeFilesLines
* Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set inNicholas Clark2008-01-031-4/+4
| | | | | | the flags. Move its implementation just ahead of sv_2mortal()'s for CPU cache locality. Refactor all code that can be to use this. p4raw-id: //depot/perl@32818
* make miniperl -Wwrite-strings cleanRobin Barker2007-12-201-6/+6
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399A@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@32681
* Silence unused argument warnings when HAS_MSG isn't definedRafael Garcia-Suarez2007-11-291-0/+4
| | | p4raw-id: //depot/perl@32547
* In Perl_do_openn() we know the length of oname, so use it when creatingNicholas Clark2007-10-201-1/+1
| | | | | an SV. p4raw-id: //depot/perl@32151
* Given that the buffer for mode in Perl_do_openn() has been initialisedNicholas Clark2007-10-161-10/+10
| | | | | | to all NUL bytes, and the "string" being appended is one character, it's way faster just to write the byte in question to the buffer. p4raw-id: //depot/perl@32113
* Remove some strlen()s and replace one strlcpy() with memcpy() becauseNicholas Clark2007-10-121-1/+1
| | | | | we already know the string length. p4raw-id: //depot/perl@32105
* One const too much. (Unfortunately, the Copy macro castsMarcus Holland-Moritz2007-10-031-1/+1
| | | | | the constness away, so the compiler cannot detect this.) p4raw-id: //depot/perl@32014
* Patches to compile perl on Cray XT4 Catamount/Qk, by JarkkoRafael Garcia-Suarez2007-06-171-1/+1
| | | p4raw-id: //depot/perl@31404
* Add Perl_my_dirfd() to util.cSteve Peters2007-05-011-11/+1
| | | p4raw-id: //depot/perl@31112
* Where possible, use SvIV instead of SvIVX, SvNV instead of SvNVX,Nicholas Clark2007-04-211-11/+11
| | | | | | | | | SvUV instead of SvUVX, and SvPV* variants instead of SvPVX*. Document that the non-x variants are preferable whenever the expression has no side effects. (Compilers perform common subexression elimination). Likewise SvREFCNT_inc simple variants are valid for all cases apart from expressions with side effects. p4raw-id: //depot/perl@31010
* Silence a couple of warnings caused by change #30672.Steve Peters2007-03-211-2/+3
| | | | | p4raw-link: @30672 on //depot/perl: c94db568e030a227855e08f584b1bff860be0cf5 p4raw-id: //depot/perl@30675
* There's no need to special case SVt_NULL in the print code, as it'sNicholas Clark2007-02-141-33/+24
| | | | | | | | only 0.01% of the cases called, and the call to SvPV_const() will issue the same warning and return the same empty string result for us. Unfortunately changing the switch statement to an if results in lots of whitespace changes, hence this change appears much larger than it is. p4raw-id: //depot/perl@30298
* Add av_create_and_push() and av_create_and_unshift_one() to refactorNicholas Clark2007-01-291-3/+2
| | | | | out two repeated idioms. p4raw-id: //depot/perl@30064
* Update copyright years in .c filesRafael Garcia-Suarez2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29696
* 4th patch from: Marcus Holland-Moritz2007-01-041-3/+3
| | | | | | | | | 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-2/+2
| | | | | | | | 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
* Revert change #29098 (that introduced a new warning,Rafael Garcia-Suarez2006-11-241-5/+0
| | | | | | "Variable length character upgraded in print") p4raw-link: @29098 on //depot/perl: f46fa3876d9373760a3cd5dd806719154ff55bcb p4raw-id: //depot/perl@29372
* New UTF-8 warning : Variable length character upgraded in print.SADAHIRO Tomoyuki2006-10-241-0/+5
| | | | | | | | Subject: Re: Changing the internal encoding (was: Re: utf8 regexp performance problem) Message-Id: <20061022142512.A7D3.BQW10602@nifty.com> (but with ckWARN_d replaced by ckWARN) p4raw-id: //depot/perl@29098
* compiler warning noreturnRobin Barker2006-10-131-1/+6
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226120A70@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@29007
* fix bad free in do_exec3()Dave Mitchell2006-10-091-4/+6
| | | p4raw-id: //depot/perl@28975
* Re: Change 28877: [PATCH] deal with some gcc warningsJarkko Hietaniemi2006-09-251-2/+0
| | | | | | | | Message-ID: <45175CA4.3020900@iki.fi> remove casts that were causing failure on FreeBSD -Duse64bitint, and some other cleanups. p4raw-id: //depot/perl@28886
* deal with some gcc warningsJarkko Hietaniemi2006-09-211-0/+2
| | | | | Message-ID: <45122C6F.9080904@iki.fi> p4raw-id: //depot/perl@28877
* Fix one genuine unitialised code path spotted by gcc, and a signed/Nicholas Clark2006-09-171-1/+3
| | | | | unsigned warning. p4raw-id: //depot/perl@28863
* doio.c: vararg NULLs must be cast rightJarkko Hietaniemi2006-08-101-2/+2
| | | | | Message-Id: <200608100535.k7A5Zr2Z156515@kosh.hut.fi> p4raw-id: //depot/perl@28688
* Change stat() and -X filetests so that they treat *FILE{IO} Steve Peters2006-07-281-0/+5
| | | | | filehandles like *FILE filehandles. This resolves RT #8244. p4raw-id: //depot/perl@28628
* Clear up most of the VC6 compiler warnings in the following smoke:Steve Hay2006-07-271-0/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/39733 p4raw-id: //depot/perl@28626
* Restoring change #28523 accidentilly reverted with change #28528.Steve Peters2006-07-101-1/+1
| | | | | | p4raw-link: @28528 on //depot/perl: 28f0d0ec424c9050a6c7d38541d2e6b5e66fb97c p4raw-link: @28523 on //depot/perl: 46147bce9215db8642f2bdc9a2e9e60e27f046e3 p4raw-id: //depot/perl@28536
* Convert some low hanging fruit to my_strlcpy/my_strlcat.Steve Peters2006-07-101-4/+3
| | | p4raw-id: //depot/perl@28533
* Change existing uses of strlcpy()/strlcat() to use new my_strlcpy()/Steve Peters2006-07-101-56/+13
| | | | | | my_strlcat() API. Convert ext/File/Glob/bsd_glob.c to use my_strlcat(). Add to the strlcy()/strlcat() todo entry. p4raw-id: //depot/perl@28528
* Fix a signed/unsigned warningRafael Garcia-Suarez2006-07-101-1/+1
| | | p4raw-id: //depot/perl@28523
* fix type mismatch warning caused by return statement lurking in DIE macroCraig A. Berry2006-07-041-1/+1
| | | p4raw-id: //depot/perl@28479
* Allow stat() and -X file tests work on dirhandles.Steve Peters2006-07-031-15/+24
| | | p4raw-id: //depot/perl@28473
* Add error checks after execing PL_cshname or PL_sh_pathJan Dubois2006-06-091-17/+17
| | | | | | From: "Jan Dubois" <jand@activestate.com> Message-ID: <002301c68a85$21aa7320$d045a8c0@candy> p4raw-id: //depot/perl@28376
* more accumulated cleanupsAndy Lester2006-06-061-14/+9
| | | | | Message-ID: <20060606052501.GA30469@petdance.com> p4raw-id: //depot/perl@28358
* strlcat aaarghJarkko Hietaniemi2006-05-191-12/+12
| | | | | Message-ID: <446E040E.8030205@gmail.com> p4raw-id: //depot/perl@28237
* clean up loops in doio.c and dump.cAndy Lester2006-05-031-10/+23
| | | | | Message-ID: <20060502183815.GA7979@petdance.com> p4raw-id: //depot/perl@28077
* It should never be possible for SvGMAGICAL() to be true on SVt_IV.Nicholas Clark2006-04-291-1/+1
| | | p4raw-id: //depot/perl@28017
* print couldn't correctly handle surprises from UTF-8 overloading.Nicholas Clark2006-04-291-10/+27
| | | p4raw-id: //depot/perl@28016
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-1/+3
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2Marcus Holland-Moritz2006-04-261-2/+2
| | | | | Message-ID: <20060424232038.7550f9b6@r2d2> p4raw-id: //depot/perl@27962
* [perl #38709] Opening '|-' triggers unjustified taint check Martin Hasch2006-04-241-1/+1
| | | | | | From: mhasch@cpan.org (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-38709-130993.2.89182805885773@perl.org> p4raw-id: //depot/perl@27951
* Random accumulated patchesAndy Lester2006-03-311-1/+1
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Re: threads and VMSJohn E. Malmberg2006-03-051-1/+1
| | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <440A22D2.30009@qsl.net> p4raw-id: //depot/perl@27376
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-1/+1
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* patch@27236 vms glob/readdir/chdir EFS/long filename supportJohn E. Malmberg2006-02-201-83/+8
| | | | | Message-ID: <43F92CE6.5040704@qsl.net> p4raw-id: //depot/perl@27239
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-14/+14
| | | p4raw-id: //depot/perl@27238
* Handle unused argsAndy Lester2006-02-081-1/+2
| | | | | Message-ID: <20060207223656.GA5177@petdance.com> p4raw-id: //depot/perl@27129
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-3/+3
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-6/+6
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-3/+4
| | | | | | | loop is iterated over millions of times. Add a flag GV_NOTQUAL purely as an optimisation, when the caller is passing in a string that is known not to contain any package separators. p4raw-id: //depot/perl@27053