"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/stat-w32.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.).

stat-w32.c  (le-1.16.5):stat-w32.c  (le-1.16.6)
/* Core of implementation of fstat and stat for native Windows. /* Core of implementation of fstat and stat for native Windows.
Copyright (C) 2017 Free Software Foundation, Inc. Copyright (C) 2017-2019 Free Software Foundation, Inc.
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 of the License, or the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) 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 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/>. */
/* Written by Bruno Haible. */ /* Written by Bruno Haible. */
#include <config.h> #include <config.h>
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
/* Ensure that <windows.h> defines FILE_ID_INFO. */ /* Ensure that <windows.h> defines FILE_ID_INFO. */
#undef _WIN32_WINNT #undef _WIN32_WINNT
#define _WIN32_WINNT _WIN32_WINNT_WIN8 #define _WIN32_WINNT _WIN32_WINNT_WIN8
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <windows.h> #include <windows.h>
/* Specification. */ /* Specification. */
#include "stat-w32.h" #include "stat-w32.h"
#include "pathmax.h" #include "pathmax.h"
#include "verify.h" #include "verify.h"
/* Avoid warnings from gcc -Wcast-function-type. */
#define GetProcAddress \
(void *) GetProcAddress
#if _GL_WINDOWS_STAT_INODES == 2 #if _GL_WINDOWS_STAT_INODES == 2
/* GetFileInformationByHandleEx was introduced only in Windows Vista. */ /* GetFileInformationByHandleEx was introduced only in Windows Vista. */
typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile, typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile,
FILE_INFO_BY_HAND LE_CLASS fiClass, FILE_INFO_BY_HAND LE_CLASS fiClass,
LPVOID lpBuffer, LPVOID lpBuffer,
DWORD dwBufferSiz e); DWORD dwBufferSiz e);
static GetFileInformationByHandleExFuncType GetFileInformationByHandleExFunc = N ULL; static GetFileInformationByHandleExFuncType GetFileInformationByHandleExFunc = N ULL;
#endif #endif
/* GetFinalPathNameByHandle was introduced only in Windows Vista. */ /* GetFinalPathNameByHandle was introduced only in Windows Vista. */
typedef DWORD (WINAPI * GetFinalPathNameByHandleFuncType) (HANDLE hFile, typedef DWORD (WINAPI * GetFinalPathNameByHandleFuncType) (HANDLE hFile,
 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)