summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-09-05 22:32:05 -0300
committerBrian Fraser <fraserbn@gmail.com>2013-09-21 08:47:41 -0300
commitb232556246c5d4d98797058f8d4e64774c234a69 (patch)
tree182d762ef669704e05135602b7e00e600bb3cc00 /util.c
parentda1c03c4433ea55e5bff07372128bcbb974c03a7 (diff)
downloadperl-b232556246c5d4d98797058f8d4e64774c234a69.tar.gz
Removed DUMP_FDS and dump_fds()
If perl was compiled with -DDUMP_FDS, it would define dump_fds and add it to the API, although even then nothing used it. dump_fds() itself was buggy, only checking for fds 0 through 32.
Diffstat (limited to 'util.c')
-rw-r--r--util.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/util.c b/util.c
index 6a499f188a..1e3b3b98e2 100644
--- a/util.c
+++ b/util.c
@@ -2507,25 +2507,6 @@ Perl_my_fork(void)
#endif /* HAS_FORK */
}
-#ifdef DUMP_FDS
-void
-Perl_dump_fds(pTHX_ const char *const s)
-{
- int fd;
- Stat_t tmpstatbuf;
-
- PERL_ARGS_ASSERT_DUMP_FDS;
-
- PerlIO_printf(Perl_debug_log,"%s", s);
- for (fd = 0; fd < 32; fd++) {
- if (PerlLIO_fstat(fd,&tmpstatbuf) >= 0)
- PerlIO_printf(Perl_debug_log," %d",fd);
- }
- PerlIO_printf(Perl_debug_log,"\n");
- return;
-}
-#endif /* DUMP_FDS */
-
#ifndef HAS_DUP2
int
dup2(int oldfd, int newfd)