# HG changeset patch # User Bruno Haible # Date 1552553364 -3600 # Node ID 5a52ef2d47724a191333ea13d23cf33a8e37b405 # Parent fab7ce42e03ffaf3450ba30f6bb7bac96ccbadcd all: Update URLs to msdn.microsoft.com. * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com was moved to docs.microsoft.com. diff -r fab7ce42e03f -r 5a52ef2d4772 ChangeLog --- a/ChangeLog Wed Mar 13 20:00:53 2019 +0100 +++ b/ChangeLog Thu Mar 14 09:49:24 2019 +0100 @@ -1,3 +1,9 @@ +2019-03-14 Bruno Haible + + all: Update URLs to msdn.microsoft.com. + * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com + was moved to docs.microsoft.com. + 2019-03-13 Bruno Haible gnulib-tool: Clarify the coding style. diff -r fab7ce42e03f -r 5a52ef2d4772 doc/acl-resources.txt --- a/doc/acl-resources.txt Wed Mar 13 20:00:53 2019 +0100 +++ b/doc/acl-resources.txt Thu Mar 14 09:49:24 2019 +0100 @@ -511,9 +511,9 @@ Introduction: https://helgeklein.com/blog/2009/03/permissions-a-primer-or-dacl-sacl-owner-sid-and-ace-explained/ Manual pages: - https://msdn.microsoft.com/en-us/library/aa374872.aspx - https://msdn.microsoft.com/en-us/library/aa446659.aspx - https://msdn.microsoft.com/en-us/library/aa374931.aspx + https://docs.microsoft.com/en-us/windows/desktop/SecAuthZ/access-control-lists + https://docs.microsoft.com/en-us/windows/desktop/SecAuthZ/getting-information-from-an-acl + https://docs.microsoft.com/en-us/windows/desktop/api/winnt/ns-winnt-_acl https://en.wikipedia.org/wiki/Cacls Library: ? diff -r fab7ce42e03f -r 5a52ef2d4772 doc/ld-output-def.texi --- a/doc/ld-output-def.texi Wed Mar 13 20:00:53 2019 +0100 +++ b/doc/ld-output-def.texi Thu Mar 14 09:49:24 2019 +0100 @@ -15,7 +15,8 @@ @itemize @bullet @item Use DUMPBIN /EXPORTS. -This is explained in @url{https://support.microsoft.com/kb/131313/en-us}. +This is explained in +@url{https://docs.microsoft.com/en-us/cpp/build/reference/dash-exports}. The tool does not generate DEF files directly, so its output needs to be post processed manually: @smallexample diff -r fab7ce42e03f -r 5a52ef2d4772 doc/windows-stat-timespec.texi --- a/doc/windows-stat-timespec.texi Wed Mar 13 20:00:53 2019 +0100 +++ b/doc/windows-stat-timespec.texi Thu Mar 14 09:49:24 2019 +0100 @@ -10,4 +10,4 @@ Note: On some types of file systems, the timestamp resolution is limited by the file system. For example, on FAT file systems, @code{st_mtim} only has a resolution of 2 seconds. For more details, see -@url{https://msdn.microsoft.com/en-us/library/ms724290.aspx}. +@url{https://docs.microsoft.com/en-us/windows/desktop/SysInfo/file-times}. diff -r fab7ce42e03f -r 5a52ef2d4772 lib/clean-temp.c --- a/lib/clean-temp.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/clean-temp.c Thu Mar 14 09:49:24 2019 +0100 @@ -580,7 +580,7 @@ OSVERSIONINFO v; /* According to - + this structure must be initialized as follows: */ v.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); diff -r fab7ce42e03f -r 5a52ef2d4772 lib/ctime.c --- a/lib/ctime.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/ctime.c Thu Mar 14 09:49:24 2019 +0100 @@ -31,7 +31,7 @@ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - + - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. diff -r fab7ce42e03f -r 5a52ef2d4772 lib/getprogname.c --- a/lib/getprogname.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/getprogname.c Thu Mar 14 09:49:24 2019 +0100 @@ -70,7 +70,7 @@ p = "?"; return last_component (p); # elif HAVE_DECL___ARGV /* mingw, MSVC */ - /* https://msdn.microsoft.com/en-us/library/dn727674.aspx */ + /* https://docs.microsoft.com/en-us/cpp/c-runtime-library/argc-argv-wargv */ const char *p = __argv && __argv[0] ? __argv[0] : "?"; return last_component (p); # elif HAVE_VAR___PROGNAME /* OpenBSD, Android, QNX */ diff -r fab7ce42e03f -r 5a52ef2d4772 lib/gettimeofday.c --- a/lib/gettimeofday.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/gettimeofday.c Thu Mar 14 09:49:24 2019 +0100 @@ -72,10 +72,10 @@ /* On native Windows, there are two ways to get the current time: GetSystemTimeAsFileTime - + or GetSystemTimePreciseAsFileTime - . + . GetSystemTimeAsFileTime produces values that jump by increments of 15.627 milliseconds (!) on average. Whereas GetSystemTimePreciseAsFileTime values usually jump by 1 or 2 @@ -92,7 +92,7 @@ GetSystemTimeAsFileTime (¤t_time); /* Convert from FILETIME to 'struct timeval'. */ - /* FILETIME: */ + /* FILETIME: */ ULONGLONG since_1601 = ((ULONGLONG) current_time.dwHighDateTime << 32) | (ULONGLONG) current_time.dwLowDateTime; diff -r fab7ce42e03f -r 5a52ef2d4772 lib/localename.c --- a/lib/localename.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/localename.c Thu Mar 14 09:49:24 2019 +0100 @@ -2296,8 +2296,8 @@ } return "wen"; case LANG_SOTHO: - /* calls - it "Sesotho sa Leboa"; according to + /* + calls it "Sesotho sa Leboa"; according to it's the same as Northern Sotho. */ diff -r fab7ce42e03f -r 5a52ef2d4772 lib/localtime.c --- a/lib/localtime.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/localtime.c Thu Mar 14 09:49:24 2019 +0100 @@ -34,7 +34,7 @@ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - + - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. diff -r fab7ce42e03f -r 5a52ef2d4772 lib/mktime.c --- a/lib/mktime.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/mktime.c Thu Mar 14 09:49:24 2019 +0100 @@ -72,7 +72,7 @@ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - + - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. diff -r fab7ce42e03f -r 5a52ef2d4772 lib/msvc-inval.h --- a/lib/msvc-inval.h Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/msvc-inval.h Thu Mar 14 09:49:24 2019 +0100 @@ -95,7 +95,7 @@ /* Gnulib can define its own status codes, as described in the page "Raising Software Exceptions" on microsoft.com - . + . Our status codes are composed of - 0xE0000000, mandatory for all user-defined status codes, - 0x474E550, a API identifier ("GNU"), @@ -106,7 +106,7 @@ # if defined _MSC_VER /* A compiler that supports __try/__except, as described in the page "try-except statement" on microsoft.com - . + . With __try/__except, we can use the multithread-safe exception handling. */ # ifdef __cplusplus diff -r fab7ce42e03f -r 5a52ef2d4772 lib/pathmax.h --- a/lib/pathmax.h Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/pathmax.h Thu Mar 14 09:49:24 2019 +0100 @@ -68,7 +68,7 @@ # if defined _WIN32 && ! defined __CYGWIN__ /* The page "Naming Files, Paths, and Namespaces" on msdn.microsoft.com, section "Maximum Path Length Limitation", - + explains that the maximum size of a filename, including the terminating NUL byte, is 260 = 3 + 256 + 1. This is the same value as diff -r fab7ce42e03f -r 5a52ef2d4772 lib/stat-time.h --- a/lib/stat-time.h Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/stat-time.h Thu Mar 14 09:49:24 2019 +0100 @@ -171,7 +171,7 @@ #elif defined _WIN32 && ! defined __CYGWIN__ /* Native Windows platforms (but not Cygwin) put the "file creation time" in st_ctime (!). See - . */ + . */ # if _GL_WINDOWS_STAT_TIMESPEC t = st->st_ctim; # else diff -r fab7ce42e03f -r 5a52ef2d4772 lib/stat-w32.c --- a/lib/stat-w32.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/stat-w32.c Thu Mar 14 09:49:24 2019 +0100 @@ -80,7 +80,7 @@ _gl_convert_FILETIME_to_timespec (const FILETIME *ft) { struct timespec result; - /* FILETIME: */ + /* FILETIME: */ unsigned long long since_1601 = ((unsigned long long) ft->dwHighDateTime << 32) | (unsigned long long) ft->dwLowDateTime; @@ -104,7 +104,7 @@ time_t _gl_convert_FILETIME_to_POSIX (const FILETIME *ft) { - /* FILETIME: */ + /* FILETIME: */ unsigned long long since_1601 = ((unsigned long long) ft->dwHighDateTime << 32) | (unsigned long long) ft->dwLowDateTime; @@ -128,7 +128,7 @@ _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf) { /* GetFileType - */ + */ DWORD type = GetFileType (h); if (type == FILE_TYPE_DISK) { @@ -137,16 +137,16 @@ /* st_mode can be determined through GetFileAttributesEx - - + + or through GetFileInformationByHandle - - + + or through GetFileInformationByHandleEx with argument FileBasicInfo - - + + The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ BY_HANDLE_FILE_INFORMATION info; if (! GetFileInformationByHandle (h, &info)) @@ -162,12 +162,12 @@ #if _GL_WINDOWS_STAT_INODES /* st_ino can be determined through GetFileInformationByHandle - - + + as 64 bits, or through GetFileInformationByHandleEx with argument FileIdInfo - - + + as 128 bits. The latter requires -D_WIN32_WINNT=_WIN32_WINNT_WIN8 or higher. */ /* Experiments show that GetFileInformationByHandleEx does not provide @@ -238,11 +238,11 @@ If the file name is already known, use it. Otherwise, for non-empty files, it can be determined through GetFinalPathNameByHandle - + or through GetFileInformationByHandleEx with argument FileNameInfo - - + + Both require -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ if (info.nFileSizeHigh > 0 || info.nFileSizeLow > 0) { @@ -277,12 +277,12 @@ /* st_nlink can be determined through GetFileInformationByHandle - - + + or through GetFileInformationByHandleEx with argument FileStandardInfo - - + + The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ buf->st_nlink = (info.nNumberOfLinks > SHRT_MAX ? SHRT_MAX : info.nNumberOfLinks); @@ -295,19 +295,19 @@ /* st_size can be determined through GetFileSizeEx - + or through GetFileAttributesEx - - + + or through GetFileInformationByHandle - - + + or through GetFileInformationByHandleEx with argument FileStandardInfo - - + + The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ if (sizeof (buf->st_size) <= 4) /* Range check already done above. */ @@ -317,19 +317,19 @@ /* st_atime, st_mtime, st_ctime can be determined through GetFileTime - + or through GetFileAttributesEx - - + + or through GetFileInformationByHandle - - + + or through GetFileInformationByHandleEx with argument FileBasicInfo - - + + The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ #if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim = _gl_convert_FILETIME_to_timespec (&info.ftLastAccessTime); diff -r fab7ce42e03f -r 5a52ef2d4772 lib/stat.c --- a/lib/stat.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/stat.c Thu Mar 14 09:49:24 2019 +0100 @@ -111,7 +111,7 @@ */ /* XXX Should we convert to wchar_t* and prepend '\\?\', in order to work around length limitations - ? */ + ? */ /* POSIX specifies: "More than two leading characters shall be treated as @@ -194,8 +194,8 @@ /* Open a handle to the file. CreateFile - - */ + + */ HANDLE h = CreateFile (rname, FILE_READ_ATTRIBUTES, @@ -236,13 +236,13 @@ /* Get the details about the directory entry. This can be done through FindFirstFile - - + + or through FindFirstFileEx with argument FindExInfoBasic - - - */ + + + */ WIN32_FIND_DATA info; HANDLE h = FindFirstFile (rname, &info); if (h == INVALID_HANDLE_VALUE) diff -r fab7ce42e03f -r 5a52ef2d4772 lib/strftime-fixes.c --- a/lib/strftime-fixes.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/strftime-fixes.c Thu Mar 14 09:49:24 2019 +0100 @@ -31,7 +31,7 @@ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - + - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. diff -r fab7ce42e03f -r 5a52ef2d4772 lib/sys_socket.in.h --- a/lib/sys_socket.in.h Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/sys_socket.in.h Thu Mar 14 09:49:24 2019 +0100 @@ -169,7 +169,7 @@ code may not run on older Windows releases then. My Windows 2000 box was not able to run the code, for example. The situation is slightly confusing because - + suggests that getaddrinfo should be available on all Windows releases. */ diff -r fab7ce42e03f -r 5a52ef2d4772 lib/tmpfile.c --- a/lib/tmpfile.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/tmpfile.c Thu Mar 14 09:49:24 2019 +0100 @@ -67,7 +67,7 @@ OSVERSIONINFO v; /* According to - + this structure must be initialized as follows: */ v.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); diff -r fab7ce42e03f -r 5a52ef2d4772 lib/tzset.c --- a/lib/tzset.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/tzset.c Thu Mar 14 09:49:24 2019 +0100 @@ -44,7 +44,7 @@ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - + - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. @@ -68,8 +68,8 @@ _putenv ("TZ="); /* On native Windows, tzset() is deprecated. Use _tzset() instead. See - https://msdn.microsoft.com/en-us/library/ms235451.aspx - https://msdn.microsoft.com/en-us/library/90s5c885.aspx */ + + */ _tzset (); #elif HAVE_TZSET tzset (); diff -r fab7ce42e03f -r 5a52ef2d4772 lib/utime.c --- a/lib/utime.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/utime.c Thu Mar 14 09:49:24 2019 +0100 @@ -83,8 +83,8 @@ /* Open a handle to the file. CreateFile - - */ + + */ HANDLE handle = CreateFile (rname, FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES, @@ -105,7 +105,7 @@ if (check_dir) { /* GetFileAttributes - */ + */ DWORD attributes = GetFileAttributes (rname); if (attributes == INVALID_FILE_ATTRIBUTES) { @@ -125,18 +125,18 @@ { /* Use SetFileTime(). See - - */ + + */ FILETIME last_access_time; FILETIME last_write_time; if (ts == NULL) { /* GetSystemTimeAsFileTime is the same as GetSystemTime followed by SystemTimeToFileTime. - . + . It would be overkill to use GetSystemTimePreciseAsFileTime - . */ + . */ FILETIME current_time; GetSystemTimeAsFileTime (¤t_time); last_access_time = current_time; diff -r fab7ce42e03f -r 5a52ef2d4772 lib/utimecmp.c --- a/lib/utimecmp.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/utimecmp.c Thu Mar 14 09:49:24 2019 +0100 @@ -49,7 +49,7 @@ enum { SYSCALL_RESOLUTION = 1 }; #elif defined _WIN32 && ! defined __CYGWIN__ /* On native Windows, file times have 100 ns resolution. See - */ + */ enum { SYSCALL_RESOLUTION = 100 }; #elif ((HAVE_FUTIMESAT || HAVE_WORKING_UTIMES) \ && (defined HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC \ diff -r fab7ce42e03f -r 5a52ef2d4772 lib/utimens.c --- a/lib/utimens.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/utimens.c Thu Mar 14 09:49:24 2019 +0100 @@ -288,8 +288,8 @@ #ifdef USE_SETFILETIME /* On native Windows, use SetFileTime(). See - - */ + + */ if (0 <= fd) { HANDLE handle; @@ -307,10 +307,10 @@ if (ts == NULL || ts[0].tv_nsec == UTIME_NOW || ts[1].tv_nsec == UTIME_NOW) { /* GetSystemTimeAsFileTime - . + . It would be overkill to use GetSystemTimePreciseAsFileTime - . */ + . */ GetSystemTimeAsFileTime (¤t_time); } diff -r fab7ce42e03f -r 5a52ef2d4772 lib/vasnprintf.c --- a/lib/vasnprintf.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/vasnprintf.c Thu Mar 14 09:49:24 2019 +0100 @@ -4917,7 +4917,7 @@ Windows Vista, the use of %n in format strings by default crashes the program. See and - + So we should avoid %n in this situation. */ fbp[1] = '\0'; # endif diff -r fab7ce42e03f -r 5a52ef2d4772 lib/wcsftime.c --- a/lib/wcsftime.c Wed Mar 13 20:00:53 2019 +0100 +++ b/lib/wcsftime.c Thu Mar 14 09:49:24 2019 +0100 @@ -32,7 +32,7 @@ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - + - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. diff -r fab7ce42e03f -r 5a52ef2d4772 m4/gethostname.m4 --- a/m4/gethostname.m4 Wed Mar 13 20:00:53 2019 +0100 +++ b/m4/gethostname.m4 Thu Mar 14 09:49:24 2019 +0100 @@ -1,4 +1,4 @@ -# gethostname.m4 serial 13 +# gethostname.m4 serial 14 dnl Copyright (C) 2002, 2008-2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -48,7 +48,7 @@ dnl - On most Unix systems, use MAXHOSTNAMELEN from instead. dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from instead. dnl - On mingw, use 256, because - dnl says: + dnl says: dnl "if a buffer of 256 bytes is passed in the name parameter and dnl the namelen parameter is set to 256, the buffer size will always dnl be adequate." diff -r fab7ce42e03f -r 5a52ef2d4772 tests/nap.h --- a/tests/nap.h Wed Mar 13 20:00:53 2019 +0100 +++ b/tests/nap.h Thu Mar 14 09:49:24 2019 +0100 @@ -67,7 +67,7 @@ #if defined _WIN32 || defined __CYGWIN__ /* On Windows, the modification times are not changed until NAP_FD is closed. See - https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx */ + */ close (nap_fd); nap_fd = open (TEMPFILE, O_RDWR, 0600); ASSERT (nap_fd != -1); diff -r fab7ce42e03f -r 5a52ef2d4772 tests/test-utimens-common.h --- a/tests/test-utimens-common.h Wed Mar 13 20:00:53 2019 +0100 +++ b/tests/test-utimens-common.h Thu Mar 14 09:49:24 2019 +0100 @@ -53,7 +53,7 @@ /* Skip ctime tests on native Windows, since it is either a copy of mtime or birth time (depending on the file system), rather than a properly tracked change time. See - . */ + . */ # define check_ctime 0 # else # define check_ctime 1