Merge from Gnulib

This incorporates:
2018-01-05 maint: Add encoding marker for Emacs to non-ASCII sources
2018-01-04 update-copyright: Handle use of ©
2018-01-04 pthread_sigmask: Avoid compilation error on mingw
2018-01-02 stat-time: silence -Wunused-parameter regression
* build-aux/config.guess, build-aux/config.sub:
* build-aux/update-copyright, doc/misc/texinfo.tex, lib/gnulib.mk.in:
* lib/md5.c, lib/md5.h, lib/sha1.c, lib/sha1.h, lib/sha256.c:
* lib/sha256.h, lib/sha512.c, lib/sha512.h, lib/signal.in.h:
* lib/stat-time.h: Copy from Gnulib, or regenerate.
This commit is contained in:
Paul Eggert 2018-01-09 15:21:44 -08:00
parent 9e4d523427
commit 7668717d6f
15 changed files with 73 additions and 16 deletions

View file

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name. # Attempt to guess a canonical system name.
# Copyright 1992-2018 Free Software Foundation, Inc. # Copyright 1992-2018 Free Software Foundation, Inc.
timestamp='2017-12-17' timestamp='2018-01-01'
# This file is free software; you can redistribute it and/or modify it # This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
@ -50,7 +50,7 @@ version="\
GNU config.guess ($timestamp) GNU config.guess ($timestamp)
Originally written by Per Bothner. Originally written by Per Bothner.
Copyright 1992-2017 Free Software Foundation, Inc. Copyright 1992-2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

View file

@ -2,7 +2,7 @@
# Configuration validation subroutine script. # Configuration validation subroutine script.
# Copyright 1992-2018 Free Software Foundation, Inc. # Copyright 1992-2018 Free Software Foundation, Inc.
timestamp='2017-11-23' timestamp='2018-01-01'
# This file is free software; you can redistribute it and/or modify it # This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
@ -67,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\ version="\
GNU config.sub ($timestamp) GNU config.sub ($timestamp)
Copyright 1992-2017 Free Software Foundation, Inc. Copyright 1992-2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

View file

@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" "$@"'
if 0; if 0;
# Update an FSF copyright year list to include the current year. # Update an FSF copyright year list to include the current year.
my $VERSION = '2017-09-13.06:45'; # UTC my $VERSION = '2018-01-04.14:48'; # UTC
# Copyright (C) 2009-2018 Free Software Foundation, Inc. # Copyright (C) 2009-2018 Free Software Foundation, Inc.
# #
@ -81,6 +81,7 @@ my $VERSION = '2017-09-13.06:45'; # UTC
# B. (c) # B. (c)
# C. @copyright{} # C. @copyright{}
# D. &copy; # D. &copy;
# E. ©
# #
# 4. The "Copyright" appears at the beginning of a line, except that it # 4. The "Copyright" appears at the beginning of a line, except that it
# may be prefixed by any sequence (e.g., a comment) of no more than # may be prefixed by any sequence (e.g., a comment) of no more than
@ -124,7 +125,7 @@ use strict;
use warnings; use warnings;
my $copyright_re = 'Copyright'; my $copyright_re = 'Copyright';
my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|&copy;)'; my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|&copy;)';
my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER};
$holder ||= 'Free Software Foundation, Inc.'; $holder ||= 'Free Software Foundation, Inc.';
my $prefix_max = 5; my $prefix_max = 5;
@ -263,7 +264,9 @@ else
print STDERR "$ARGV: warning: copyright statement not found\n"; print STDERR "$ARGV: warning: copyright statement not found\n";
} }
# Hey Emacs!
# Local variables: # Local variables:
# coding: utf-8
# mode: perl # mode: perl
# indent-tabs-mode: nil # indent-tabs-mode: nil
# eval: (add-hook 'write-file-hooks 'time-stamp) # eval: (add-hook 'write-file-hooks 'time-stamp)

View file

@ -5,7 +5,10 @@
% %
\def\texinfoversion{2017-12-26.21} \def\texinfoversion{2017-12-26.21}
% %
% Copyright 1985-1986, 1988, 1990-2018 Free Software Foundation, Inc. % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
% 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
% Free Software Foundation, Inc.
% %
% This texinfo.tex file is free software: you can redistribute it and/or % This texinfo.tex file is free software: you can redistribute it and/or
% modify it under the terms of the GNU General Public License as % modify it under the terms of the GNU General Public License as

View file

@ -945,7 +945,6 @@ pdfdir = @pdfdir@
prefix = @prefix@ prefix = @prefix@
program_transform_name = @program_transform_name@ program_transform_name = @program_transform_name@
psdir = @psdir@ psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@ sharedstatedir = @sharedstatedir@
srcdir = @srcdir@ srcdir = @srcdir@

View file

@ -469,3 +469,10 @@ md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
ctx->D = D; ctx->D = D;
} }
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -133,3 +133,10 @@ extern int __md5_stream (FILE *stream, void *resblock) __THROW;
# endif # endif
#endif /* md5.h */ #endif /* md5.h */
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -434,3 +434,10 @@ sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx)
} }
} }
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -98,3 +98,10 @@ extern int sha1_stream (FILE *stream, void *resblock);
# endif # endif
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -577,3 +577,10 @@ sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx)
} }
} }
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -101,3 +101,10 @@ extern int sha224_stream (FILE *stream, void *resblock);
# endif # endif
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -629,3 +629,10 @@ sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx)
} }
} }
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -104,3 +104,10 @@ extern int sha384_stream (FILE *stream, void *resblock);
# endif # endif
#endif #endif
/*
* Hey Emacs!
* Local Variables:
* coding: utf-8
* End:
*/

View file

@ -137,7 +137,7 @@ _GL_FUNCDECL_RPL (pthread_sigmask, int,
_GL_CXXALIAS_RPL (pthread_sigmask, int, _GL_CXXALIAS_RPL (pthread_sigmask, int,
(int how, const sigset_t *new_mask, sigset_t *old_mask)); (int how, const sigset_t *new_mask, sigset_t *old_mask));
# else # else
# if !@HAVE_PTHREAD_SIGMASK@ # if !(@HAVE_PTHREAD_SIGMASK@ || defined pthread_sigmask)
_GL_FUNCDECL_SYS (pthread_sigmask, int, _GL_FUNCDECL_SYS (pthread_sigmask, int,
(int how, const sigset_t *new_mask, sigset_t *old_mask)); (int how, const sigset_t *new_mask, sigset_t *old_mask));
# endif # endif

View file

@ -102,15 +102,13 @@ get_stat_mtime_ns (struct stat const *st)
/* Return the nanosecond component of *ST's birth time. */ /* Return the nanosecond component of *ST's birth time. */
_GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE
get_stat_birthtime_ns (struct stat const *st) get_stat_birthtime_ns (struct stat const *st _GL_UNUSED)
{ {
# if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
return STAT_TIMESPEC (st, st_birthtim).tv_nsec; return STAT_TIMESPEC (st, st_birthtim).tv_nsec;
# elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC
return STAT_TIMESPEC_NS (st, st_birthtim); return STAT_TIMESPEC_NS (st, st_birthtim);
# else # else
/* Avoid a "parameter unused" warning. */
(void) st;
return 0; return 0;
# endif # endif
} }
@ -160,7 +158,7 @@ get_stat_mtime (struct stat const *st)
/* Return *ST's birth time, if available; otherwise return a value /* Return *ST's birth time, if available; otherwise return a value
with tv_sec and tv_nsec both equal to -1. */ with tv_sec and tv_nsec both equal to -1. */
_GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE
get_stat_birthtime (struct stat const *st) get_stat_birthtime (struct stat const *st _GL_UNUSED)
{ {
struct timespec t; struct timespec t;
@ -184,8 +182,6 @@ get_stat_birthtime (struct stat const *st)
/* Birth time is not supported. */ /* Birth time is not supported. */
t.tv_sec = -1; t.tv_sec = -1;
t.tv_nsec = -1; t.tv_nsec = -1;
/* Avoid a "parameter unused" warning. */
(void) st;
#endif #endif
#if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \
@ -212,7 +208,7 @@ get_stat_birthtime (struct stat const *st)
errno to EOVERFLOW if normalization overflowed. This function errno to EOVERFLOW if normalization overflowed. This function
is intended to be private to this .h file. */ is intended to be private to this .h file. */
_GL_STAT_TIME_INLINE int _GL_STAT_TIME_INLINE int
stat_time_normalize (int result, struct stat *st) stat_time_normalize (int result, struct stat *st _GL_UNUSED)
{ {
#if defined __sun && defined STAT_TIMESPEC #if defined __sun && defined STAT_TIMESPEC
if (result == 0) if (result == 0)