| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This now replaces occurrences of the non re-entrant versions of these
two functions with the reentrant ones.
|
|
|
|
|
| |
Commit 727613455d53416b197154b7b3cad20fe26372bb failed to regenerate
reentr.c after changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prior to this commit, the code in this function had generic variables,
like p0, and malloc'd them using void *, and then cast to what it
thought were the proper types. This was failing on solaris g++, because
of the stricter casting rules in C++.
This commit actually simplifies the code, by getting rid of the generic
stuff, and for each group of related functions, declares the appropriate
names for the variables, and mallocs them using the correct type as
expressed in the __DATA__ section of regen/reentr.pl. The casting is
eliminated, except for one case for gethostbyaddr(). Tony Cook pointed
out that the 2001 POSIX standard used a type name for this that may be
shorter than Size_t. This could be a potential issue, but not on the
platforms tested as of now.
And this fixes #17482, so works where the previous didn't.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This has never worked to increase the buffer size if necessary.
Apparently the default has always been big enough. But this commit
fixes it to retry if too small.
I don't think there is a way to write tests for this. getspnam is
called only as a small part of pp_gpwent, and is not part of the API,
and is called only when run as root.
I did test it on my box, with gdb, starting with a buffer size of 1, and
single stepping and observing that it works as I expected.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The parameter to this function is a string containing the name of the
wrapped function. Prior to this commit, it was assumed, without
checking, that PL_op->op_type corresponded to this name. This
assumption can't be always correct because at least one of the wrapped
functions doesn't have an op, getspnam. That means it never would have
worked for that function to increase its buffer size. When I was
examining this some years ago (and didn't follow up until now), ISTR
that there were other cases where the correspondence was wrong, but I
couldn't reproduce that now.
There is no easy conversion from string to OP code, but there is from
string to keyword number. This commit changes to use that conversion
function, and switches based on the keyword number. A later commit
fixes getspnam.
|
|
|
|
|
|
|
|
| |
I changed the preprocessor directive indentation to make it easier to
grasp the nesting levels, and added blank lines for readability.
Some of the changes are for future commits that will remove some
nesting.
|
| |
|
|
|
|
|
|
| |
Configure goes to the trouble of finding the parameter types that the
gethostbyFOO functions use, but reentr.pl was ignoring this, causing
compilation failures on at least Solaris.
|
| |
|
|
|
|
|
|
|
|
| |
RT #130841
Setting it before Renew can cause problems if the Renew fails.
Required 'make regen'.
|
|
|
|
|
| |
(Note: the p.260 is my best estimate since I don't have
the same edition as tchrist)
|
| |
|
|
|
|
| |
Namely, Android.
|
|
|
|
|
| |
Removing this should mean that metaconfig will remove the units from
the built Configure
|
|
|
|
|
| |
Remove either unused dTHXes, or remove dTHXes where a nocontext func can
be used instead. Smaller/faster machine code is the result.
|
|
|
|
|
|
|
|
|
| |
Previously all the scripts in regen/ had code to generate header comments
(buffer-read-only, "do not edit this file", and optionally regeneration
script, regeneration data, copyright years and filename).
This change results in some minor reformatting of header blocks, and
standardises the copyright line as "Larry Wall and others".
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Message-ID: <46D617B5.3000002@iki.fi>
p4raw-id: //depot/perl@31765
|
|
|
| |
p4raw-id: //depot/perl@29747
|
|
|
| |
p4raw-id: //depot/perl@28897
|
|
|
|
|
|
|
|
| |
Message-ID: <45175CA4.3020900@iki.fi>
remove casts that were causing failure on FreeBSD -Duse64bitint, and
some other cleanups.
p4raw-id: //depot/perl@28886
|
|
|
|
|
| |
Message-ID: <45122C6F.9080904@iki.fi>
p4raw-id: //depot/perl@28877
|
|
|
| |
p4raw-id: //depot/perl@28565
|
|
|
|
|
|
|
|
| |
that might contain non printable chars.
Subject: Re: [PATCH]: fix: [perl #39583] Pattern Match fails for specific length string
Message-ID: <9b18b3110607051140n10c211a1jf17d3b7914d6f68b@mail.gmail.com>
p4raw-id: //depot/perl@28490
|
|
|
| |
p4raw-id: //depot/perl@28480
|
|
|
|
|
| |
Message-ID: <20060110054243.GA26165@petdance.com>
p4raw-id: //depot/perl@26764
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D793@esebe105.NOE.Nokia.com>
completed by:
Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D7A0@esebe105.NOE.Nokia.com>
p4raw-id: //depot/perl@24492
|
|
|
|
|
|
| |
in read-only mode. Make vi modelines compatible with non-vim
vi versions.
p4raw-id: //depot/perl@24445
|
|
|
| |
p4raw-id: //depot/perl@24442
|
|
|
| |
p4raw-id: //depot/perl@24176
|
|
|
| |
p4raw-id: //depot/perl@23180
|
|
|
|
|
| |
Message-Id: <45igqvsus3hr8bno3si087j5qnrqvn79bf@4ax.com>
p4raw-id: //depot/perl@21660
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
| |
[ 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..)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 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..)
|
|
|
|
|
| |
pull shorts off the va_args, int is the shortest (ahem).
p4raw-id: //depot/perl@18919
|
|
|
| |
p4raw-id: //depot/perl@18801
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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..)
|
|
|
|
|
| |
Message-ID: <20021004131157.GD278184@lyta.hut.fi>
p4raw-id: //depot/perl@17999
|
|
|
|
|
| |
Message-ID: <20020926220856.GA339120@lyta.hut.fi>
p4raw-id: //depot/perl@17967
|
|
|
|
|
|
| |
From: "mls@suse.de (via RT)" <perlbug@perl.org>
Message-Id: <rt-16729-35555.9.25145891475907@bugs6.perl.org>
p4raw-id: //depot/perl@17775
|
|
|
|
|
|
| |
having/not having FILE**. Also make the names of the
{set,get,end}* interface struct members a bit shorter.
p4raw-id: //depot/perl@15831
|
|
|
|
|
| |
Message-Id: <200203291119.g2TBJwqB016888@vran.herceg.de>
p4raw-id: //depot/perl@15595
|
|
|
|
|
|
|
| |
Message-Id: <20020322173246.SOLG27460.mailoutvl21@[192.168.139.30]>
(plus use 4k instead 2k as the "usual" size)
p4raw-id: //depot/perl@15423
|
|
|
|
|
| |
The buffer will keep doubling until 64k.
p4raw-id: //depot/perl@15272
|