|
|
| No such thing as a small change | |
| PerlMonks |
Re: [OT]: How to do fileno() and Win32::APIFile::FdGetOsFHandle() in Cby Steve_p (Priest) |
| on Dec 14, 2006 at 19:24 UTC ( #589903=note: print w/ replies, xml ) | Need Help?? |
|
To see how fileno() in Perl works, take a quick look at the pp_fileno() function in pp_sys.c in the Perl source code. Assuming your filehandle isn't tied, the steps basically are:
Now, to get at Win32API::File::FdGetOsFHandle(), grep around the win32/ subdirectory for your answers. I'm afraid my Win32 skills aren't good enough to help you there. Test your modules with bleadperl! rsync -avz rsync://public.activestate.com/perl-current/ . ./Configure -des -Dusedevel -Dprefix=/path/to/test/perl make test make install Now, please test you modules! If you have test failures that don't happen with Perl 5.8.8, send a simplified test case to perlbug at perl.org
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||