X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fnonblocking.c;h=95d77362d4bf2b0506f7581659d9d95ea470c93c;hb=e7086a9a301ffcfef17edbcba9e7c0312c33f7a8;hp=9f7bce916f2762f8b54a4ee2a4e67ecddb1af993;hpb=70a72e0f50411ccc776379a761725d8c8bec58a3;p=gnulib.git diff --git a/lib/nonblocking.c b/lib/nonblocking.c index 9f7bce916..95d77362d 100644 --- a/lib/nonblocking.c +++ b/lib/nonblocking.c @@ -1,5 +1,5 @@ /* 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 @@ -22,16 +22,18 @@ #include #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -/* Native Woe32 API. */ +/* Native Windows API. */ # include # include # include -/* Get declarations of the Win32 API functions. */ +/* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include +# include "msvc-nothrow.h" + int get_nonblocking_flag (int desc) { @@ -54,7 +56,8 @@ get_nonblocking_flag (int desc) 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; } @@ -100,7 +103,8 @@ set_nonblocking_flag (int desc, bool value) } 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;