summaryrefslogtreecommitdiff
path: root/lib/IO/Async/OS/cygwin.pm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-06-01 14:15:30 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-06-01 14:15:30 +0000
commit1425eea04dd872dc6313f5315f317b2de288037c (patch)
treef81c74f75429e829714029850f89ee4c7f13aa39 /lib/IO/Async/OS/cygwin.pm
downloadIO-Async-tarball-master.tar.gz
Diffstat (limited to 'lib/IO/Async/OS/cygwin.pm')
-rw-r--r--lib/IO/Async/OS/cygwin.pm40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/IO/Async/OS/cygwin.pm b/lib/IO/Async/OS/cygwin.pm
new file mode 100644
index 0000000..630bf9a
--- /dev/null
+++ b/lib/IO/Async/OS/cygwin.pm
@@ -0,0 +1,40 @@
+# You may distribute under the terms of either the GNU General Public License
+# or the Artistic License (the same terms as Perl itself)
+#
+# (C) Paul Evans, 2013 -- leonerd@leonerd.org.uk
+
+package IO::Async::OS::cygwin;
+
+use strict;
+use warnings;
+
+our $VERSION = '0.67';
+
+our @ISA = qw( IO::Async::OS::_Base );
+
+# Cygwin almost needs no hinting above the POSIX-like base, except that its
+# emulation of poll() isn't quite perfect. It needs POLLPRI
+use constant HAVE_POLL_CONNECT_POLLPRI => 1;
+
+# Also select() only reports connect() failures by evec, not wvec
+use constant HAVE_SELECT_CONNECT_EVEC => 1;
+
+=head1 NAME
+
+C<IO::Async::OS::cygwin> - operating system abstractions on C<cygwin> for C<IO::Async>
+
+=head1 DESCRIPTION
+
+This module contains OS support code for C<cygwin>.
+
+See instead L<IO::Async::OS>.
+
+=cut
+
+=head1 AUTHOR
+
+Paul Evans <leonerd@leonerd.org.uk>
+
+=cut
+
+0x55AA;