This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Detecting errors of reentrant APIs: getgrgid_r and the like
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Apr 2003 06:32:47 +0000 (06:32 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Apr 2003 06:32:47 +0000 (06:32 +0000)
commit0891a229ed34cb34ddb76f1813dcb76d39a174fb
tree20ad4c23e4db58d98bc0b4a4f3ff7bb7b94f520c
parent15f0f28a65432bb5e8f8e84f9d63806555182655
Detecting errors of reentrant APIs: getgrgid_r and the like
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
embedvar.h
intrpvar.h
perlapi.h
reentr.c
reentr.h
reentr.pl