This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make fileno() builtin work on directory handles
authorAaron Crane <arc@cpan.org>
Fri, 17 Oct 2014 15:59:22 +0000 (16:59 +0100)
committerAaron Crane <arc@cpan.org>
Sun, 7 Dec 2014 12:30:51 +0000 (12:30 +0000)
commit67f2cc757fdda0bee562f2f5899884d09ca382ef
treeb8a1c1ada6b3ad54f3882c3f525f2d9a10c9707f
parentfedf30e1c349130b23648c022f5f3cb4ad7928f3
Make fileno() builtin work on directory handles

This requires OS support in the form of either the dirfd() function, or a
dd_fd member in the DIR struct. POSIX.1-2008 specifies the former. If
neither is available, fileno() on a directory handle will return undef and
set errno.
pod/perldelta.pod
pod/perlfunc.pod
pp_sys.c
t/io/perlio.t