summaryrefslogtreecommitdiff
path: root/reentr.pl
Commit message (Collapse)AuthorAgeFilesLines
* Add some documentation to the heads of the various *.pl build scriptsDavid Mitchell2009-05-151-4/+15
|
* Merge branch 'schwern/y2038' into bleadRafael Garcia-Suarez2009-01-031-6/+1
|\ | | | | | | | | | | | | | | Conflicts: lib/Time/Local.pm lib/Time/Local.t reentr.h
| * Update from y2038Michael G. Schwern2009-01-031-6/+1
| | | | | | | | | | | | Work around a system that doesn't have gm/localtime_r(). This replaces Perl's own gm/localtime() wrapper which couldn't be called outside a PP anyway because it needs my_perl.
* | Lies, damn lies and end-of-block commentsRafael Garcia-Suarez2008-12-251-4/+4
|/ | | | | | | | | | | | | | | | | From: Michael G Schwern <schwern@pobox.com> Date: Fri, 26 Sep 2008 00:06:31 -0400 Message-ID: <48DC5FC7.3000807@pobox.com> I was reading reentr.h and noticed a lot of the endif's for the HAS_XXX_R macros were wrongly indented and their comments had the wrong condition. The attached patch fixes the indentation and removes all but the last comment which is shortest and furthest from its start. No point in an end-of-block comment on a one statement block, just falls out of date and obscures the structure. (plus "make regen")
* Drag autodoc.pl and overload.pl into the age of safer_open().Nicholas Clark2008-03-171-2/+2
| | | | | | | | Thanks to the wisdom of london.pm, stuff the filename into the SCALAR slot of the typeglob created in safer_open(), so that ... Add safer_close(), that will die (with the filename) if the close fails. p4raw-id: //depot/perl@33539
* Rename safer_rename() to rename_if_different(), to accurately describeNicholas Clark2008-03-151-11/+9
| | | | | | | | | | | | | what it does. Use File::Compare rather than Digest::MD5, as the files are small enough to simply read in. (File::Compare dates from 5.004) Remove safer_rename_always(), which isn't used. DRY by replacing the cargo-culted "open or die" with a new function safer_open(), which uses Gensym (5.002) to create an anonymous file handle, and opens and binmodes the file, or dies. This necessitates replacing bareword file handles with lexicals in all the callers. Correct the names of files in close or die constructions. p4raw-id: //depot/perl@33538
* Re: [patch] refine make regen to be more selectiveJim Cromie2008-03-151-5/+9
| | | | | | Message-ID: <47D720CE.7060004@gmail.com> Date: Tue, 11 Mar 2008 18:16:14 -0600 p4raw-id: //depot/perl@33537
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-0/+5
| | | | | | | | | | | | 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
* Re: [Fwd: Smoke [5.9.5] 31775 FAIL(m) OSF1 V5.1 (EV6/4 cpu)]Jarkko Hietaniemi2007-09-041-0/+2
| | | | | | | | Message-ID: <46DC3C7B.9000602@iki.fi> Message-ID: <46DC3C7B.9000602@iki.fi> Add { } to keep all variable declarations at the start of blocks. p4raw-id: //depot/perl@31789
* misc blead stuffJarkko Hietaniemi2007-08-301-5/+3
| | | | | Message-ID: <46D617B5.3000002@iki.fi> p4raw-id: //depot/perl@31765
* Integrate:Jan Dubois2007-02-121-3/+3
| | | | | | | | | | | | | | | | | | | [ 24458] Fix from Steve Peters [ 24464] Subject: RE: 5.8.7-tobe fails to compile on AIX 4.3.3 From: "Jan Dubois" <jand@ActiveState.com> Message-Id: <200505131921.j4DJLgG5007986@smtp3.ActiveState.com> and then regenerate reentr.h, with the , no longer inside REENTR_MEMZERO(). This keeps macros looking like functions. p4raw-link: @24464 on //depot/maint-5.8/perl: 65af2a75d112159ec53912329b2e01abfb9a3fb4 p4raw-link: @24458 on //depot/maint-5.8/perl: ef0ef25c116d419e8978d636281fda0a90743c2a p4raw-id: //depot/perl@30235 p4raw-integrated: from //depot/maint-5.8/perl@24464 'edit in' reentr.pl (@24458..)
* Add 2007 copyrights in a few more .pl files thatRafael Garcia-Suarez2007-01-061-2/+2
| | | | | generate code (thanks to Jarkko) p4raw-id: //depot/perl@29704
* Change reentr.pl to generate reentr.h accordingly to change 29209Rafael Garcia-Suarez2006-11-061-0/+3
| | | p4raw-id: //depot/perl@29210
* Re: reentr reshuffleJarkko Hietaniemi2006-09-281-2/+2
| | | | | Message-ID: <451BAEE1.1070509@iki.fi> p4raw-id: //depot/perl@28898
* reentr reshuffleJarkko Hietaniemi2006-09-281-3/+25
| | | | | Message-ID: <451B9874.7060000@iki.fi> p4raw-id: //depot/perl@28896
* Re: Change 28877: [PATCH] deal with some gcc warningsJarkko Hietaniemi2006-09-251-1/+1
| | | | | | | | 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-1/+1
| | | | | Message-ID: <45122C6F.9080904@iki.fi> p4raw-id: //depot/perl@28877
* The previous change causes compile failures with threaded Perls.Steve Peters2006-08-231-5/+0
| | | p4raw-id: //depot/perl@28750
* Part of one of Jarkko's g++ patches that was missed.Steve Peters2006-08-221-0/+5
| | | p4raw-id: //depot/perl@28749
* Clear up a few more warnings from blead.Steve Peters2006-07-131-0/+2
| | | p4raw-id: //depot/perl@28565
* Happy New Year. (It's not just embed.pl).Nicholas Clark2006-01-021-2/+2
| | | p4raw-id: //depot/perl@26572
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-3/+3
| | | | | | | | Message-ID: <42CC3CE9.5050606@divsol.com> (reverted all dual-lived modules since they must work with older perls too so must wait for a new Devel::PPPort) p4raw-id: //depot/perl@25101
* a long /etc/groups entry could cause memory exhaustion.Dave Mitchell2005-07-051-1/+1
| | | | | | | Too small a buffer would cause ERANGE and a retry with double the buffer size. later at EOF, the apparent error got 'stuck' as ERANGE rather than ENOENT, so the buffer size doubled recursively p4raw-id: //depot/perl@25084
* Stop reentr.pl changing EOL on the files it writes on Win32Steve Hay2005-07-041-0/+3
| | | p4raw-id: //depot/perl@25059
* reentr.pl should be using regen_lib.pl and unlinking files before itNicholas Clark2005-06-091-0/+7
| | | | | starts. p4raw-id: //depot/perl@24774
* perl 5.9.x (@ 24471): Symbian updateJarkko Hietaniemi2005-05-171-1/+1
| | | | | | | | Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D793@esebe105.NOE.Nokia.com> completed by: Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D7A0@esebe105.NOE.Nokia.com> p4raw-id: //depot/perl@24492
* Include vim/emacs modelines in generated files to open themRafael Garcia-Suarez2005-05-111-4/+8
| | | | | | in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
* Re: [PATCH] reentr.h changes so threaded Perl's compile on OpenBSD 3.7Steve Peters2005-05-101-2/+20
| | | | | Message-Id: <20050510174413.GA19686@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24441
* Symbian port of PerlJarkko Hietaniemi2005-04-211-1/+1
| | | | | Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D653@esebe105.NOE.Nokia.com> p4raw-id: //depot/perl@24271
* cast to/from (void *) in the re-entrant code. Now watch the smoke rise.Nicholas Clark2005-04-061-10/+10
| | | p4raw-id: //depot/perl@24176
* Add comment to top of reentr.c and fix typos in other filesDave Mitchell2004-08-011-2/+8
| | | p4raw-id: //depot/perl@23180
* reentr.pl is not defining _srandom_structJan Dubois2003-11-051-1/+1
| | | | | Message-Id: <45igqvsus3hr8bno3si087j5qnrqvn79bf@4ax.com> p4raw-id: //depot/perl@21660
* Re: [PATCH 5.8.1] make reentr.[ch] compatible with 5.8.0 againJan Dubois2003-11-031-5/+4
| | | | | Message-ID: <8dqbqvg16ln2r807l1l2c905lh7hte303v@4ax.com> p4raw-id: //depot/perl@21645
* Detecting errors of reentrant APIs: getgrgid_r and the likeJarkko Hietaniemi2003-04-281-4/+12
| | | | | | | | | | when returning an int can either return the error in the return value or in the errno. We need a new per-interp variable to store the return value instead of clobbering the errno with it. The new variable, PL_reentrant_retint, is only used within the reentrancy framework, and immediately after it's set, so there should not be similar visibility issues as for the errno. Spotted by Edward Moy. p4raw-id: //depot/perl@19357
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-2/+2
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* Integrate:Jarkko Hietaniemi2003-04-011-7/+12
| | | | | | | | | | [ 19119] Address "5.8.1@19053: crypt_r() takes 128K per thread". p4raw-link: @19119 on //depot/maint-5.8/perl: 5338c2bbd71426ba96ace22615fafeda3d05e36d p4raw-link: @19053 on //depot/maint-5.8/perl: dab75801826d3b09804fff099d3631e91578dcd1 p4raw-id: //depot/perl@19122 p4raw-integrated: from //depot/maint-5.8/perl@19121 'copy in' reentr.c reentr.h reentr.pl (@19106..) 'merge in' pp.c (@19045..)
* Integrate:Ilya Zakharevich2003-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ 19106] Subject: [PATCH 5.8.1 @19053] OS/2-related patches Message-ID: <20030331204337.GA3634@math.berkeley.edu> and regen Configure. p4raw-link: @19106 on //depot/maint-5.8/perl: 8257dec7ed17c0d4d721411d2a781ceadf724da5 p4raw-id: //depot/perl@19120 p4raw-edited: from //depot/maint-5.8/perl@19118 'edit in' embedvar.h (@18804..) p4raw-integrated: from //depot/maint-5.8/perl@19118 'copy in' os2/Makefile.SHs os2/OS2/ExtAttr/Changes os2/OS2/ExtAttr/ExtAttr.pm os2/OS2/PrfDB/Changes os2/OS2/PrfDB/PrfDB.pm os2/OS2/REXX/DLL/DLL.pm os2/OS2/REXX/REXX.pm os2/dl_os2.c os2/os2thread.h (@17645..) ext/threads/threads.xs (@18619..) perlio.c (@18948..) Makefile.SH (@19061..) 'ignore' embed.pl (@18872..) embed.h (@19011..) embed.fnc (@19030..) 'merge in' os2/os2ish.h (@17645..) os2/os2.c (@18347..) perlapi.h (@18804..) perlvars.h (@18808..) makedef.pl (@18896..) intrpvar.h (@18920..) sv.c (@18961..) p4raw-edited: from //depot/maint-5.8/perl@19106 'edit in' Configure (@19040..) p4raw-integrated: from //depot/maint-5.8/perl@19106 'copy in' reentr.h (@18850..) reentr.c reentr.pl (@18922..)
* Uid_t and Gid_t can easily be shorts and one cannotJarkko Hietaniemi2003-03-111-0/+8
| | | | | pull shorts off the va_args, int is the shortest (ahem). p4raw-id: //depot/perl@18919
* Couple more _r possibilities (found in a RH 8.0 box), andJarkko Hietaniemi2003-03-051-6/+24
| | | | | | the random() macros were all wrong. (I don't know why metaconfig did so much reordering of config_h.SH.) p4raw-id: //depot/perl@18831
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-2/+2
| | | p4raw-id: //depot/perl@18801
* Integrate changes #18422 and #18423 from maint-5.8.Rafael Garcia-Suarez2003-01-161-20/+15
| | | | | | | | | | | | | | | 18422 : Third Degree found a read of uninit memory (after setting grent_size with sysconf(), pwent_size was read). Also make the ERANGE/INVARG more consistent. 18423 : spent_size was still off. (As far as I can tell _SC_GETPW_R_SIZE_MAX is supposed to be used also for spents, not just pwents.) p4raw-link: @18422 on //depot/maint-5.8/perl: c45c44aa17d6498a967957363477eb572b803726 p4raw-id: //depot/perl@18498 p4raw-integrated: from //depot/maint-5.8/perl@18497 'copy in' reentr.h (@17645..) reentr.c reentr.pl (@18422..)
* No warn, just ERANGE (Was: Re: [PATCH] reentrant buffers)Jarkko Hietaniemi2002-10-111-23/+4
| | | | | Message-ID: <20021004131157.GD278184@lyta.hut.fi> p4raw-id: //depot/perl@17999
* reentrant buffersJarkko Hietaniemi2002-10-021-8/+53
| | | | | Message-ID: <20020926220856.GA339120@lyta.hut.fi> p4raw-id: //depot/perl@17967
* #17775 changed reentr.c instead of reentr.pl, which generates itHugo van der Sanden2002-08-261-0/+2
| | | p4raw-id: //depot/perl@17781
* Document better what the foo_r_proto are supposed to be.Jarkko Hietaniemi2002-05-201-0/+6
| | | p4raw-id: //depot/perl@16711
* Document reentr.pl a bit better. Still ratherJarkko Hietaniemi2002-05-141-196/+222
| | | | | convoluted code, but it ain't broken, so... p4raw-id: //depot/perl@16590
* Avoid potentially empty struct.Jarkko Hietaniemi2002-05-141-0/+1
| | | p4raw-id: //depot/perl@16588
* metaconfig unit linting.Jarkko Hietaniemi2002-05-091-5/+8
| | | p4raw-id: //depot/perl@16525
* Simplify the _r probing code by adding the i_systimeJarkko Hietaniemi2002-04-141-22/+25
| | | | | only for the APIs where it matters. p4raw-id: //depot/perl@15910
* Remove false dependency between getgrent and setpwentJarkko Hietaniemi2002-04-091-40/+47
| | | | | | having/not having FILE**. Also make the names of the {set,get,end}* interface struct members a bit shorter. p4raw-id: //depot/perl@15831