diff options
| author | Paul Eggert | 2018-01-09 15:21:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-01-09 15:22:37 -0800 |
| commit | 7668717d6fecd610d71b54a33708038b2ede8cce (patch) | |
| tree | cb635acfc8273c0adf5ef567e57de345244eb76f | |
| parent | 9e4d523427782ea4e49f4f13b2b99b09660516cc (diff) | |
| download | emacs-7668717d6fecd610d71b54a33708038b2ede8cce.tar.gz emacs-7668717d6fecd610d71b54a33708038b2ede8cce.zip | |
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.
| -rwxr-xr-x | build-aux/config.guess | 4 | ||||
| -rwxr-xr-x | build-aux/config.sub | 4 | ||||
| -rwxr-xr-x | build-aux/update-copyright | 7 | ||||
| -rw-r--r-- | doc/misc/texinfo.tex | 5 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 1 | ||||
| -rw-r--r-- | lib/md5.c | 7 | ||||
| -rw-r--r-- | lib/md5.h | 7 | ||||
| -rw-r--r-- | lib/sha1.c | 7 | ||||
| -rw-r--r-- | lib/sha1.h | 7 | ||||
| -rw-r--r-- | lib/sha256.c | 7 | ||||
| -rw-r--r-- | lib/sha256.h | 7 | ||||
| -rw-r--r-- | lib/sha512.c | 7 | ||||
| -rw-r--r-- | lib/sha512.h | 7 | ||||
| -rw-r--r-- | lib/signal.in.h | 2 | ||||
| -rw-r--r-- | lib/stat-time.h | 10 |
15 files changed, 73 insertions, 16 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess index 6be308dd9c7..588fe82a42a 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
| 3 | # Copyright 1992-2018 Free Software Foundation, Inc. | 3 | # Copyright 1992-2018 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | timestamp='2017-12-17' | 5 | timestamp='2018-01-01' |
| 6 | 6 | ||
| 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
| 8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by |
| @@ -50,7 +50,7 @@ version="\ | |||
| 50 | GNU config.guess ($timestamp) | 50 | GNU config.guess ($timestamp) |
| 51 | 51 | ||
| 52 | Originally written by Per Bothner. | 52 | Originally written by Per Bothner. |
| 53 | Copyright 1992-2017 Free Software Foundation, Inc. | 53 | Copyright 1992-2018 Free Software Foundation, Inc. |
| 54 | 54 | ||
| 55 | This is free software; see the source for copying conditions. There is NO | 55 | This is free software; see the source for copying conditions. There is NO |
| 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
diff --git a/build-aux/config.sub b/build-aux/config.sub index 9e84c010ecf..f2632cd8a2b 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
| 3 | # Copyright 1992-2018 Free Software Foundation, Inc. | 3 | # Copyright 1992-2018 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | timestamp='2017-11-23' | 5 | timestamp='2018-01-01' |
| 6 | 6 | ||
| 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
| 8 | # under the terms of the GNU General Public License as published by | 8 | # 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>." | |||
| 67 | version="\ | 67 | version="\ |
| 68 | GNU config.sub ($timestamp) | 68 | GNU config.sub ($timestamp) |
| 69 | 69 | ||
| 70 | Copyright 1992-2017 Free Software Foundation, Inc. | 70 | Copyright 1992-2018 Free Software Foundation, Inc. |
| 71 | 71 | ||
| 72 | This is free software; see the source for copying conditions. There is NO | 72 | This is free software; see the source for copying conditions. There is NO |
| 73 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 73 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 5b11e306cdc..3bb26abea1b 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright | |||
| @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" "$@"' | |||
| 3 | if 0; | 3 | if 0; |
| 4 | # Update an FSF copyright year list to include the current year. | 4 | # Update an FSF copyright year list to include the current year. |
| 5 | 5 | ||
| 6 | my $VERSION = '2017-09-13.06:45'; # UTC | 6 | my $VERSION = '2018-01-04.14:48'; # UTC |
| 7 | 7 | ||
| 8 | # Copyright (C) 2009-2018 Free Software Foundation, Inc. | 8 | # Copyright (C) 2009-2018 Free Software Foundation, Inc. |
| 9 | # | 9 | # |
| @@ -81,6 +81,7 @@ my $VERSION = '2017-09-13.06:45'; # UTC | |||
| 81 | # B. (c) | 81 | # B. (c) |
| 82 | # C. @copyright{} | 82 | # C. @copyright{} |
| 83 | # D. © | 83 | # D. © |
| 84 | # E. © | ||
| 84 | # | 85 | # |
| 85 | # 4. The "Copyright" appears at the beginning of a line, except that it | 86 | # 4. The "Copyright" appears at the beginning of a line, except that it |
| 86 | # may be prefixed by any sequence (e.g., a comment) of no more than | 87 | # may be prefixed by any sequence (e.g., a comment) of no more than |
| @@ -124,7 +125,7 @@ use strict; | |||
| 124 | use warnings; | 125 | use warnings; |
| 125 | 126 | ||
| 126 | my $copyright_re = 'Copyright'; | 127 | my $copyright_re = 'Copyright'; |
| 127 | my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©)'; | 128 | my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©|©)'; |
| 128 | my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; | 129 | my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; |
| 129 | $holder ||= 'Free Software Foundation, Inc.'; | 130 | $holder ||= 'Free Software Foundation, Inc.'; |
| 130 | my $prefix_max = 5; | 131 | my $prefix_max = 5; |
| @@ -263,7 +264,9 @@ else | |||
| 263 | print STDERR "$ARGV: warning: copyright statement not found\n"; | 264 | print STDERR "$ARGV: warning: copyright statement not found\n"; |
| 264 | } | 265 | } |
| 265 | 266 | ||
| 267 | # Hey Emacs! | ||
| 266 | # Local variables: | 268 | # Local variables: |
| 269 | # coding: utf-8 | ||
| 267 | # mode: perl | 270 | # mode: perl |
| 268 | # indent-tabs-mode: nil | 271 | # indent-tabs-mode: nil |
| 269 | # eval: (add-hook 'write-file-hooks 'time-stamp) | 272 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index b0179d6b007..1987c50ba26 100644 --- a/doc/misc/texinfo.tex +++ b/doc/misc/texinfo.tex | |||
| @@ -5,7 +5,10 @@ | |||
| 5 | % | 5 | % |
| 6 | \def\texinfoversion{2017-12-26.21} | 6 | \def\texinfoversion{2017-12-26.21} |
| 7 | % | 7 | % |
| 8 | % Copyright 1985-1986, 1988, 1990-2018 Free Software Foundation, Inc. | 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, |
| 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | ||
| 10 | % 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 | ||
| 11 | % Free Software Foundation, Inc. | ||
| 9 | % | 12 | % |
| 10 | % This texinfo.tex file is free software: you can redistribute it and/or | 13 | % This texinfo.tex file is free software: you can redistribute it and/or |
| 11 | % modify it under the terms of the GNU General Public License as | 14 | % modify it under the terms of the GNU General Public License as |
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index ee9e6bd12e1..71c01e3e2a2 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -945,7 +945,6 @@ pdfdir = @pdfdir@ | |||
| 945 | prefix = @prefix@ | 945 | prefix = @prefix@ |
| 946 | program_transform_name = @program_transform_name@ | 946 | program_transform_name = @program_transform_name@ |
| 947 | psdir = @psdir@ | 947 | psdir = @psdir@ |
| 948 | runstatedir = @runstatedir@ | ||
| 949 | sbindir = @sbindir@ | 948 | sbindir = @sbindir@ |
| 950 | sharedstatedir = @sharedstatedir@ | 949 | sharedstatedir = @sharedstatedir@ |
| 951 | srcdir = @srcdir@ | 950 | srcdir = @srcdir@ |
| @@ -469,3 +469,10 @@ md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx) | |||
| 469 | ctx->D = D; | 469 | ctx->D = D; |
| 470 | } | 470 | } |
| 471 | #endif | 471 | #endif |
| 472 | |||
| 473 | /* | ||
| 474 | * Hey Emacs! | ||
| 475 | * Local Variables: | ||
| 476 | * coding: utf-8 | ||
| 477 | * End: | ||
| 478 | */ | ||
| @@ -133,3 +133,10 @@ extern int __md5_stream (FILE *stream, void *resblock) __THROW; | |||
| 133 | # endif | 133 | # endif |
| 134 | 134 | ||
| 135 | #endif /* md5.h */ | 135 | #endif /* md5.h */ |
| 136 | |||
| 137 | /* | ||
| 138 | * Hey Emacs! | ||
| 139 | * Local Variables: | ||
| 140 | * coding: utf-8 | ||
| 141 | * End: | ||
| 142 | */ | ||
diff --git a/lib/sha1.c b/lib/sha1.c index 89a0f71e203..ce0f0b2e71f 100644 --- a/lib/sha1.c +++ b/lib/sha1.c | |||
| @@ -434,3 +434,10 @@ sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx) | |||
| 434 | } | 434 | } |
| 435 | } | 435 | } |
| 436 | #endif | 436 | #endif |
| 437 | |||
| 438 | /* | ||
| 439 | * Hey Emacs! | ||
| 440 | * Local Variables: | ||
| 441 | * coding: utf-8 | ||
| 442 | * End: | ||
| 443 | */ | ||
diff --git a/lib/sha1.h b/lib/sha1.h index 62c507bbdf0..b1db15da1e7 100644 --- a/lib/sha1.h +++ b/lib/sha1.h | |||
| @@ -98,3 +98,10 @@ extern int sha1_stream (FILE *stream, void *resblock); | |||
| 98 | # endif | 98 | # endif |
| 99 | 99 | ||
| 100 | #endif | 100 | #endif |
| 101 | |||
| 102 | /* | ||
| 103 | * Hey Emacs! | ||
| 104 | * Local Variables: | ||
| 105 | * coding: utf-8 | ||
| 106 | * End: | ||
| 107 | */ | ||
diff --git a/lib/sha256.c b/lib/sha256.c index 2f28fcd7100..85405b20fdf 100644 --- a/lib/sha256.c +++ b/lib/sha256.c | |||
| @@ -577,3 +577,10 @@ sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) | |||
| 577 | } | 577 | } |
| 578 | } | 578 | } |
| 579 | #endif | 579 | #endif |
| 580 | |||
| 581 | /* | ||
| 582 | * Hey Emacs! | ||
| 583 | * Local Variables: | ||
| 584 | * coding: utf-8 | ||
| 585 | * End: | ||
| 586 | */ | ||
diff --git a/lib/sha256.h b/lib/sha256.h index ca06691241a..e3449864bb6 100644 --- a/lib/sha256.h +++ b/lib/sha256.h | |||
| @@ -101,3 +101,10 @@ extern int sha224_stream (FILE *stream, void *resblock); | |||
| 101 | # endif | 101 | # endif |
| 102 | 102 | ||
| 103 | #endif | 103 | #endif |
| 104 | |||
| 105 | /* | ||
| 106 | * Hey Emacs! | ||
| 107 | * Local Variables: | ||
| 108 | * coding: utf-8 | ||
| 109 | * End: | ||
| 110 | */ | ||
diff --git a/lib/sha512.c b/lib/sha512.c index d6a8ce181a1..8a6dd4e83ac 100644 --- a/lib/sha512.c +++ b/lib/sha512.c | |||
| @@ -629,3 +629,10 @@ sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx) | |||
| 629 | } | 629 | } |
| 630 | } | 630 | } |
| 631 | #endif | 631 | #endif |
| 632 | |||
| 633 | /* | ||
| 634 | * Hey Emacs! | ||
| 635 | * Local Variables: | ||
| 636 | * coding: utf-8 | ||
| 637 | * End: | ||
| 638 | */ | ||
diff --git a/lib/sha512.h b/lib/sha512.h index 516e75b3013..6a0aadba02f 100644 --- a/lib/sha512.h +++ b/lib/sha512.h | |||
| @@ -104,3 +104,10 @@ extern int sha384_stream (FILE *stream, void *resblock); | |||
| 104 | # endif | 104 | # endif |
| 105 | 105 | ||
| 106 | #endif | 106 | #endif |
| 107 | |||
| 108 | /* | ||
| 109 | * Hey Emacs! | ||
| 110 | * Local Variables: | ||
| 111 | * coding: utf-8 | ||
| 112 | * End: | ||
| 113 | */ | ||
diff --git a/lib/signal.in.h b/lib/signal.in.h index 483413dc7f5..7d4927b828e 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h | |||
| @@ -137,7 +137,7 @@ _GL_FUNCDECL_RPL (pthread_sigmask, int, | |||
| 137 | _GL_CXXALIAS_RPL (pthread_sigmask, int, | 137 | _GL_CXXALIAS_RPL (pthread_sigmask, int, |
| 138 | (int how, const sigset_t *new_mask, sigset_t *old_mask)); | 138 | (int how, const sigset_t *new_mask, sigset_t *old_mask)); |
| 139 | # else | 139 | # else |
| 140 | # if !@HAVE_PTHREAD_SIGMASK@ | 140 | # if !(@HAVE_PTHREAD_SIGMASK@ || defined pthread_sigmask) |
| 141 | _GL_FUNCDECL_SYS (pthread_sigmask, int, | 141 | _GL_FUNCDECL_SYS (pthread_sigmask, int, |
| 142 | (int how, const sigset_t *new_mask, sigset_t *old_mask)); | 142 | (int how, const sigset_t *new_mask, sigset_t *old_mask)); |
| 143 | # endif | 143 | # endif |
diff --git a/lib/stat-time.h b/lib/stat-time.h index 5f8bf4e126f..104f5376682 100644 --- a/lib/stat-time.h +++ b/lib/stat-time.h | |||
| @@ -102,15 +102,13 @@ get_stat_mtime_ns (struct stat const *st) | |||
| 102 | 102 | ||
| 103 | /* Return the nanosecond component of *ST's birth time. */ | 103 | /* Return the nanosecond component of *ST's birth time. */ |
| 104 | _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE | 104 | _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE |
| 105 | get_stat_birthtime_ns (struct stat const *st) | 105 | get_stat_birthtime_ns (struct stat const *st _GL_UNUSED) |
| 106 | { | 106 | { |
| 107 | # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC | 107 | # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC |
| 108 | return STAT_TIMESPEC (st, st_birthtim).tv_nsec; | 108 | return STAT_TIMESPEC (st, st_birthtim).tv_nsec; |
| 109 | # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC | 109 | # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC |
| 110 | return STAT_TIMESPEC_NS (st, st_birthtim); | 110 | return STAT_TIMESPEC_NS (st, st_birthtim); |
| 111 | # else | 111 | # else |
| 112 | /* Avoid a "parameter unused" warning. */ | ||
| 113 | (void) st; | ||
| 114 | return 0; | 112 | return 0; |
| 115 | # endif | 113 | # endif |
| 116 | } | 114 | } |
| @@ -160,7 +158,7 @@ get_stat_mtime (struct stat const *st) | |||
| 160 | /* Return *ST's birth time, if available; otherwise return a value | 158 | /* Return *ST's birth time, if available; otherwise return a value |
| 161 | with tv_sec and tv_nsec both equal to -1. */ | 159 | with tv_sec and tv_nsec both equal to -1. */ |
| 162 | _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE | 160 | _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE |
| 163 | get_stat_birthtime (struct stat const *st) | 161 | get_stat_birthtime (struct stat const *st _GL_UNUSED) |
| 164 | { | 162 | { |
| 165 | struct timespec t; | 163 | struct timespec t; |
| 166 | 164 | ||
| @@ -184,8 +182,6 @@ get_stat_birthtime (struct stat const *st) | |||
| 184 | /* Birth time is not supported. */ | 182 | /* Birth time is not supported. */ |
| 185 | t.tv_sec = -1; | 183 | t.tv_sec = -1; |
| 186 | t.tv_nsec = -1; | 184 | t.tv_nsec = -1; |
| 187 | /* Avoid a "parameter unused" warning. */ | ||
| 188 | (void) st; | ||
| 189 | #endif | 185 | #endif |
| 190 | 186 | ||
| 191 | #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ | 187 | #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ |
| @@ -212,7 +208,7 @@ get_stat_birthtime (struct stat const *st) | |||
| 212 | errno to EOVERFLOW if normalization overflowed. This function | 208 | errno to EOVERFLOW if normalization overflowed. This function |
| 213 | is intended to be private to this .h file. */ | 209 | is intended to be private to this .h file. */ |
| 214 | _GL_STAT_TIME_INLINE int | 210 | _GL_STAT_TIME_INLINE int |
| 215 | stat_time_normalize (int result, struct stat *st) | 211 | stat_time_normalize (int result, struct stat *st _GL_UNUSED) |
| 216 | { | 212 | { |
| 217 | #if defined __sun && defined STAT_TIMESPEC | 213 | #if defined __sun && defined STAT_TIMESPEC |
| 218 | if (result == 0) | 214 | if (result == 0) |