version 1.1.1.2, 2012/05/29 09:29:43
|
version 1.1.1.3, 2021/03/17 13:38:46
|
Line 1
|
Line 1
|
/* POSIX compatible FILE stream write function. |
/* POSIX compatible FILE stream write function. |
Copyright (C) 2008-2011 Free Software Foundation, Inc. | Copyright (C) 2008-2019 Free Software Foundation, Inc. |
Written by Bruno Haible <bruno@clisp.org>, 2008. |
Written by Bruno Haible <bruno@clisp.org>, 2008. |
|
|
This program is free software: you can redistribute it and/or modify |
This program is free software: you can redistribute it and/or modify |
Line 13
|
Line 13
|
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 |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
|
|
#include <config.h> |
#include <config.h> |
|
|
Line 30
|
Line 30
|
error EINVAL. This write() function is at the basis of the function |
error EINVAL. This write() function is at the basis of the function |
which flushes the buffer of a FILE stream. */ |
which flushes the buffer of a FILE stream. */ |
|
|
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | # if defined _WIN32 && ! defined __CYGWIN__ |
|
|
# include <errno.h> |
# include <errno.h> |
# include <signal.h> |
# include <signal.h> |
Line 38
|
Line 38
|
|
|
# define WIN32_LEAN_AND_MEAN /* avoid including junk */ |
# define WIN32_LEAN_AND_MEAN /* avoid including junk */ |
# include <windows.h> |
# include <windows.h> |
|
|
|
# if GNULIB_MSVC_NOTHROW |
|
# include "msvc-nothrow.h" |
|
# else |
|
# include <io.h> |
|
# endif |
|
|
# if GNULIB_NONBLOCKING |
# if GNULIB_NONBLOCKING |
# define CLEAR_ERRNO \ |
# define CLEAR_ERRNO \ |