summaryrefslogtreecommitdiff
path: root/objXSUB.h
Commit message (Collapse)AuthorAgeFilesLines
* Make perl fork()-safe (in a slightly limited way) even onGurusamy Sarathy2001-07-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* rename s/sv_getcwd/getcwd_sv/ for better conformance to existingGurusamy Sarathy2001-07-021-4/+4
| | | | | | | | | | 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
* Replace our implementation of realpath() with OpenBSD'sJarkko Hietaniemi2001-06-201-4/+0
| | | | | (src/lib/libc/stdlib/realpath.c 1.4). p4raw-id: //depot/perl@10750
* Split off the pack/unpack code, from Nicholas Clark.Jarkko Hietaniemi2001-06-181-0/+2
| | | p4raw-id: //depot/perl@10685
* splitting util.cHugo van der Sanden2001-06-131-0/+2
| | | | | Message-Id: <200106132341.AAA24935@crypt.compulink.co.uk> p4raw-id: //depot/perl@10579
* 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
* Move the grok_number and its lieutenant grok_numeric_radixJarkko Hietaniemi2001-06-101-0/+8
| | | | | from sv.c statics to util.c and public. p4raw-id: //depot/perl@10505
* APIfy op_clear Simon Cozens2001-06-031-1/+11
| | | | | | | Message-ID: <20010603135146.A9984@deep-dark-truthful-mirror.pmb.ox.ac.uk> (despite the subject line, op_null is APIfied by the patch) p4raw-id: //depot/perl@10400
* Re: [ID 20010529.006] String plus zero inconsistent across platformsHugo van der Sanden2001-06-011-0/+4
| | | | | Message-Id: <200105311949.UAA02798@crypt.compulink.co.uk> p4raw-id: //depot/perl@10379
* [patch] Cwd.xs optimizations/abstractionDoug MacEachern2001-06-011-0/+8
| | | | | Message-ID: <Pine.LNX.4.21.0105311733270.732-100000@mako.covalent.net> p4raw-id: //depot/perl@10369
* Re: 5.6.*, bleadperl: bugs in pp_concatHugo van der Sanden2001-05-261-0/+24
| | | | | Message-Id: <200105261605.RAA12295@crypt.compulink.co.uk> p4raw-id: //depot/perl@10223
* Regen headers for #10221.Jarkko Hietaniemi2001-05-261-0/+4
| | | p4raw-id: //depot/perl@10222
* In character classes one couldn't have 0x80..0xff charactersJarkko Hietaniemi2001-04-291-0/+12
| | | | | | at the left hand side if there were 0x100.. characters in the character class. p4raw-id: //depot/perl@9901
* Integrate changes #9584,9587 from maintperl into mainline.Jarkko Hietaniemi2001-04-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | keep eval"" CVs alive until the end of the statement in which they're called add README.macos (from Chris Nandor) tyop in change#9555 p4raw-link: @9587 on //depot/maint-5.6/perl: d72c2fc956b5cb46ede17d06f89a463c78f1cf5f p4raw-link: @9584 on //depot/maint-5.6/perl: e6fbcc36a54a8afd8dbcdcb9a8d8e178df530b97 p4raw-link: @9555 on //depot/perl: 6a0af2f17bcde4767b90a72eff7083c5effff21d p4raw-id: //depot/perl@9588 p4raw-branched: from //depot/maint-5.6/perl@9583 'branch in' README.macos p4raw-integrated: from //depot/maint-5.6/perl@9583 'copy in' pod/perlfaq9.pod (@9585..) 'merge in' scope.h (@8568..) pod/perl.pod (@8986..) MANIFEST (@9227..) win32/Makefile (@9286..) pp_ctl.c scope.c (@9288..) global.sym (@9289..) embed.h embed.pl objXSUB.h perlapi.c proto.h (@9292..) pod/buildtoc.PL (@9312..) win32/makefile.mk (@9495..) sv.c (@9496..) pod/perlguts.pod (@9514..)
* Generated files.Nick Ing-Simmons2001-03-241-0/+4
| | | p4raw-id: //depot/perlio@9319
* Integrate change #9154 from maintperl to mainline.Jarkko Hietaniemi2001-03-141-0/+4
| | | | | | | | | | | | PerlIO_stdoutf() wasn't properly supported under PERL_IMPLICIT_SYS (caused Storable 1.0.10 to break on windows) p4raw-link: @9154 on //depot/maint-5.6/perl: 241ea079897f140daac27d059c9935e78ec152ec p4raw-id: //depot/perl@9156 p4raw-integrated: from //depot/maint-5.6/perl@9155 'copy in' globals.c (@5902..) 'merge in' global.sym (@8599..) iperlsys.h (@8800..) objXSUB.h perlapi.c (@8993..) embed.h embed.pl proto.h (@9108..)
* EBCDIC sanity - phase INick Ing-Simmons2001-03-101-12/+24
| | | | | | | | | | | | | | - rename utf8/uv functions to indicate what sort of uv they provide (uvuni/uvchr) - use utf8n_xxxx (c.f. pvn) for forms which take length. - back out vN.N and $^V exceptions to e2a/a2e - make "locale" isxxx macros be uvchr (may be redundant?) Not clear yet that toUPPER_uni et. al. return being handled correctly. The tr// and rexexp stuff still needs an audit, assumption is they are working in Unicode space. Need to provide v5.6 names for XS modules (decide is uni or chr ?). p4raw-id: //depot/perlio@9096
* [patch] perlio + useithreadsDoug MacEachern2001-02-231-2/+0
| | | | | | | Message-ID: <Pine.LNX.4.21.0102222356460.14249-100000@mako.covalent.net> Gets things running but not complete. p4raw-id: //depot/perl@8912
* Put back the #8840, it was innocent.Jarkko Hietaniemi2001-02-211-0/+4
| | | p4raw-id: //depot/perl@8870
* Retract the #8838 and #8840 for now because ofJarkko Hietaniemi2001-02-201-4/+0
| | | | | the DB_File tie problem. p4raw-id: //depot/perl@8846
* [patch] add sv_setref_uvDoug MacEachern2001-02-191-0/+4
| | | | | Message-ID: <Pine.LNX.4.21.0102181448290.10021-100000@mako.covalent.net> p4raw-id: //depot/perl@8840
* [patch] -WallDoug MacEachern2001-02-171-0/+4
| | | | | Message-ID: <Pine.LNX.4.21.0102161519500.30352-100000@mako.covalent.net> p4raw-id: //depot/perl@8815
* Merge ebcdic.c (only one function, ebcdic_control()) into util.c.Jarkko Hietaniemi2001-02-131-0/+2
| | | p4raw-id: //depot/perl@8783
* Generated files form 8713 etc.Nick Ing-Simmons2001-02-081-0/+8
| | | p4raw-id: //depot/perl@8716
* Patch from Inaba Hiroto:Jarkko Hietaniemi2001-01-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | - canonical UTF-8 hash keys: if a key string for a hash is UTF8-on, try downgrade the string and use it if unicode::distinct is not in effect. For the task, I added a function bytes_from_utf8() to utf8.c. It might resemble utf8_to_bytes() but it is not convenient to the task. Made a test for it and added to t/op/each.t - Changed do_print in doio.c to apply sv_utf8_(downgrade|upgrade) to the mortal copy of the argument SV. And changed t/io/utf8.t test 18 which expects print() to upgrade its argument. - re-implement sv_eq with bytes_from_utf8() - some bug fixes - tr/// does not handle UTF8 range (\x{}-\x{}) - \ before raw UTF8 character produced "Malformed UTF-8 character" warning. - "\x{100}\N{CENT SIGN}" is Malformed. Added tests for these 3. - and one silly bug (by me) with qu operator. p4raw-id: //depot/perl@8583
* RE: [PATCH perl@8269] Corrections for Perl_yylex_r (used by a reentrant ↵Roca, Ignasi2001-01-231-1/+0
| | | | | | | parser as Bison) Message-ID: <5930DC161690D21196670090271575470397E915@madt009a.siemens.es> p4raw-id: //depot/perl@8532
* Infrastructure to allow:Nick Ing-Simmons2001-01-201-0/+4
| | | | | | | | | | open($fh,"|-",@array); to be implemented i.e. mark pp_open as needing a stack mark, and make pp_open process its args in that style (and pass them _all_ to tied handles OPEN). Invent do_openn() which takes SV ** at allow it to see multiple args. Note this does not _do_ anything yet. p4raw-id: //depot/perlio@8484
* Integrate mainline.Nick Ing-Simmons2000-12-191-0/+4
| | | p4raw-id: //depot/perlio@8202
* Return of the IVUV-preservation, now seems to be happy evenJarkko Hietaniemi2000-12-151-0/+2
| | | | | | in Digital UNIX (the broken strtoul brokenness detection seems to have been the fly in the ointment). p4raw-id: //depot/perl@8138
* speeding up object creation/destruction 4x timesIlya Zakharevich2000-12-151-0/+4
| | | | | Message-ID: <20001215052657.A8319@math.mps.ohio-state.edu> p4raw-id: //depot/perl@8131
* This seems to be a stage sane and stable enough to checkin.Jarkko Hietaniemi2000-12-151-2/+0
| | | | | (it basically is 8102..8118+8122 but no 8120, 8121, 8123, 8124) p4raw-id: //depot/perl@8125
* faster and 64 bit preserving arithmeticNicholas Clark2000-12-141-0/+2
| | | | | Message-ID: <20001213200849.B71166@plum.flirble.org> p4raw-id: //depot/perl@8119
* Move the proto of start_glob() to a better place; regen api files.Jarkko Hietaniemi2000-12-131-2/+0
| | | p4raw-id: //depot/perl@8101
* move startglob out of pp_hot.cNicholas Clark2000-12-131-0/+2
| | | | | Message-ID: <20001211231638.A55550@plum.flirble.org> p4raw-id: //depot/perl@8097
* Re: [PATCH] The largest hoax of all times?Ilya Zakharevich2000-12-051-0/+8
| | | | | | | | | | | | | | | | | | Date: Tue, 5 Dec 2000 00:40:25 -0500 Message-ID: <20001205004025.A4050@monk.mps.ohio-state.edu> Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Mon, 4 Dec 2000 23:55:53 -0500 Message-ID: <20001204235553.A1140@monk.mps.ohio-state.edu> Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Tue, 5 Dec 2000 01:28:45 -0500 Message-ID: <20001205012844.A4227@monk.mps.ohio-state.edu> Fix the unpredictable order of DESTROYs. p4raw-id: //depot/perl@7991
* C<foreach my $x ...> in pseudo-fork()ed process may diddleGurusamy Sarathy2000-11-251-0/+4
| | | | | | | | | | parent's memory; fix it by keeping track of the actual pad offset rather than a raw pointer (this change is probably also relevant to non-ithreads case to avoid fallout from reallocs of the pad array, but is currently only enabled for the ithreads case in the interests of minimal disruption to existing "well tested" code) p4raw-id: //depot/perl@7858
* Introduce Perl_utf8_length(). Use it.Jarkko Hietaniemi2000-11-181-0/+4
| | | p4raw-id: //depot/perl@7744
* Change files which are mysteriously different to mainline to beNick Ing-Simmons2000-10-301-1/+1
| | | | | copies of mainline. p4raw-id: //depot/perlio@7492
* Continue the internal UTF-8 API tweaking.Jarkko Hietaniemi2000-10-251-4/+4
| | | | | | | | Rename utf8_to_uv_chk() back to utf8_to_uv() because it's used much more than the simpler API, now called utf8_to_uv_simple(). Still not quite happy with API, too much partial duplication of functionality. p4raw-id: //depot/perl@7439
* Re-instate Perl_utf8_to_uv without checking parameter - added in change 7075.Nick Ing-Simmons2000-09-301-0/+4
| | | | | | | i.e. rename Simon's function to Perl_utf8_to_uv_chk, change all calls to it to use new name and add Perl_utf8_to_uv() as a wrapper which calls it passing 0 to checking to get the warning. p4raw-id: //depot/perl@7096
* Hash lookup of constant strings optimization:Nick Ing-Simmons2000-09-031-1/+5
| | | | | | | | | | Introduce SvREADONLY && SvFAKE to flag an SV which has SvPVX pointing to string table (as per sharepvn). Add newSV_pvn_share to create such a thing. Make hv.c compare addresses of strings and skip string compare if equal. Make method_named and helem ops use these shared-string SVs when arg is constant. Make keys op return shared-string SVs (less clearly a win). p4raw-id: //depot/perl@7016
* Remove the extraneous "main::" prefix from all theGurusamy Sarathy2000-08-021-0/+8
| | | | | | | | "opened only for", "on closed", and "never opened" warnings. Subject: Re: inappropriate warning Message-Id: <200003201928.LAA32224@maul.ActiveState.com> p4raw-id: //depot/perl@6489
* av.c apidocSimon Cozens2000-07-251-8/+0
| | | | | Message-ID: <slrn8nnp7k.cgv.simon@justanother.perlhacker.org> p4raw-id: //depot/perl@6438
* integrate cfgperl changes#6293..6324 into mainlineGurusamy Sarathy2000-07-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6324 on //depot/cfgperl: 81bf48a6dbba4b295dfa172a17ca70b654dbf225 p4raw-link: @6293 on //depot/cfgperl: 6e37ea6052902cde1aeb08a2129ffc7c8ea53736 p4raw-id: //depot/perl@6369 p4raw-branched: from //depot/cfgperl@6368 'branch in' lib/Win32.pod lib/lib_pm.PL p4raw-deleted: from //depot/cfgperl@6368 'delete in' pod/Win32.pod (@5937..) pod/buildtoc (@6091..) lib/lib.pm.PL (@6227..) pod/Makefile (@6232..) p4raw-integrated: from //depot/cfgperl@6368 'copy in' thread.h (@5656..) lib/warnings/register.pm (@5704..) ext/B/B/Stash.pm (@5972..) lib/CGI/Util.pm (@6034..) util.c (@6217..) gv.c (@6244..) pp.c (@6260..) doop.c (@6269..) pod/perlfunc.pod (@6277..) pp_ctl.c (@6293..) makedef.pl (@6301..) embed.h global.sym objXSUB.h perlapi.c proto.h (@6305..) win32/Makefile (@6307..) Makefile.SH (@6309..) t/op/method.t (@6312..) sv.h (@6315..) 'ignore' op.c (@6273..) 'merge in' embed.pl win32/win32.c (@6305..) p4raw-integrated: from //depot/cfgperl@6324 'merge in' toke.c (@6307..) p4raw-branched: from //depot/cfgperl@6323 'branch in' pod/buildtoc.PL (@6319..) p4raw-integrated: from //depot/cfgperl@6323 'copy in' pod/perl.pod (@6319..) pod/perltoc.pod (@6322..) 'merge in' MANIFEST (@6319..) p4raw-branched: from //depot/cfgperl@6319 'branch in' pod/Makefile.SH p4raw-integrated: from //depot/cfgperl@6315 'ignore' pp_hot.c (@6313..) p4raw-integrated: from //depot/cfgperl@6311 'copy in' ext/POSIX/POSIX.pod (@6296..) p4raw-integrated: from //depot/cfgperl@6307 'merge in' doio.c (@6223..)
* integrate cfgperl changes#6268..6282 into mainlineGurusamy Sarathy2000-07-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6282 on //depot/cfgperl: d4817f5b97d4072a6efac47844b617245b179f2c p4raw-link: @6268 on //depot/cfgperl: 22e04bdb3a09a4c369fd1666143349eab2eba9d4 p4raw-id: //depot/perl@6366 p4raw-integrated: from //depot/cfgperl@6365 'copy in' lib/Net/Ping.pm lib/Text/Wrap.pm t/lib/dprof.t t/lib/dumper-ovl.t t/lib/hostname.t (@5586..) lib/Pod/Html.pm (@5608..) t/lib/ipc_sysv.t (@5812..) t/lib/dumper.t (@5972..) ext/File/Glob/Glob.pm (@6026..) lib/Pod/Man.pm lib/Pod/Text.pm (@6034..) t/lib/anydbm.t (@6072..) lib/ExtUtils/xsubpp (@6156..) pod/perlsub.pod pod/perltie.pod (@6206..) utils/h2xs.PL (@6280..) p4raw-integrated: from //depot/cfgperl@6282 'merge in' vms/vms.c (@6238..) p4raw-integrated: from //depot/cfgperl@6277 'copy in' pod/perlfunc.pod (@6276..) p4raw-integrated: from //depot/cfgperl@6273 'ignore' perlapi.h (@6243..) embedvar.h (@6254..) 'merge in' perlapi.c (@6243..) embed.h (@6254..) embed.pl objXSUB.h op.c proto.h (@6269..) p4raw-integrated: from //depot/cfgperl@6270 'copy in' t/op/taint.t (@5857..) p4raw-integrated: from //depot/cfgperl@6269 'copy in' doop.c (@6263..) 'ignore' toke.c (@6261..) p4raw-integrated: from //depot/cfgperl@6268 'copy in' t/op/sprintf.t (@6267..)
* integrate cfgperl changes#6242..6249 into mainlineGurusamy Sarathy2000-07-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6249 on //depot/cfgperl: cab27d238e930b8cddb5b1fb3260355f913b86a6 p4raw-link: @6242 on //depot/cfgperl: 1e72252ad7b8e23d1a1142285b8aa82986bd2491 p4raw-id: //depot/perl@6359 p4raw-integrated: from //depot/cfgperl@6358 'copy in' ext/DynaLoader/DynaLoader_pm.PL (@5953..) t/lib/peek.t (@6086..) t/lib/filefunc.t t/lib/filespec.t (@6230..) pod/perlintern.pod (@6237..) pod/perlapi.pod utf8.c (@6242..) p4raw-integrated: from //depot/cfgperl@6249 'copy in' lib/IPC/Open3.pm (@5937..) p4raw-integrated: from //depot/cfgperl@6248 'copy in' pod/perlfunc.pod (@6206..) p4raw-integrated: from //depot/cfgperl@6247 'ignore' lib/File/Spec.pm (@6230..) p4raw-integrated: from //depot/cfgperl@6244 'copy in' gv.c (@6217..) 'merge in' sv.c (@6196..) p4raw-integrated: from //depot/cfgperl@6243 'copy in' pp_proto.h (@6237..) 'ignore' embedvar.h perlapi.h (@6237..) 'merge in' embed.h objXSUB.h (@6237..) embed.pl perlapi.c proto.h (@6242..)
* integrate cfgperl changes#6231..6240 into mainlineGurusamy Sarathy2000-07-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6240 on //depot/cfgperl: 514e70b26394e6b272960ab8b9b8b7dbb1e2c068 p4raw-link: @6231 on //depot/cfgperl: 7906debc4b99f108310cdade6e486754c15481e7 p4raw-id: //depot/perl@6355 p4raw-branched: from //depot/cfgperl@6353 'branch in' pod/perlutil.pod p4raw-integrated: from //depot/cfgperl@6353 'copy in' pod/roffitall (@5753..) op.h (@5833..) README.cygwin (@6096..) lib/ExtUtils/MM_VMS.pm (@6140..) lib/File/Find.pm (@6156..) Configure config_h.SH hints/solaris_2.sh (@6217..) Todo-5.6 (@6232..) keywords.h lib/warnings.pm opcode.h opnames.h pp.sym regnodes.h warnings.h (@6236..) 'ignore' ext/B/B/Asmdata.pm ext/ByteLoader/byterun.c ext/ByteLoader/byterun.h (@6236..) p4raw-integrated: from //depot/cfgperl@6240 'copy in' utils/h2xs.PL (@6192..) p4raw-integrated: from //depot/cfgperl@6238 'merge in' vms/vms.c (@6198..) p4raw-integrated: from //depot/cfgperl@6237 'copy in' utf8.c (@6221..) pod/perlapi.pod pod/perlintern.pod pp_proto.h (@6236..) 'ignore' embedvar.h perlapi.h (@6236..) 'merge in' embed.pl (@6225..) embed.h objXSUB.h perlapi.c proto.h (@6236..) p4raw-integrated: from //depot/cfgperl@6232 'copy in' pod/Makefile pod/perltoc.pod (@6161..) MANIFEST (@6227..)
* integrate cfgperl changes#6207..6210 into mainlineGurusamy Sarathy2000-07-111-0/+4
| | | | | | p4raw-link: @6210 on //depot/cfgperl: b8b4c9f3cf6ef09c878a80ff97526a69902a44ca p4raw-link: @6207 on //depot/cfgperl: b37a7757477319a5fcdd5131db15046064f631c4 p4raw-id: //depot/perl@6345
* adjust change#6299Gurusamy Sarathy2000-07-041-8/+10
| | | | | p4raw-link: @6299 on //depot/perl: 6c644e7885bc20d759d8cbcb4abaa8f14113c03b p4raw-id: //depot/perl@6302
* fix memory leak on Windows (PL_sys_intern contents were neverGurusamy Sarathy2000-07-041-6/+8
| | | | | freed) p4raw-id: //depot/perl@6299