[ovs-dev] [PATCH v2 3/4] socket-util: poll() for Windows.
blp at nicira.com
Fri Feb 21 21:39:28 UTC 2014
On Fri, Feb 21, 2014 at 01:14:35PM -0800, Gurucharan Shetty wrote:
> +#ifndef _WIN32
> pfd.events = POLLOUT;
> + pfd.events = POLLWRNORM;
Does this mean that Windows has POLLWRNORM but not POLLOUT? POSIX
says they're equivalent, so we could either use POLLWRNORM everywhere
or just #define POLLOUT POLLWRNORM in poll-loop.h. I lean toward the
latter, since POLLOUT is more "idiomatic" in my experience.
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev