diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-09-05 22:32:05 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2013-09-21 08:47:41 -0300 |
commit | b232556246c5d4d98797058f8d4e64774c234a69 (patch) | |
tree | 182d762ef669704e05135602b7e00e600bb3cc00 /util.c | |
parent | da1c03c4433ea55e5bff07372128bcbb974c03a7 (diff) | |
download | perl-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.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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) |