diff options
author | Karl Williamson <khw@cpan.org> | 2023-03-01 08:14:34 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2023-03-02 10:05:59 -0700 |
commit | 23cd30579a4eb2bf637e54408630220da0416463 (patch) | |
tree | 5c3ee11f2c5459ebeed0cfe1ef3fc2a9c369d803 /proto.h | |
parent | 4940da71bfb17387e5554b8f9e74be089d8eb45d (diff) | |
download | perl-23cd30579a4eb2bf637e54408630220da0416463.tar.gz |
mg.c: Split out functionality to a seprate function
This commit creates a function that gets the extended errno on systems
(such as VMS and Windows) that have that, returning plain errno on
systems that don't. Previously this code was interweaved into code with
a larger purpose. The splitting makes it possible for other code that
just wants the errno to get it.
The new function is callable from elsewhere in core, but remains private
for now. In principal it could be documented and made public if needed.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1218,6 +1218,11 @@ Perl_get_deprecated_property_msg(const Size_t warning_offset) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_GET_DEPRECATED_PROPERTY_MSG +PERL_CALLCONV int +Perl_get_extended_os_errno(void) + __attribute__visibility__("hidden"); +#define PERL_ARGS_ASSERT_GET_EXTENDED_OS_ERRNO + PERL_CALLCONV void Perl_get_hash_seed(pTHX_ unsigned char * const seed_buffer) __attribute__visibility__("hidden"); |