"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/poll.c" between
le-1.16.5.tar.gz and le-1.16.6.tar.gz

About: le is a terminal text editor (many block operations with stream and rectangular blocks, tunable syntax highlighting, etc.).

poll.c  (le-1.16.5):poll.c  (le-1.16.6)
/* Emulation for poll(2) /* Emulation for poll(2)
Contributed by Paolo Bonzini. Contributed by Paolo Bonzini.
Copyright 2001-2003, 2006-2017 Free Software Foundation, Inc. Copyright 2001-2003, 2006-2019 Free Software Foundation, Inc.
This file is part of gnulib. This file is part of gnulib.
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option) the Free Software Foundation; either version 3, or (at your option)
any later version. any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License along You should have received a copy of the GNU General Public License along
with this program; if not, see <http://www.gnu.org/licenses/>. */ with this program; if not, see <https://www.gnu.org/licenses/>. */
/* Tell gcc not to warn about the (nfd < 0) tests, below. */ /* Tell gcc not to warn about the (nfd < 0) tests, below. */
#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ #if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
# pragma GCC diagnostic ignored "-Wtype-limits" # pragma GCC diagnostic ignored "-Wtype-limits"
#endif #endif
#include <config.h> #include <config.h>
#include <alloca.h> #include <alloca.h>
#include <sys/types.h> #include <sys/types.h>
/* Specification. */ /* Specification. */
#include <poll.h> #include <poll.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
# define WINDOWS_NATIVE # define WINDOWS_NATIVE
# include <winsock2.h> # include <winsock2.h>
# include <windows.h> # include <windows.h>
# include <io.h> # include <io.h>
# include <stdio.h> # include <stdio.h>
# include <conio.h> # include <conio.h>
# if GNULIB_MSVC_NOTHROW # if GNULIB_MSVC_NOTHROW
# include "msvc-nothrow.h" # include "msvc-nothrow.h"
# else # else
# include <io.h> # include <io.h>
skipping to change at line 87 skipping to change at line 87
#ifdef WINDOWS_NATIVE #ifdef WINDOWS_NATIVE
/* Here we need the recv() function from Windows, that takes a SOCKET as /* Here we need the recv() function from Windows, that takes a SOCKET as
first argument, not any possible gnulib override. */ first argument, not any possible gnulib override. */
# undef recv # undef recv
/* Here we need the select() function from Windows, because we pass bit masks /* Here we need the select() function from Windows, because we pass bit masks
of SOCKETs, not bit masks of FDs. */ of SOCKETs, not bit masks of FDs. */
# undef select # undef select
/* Avoid warnings from gcc -Wcast-function-type. */
# define GetProcAddress \
(void *) GetProcAddress
static BOOL IsConsoleHandle (HANDLE h) static BOOL IsConsoleHandle (HANDLE h)
{ {
DWORD mode; DWORD mode;
return GetConsoleMode (h, &mode) != 0; return GetConsoleMode (h, &mode) != 0;
} }
static BOOL static BOOL
IsSocketHandle (HANDLE h) IsSocketHandle (HANDLE h)
{ {
WSANETWORKEVENTS ev; WSANETWORKEVENTS ev;
 End of changes. 4 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)