summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-11 11:03:22 -0600
committerKarl Williamson <khw@cpan.org>2022-06-06 09:48:20 -0600
commit8fb00d81c651444f86819211e596369926243c56 (patch)
tree1f5de699253d5e2584f27ae0da348f3e8c26c5a8 /perl.c
parent4f543aad70244227c131116b06122aa9dccd40b7 (diff)
downloadperl-8fb00d81c651444f86819211e596369926243c56.tar.gz
perlapi: Document my_failure_exit()
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 254577e91d..b5fe79e8b8 100644
--- a/perl.c
+++ b/perl.c
@@ -5227,6 +5227,19 @@ Perl_my_exit(pTHX_ U32 status)
my_exit_jump();
}
+/*
+=for apidoc my_failure_exit
+
+Exit the running Perl process with an error.
+
+On non-VMS platforms, this is essentially equivalen to L</C<my_exit>>, using
+C<errno>, but forces an en error code of 255 if C<errno> is 0.
+
+On VMS, it takes care to set the expected exit error return variables.
+
+=cut
+*/
+
void
Perl_my_failure_exit(pTHX)
{