summaryrefslogtreecommitdiff
path: root/pp_sys.c
Commit message (Collapse)AuthorAgeFilesLines
* Following 33291, on VMS we need to use the same prototypes other platforms Craig A. Berry2008-02-221-2/+2
| | | | | | use in order to get the do_spawn-related assert macros defined. Based on suggestions by John Malmberg. p4raw-id: //depot/perl@33343
* 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
* Split struct block_sub into struct block_sub and struct block_format.Nicholas Clark2008-01-201-1/+1
| | | | | | (CXt_SUB and CXt_FORMAT were using some comon members, but some members were only for one or the other.) p4raw-id: //depot/perl@33014
* Extend PUSHFORMAT() to take a second parameter to set retop, to saveNicholas Clark2008-01-201-2/+1
| | | | | NULLing it and then reassigning. p4raw-id: //depot/perl@33012
* [perl #49003] pp_ftrread appears to use the wrong access mode for -x when ↵pravus@cpan.org2008-01-061-2/+1
| | | | | | | | using "use filetest 'access';" From: pravus@cpan.org (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-22850-1198260315-255.49003-75-0@perl.org> p4raw-id: //depot/perl@32874
* Re: SV leak?Vincent Pit2008-01-041-1/+1
| | | | | | | | Message-ID: <477D28BD.5060801@profvince.com> Mortalize SVs that are being pushed on the stack. Try to use specialized macros for pushing mortals. p4raw-id: //depot/perl@32822
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-80/+81
| | | | | | and mortalizing them. Use these macros where possible. And also mX?PUSH[inpu] where possible. p4raw-id: //depot/perl@32821
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-8/+8
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set inNicholas Clark2008-01-031-1/+1
| | | | | | 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
* Fix a few segfaults and a when() bugjosh2007-10-171-1/+6
| | | | | | From: "josh" <twists@gmail.com> Message-ID: <20071015043708.GA10981@grenekatz.org> p4raw-id: //depot/perl@32120
* sixth attempt to silence S_emulate_eaccess compiler warningDave Mitchell2007-09-241-1/+1
| | | p4raw-id: //depot/perl@31954
* fifth attempt to silence S_emulate_eaccess compiler warningDave Mitchell2007-09-241-14/+1
| | | p4raw-id: //depot/perl@31947
* misc blead stuffJarkko Hietaniemi2007-08-301-1/+1
| | | | | Message-ID: <46D617B5.3000002@iki.fi> p4raw-id: //depot/perl@31765
* Re: t/op/taint.t failed on EBCDIC platformRick Delaney2007-08-181-1/+1
| | | | | Message-Id: <20070817033526.GA9639@bort.ca> p4raw-id: //depot/perl@31730
* fourth attempt to silence S_emulate_eaccess compiler warningDave Mitchell2007-07-161-3/+1
| | | p4raw-id: //depot/perl@31617
* Patches to compile perl on Cray XT4 Catamount/Qk, by JarkkoRafael Garcia-Suarez2007-06-171-3/+9
| | | p4raw-id: //depot/perl@31404
* Silence compiler warningsJerry D. Hedden2007-06-071-2/+2
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510706061145r540c7f02kba96c04bc9dcf8b0@mail.gmail.com> p4raw-id: //depot/perl@31348
* pp_sys.c: gethostbyaddrJarkko Hietaniemi2007-05-211-1/+1
| | | | | Message-ID: <465119DE.6040208@iki.fi> p4raw-id: //depot/perl@31248
* Add Perl_my_dirfd() to util.cSteve Peters2007-05-011-10/+2
| | | p4raw-id: //depot/perl@31112
* Where possible, use SvIV instead of SvIVX, SvNV instead of SvNVX,Nicholas Clark2007-04-211-1/+1
| | | | | | | | | 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
* Add two deprecation warnings:Rafael Garcia-Suarez2007-03-301-0/+8
| | | | | | Opening dirhandle %s also as a file Opening filehandle %s also as a directory p4raw-id: //depot/perl@30780
* Prefer dirhandles to filehandles when passing a bareword typeglobSteve Peters2007-03-091-4/+3
| | | | | | to chdir() and the typeglob has both a dirhandle and a filehandle assigned to it. p4raw-id: //depot/perl@30527
* Need to extend the stack when using warn() withoutRafael Garcia-Suarez2007-03-081-0/+1
| | | | | an argument (this fixes bug #41716) p4raw-id: //depot/perl@30513
* Compilation warnings fixes by Jerry D. HeddenRafael Garcia-Suarez2007-03-031-1/+1
| | | p4raw-id: //depot/perl@30447
* The last parameter to gv_stashpv/gv_stashpvn/gv_stashsv is a bitmaskNicholas Clark2007-01-251-2/+2
| | | | | of flags, not a boolean, so correct the documenation and callers. p4raw-id: //depot/perl@29977
* Re: AW: umask handling in File::TempGisle Aas2007-01-131-2/+6
| | | | | Message-ID: <877ivs1dt3.fsf@ask.g.aas.no> p4raw-id: //depot/perl@29784
* Update copyright years in .c filesRafael Garcia-Suarez2007-01-051-2/+2
| | | 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
* syswrite() wasn't reporting a warning when writing to a filehandleRafael Garcia-Suarez2006-12-231-3/+7
| | | | | opened only for input. p4raw-id: //depot/perl@29614
* Silence VC++ 8 warnings about "possible loss of data"Steve Hay2006-11-281-3/+3
| | | p4raw-id: //depot/perl@29408
* Forbid using tainted formats in printf and sprintfRafael Garcia-Suarez2006-11-071-0/+2
| | | p4raw-id: //depot/perl@29225
* Quiet a warning in pp_sys.c on AIX.Steve Peters2006-10-211-1/+1
| | | p4raw-id: //depot/perl@29068
* In pp_binmode, call mode_from_discipline() once and remember the result.Nicholas Clark2006-10-011-15/+16
| | | p4raw-id: //depot/perl@28910
* g++/Tru64: got perl linking once got the linkage rightJarkko Hietaniemi2006-08-211-5/+0
| | | | | Message-Id: <200608181003.k7IA3Hso276655@kosh.hut.fi> p4raw-id: //depot/perl@28741
* lstat on *GLOB{IO} with warnings on would segfaultRafael Garcia-Suarez2006-08-101-1/+1
| | | | | (noticed by Andrew Dougherty) p4raw-id: //depot/perl@28690
* g++: gethostbyaddr, and more Tru64 definesJarkko Hietaniemi2006-08-101-1/+1
| | | | | Message-ID: <44DACB8C.1080708@iki.fi> p4raw-id: //depot/perl@28689
* g++ large patchJarkko Hietaniemi2006-08-071-4/+5
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Tru64 oopsJarkko Hietaniemi2006-08-031-1/+1
| | | | | Message-Id: <200608031959.k73JxbsC395856@kosh.hut.fi> p4raw-id: //depot/perl@28655
* more g++ in Tru64Jarkko Hietaniemi2006-08-031-0/+5
| | | | | Message-ID: <44D191FD.9030902@iki.fi> p4raw-id: //depot/perl@28654
* Change stat() and -X filetests so that they treat *FILE{IO} Steve Peters2006-07-281-8/+15
| | | | | filehandles like *FILE filehandles. This resolves RT #8244. p4raw-id: //depot/perl@28628
* z/OS: pp_sys.c, reg*.c, toke.c, utf8.cJarkko Hietaniemi2006-07-231-0/+11
| | | | | Message-ID: <44C24994.6020008@iki.fi> p4raw-id: //depot/perl@28607
* various safety/portability tweaksJarkko Hietaniemi2006-07-151-1/+2
| | | | | Message-ID: <44B8C008.4030300@iki.fi> p4raw-id: //depot/perl@28578
* Convert some low hanging fruit to my_strlcpy/my_strlcat.Steve Peters2006-07-101-3/+4
| | | p4raw-id: //depot/perl@28533
* Allow stat() and -X file tests work on dirhandles.Steve Peters2006-07-031-3/+20
| | | p4raw-id: //depot/perl@28473
* pp_sys cleanup againAndy Lester2006-05-221-137/+136
| | | | | Message-ID: <20060520212020.GA30688@petdance.com> p4raw-id: //depot/perl@28279
* Abolish cop_io (the simple way) by storing the value in cop_hints_hash.Nicholas Clark2006-05-201-1/+1
| | | | | | Todo - store the in and out values under 2 keys, and avoid the need to create a temporary mortal SV while checking it. p4raw-id: //depot/perl@28258
* Proper use of static funcs in toke.c and pp_sys.cAndy Lester2006-05-121-5/+5
| | | | | Message-ID: <20060509172730.GA5272@petdance.com> p4raw-id: //depot/perl@28179
* pp_sys.c: U8* castJarkko Hietaniemi2006-05-031-1/+1
| | | | | Message-Id: <200605021704.k42H4XIh255652@kosh.hut.fi> p4raw-id: //depot/perl@28076
* Fix two errors found by Coverity.Nicholas Clark2006-04-301-5/+14
| | | p4raw-id: //depot/perl@28034
* syswrite couldn't correctly handle surprises from UTF-8 overloading.Nicholas Clark2006-04-291-37/+91
| | | | | | As part of fixing this, syswrite now tries to take advantage of the UTF-8 cache logic for lengths and offsets on regular scalars. p4raw-id: //depot/perl@28019