summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-02 15:20:57 -0600
committerKarl Williamson <khw@cpan.org>2022-05-09 06:42:29 -0600
commit8e1434e1a40194e9b09ec9b092690dab81e55dc5 (patch)
treebcb6bc27f497f4c507952df1141b959ad617ae46 /util.c
parent5aae66637e18faf5dc1ed0459b4d9e6a8861b5ee (diff)
downloadperl-8e1434e1a40194e9b09ec9b092690dab81e55dc5.tar.gz
perlapi: Document my_popen, my_pclose
Diffstat (limited to 'util.c')
-rw-r--r--util.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/util.c b/util.c
index 6e1faed64a..b67a79bf62 100644
--- a/util.c
+++ b/util.c
@@ -2818,6 +2818,17 @@ Perl_my_popen_list(pTHX_ const char *mode, int n, SV **args)
/* VMS' my_popen() is in VMS.c, same with OS/2 and AmigaOS 4. */
#if (!defined(DOSISH) || defined(HAS_FORK)) && !defined(VMS) && !defined(__LIBCATAMOUNT__) && !defined(__amigaos4__)
+
+/*
+=for apidoc_section $io
+=for apidoc my_popen
+
+A wrapper for the C library L<popen(3)>. Don't use the latter, as the Perl
+version knows things that interact with the rest of the perl interpreter.
+
+=cut
+*/
+
PerlIO *
Perl_my_popen(pTHX_ const char *cmd, const char *mode)
{
@@ -3252,6 +3263,17 @@ Perl_rsignal_restore(pTHX_ int signo, Sigsave_t *save)
#endif /* !PERL_MICRO */
/* VMS' my_pclose() is in VMS.c */
+
+/*
+=for apidoc_section $io
+=for apidoc my_pclose
+
+A wrapper for the C library L<pclose(3)>. Don't use the latter, as the Perl
+version knows things that interact with the rest of the perl interpreter.
+
+=cut
+*/
+
#if (!defined(DOSISH) || defined(HAS_FORK)) && !defined(VMS) && !defined(__LIBCATAMOUNT__) && !defined(__amigaos4__)
I32
Perl_my_pclose(pTHX_ PerlIO *ptr)