summaryrefslogtreecommitdiff
path: root/proto.h
Commit message (Collapse)AuthorAgeFilesLines
* Make perl fork()-safe (in a slightly limited way) even onGurusamy Sarathy2001-07-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Perl_re_dup()Abhijit Menon-Sen2001-07-121-1/+2
| | | | | Message-ID: <20010712235432.J24707@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11321
* Retract #11289.Jarkko Hietaniemi2001-07-121-2/+0
| | | p4raw-id: //depot/perl@11293
* (Retracted by #11289.)Jarkko Hietaniemi2001-07-121-0/+2
| | | p4raw-id: //depot/perl@11289
* Simplify yytoke()Simon Cozens2001-07-081-0/+1
| | | | | | | Message-ID: <20010708132434.A9448@deep-dark-truthful-mirror> Split out pending_ident(). p4raw-id: //depot/perl@11213
* fix the binary compatibility issue when building with/withoutGurusamy Sarathy2001-07-051-1/+1
| | | | | | | | | | 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
* rename s/sv_getcwd/getcwd_sv/ for better conformance to existingGurusamy Sarathy2001-07-021-1/+1
| | | | | | | | | | 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
* Enclose the new symbols in START_EXTERN_C and END_EXTERN_CJarkko Hietaniemi2001-06-251-0/+6
| | | | | for the benefit of C++ compilers, as suggested by Guruprasad. p4raw-id: //depot/perl@10928
* Retract the #10417 mg.c and embed.pl parts because ofJarkko Hietaniemi2001-06-211-2/+2
| | | | | | strange SEGVs in 64bit x86 FreeBSD observed by Nicholas Clark. p4raw-id: //depot/perl@10798
* Regen headers.Jarkko Hietaniemi2001-06-201-7/+7
| | | p4raw-id: //depot/perl@10758
* Replace our implementation of realpath() with OpenBSD'sJarkko Hietaniemi2001-06-201-1/+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-1/+1
| | | | | | | 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
* Split off the pack/unpack code, from Nicholas Clark.Jarkko Hietaniemi2001-06-181-1/+4
| | | p4raw-id: //depot/perl@10685
* Generated filesNick Ing-Simmons2001-06-151-0/+1
| | | p4raw-id: //depot/perlio@10619
* Integrate mainlineNick Ing-Simmons2001-06-141-1/+4
| | | p4raw-id: //depot/perlio@10585
* 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-2/+2
| | | | | from sv.c statics to util.c and public. p4raw-id: //depot/perl@10505
* Re: pragma/locale.t #107Hugo van der Sanden2001-06-101-0/+1
| | | | | | | Message-Id: <200106101023.LAA32085@crypt.compulink.co.uk> Encapsulate the scan of the decimal radix separator. p4raw-id: //depot/perl@10495
* Numeric conversion tweaks suggested by Hugo and Nicholas.Jarkko Hietaniemi2001-06-091-1/+0
| | | p4raw-id: //depot/perl@10485
* The proper prototyping for #10463.Jarkko Hietaniemi2001-06-061-2/+3
| | | p4raw-id: //depot/perl@10464
* -Wall cleanup continues.Jarkko Hietaniemi2001-06-021-1/+7
| | | p4raw-id: //depot/perl@10392
* Re: [ID 20010529.006] String plus zero inconsistent across platformsHugo van der Sanden2001-06-011-0/+1
| | | | | Message-Id: <200105311949.UAA02798@crypt.compulink.co.uk> p4raw-id: //depot/perl@10379
* [patch] Cwd.xs optimizations/abstractionDoug MacEachern2001-06-011-0/+2
| | | | | 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/+6
| | | | | Message-Id: <200105261605.RAA12295@crypt.compulink.co.uk> p4raw-id: //depot/perl@10223
* [patch] make op_{clear,null} publicDoug MacEachern2001-05-101-2/+2
| | | | | Message-ID: <Pine.LNX.4.21.0105101546510.2962-100000@mako.covalent.net> p4raw-id: //depot/perl@10076
* Help -Dt show correct pad variablesBenjamin Sugars2001-05-071-0/+1
| | | | | Message-ID: <Pine.LNX.4.21.0105061142040.12858-100000@localhost.localdomain> p4raw-id: //depot/perl@10015
* In character classes one couldn't have 0x80..0xff charactersJarkko Hietaniemi2001-04-291-1/+1
| | | | | | at the left hand side if there were 0x100.. characters in the character class. p4raw-id: //depot/perl@9901
* Move the strftime() wrapper from POSIX.xs to util.cJarkko Hietaniemi2001-04-191-0/+1
| | | | | as my_strftime(), requires HAS_STRFTIME. p4raw-id: //depot/perl@9746
* Move the init_tm() and mini_mktime() up from POSIX.xs to util.cJarkko Hietaniemi2001-04-181-0/+2
| | | | | in preparation of Time::Piece. p4raw-id: //depot/perl@9745
* Integrate changes #9584,9587 from maintperl into mainline.Jarkko Hietaniemi2001-04-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | 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..)
* tr/// UTF-8 tweaking from Inaba Hiroto.Jarkko Hietaniemi2001-04-011-1/+0
| | | p4raw-id: //depot/perl@9499
* Autoloading Errno.pm when %! is encounteredRobin Houston2001-03-271-0/+1
| | | | | Message-ID: <20010327205710.A24053@puffinry.freeserve.co.uk> p4raw-id: //depot/perl@9390
* Generated files.Nick Ing-Simmons2001-03-241-0/+1
| | | p4raw-id: //depot/perlio@9319
* Integrate change #9197 from maintperl to mainline.Jarkko Hietaniemi2001-03-181-2/+2
| | | | | | | | | | more thorough cleaning of arenas. p4raw-link: @9197 on //depot/maint-5.6/perl: ec3d44d040803cac937295d8f4740e6a36ba30fb p4raw-id: //depot/perl@9201 p4raw-integrated: from //depot/maint-5.6/perl@9200 'merge in' t/op/sort.t (@7895..) perl.c (@9064..) sv.c (@9108..) embed.pl proto.h (@9154..)
* Integrate change #9154 from maintperl to mainline.Jarkko Hietaniemi2001-03-141-0/+5
| | | | | | | | | | | | 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..)
* Integrate change #9108 from maintperl to mainline.Jarkko Hietaniemi2001-03-121-1/+0
| | | | | | | | | | | | | | | | | | | | fix memory leak in C<sub X { sub {} }> arising from a refcount loop between the outer sub and the inner prototype anonsub this also enables closures returned by subroutines that subsequently get redefined to work without generating coredumps :) completely removed the free_closures() hack--it shouldn't be needed anymore p4raw-link: @9108 on //depot/maint-5.6/perl: 1cf1f64f42eb50a67f2427ff9d6d24023a2b9997 p4raw-id: //depot/perl@9109 p4raw-branched: from //depot/maint-5.6/perl@9107 'branch in' t/op/anonsub.t p4raw-integrated: from //depot/maint-5.6/perl@9107 'merge in' sv.c (@8871..) embed.h (@8886..) pod/perlapi.pod proto.h (@8993..) embed.pl (@8995..) MANIFEST (@9030..) op.c op.h (@9055..) pp_ctl.c (@9076..)
* EBCDIC sanity - phase INick Ing-Simmons2001-03-101-3/+6
| | | | | | | | | | | | | | - 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
* Encode API documentation nd tidy up.Nick Ing-Simmons2001-02-241-1/+1
| | | | | | | Minor additions to test. Tweaks sv_utf8_upgrade() to force SvPV, and always SvUTF8_on and return length. Adds STRLEN to standard typemap. p4raw-id: //depot/perlio@8923
* [patch] perlio + useithreadsDoug MacEachern2001-02-231-3/+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/+1
| | | p4raw-id: //depot/perl@8870
* Retract the #8838 and #8840 for now because ofJarkko Hietaniemi2001-02-201-1/+0
| | | | | the DB_File tie problem. p4raw-id: //depot/perl@8846
* [patch] add sv_setref_uvDoug MacEachern2001-02-191-0/+1
| | | | | Message-ID: <Pine.LNX.4.21.0102181448290.10021-100000@mako.covalent.net> p4raw-id: //depot/perl@8840
* [patch] -WallDoug MacEachern2001-02-171-1/+6
| | | | | 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/+3
| | | p4raw-id: //depot/perl@8783
* [patch] GvSHAREDDoug MacEachern2001-02-101-0/+1
| | | | | Message-ID: <Pine.LNX.4.21.0102101047320.15298-100000@mako.covalent.net> p4raw-id: //depot/perl@8760
* Generated files form 8713 etc.Nick Ing-Simmons2001-02-081-0/+2
| | | p4raw-id: //depot/perl@8716
* Patch from Inaba Hiroto:Jarkko Hietaniemi2001-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | - 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: Announce : Tokener reporting patchSimon Cozens2001-01-271-0/+1
| | | | | Message-ID: <20010122021722.A9334@pembro26.pmb.ox.ac.uk> p4raw-id: //depot/perl@8562
* RE: [PATCH perl@8269] Corrections for Perl_yylex_r (used by a reentrant ↵Roca, Ignasi2001-01-231-3/+1
| | | | | | | parser as Bison) Message-ID: <5930DC161690D21196670090271575470397E915@madt009a.siemens.es> p4raw-id: //depot/perl@8532
* Integrate mainline.Nick Ing-Simmons2001-01-211-0/+1
|\ | | | | p4raw-id: //depot/perlio@8495