diff options
| author | Paul Eggert | 2017-09-17 12:56:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-09-17 13:06:54 -0700 |
| commit | 6bbbc38b3421723521f7cdd4fd617a4fc889aceb (patch) | |
| tree | 9cc9d4cd249578118ae6b22da617935a760cc891 /lib | |
| parent | 57249fb297237bb942ead1f7a0af0ac20811a9cf (diff) | |
| download | emacs-6bbbc38b3421723521f7cdd4fd617a4fc889aceb.tar.gz emacs-6bbbc38b3421723521f7cdd4fd617a4fc889aceb.zip | |
Merge from Gnulib
This incorporates:
2017-09-16 manywarnings: port to GCC on 64-bit MS-Windows
2017-09-13 all: Replace many more http URLs by https URLs
* build-aux/config.guess, build-aux/config.sub:
* build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
* lib/allocator.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/dup2.c, lib/filevercmp.c:
* lib/fstatat.c, lib/fsync.c, lib/ftoastr.c, lib/ftoastr.h:
* lib/intprops.h, lib/signal.in.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/unistd.in.h, lib/utimens.c, m4/alloca.m4, m4/extern-inline.m4:
* m4/fstatat.m4, m4/gnulib-common.m4, m4/manywarnings.m4:
* m4/std-gnu11.m4, m4/sys_types_h.m4, m4/vararrays.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/allocator.h | 2 | ||||
| -rw-r--r-- | lib/count-leading-zeros.h | 3 | ||||
| -rw-r--r-- | lib/count-trailing-zeros.h | 3 | ||||
| -rw-r--r-- | lib/dup2.c | 2 | ||||
| -rw-r--r-- | lib/filevercmp.c | 2 | ||||
| -rw-r--r-- | lib/fstatat.c | 2 | ||||
| -rw-r--r-- | lib/fsync.c | 4 | ||||
| -rw-r--r-- | lib/ftoastr.c | 2 | ||||
| -rw-r--r-- | lib/ftoastr.h | 2 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 1 | ||||
| -rw-r--r-- | lib/intprops.h | 6 | ||||
| -rw-r--r-- | lib/signal.in.h | 2 | ||||
| -rw-r--r-- | lib/stdio-impl.h | 10 | ||||
| -rw-r--r-- | lib/stdio.in.h | 4 | ||||
| -rw-r--r-- | lib/unistd.in.h | 4 | ||||
| -rw-r--r-- | lib/utimens.c | 10 |
16 files changed, 31 insertions, 28 deletions
diff --git a/lib/allocator.h b/lib/allocator.h index 2ecbf1a3795..8f79d7435c3 100644 --- a/lib/allocator.h +++ b/lib/allocator.h | |||
| @@ -29,7 +29,7 @@ struct allocator | |||
| 29 | /* Do not use GCC attributes such as __attribute__ ((malloc)) with | 29 | /* Do not use GCC attributes such as __attribute__ ((malloc)) with |
| 30 | the function types pointed at by these members, because these | 30 | the function types pointed at by these members, because these |
| 31 | attributes do not work with pointers to functions. See | 31 | attributes do not work with pointers to functions. See |
| 32 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00007.html>. */ | 32 | <https://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00007.html>. */ |
| 33 | 33 | ||
| 34 | /* Call ALLOCATE to allocate memory, like 'malloc'. On failure ALLOCATE | 34 | /* Call ALLOCATE to allocate memory, like 'malloc'. On failure ALLOCATE |
| 35 | should return NULL, though not necessarily set errno. When given | 35 | should return NULL, though not necessarily set errno. When given |
diff --git a/lib/count-leading-zeros.h b/lib/count-leading-zeros.h index 1b60e28e7ff..c8b3dc05110 100644 --- a/lib/count-leading-zeros.h +++ b/lib/count-leading-zeros.h | |||
| @@ -70,7 +70,8 @@ _GL_INLINE_HEADER_BEGIN | |||
| 70 | COUNT_LEADING_ZEROS_INLINE int | 70 | COUNT_LEADING_ZEROS_INLINE int |
| 71 | count_leading_zeros_32 (unsigned int x) | 71 | count_leading_zeros_32 (unsigned int x) |
| 72 | { | 72 | { |
| 73 | /* http://graphics.stanford.edu/~seander/bithacks.html */ | 73 | /* <https://github.com/gibsjose/BitHacks> |
| 74 | <http://www.fit.vutbr.cz/~ibarina/pub/bithacks.pdf> */ | ||
| 74 | static const char de_Bruijn_lookup[32] = { | 75 | static const char de_Bruijn_lookup[32] = { |
| 75 | 31, 22, 30, 21, 18, 10, 29, 2, 20, 17, 15, 13, 9, 6, 28, 1, | 76 | 31, 22, 30, 21, 18, 10, 29, 2, 20, 17, 15, 13, 9, 6, 28, 1, |
| 76 | 23, 19, 11, 3, 16, 14, 7, 24, 12, 4, 8, 25, 5, 26, 27, 0 | 77 | 23, 19, 11, 3, 16, 14, 7, 24, 12, 4, 8, 25, 5, 26, 27, 0 |
diff --git a/lib/count-trailing-zeros.h b/lib/count-trailing-zeros.h index be7131429c1..9f9f07f5a0d 100644 --- a/lib/count-trailing-zeros.h +++ b/lib/count-trailing-zeros.h | |||
| @@ -68,7 +68,8 @@ _GL_INLINE_HEADER_BEGIN | |||
| 68 | COUNT_TRAILING_ZEROS_INLINE int | 68 | COUNT_TRAILING_ZEROS_INLINE int |
| 69 | count_trailing_zeros_32 (unsigned int x) | 69 | count_trailing_zeros_32 (unsigned int x) |
| 70 | { | 70 | { |
| 71 | /* http://graphics.stanford.edu/~seander/bithacks.html */ | 71 | /* <https://github.com/gibsjose/BitHacks> |
| 72 | <http://www.fit.vutbr.cz/~ibarina/pub/bithacks.pdf> */ | ||
| 72 | static const char de_Bruijn_lookup[32] = { | 73 | static const char de_Bruijn_lookup[32] = { |
| 73 | 0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8, | 74 | 0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8, |
| 74 | 31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9 | 75 | 31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9 |
diff --git a/lib/dup2.c b/lib/dup2.c index b89f83732fe..85c1a44401a 100644 --- a/lib/dup2.c +++ b/lib/dup2.c | |||
| @@ -88,7 +88,7 @@ ms_windows_dup2 (int fd, int desired_fd) | |||
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: | 90 | /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: |
| 91 | http://bugs.winehq.org/show_bug.cgi?id=21289 */ | 91 | https://bugs.winehq.org/show_bug.cgi?id=21289 */ |
| 92 | if (desired_fd < 0) | 92 | if (desired_fd < 0) |
| 93 | { | 93 | { |
| 94 | errno = EBADF; | 94 | errno = EBADF; |
diff --git a/lib/filevercmp.c b/lib/filevercmp.c index 56c9821e364..4026097b38e 100644 --- a/lib/filevercmp.c +++ b/lib/filevercmp.c | |||
| @@ -79,7 +79,7 @@ order (unsigned char c) | |||
| 79 | specification can be found in the Debian Policy Manual in the | 79 | specification can be found in the Debian Policy Manual in the |
| 80 | section on the 'Version' control field. This version of the code | 80 | section on the 'Version' control field. This version of the code |
| 81 | implements that from s5.6.12 of Debian Policy v3.8.0.1 | 81 | implements that from s5.6.12 of Debian Policy v3.8.0.1 |
| 82 | http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version */ | 82 | https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version */ |
| 83 | static int _GL_ATTRIBUTE_PURE | 83 | static int _GL_ATTRIBUTE_PURE |
| 84 | verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len) | 84 | verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len) |
| 85 | { | 85 | { |
diff --git a/lib/fstatat.c b/lib/fstatat.c index d09add037fa..67e48d95d71 100644 --- a/lib/fstatat.c +++ b/lib/fstatat.c | |||
| @@ -111,7 +111,7 @@ stat_func (char const *name, struct stat *st) | |||
| 111 | # endif | 111 | # endif |
| 112 | 112 | ||
| 113 | /* Replacement for Solaris' function by the same name. | 113 | /* Replacement for Solaris' function by the same name. |
| 114 | <http://www.google.com/search?q=fstatat+site:docs.sun.com> | 114 | <https://www.google.com/search?q=fstatat+site:docs.oracle.com> |
| 115 | First, try to simulate it via l?stat ("/proc/self/fd/FD/FILE"). | 115 | First, try to simulate it via l?stat ("/proc/self/fd/FD/FILE"). |
| 116 | Failing that, simulate it via save_cwd/fchdir/(stat|lstat)/restore_cwd. | 116 | Failing that, simulate it via save_cwd/fchdir/(stat|lstat)/restore_cwd. |
| 117 | If either the save_cwd or the restore_cwd fails (relatively unlikely), | 117 | If either the save_cwd or the restore_cwd fails (relatively unlikely), |
diff --git a/lib/fsync.c b/lib/fsync.c index a52e6642f91..c25f1db6575 100644 --- a/lib/fsync.c +++ b/lib/fsync.c | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | cross-compilers like MinGW. | 2 | cross-compilers like MinGW. |
| 3 | 3 | ||
| 4 | This is derived from sqlite3 sources. | 4 | This is derived from sqlite3 sources. |
| 5 | http://www.sqlite.org/cvstrac/rlog?f=sqlite/src/os_win.c | 5 | https://www.sqlite.org/src/finfo?name=src/os_win.c |
| 6 | http://www.sqlite.org/copyright.html | 6 | https://www.sqlite.org/copyright.html |
| 7 | 7 | ||
| 8 | Written by Richard W.M. Jones <rjones.at.redhat.com> | 8 | Written by Richard W.M. Jones <rjones.at.redhat.com> |
| 9 | 9 | ||
diff --git a/lib/ftoastr.c b/lib/ftoastr.c index 029e797b796..bcc79f03673 100644 --- a/lib/ftoastr.c +++ b/lib/ftoastr.c | |||
| @@ -108,7 +108,7 @@ FTOASTR (char *buf, size_t bufsize, int flags, int width, FLOAT x) | |||
| 108 | Andrysco M, Jhala R, Lerner S. Printing floating-point numbers: | 108 | Andrysco M, Jhala R, Lerner S. Printing floating-point numbers: |
| 109 | a faster, always correct method. ACM SIGPLAN notices - POPL '16. | 109 | a faster, always correct method. ACM SIGPLAN notices - POPL '16. |
| 110 | 2016;51(1):555-67 <http://dx.doi.org/10.1145/2914770.2837654>; draft at | 110 | 2016;51(1):555-67 <http://dx.doi.org/10.1145/2914770.2837654>; draft at |
| 111 | <http://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf>. */ | 111 | <https://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf>. */ |
| 112 | 112 | ||
| 113 | PROMOTED_FLOAT promoted_x = x; | 113 | PROMOTED_FLOAT promoted_x = x; |
| 114 | char format[sizeof "%-+ 0*.*Lg"]; | 114 | char format[sizeof "%-+ 0*.*Lg"]; |
diff --git a/lib/ftoastr.h b/lib/ftoastr.h index 3ee05a30335..f73712c9415 100644 --- a/lib/ftoastr.h +++ b/lib/ftoastr.h | |||
| @@ -96,7 +96,7 @@ enum | |||
| 96 | DIG digits. For why the "+ 1" is needed, see "Binary to Decimal | 96 | DIG digits. For why the "+ 1" is needed, see "Binary to Decimal |
| 97 | Conversion" in David Goldberg's paper "What Every Computer | 97 | Conversion" in David Goldberg's paper "What Every Computer |
| 98 | Scientist Should Know About Floating-Point Arithmetic" | 98 | Scientist Should Know About Floating-Point Arithmetic" |
| 99 | <http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>. */ | 99 | <https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>. */ |
| 100 | # define _GL_FLOAT_PREC_BOUND(dig) \ | 100 | # define _GL_FLOAT_PREC_BOUND(dig) \ |
| 101 | (INT_BITS_STRLEN_BOUND ((dig) * _GL_FLOAT_DIG_BITS_BOUND) + 1) | 101 | (INT_BITS_STRLEN_BOUND ((dig) * _GL_FLOAT_DIG_BITS_BOUND) + 1) |
| 102 | 102 | ||
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 9500871b162..d8afec40bc6 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -558,6 +558,7 @@ LIBGPM = @LIBGPM@ | |||
| 558 | LIBHESIOD = @LIBHESIOD@ | 558 | LIBHESIOD = @LIBHESIOD@ |
| 559 | LIBINTL = @LIBINTL@ | 559 | LIBINTL = @LIBINTL@ |
| 560 | LIBJPEG = @LIBJPEG@ | 560 | LIBJPEG = @LIBJPEG@ |
| 561 | LIBLCMS2 = @LIBLCMS2@ | ||
| 561 | LIBMODULES = @LIBMODULES@ | 562 | LIBMODULES = @LIBMODULES@ |
| 562 | LIBOBJS = @LIBOBJS@ | 563 | LIBOBJS = @LIBOBJS@ |
| 563 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ | 564 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ |
diff --git a/lib/intprops.h b/lib/intprops.h index 400ba5b9123..a34e81c7b5e 100644 --- a/lib/intprops.h +++ b/lib/intprops.h | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) | 26 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) |
| 27 | 27 | ||
| 28 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see | 28 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see |
| 29 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>. */ | 29 | <https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>. */ |
| 30 | #define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) | 30 | #define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) |
| 31 | 31 | ||
| 32 | /* The extra casts in the following macros work around compiler bugs, | 32 | /* The extra casts in the following macros work around compiler bugs, |
| @@ -179,7 +179,7 @@ | |||
| 179 | /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. | 179 | /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. |
| 180 | See above for restrictions. Avoid && and || as they tickle | 180 | See above for restrictions. Avoid && and || as they tickle |
| 181 | bugs in Sun C 5.11 2010/08/13 and other compilers; see | 181 | bugs in Sun C 5.11 2010/08/13 and other compilers; see |
| 182 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>. */ | 182 | <https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>. */ |
| 183 | #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ | 183 | #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ |
| 184 | ((b) < 0 \ | 184 | ((b) < 0 \ |
| 185 | ? ((a) < 0 \ | 185 | ? ((a) < 0 \ |
| @@ -443,7 +443,7 @@ | |||
| 443 | implementation-defined result or signal for values outside T's | 443 | implementation-defined result or signal for values outside T's |
| 444 | range. However, code that works around this theoretical problem | 444 | range. However, code that works around this theoretical problem |
| 445 | runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: | 445 | runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: |
| 446 | http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html | 446 | https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html |
| 447 | As the compiler bug is real, don't try to work around the | 447 | As the compiler bug is real, don't try to work around the |
| 448 | theoretical problem. */ | 448 | theoretical problem. */ |
| 449 | 449 | ||
diff --git a/lib/signal.in.h b/lib/signal.in.h index 1d8ebfa57e7..9c32b14962f 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h | |||
| @@ -200,7 +200,7 @@ typedef int verify_NSIG_constraint[NSIG <= 32 ? 1 : -1]; | |||
| 200 | /* When also using extern inline, suppress the use of static inline in | 200 | /* When also using extern inline, suppress the use of static inline in |
| 201 | standard headers of problematic Apple configurations, as Libc at | 201 | standard headers of problematic Apple configurations, as Libc at |
| 202 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., | 202 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., |
| 203 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | 203 | <https://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. |
| 204 | Perhaps Apple will fix this some day. */ | 204 | Perhaps Apple will fix this some day. */ |
| 205 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ | 205 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ |
| 206 | && (defined __i386__ || defined __x86_64__)) | 206 | && (defined __i386__ || defined __x86_64__)) |
diff --git a/lib/stdio-impl.h b/lib/stdio-impl.h index 0d606c19c84..8960333687e 100644 --- a/lib/stdio-impl.h +++ b/lib/stdio-impl.h | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ | 32 | /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ |
| 33 | 33 | ||
| 34 | # if defined __DragonFly__ /* DragonFly */ | 34 | # if defined __DragonFly__ /* DragonFly */ |
| 35 | /* See <http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdio/priv_stdio.h?rev=HEAD&content-type=text/x-cvsweb-markup>. */ | 35 | /* See <https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/lib/libc/stdio/priv_stdio.h>. */ |
| 36 | # define fp_ ((struct { struct __FILE_public pub; \ | 36 | # define fp_ ((struct { struct __FILE_public pub; \ |
| 37 | struct { unsigned char *_base; int _size; } _bf; \ | 37 | struct { unsigned char *_base; int _size; } _bf; \ |
| 38 | void *cookie; \ | 38 | void *cookie; \ |
| @@ -49,7 +49,7 @@ | |||
| 49 | fpos_t _offset; \ | 49 | fpos_t _offset; \ |
| 50 | /* More fields, not relevant here. */ \ | 50 | /* More fields, not relevant here. */ \ |
| 51 | } *) fp) | 51 | } *) fp) |
| 52 | /* See <http://www.dragonflybsd.org/cvsweb/src/include/stdio.h?rev=HEAD&content-type=text/x-cvsweb-markup>. */ | 52 | /* See <https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/include/stdio.h>. */ |
| 53 | # define _p pub._p | 53 | # define _p pub._p |
| 54 | # define _flags pub._flags | 54 | # define _flags pub._flags |
| 55 | # define _r pub._r | 55 | # define _r pub._r |
| @@ -60,7 +60,7 @@ | |||
| 60 | 60 | ||
| 61 | # if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __minix || defined __ANDROID__ /* NetBSD >= 1.5ZA, OpenBSD, Minix 3, Android */ | 61 | # if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __minix || defined __ANDROID__ /* NetBSD >= 1.5ZA, OpenBSD, Minix 3, Android */ |
| 62 | /* See <http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> | 62 | /* See <http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> |
| 63 | and <http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> */ | 63 | and <https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> */ |
| 64 | struct __sfileext | 64 | struct __sfileext |
| 65 | { | 65 | { |
| 66 | struct __sbuf _ub; /* ungetc buffer */ | 66 | struct __sbuf _ub; /* ungetc buffer */ |
| @@ -81,7 +81,7 @@ | |||
| 81 | #ifdef __TANDEM /* NonStop Kernel */ | 81 | #ifdef __TANDEM /* NonStop Kernel */ |
| 82 | # ifndef _IOERR | 82 | # ifndef _IOERR |
| 83 | /* These values were determined by the program 'stdioext-flags' at | 83 | /* These values were determined by the program 'stdioext-flags' at |
| 84 | <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ | 84 | <https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ |
| 85 | # define _IOERR 0x40 | 85 | # define _IOERR 0x40 |
| 86 | # define _IOREAD 0x80 | 86 | # define _IOREAD 0x80 |
| 87 | # define _IOWRT 0x4 | 87 | # define _IOWRT 0x4 |
| @@ -132,7 +132,7 @@ struct _gl_real_FILE | |||
| 132 | # define fp_ ((struct _gl_real_FILE *) fp) | 132 | # define fp_ ((struct _gl_real_FILE *) fp) |
| 133 | 133 | ||
| 134 | /* These values were determined by a program similar to the one at | 134 | /* These values were determined by a program similar to the one at |
| 135 | <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ | 135 | <https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ |
| 136 | # define _IOREAD 0x1 | 136 | # define _IOREAD 0x1 |
| 137 | # define _IOWRT 0x2 | 137 | # define _IOWRT 0x2 |
| 138 | # define _IORW 0x4 | 138 | # define _IORW 0x4 |
diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 5cf31319d9f..066e08eba9a 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h | |||
| @@ -152,7 +152,7 @@ | |||
| 152 | /* When also using extern inline, suppress the use of static inline in | 152 | /* When also using extern inline, suppress the use of static inline in |
| 153 | standard headers of problematic Apple configurations, as Libc at | 153 | standard headers of problematic Apple configurations, as Libc at |
| 154 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., | 154 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., |
| 155 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | 155 | <https://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. |
| 156 | Perhaps Apple will fix this some day. */ | 156 | Perhaps Apple will fix this some day. */ |
| 157 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ | 157 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ |
| 158 | && defined __GNUC__ && defined __STDC__) | 158 | && defined __GNUC__ && defined __STDC__) |
| @@ -610,7 +610,7 @@ _GL_CXXALIAS_SYS (fwrite, size_t, | |||
| 610 | (const void *ptr, size_t s, size_t n, FILE *stream)); | 610 | (const void *ptr, size_t s, size_t n, FILE *stream)); |
| 611 | 611 | ||
| 612 | /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 | 612 | /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 |
| 613 | <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>, | 613 | <https://sourceware.org/bugzilla/show_bug.cgi?id=11959>, |
| 614 | which sometimes causes an unwanted diagnostic for fwrite calls. | 614 | which sometimes causes an unwanted diagnostic for fwrite calls. |
| 615 | This affects only function declaration attributes under certain | 615 | This affects only function declaration attributes under certain |
| 616 | versions of gcc and clang, and is not needed for C++. */ | 616 | versions of gcc and clang, and is not needed for C++. */ |
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 8a383b3d016..c1dd07ff8cd 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h | |||
| @@ -379,7 +379,7 @@ _GL_WARN_ON_USE (dup2, "dup2 is unportable - " | |||
| 379 | Close NEWFD first if it is open. | 379 | Close NEWFD first if it is open. |
| 380 | Return newfd if successful, otherwise -1 and errno set. | 380 | Return newfd if successful, otherwise -1 and errno set. |
| 381 | See the Linux man page at | 381 | See the Linux man page at |
| 382 | <http://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ | 382 | <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ |
| 383 | # if @HAVE_DUP3@ | 383 | # if @HAVE_DUP3@ |
| 384 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 384 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 385 | # define dup3 rpl_dup3 | 385 | # define dup3 rpl_dup3 |
| @@ -1149,7 +1149,7 @@ _GL_WARN_ON_USE (pipe, "pipe is unportable - " | |||
| 1149 | Store the read-end as fd[0] and the write-end as fd[1]. | 1149 | Store the read-end as fd[0] and the write-end as fd[1]. |
| 1150 | Return 0 upon success, or -1 with errno set upon failure. | 1150 | Return 0 upon success, or -1 with errno set upon failure. |
| 1151 | See also the Linux man page at | 1151 | See also the Linux man page at |
| 1152 | <http://www.kernel.org/doc/man-pages/online/pages/man2/pipe2.2.html>. */ | 1152 | <https://www.kernel.org/doc/man-pages/online/pages/man2/pipe2.2.html>. */ |
| 1153 | # if @HAVE_PIPE2@ | 1153 | # if @HAVE_PIPE2@ |
| 1154 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 1154 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1155 | # define pipe2 rpl_pipe2 | 1155 | # define pipe2 rpl_pipe2 |
diff --git a/lib/utimens.c b/lib/utimens.c index a5716ac8105..55545e8ce9b 100644 --- a/lib/utimens.c +++ b/lib/utimens.c | |||
| @@ -196,7 +196,7 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) | |||
| 196 | /* Some Linux-based NFS clients are buggy, and mishandle timestamps | 196 | /* Some Linux-based NFS clients are buggy, and mishandle timestamps |
| 197 | of files in NFS file systems in some cases. We have no | 197 | of files in NFS file systems in some cases. We have no |
| 198 | configure-time test for this, but please see | 198 | configure-time test for this, but please see |
| 199 | <http://bugs.gentoo.org/show_bug.cgi?id=132673> for references to | 199 | <https://bugs.gentoo.org/show_bug.cgi?id=132673> for references to |
| 200 | some of the problems with Linux 2.6.16. If this affects you, | 200 | some of the problems with Linux 2.6.16. If this affects you, |
| 201 | compile with -DHAVE_BUGGY_NFS_TIME_STAMPS; this is reported to | 201 | compile with -DHAVE_BUGGY_NFS_TIME_STAMPS; this is reported to |
| 202 | help in some cases, albeit at a cost in performance. But you | 202 | help in some cases, albeit at a cost in performance. But you |
| @@ -250,8 +250,8 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) | |||
| 250 | result = utimensat (AT_FDCWD, file, ts, 0); | 250 | result = utimensat (AT_FDCWD, file, ts, 0); |
| 251 | # ifdef __linux__ | 251 | # ifdef __linux__ |
| 252 | /* Work around a kernel bug: | 252 | /* Work around a kernel bug: |
| 253 | http://bugzilla.redhat.com/442352 | 253 | https://bugzilla.redhat.com/show_bug.cgi?id=442352 |
| 254 | http://bugzilla.redhat.com/449910 | 254 | https://bugzilla.redhat.com/show_bug.cgi?id=449910 |
| 255 | It appears that utimensat can mistakenly return 280 rather | 255 | It appears that utimensat can mistakenly return 280 rather |
| 256 | than -1 upon ENOSYS failure. | 256 | than -1 upon ENOSYS failure. |
| 257 | FIXME: remove in 2010 or whenever the offending kernels | 257 | FIXME: remove in 2010 or whenever the offending kernels |
| @@ -566,8 +566,8 @@ lutimens (char const *file, struct timespec const timespec[2]) | |||
| 566 | result = utimensat (AT_FDCWD, file, ts, AT_SYMLINK_NOFOLLOW); | 566 | result = utimensat (AT_FDCWD, file, ts, AT_SYMLINK_NOFOLLOW); |
| 567 | # ifdef __linux__ | 567 | # ifdef __linux__ |
| 568 | /* Work around a kernel bug: | 568 | /* Work around a kernel bug: |
| 569 | http://bugzilla.redhat.com/442352 | 569 | https://bugzilla.redhat.com/show_bug.cgi?id=442352 |
| 570 | http://bugzilla.redhat.com/449910 | 570 | https://bugzilla.redhat.com/show_bug.cgi?id=449910 |
| 571 | It appears that utimensat can mistakenly return 280 rather | 571 | It appears that utimensat can mistakenly return 280 rather |
| 572 | than -1 upon ENOSYS failure. | 572 | than -1 upon ENOSYS failure. |
| 573 | FIXME: remove in 2010 or whenever the offending kernels | 573 | FIXME: remove in 2010 or whenever the offending kernels |