1. 07 Jun, 2019 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · 111408a0
      Paul Eggert authored
      This incorporates:
      2019-06-04 copy-file-range: new module
      2019-05-28 binaty-io: O_BINARY on consoles no longer fails
      * doc/misc/texinfo.tex, lib/binary-io.c, lib/binary-io.h:
      * lib/unistd.in.h, m4/unistd_h.m4: Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      111408a0
  2. 30 Apr, 2019 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · 46b434a6
      Paul Eggert authored
      * build-aux/config.guess, doc/misc/texinfo.tex:
      * lib/mktime-internal.h, lib/mktime.c, lib/timegm.c:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      46b434a6
  3. 25 Apr, 2019 3 commits
  4. 15 Apr, 2019 1 commit
    • Paul Eggert's avatar
      Replace executable’s fingerprint in place · 5c2f94a1
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add memmem-simple.
      (AVOIDED_MODULES): Add memchr.
      * configure.ac (HAVE_PDUMPER): AC_SUBST it, too, for use in makefiles.
      * lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
      * lib/fingerprint.c: New file.
      * lib/memmem.c, lib/str-two-way.h, m4/memmem.m4: New files,
      copied from Gnulib.
      * lib/fingerprint.h: Rename from src/fingerprint.h.
      * lib-src/make-fingerprint.c: Include limits.h, sys/stat.h,
      fingerprint.h, intprops.h, min-max.h.
      (SSIZE_MAX): New macro, if not already defined.
      (main): Without -r, Replace the fingerprint in the input file
      instead of generating a fingerprint.c.
      * lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * src/Makefile.in (HAVE_PDUMPER, MAKE_PDUMPER_FINGERPRINT):
      New macros.
      (temacs$(EXEEXT)): Use them to replace the fingerprint instead
      of precalculating it.
      (mostlyclean, ctagsfiles1): Do not worry about fingerprint.c.
      5c2f94a1
  5. 14 Apr, 2019 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · d209d646
      Paul Eggert authored
      This incorporates:
      2019-04-07 Add copyright notices in several files
      * build-aux/config.sub, doc/misc/texinfo.tex, lib/_Noreturn.h:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      d209d646
  6. 11 Mar, 2019 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · e2f35443
      Paul Eggert authored
      This incorporates:
      2019-03-10 alloca-opt: Fix conflict mingw's new <alloca.h> file
      2019-03-03 getloadavg: Write NULL for the null pointer
      Reported by Michal Privoznik <mprivozn@redhat.com>.
      * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
      * build-aux/config.guess, build-aux/move-if-change:
      * doc/misc/texinfo.tex, lib/alloca.in.h, lib/getloadavg.c:
      * m4/alloca.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      e2f35443
  7. 02 Feb, 2019 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · adc31c6b
      Paul Eggert authored
      This incorporates:
      2019-02-02 dtoastr, ftoastr, ldtoastr: port to c-strtod changes
      2019-02-01 c-strtod, c-strtold: use the bug fixes
      2019-01-30 strtold: New module
      * doc/misc/texinfo.tex, lib/ftoastr.c, lib/regexec.c, lib/stdlib.in.h:
      * m4/stdlib_h.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * m4/c-strtod.m4: Remove.
      adc31c6b
  8. 28 Jan, 2019 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · d81aa851
      Paul Eggert authored
      This incorporates:
      2019-01-26 getloadavg: Add support for Android
      2019-01-24 fchownat: Fix compilation error on Android 4.3
      2019-01-24 mbtowc: Fix compilation error on Android 4.3
      2019-01-24 random: Fix compilation error on Android 4.3
      2019-01-24 renameat: Fix compilation error on Android 4.3
      2019-01-24 unlinkat: Fix compilation error on Android 4.3
      2019-01-19 gettext: support disabling use of VLAs
      2019-01-17 sys_stat: Fix warning on OS/2 kLIBC
      2019-01-17 fcntl: Fix syntax error (regression from 2018-10-05)
      2019-01-10 verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++
      2018-12-22 stdioext: port to newer 32-bit Android
      2018-12-16 libc-config: Support HP-UX cc in C99 mode.
      * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
      * lib/cdefs.h, lib/fcntl.c, lib/getloadavg.c, lib/gettext.h:
      * lib/regexec.c, lib/stdio-impl.h, lib/stdio.in.h, lib/stdlib.in.h:
      * lib/sys_stat.in.h, lib/unistd.in.h, lib/verify.h, m4/stdlib_h.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      d81aa851
  9. 01 Jan, 2019 2 commits
    • Paul Eggert's avatar
      Update from Gnulib · 11549870
      Paul Eggert authored
      This incorporates mostly just copyright-year changes, plus
      recent minor updates from glibc for the non-Emacs regular
      expression code.
      11549870
    • Paul Eggert's avatar
      Update copyright year to 2019 · 26bed8ba
      Paul Eggert authored
      Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
      26bed8ba
  10. 03 Dec, 2018 1 commit
    • Paul Eggert's avatar
      Use tcdrain, not fdatasync, to drain ttys · f5090b91
      Paul Eggert authored
      fdatasync is for storage devices, not ttys.
      * admin/merge-gnulib (GNULIB_MODULES): Remove fdatasync.
      * lib/fdatasync.c, m4/fdatasync.m4: Remove.
      * lib-src/Makefile.in (LIB_FDATASYNC):
      * src/Makefile.in (LIB_FDATASYNC):
      Remove.  All uses removed.
      * lib-src/emacsclient.c [!DOS_NT]:
      Include <termios.h>, for tcdrain.
      * lib-src/emacsclient.c (flush_stdout):
      * src/sysdep.c (reset_sys_modes): On ttys, use tcdrain instead
      of fdatasync (except don’t use either function if DOS_NT).
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      f5090b91
  11. 16 Nov, 2018 1 commit
    • Paul Eggert's avatar
      Update from glibc and Gnulib · 7382f64b
      Paul Eggert authored
      This incorporates:
      2018-11-15 mktime: DEBUG_MKTIME cleanup
      2018-11-15 mktime: fix non-EOVERFLOW errno handling
      2018-11-15 mktime: fix bug with Y2038 DST transition
      2018-11-15 mktime: make more room for overflow
      2018-11-15 mktime: simplify offset guess
      2018-11-15 mktime: new test for mktime failure
      2018-11-15 mktime: fix EOVERFLOW bug
      2018-11-13 longlong: fix comment typo
      * lib/gnulib.mk.in: Regenerate.
      * lib/mktime.c, m4/longlong.m4: Copy from Gnulib.
      7382f64b
  12. 13 Nov, 2018 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · 7e2a1543
      Paul Eggert authored
      This incorporates:
      2018-11-03 nstrftime: simplify test for mktime failure
      2018-11-02 gnulib-common.m4: port _Noreturn to C++
      2018-10-22 std-gnu11: Support Autoconf versions < 2.64
      2018-10-22 Assume Autoconf >= 2.63
      2018-10-16 Remove support for Ultrix
      2018-10-16 getloadavg: Remove support for ConvexOS
      2018-10-16 getloadavg: Remove support for Sony NEWS
      2018-10-16 Remove support for Dynix/ptx
      2018-10-16 fsusage: Remove support for AIX 3
      2018-10-16 fsusage, stat-size, getloadavg: Remove support for AIX PS/2
      2018-10-16 getloadavg: Remove support for HP-UX on m68k
      2018-10-16 fsusage, mountlist: Remove support for DolphinOS
      2018-10-16 getloadavg: Remove support for Alliant FX/2800
      2018-10-16 getloadavg: Remove support for tek4300
      2018-10-16 getloadavg: Remove support for Ardent
      * build-aux/config.guess, build-aux/config.sub, lib/_Noreturn.h:
      * lib/fsusage.c, lib/getgroups.c, lib/getloadavg.c:
      * lib/nstrftime.c, lib/time.in.h, m4/errno_h.m4:
      * m4/fsusage.m4, m4/getgroups.m4, m4/gnulib-common.m4, m4/longlong.m4:
      * m4/std-gnu11.m4, m4/stdint.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate:
      7e2a1543
  13. 15 Oct, 2018 1 commit
    • Paul Eggert's avatar
      Update lib/regex from glibc via Gnulib · 3d91dc1b
      Paul Eggert authored
      This syncs recent refactorings from glibc, and incorporates:
      2018-10-15 libc-config: merge from glibc
      2018-10-15 regex: depend on libc-config
      * .gitignore: Do not ignore m4/_*.m4.
      * lib/cdefs.h: New file, copied from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/libc-config.h, m4/__inline.m4: New files, copied from Gnulib.
      * lib/regcomp.c, lib/regex.c, lib/regex_internal.c:
      * lib/regex_internal.h, lib/regexec.c:
      Copy from glibc via Gnulib.
      3d91dc1b
  14. 09 Oct, 2018 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · cf1ebfa0
      Paul Eggert authored
      This incorporates:
      2018-10-05 explicit_bzero: make it possible to namespace
      2018-10-04 fcntl: make it possible to namespace
      2018-10-01 mkostemp, mkostemps: fix C++ compilation on Mac OS X
      2018-09-19 maint: mktime.c now shared with glibc
      2018-09-18 file-has-acl: fix test failure on Cygwin 2.9
      2018-09-18 gettime: nanotime never existed
      * admin/merge-gnulib (AVOIDED_MODULES): Add mkdir.
      * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
      * lib/acl_entries.c, lib/explicit_bzero.c, lib/fcntl.c:
      * lib/get-permissions.c, lib/gettime.c, lib/mktime.c:
      * lib/set-permissions.c, lib/stdlib.in.h, m4/acl.m4, m4/gettime.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      cf1ebfa0
  15. 28 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · f1acdff5
      Paul Eggert authored
      * build-aux/config.sub, lib/intprops.h, lib/regex_internal.c:
      * lib/regex_internal.h, lib/unistd.in.h, m4/limits-h.m4:
      * m4/stdint.m4, m4/unistd_h.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      f1acdff5
  16. 12 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · d64c1be9
      Paul Eggert authored
      This incorporates:
      2018-08-11 verify: port 'assume' to traditional tools
      * build-aux/config.sub, lib/regcomp.c, lib/verify.h:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      d64c1be9
  17. 06 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Use Gnulib regex for lib-src · d904cc83
      Paul Eggert authored
      Emacs regular expressions forked from everyone else long ago.
      This makes it official and should allow simplification later.
      etags.c now uses the glibc regex API, falling back on a
      Gnulib-supplied substitute lib/regex.c if necessary.
      Emacs proper now uses its own regular expression module.
      Although this patch may look dauntingly large, most of it
      was generated automatically by admin/merge-gnulib
      and contains an exact copy of the glibc regex source,
      and the by-hand changes do not grow the Emacs source code.
      * admin/merge-gnulib (GNULIB_MODULES): Add regex.
      (AVOIDED_MODULES): Add btowc, langinfo, lock, mbrtowc, mbsinit,
      nl_langinfo, wchar, wcrtomb, wctype-h.
      * lib-src/Makefile.in (regex-emacs.o): Remove; Gnulib does it now.
      (etags_deps, etags_libs): Remove regex-emacs.o.
      * lib-src/etags.c: Go back to including regex.h.
      (add_regex): Use unsigned char translation array,
      since glibc regex requires that.
      * lib/Makefile.in (not_emacs_OBJECTS, for_emacs_OBJECTS): New macros.
      (libegnu_a_OBJECTS): Use them, to avoid building e-regex.o.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
      * lib/regex_internal.h, lib/regexec.c, m4/builtin-expect.m4:
      * m4/eealloc.m4, m4/glibc21.m4, m4/mbstate_t.m4, m4/regex.m4:
      New files, copied from Gnulib.
      * src/regex-emacs.h, src/conf_post.h:
      (RE_TRANSLATE_TYPE, RE_TRANSLATE, RE_TRANSLATE_P):
      Move from src/conf_post.h to src/regex-emacs.h,
      so that they don’t interfere with compiling lib/regex.c.
      d904cc83
  18. 02 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Substitute a <ieee754.h> on hosts lacking it · d216d7d2
      Paul Eggert authored
      * .gitignore: Add lib/ieee754.h.
      * admin/merge-gnulib (GNULIB_MODULES): Add ieee754-h.
      * configure.ac: Remove ieee754.h check, as Gnulib now does that.
      * etc/NEWS: Mention this.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/ieee754.in.h, m4/ieee754-h.m4: New files, from Gnulib.
      * src/lisp.h (IEEE_FLOATING_POINT): Now a macro so that it
      can be used in #if.
      * src/lread.c, src/print.c: Include <ieee754.h> if
      IEEE_FLOATING_POINT, not if HAVE_IEEE754_H.
      * src/lread.c (string_to_number):
      * src/print.c (float_to_string):
      Process NaNs only on IEEE hosts, and assume <ieee754.h>
      in that case.
      d216d7d2
  19. 17 Jul, 2018 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 3f391c89
      Paul Eggert authored
      This incorporates:
      2018-07-17 gnulib-tool: limit line length for git send-email
      * lib/gnulib.mk.in: Regenerate.
      3f391c89
  20. 08 Jul, 2018 2 commits
  21. 07 Jul, 2018 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 13031089
      Paul Eggert authored
      This incorporates:
      2018-07-04 gnulib-tool: minor tweaks for --gnu-make
      * build-aux/config.guess, build-aux/config.sub: Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      13031089
  22. 21 May, 2018 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · 79f15092
      Paul Eggert authored
      This incorporates:
      2018-05-21 crypto: omit stream ops Emacs doesn’t need
      2018-05-13 truncate: Fix compilation error on Android
      2018-05-13 imaxdiv: Fix compilation error on Android
      2018-05-13 Support selective inclusion of recent mingw.org headers
      2018-05-13 Add cross-compilation guesses for Linux systems sans glibc
      2018-05-13 stdioext: Fix compilation errors with newer Android headers
      2018-05-07 af_alg: Pacify --enable-gcc-warnings
      2018-05-06 af_alg: Fix bug with streams that are not at position 0
      2018-05-06 Followup to 'af_alg: New module'
      2018-05-05 crypto/{md5,sha1,sha256,sha512}: simplify
      2018-05-05 af_alg: New module
      2018-05-05 af_alg: Improve function signature
      2018-04-28 md5sum: Use AF_ALG when available
      2018-04-28 sha512sum: Use AF_ALG when available
      2018-04-28 sha256sum: Use AF_ALG when available
      2018-04-28 sha1sum: Use AF_ALG when available
      2018-05-05 all: Replace more http URLs by https URLs
      2018-05-03 maint: port more modules to GCC 8
      2018-05-03 Simplify code; drop support for Borland C++ on Windows
      * admin/merge-gnulib (GNULIB_MODULES): Use crypto/md5-buffer
      rather than crypto/md5, since Emacs doesn’t use the stream
      operations that in recent Gnulib pull in other stuff Emacs doesn’t
      need.  Similarly for crypto/sha1-buffer, crypto/sha256-buffer,
      crypto/sha512-buffer.
      * build-aux/config.guess, build-aux/config.sub, lib/dosname.h:
      * lib/dup2.c, lib/errno.in.h, lib/euidaccess.c, lib/fcntl.c:
      * lib/fcntl.in.h, lib/fpending.c, lib/fsync.c, lib/getdtablesize.c:
      * lib/getopt.c, lib/gettimeofday.c, lib/inttypes.in.h, lib/md5.c:
      * lib/md5.h, lib/open.c, lib/pipe2.c, lib/putenv.c, lib/sha1.c:
      * lib/sha1.h, lib/sha256.c, lib/sha256.h, lib/sha512.c:
      * lib/sha512.h, lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h:
      * lib/stdlib.in.h, lib/sys_stat.in.h, lib/sys_types.in.h:
      * lib/timespec.h, lib/unistd.in.h, lib/utimens.c, m4/c-strtod.m4:
      * m4/gnulib-common.m4, m4/inttypes.m4, m4/lstat.m4, m4/nocrash.m4:
      * m4/pselect.m4, m4/readlink.m4, m4/stdio_h.m4, m4/symlink.m4:
      * m4/unistd_h.m4, m4/utimens.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      79f15092
  23. 20 Feb, 2018 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 630da78a
      Paul Eggert authored
      This includes:
      2018-02-18 warnings: Add support for Objective C
      2018-02-03 stdlib: Fix compilation error on OpenIndiana
      * lib/gnulib.mk.in: Regenerate.
      * lib/stdlib.in.h, m4/getloadavg.m4, m4/stdlib_h.m4, m4/warnings.m4:
      Copy from gnulib.
      630da78a
  24. 01 Feb, 2018 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 100e3397
      Paul Eggert authored
      This includes:
      2018-01-31 environ: Fix link error on 64-bit Cygwin
      2018-01-27 Fix malfunction of socket functions on HP-UX in 64-bit mode
      2018-01-26 manywarnings: fix maintainer comment
      2018-01-23 Merge strftime.c changes from glibc
      * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
      * lib/gnulib.mk.in, lib/nstrftime.c, lib/unistd.in.h, m4/extensions.m4:
      * m4/manywarnings.m4: Update.
      100e3397
  25. 09 Jan, 2018 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib · 7668717d
      Paul Eggert authored
      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.
      7668717d
  26. 01 Jan, 2018 2 commits
  27. 12 Nov, 2017 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib · 7775c472
      Paul Eggert authored
      This incorporates:
      2017-11-11 faccessat: port to macOS (Bug#29231)
      2017-11-05 fstatat: pacify GCC on unusual platform
      * build-aux/config.guess, build-aux/config.sub:
      * doc/misc/texinfo.tex, lib/faccessat.c, lib/fstatat.c:
      * lib/unistd.in.h, m4/faccessat.m4, m4/unistd_h.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      7775c472
  28. 02 Oct, 2017 1 commit
    • Paul Eggert's avatar
      Port file-system-info to non-Microsoft · 135bca57
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add fsusage.
      * doc/emacs/files.texi (Directories): Remove documentation of
      now-obsolete directory-free-space-program and
      directory-free-space-args.
      * etc/NEWS: Mention change.
      * etc/PROBLEMS: Slow df is no longer a problem.
      * lib/fsusage.c, lib/fsusage.h, m4/fsusage.m4:
      New files, copied from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lisp/dired.el (dired-free-space-program)
      (dired-free-space-args): These aliases are now obsolete.
      * lisp/files.el (directory-free-space-program)
      (directory-free-space-args): Now obsolete.
      (get-free-disk-space): Just call file-system-info instead
      of the now-obsolete directory-free-space-program.
      * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_fsusage): New macro.
      * src/fileio.c: Include fsusage.h.
      (blocks_to_bytes, Ffile_system_info) [!DOS_NT]: New functions.
      (syms_of_fileio) [!DOS_NT]: Defsubr file-system-info.
      135bca57
  29. 30 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 3ab2f9bb
      Paul Eggert authored
      This incorporates:
      2017-09-28 string: code style
      2017-09-25 sys_types: update URL
      2017-09-23 install-sh: do not assume / = //
      2017-09-21 mktime: port to OpenVMS
      * build-aux/install-sh, m4/mktime.m4, m4/string_h.m4:
      * m4/sys_types_h.m4: Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      3ab2f9bb
  30. 17 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib · 6bbbc38b
      Paul Eggert authored
      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.
      6bbbc38b
  31. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib · a0202fdc
      Paul Eggert authored
      This incorporates:
      2017-09-13 all: prefer https: URLs
      This just changes http: to https: in comments,
      in files copied from Gnulib.
      a0202fdc
  32. 10 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · b079ee72
      Paul Eggert authored
      This incorporates:
      2017-09-08 stddef: Avoid conflict with system-defined max_align_t
      2017-08-24 warnings: fix compilation with old autoconf
      2017-08-23 glob: merge from glibc with Zanella glob changes
      2017-08-17 random: Fix test compilation failure on Cygwin 1.5.25
      * doc/misc/texinfo.tex, lib/flexmember.h, lib/stddef.in.h:
      * lib/stdlib.in.h, m4/manywarnings.m4, m4/stdlib_h.m4:
      * m4/warnings.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      b079ee72
  33. 16 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib; use ‘open’ for O_CLOEXEC · 794c3cd3
      Paul Eggert authored
      This incorporates:
      2017-08-15 renameat: ensure declaration in <stdio.h> on NetBSD
      2017-08-15 extensions: enable NetBSD specific extensions
      2017-08-14 open: support O_CLOEXEC
      2017-08-13 reallocarray: new module
      * admin/merge-gnulib (AVOIDED_MODULES): Remove ‘open’, since
      it now supports O_CLOEXEC and this simplifies Emacs.
      * build-aux/config.guess, lib/fcntl.in.h, lib/stdio.in.h:
      * lib/stdlib.in.h, m4/extensions.m4, m4/stdlib_h.m4:
      Copy from Gnulib.
      * lib/cloexec.c, lib/cloexec.h, lib/open.c:
      * m4/mode_t.m4, m4/open-cloexec.m4, m4/open.m4:
      New files, copied from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]:
      Remove, as Gnulib does this for us.
      * src/filelock.c (create_lock_file):
      * src/sysdep.c (emacs_open, emacs_pipe):
      Don’t worry about O_CLOEXEC == 0, as Gnulib no longer sets it to 0.
      794c3cd3
  34. 12 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Improve make-temp-file performance on local files · a6ad98ad
      Paul Eggert authored
      For the motivation behind this patch, please see Bug#28023 and:
      http://emacshorrors.com/posts/make-temp-name.html
      Although, given the recent changes to Tramp, the related security
      problem in make-temp-file is already fixed, make-temp-file still has
      several unnecessary system calls.  In the typical case on GNU/Linux,
      this patch replaces 8 syscalls (symlink, open, close, readlinkat, uname,
      getpid, unlink, umask) by 2 (open, close).
      * admin/merge-gnulib (GNULIB_MODULES): Add tempname, now
      that Emacs is using it directly.
      * configure.ac (AUTO_DEPEND): Remove AC_SYS_LONG_FILE_NAMES;
      no longer needed.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lisp/files.el (files--make-magic-temp-file): Rename from
      make-temp-file.
      (make-temp-file): Use make-temp-file-internal for
      non-magic file names.
      * src/fileio.c: Include tempname.h.
      (make_temp_name_tbl, make_temp_name_count)
      (make_temp_name_count_initialized_p, make_temp_name): Remove.
      (Fmake_temp_file_internal): New function.
      (Fmake_temp_name): Use it.
      * src/filelock.c (get_boot_time): Use Fmake_temp_file_internal
      instead of make_temp_name.
      a6ad98ad
  35. 09 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 904be8c4
      Paul Eggert authored
      This incorporates:
      2017-08-09 tempname: do not depend on secure_getenv
      2017-08-08 extensions: add _OPENBSD_SOURCE
      2017-08-06 manywarnings: Add support for C++
      2017-08-06 warnings, manywarnings: Add support for multiple languages
      * admin/merge-gnulib: Don't use m4/manywarnings-c++.m4.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/secure_getenv.c, m4/secure_getenv.m4: Remove.
      * lib/tempname.c, m4/extensions.m4, m4/manywarnings.m4, m4/warnings.m4:
      Copy from gnulib.
      904be8c4