/* Non-blocking I/O for pipe or socket descriptors.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <errno.h>
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
-/* Native Woe32 API. */
+/* Native Windows API. */
# include <sys/ioctl.h>
# include <sys/socket.h>
# include <unistd.h>
-/* Get declarations of the Win32 API functions. */
+/* Get declarations of the native Windows API functions. */
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
return -1;
}
else
- /* Win32 does not support non-blocking on regular files. */
+ /* The native Windows API does not support non-blocking on regular
+ files. */
return 0;
}
}
else
{
- /* Win32 does not support non-blocking on regular files. */
+ /* The native Windows API does not support non-blocking on regular
+ files. */
if (!value)
return 0;
errno = ENOTSUP;