diff options
author | David Mitchell <davem@iabyn.com> | 2010-07-03 14:24:11 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2010-07-03 16:25:59 +0100 |
commit | 0d7d409d8d92b77ed7de5b74ab047eced86edfc3 (patch) | |
tree | fe3c9d84e4283e03a927b8ed309abc3415be8d31 /mathoms.c | |
parent | 79a8d5295c08d08001ca69256d5a990d05ee1556 (diff) | |
download | perl-0d7d409d8d92b77ed7de5b74ab047eced86edfc3.tar.gz |
add my_[l]stat_flags(); make my_[l]stat() mathoms
my_stat() and my_lstat() call get magic on the stack arg, so create _flags()
variants that allow us to control this. (I can't just change the signature
or the mg_get() behaviour since my_[l]stat() are listed as being in the
public API, even though they're undocumented.)
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -78,6 +78,8 @@ PERL_CALLCONV int Perl_magic_setglob(pTHX_ SV* sv, MAGIC* mg); PERL_CALLCONV AV * Perl_newAV(pTHX); PERL_CALLCONV HV * Perl_newHV(pTHX); PERL_CALLCONV IO * Perl_newIO(pTHX); +PERL_CALLCONV I32 Perl_my_stat(pTHX); +PERL_CALLCONV I32 Perl_my_lstat(pTHX); /* ref() is now a macro using Perl_doref; * this version provided for binary compatibility only. @@ -1519,6 +1521,18 @@ Perl_newIO(pTHX) return MUTABLE_IO(newSV_type(SVt_PVIO)); } +I32 +Perl_my_stat(pTHX) +{ + return my_stat_flags(SV_GMAGIC); +} + +I32 +Perl_my_lstat(pTHX) +{ + return my_lstat_flags(SV_GMAGIC); +} + #endif /* NO_MATHOMS */ /* |