1. 01 Jan, 2020 1 commit
  2. 01 Jan, 2019 1 commit
  3. 01 Jan, 2018 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib · 220a9ecb
      Paul Eggert authored
      This incorporates:
      2018-01-01 maint: Run 'make update-copyright'
      2017-12-29 Add cross-compilation results for GNU/Hurd.
      2017-12-12 explicit_bzero: port to macOS + Clang 9.0.0
  4. 01 Jan, 2017 1 commit
  5. 24 Jan, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 1698036a
      Paul Eggert authored
      This incorporates:
      2016-01-24 openat_proc_name: fix last '/' overwritten on OS/2 kLIBC
      2016-01-24 closedir, dirfd, opendir: port to OpenSolaris 5.10
      2016-01-15 detect utimes() correctly on OS/2 kLIBC
      2016-01-15 openat_proc_name: port to OS/2 kLIBC
      2016-01-14 stdint: check _INTPTR_T_DECLARED for intptr_t etc.
      2016-01-14 opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
      2016-01-14 dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
      2016-01-14 binary-io: don't put fd in binary mode if a console on EMX
      2016-01-14 sig2str: list all signals on FreeBSD >= 7
      2016-01-13 acl-permissions: port to USE_ACL==0 platforms
      2016-01-12 mktime: rename macro to avoid glibc clash
      2016-01-12 Port "$@" to OpenIndiana ksh93
      2016-01-12 Port Universal Time settings to strict POSIX
      * build-aux/gitlog-to-changelog, build-aux/update-copyright:
      * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
      * lib/binary-io.h, lib/dirent.in.h, lib/dirfd.c, lib/dup2.c:
      * lib/fcntl.c, lib/fdopendir.c, lib/mktime.c, lib/openat-proc.c:
      * lib/sig2str.h, lib/stdint.in.h, m4/dirfd.m4, m4/dup2.m4:
      * m4/fcntl.m4, m4/utimes.m4:
      Copy from gnulib.
      * m4/gnulib-comp.m4: Regenerate.
  6. 19 Jan, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · cd19641e
      Paul Eggert authored
      This mostly just updates copyright dates of gnulib files.
      It also updates to the latest version of texinfo.tex.
  7. 01 Jan, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 98253051
      Paul Eggert authored
      This mostly just updates copyright dates of gnulib files.
      It also updates to the latest version of texinfo.tex.
  8. 25 Feb, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 27bd6dad
      Paul Eggert authored
      * lib/getdtablesize.c, m4/dup2.m4, m4/fcntl.m4:
      Update from gnulib, incorporating:
      2015-02-23 dup2: doc and test for Android bug
      2015-02-23 Replace dup2() on Android
      2015-02-22 Android doesn't define RLIM_SAVED_*
  9. 21 Feb, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 066b17df
      Paul Eggert authored
      * doc/misc/texinfo.tex: Update from gnulib.
      * lib/getdtablesize.c, lib/getopt.c, lib/signal.in.h, lib/tempname.c:
      * lib/tempname.h, m4/dup2.m4, m4/fcntl.m4, m4/getdtablesize.m4:
      Update from gnulib, incorporating:
      2015-02-20 getdtablesize: port better for Android
      2015-02-19 fcntl: Fix cross compiling
      2015-02-18 dup2, fcntl: cross-compile better for Android
      2015-02-18 getopt: don't crash on memory exhaustion
      2015-02-17 tempname: allow compilation with C++ (trivial)
      2015-02-17 dup2, fcntl: port to AIX
      2015-02-16 getdtablesize, dup2, fcntl: port to Android
      2015-02-11 getdtablesize, signal_h: Fix Android build
      2015-02-11 maint: various whitespace cleanups in tempname
  10. 01 Jan, 2015 2 commits
  11. 11 Jun, 2014 1 commit
  12. 01 Jun, 2014 1 commit
    • Paul Eggert's avatar
      Merge from gnulib. · eed652d6
      Paul Eggert authored
      This incorporates:
      2014-06-02 acl: apply pure attribute to two functions
      2014-06-01 gnulib-common.m4: add _GL_UNUSED_LABEL
      2014-05-31 dup2, fcntl, fcntl-h: port to AIX 7.1
      2014-05-30 ftoastr: work around compiler bug in IBM xlc 12.1
      * lib/acl-internal.h, lib/fcntl.in.h, lib/ftoastr.h:
      * m4/dup2.m4, m4/fcntl.m4, m4/gnulib-common.m4:
      Update from gnulib.
  13. 01 Jan, 2014 1 commit
  14. 07 Jul, 2013 1 commit
    • Paul Eggert's avatar
      Make file descriptors close-on-exec when possible. · 067428c1
      Paul Eggert authored
      This simplifies Emacs a bit, since it no longer needs to worry
      about closing file descriptors by hand in some cases.
      It also fixes some unlikely races.  Not all such races, as
      libraries often open files internally without setting
      close-on-exec, but it's an improvement.
      * admin/merge-gnulib (GNULIB_MODULES): Add fcntl, pipe2.
      (GNULIB_TOOL_FLAGS): Avoid binary-io, close.  Do not avoid fcntl.
      * configure.ac (mkostemp): New function to check for.
      (PTY_OPEN): Pass O_CLOEXEC to posix_openpt.
      * lib/fcntl.c, lib/getdtablesize.c, lib/pipe2.c, m4/fcntl.m4:
      * m4/getdtablesize.m4, m4/pipe2.m4: New files, taken from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * nt/gnulib.mk: Remove empty gl_GNULIB_ENABLED_verify section;
      otherwise, gnulib-tool complains given close-on-exec changes.
      * nt/inc/ms-w32.h (pipe): Remove.
      * nt/mingw-cfg.site (ac_cv_func_fcntl, gl_cv_func_fcntl_f_dupfd_cloexec)
      (gl_cv_func_fcntl_f_dupfd_works, ac_cv_func_pipe2): New vars.
      * src/alloc.c (valid_pointer_p) [!WINDOWSNT]:
      * src/callproc.c (Fcall_process) [!MSDOS]:
      * src/emacs.c (main) [!DOS_NT]:
      * src/nsterm.m (ns_term_init):
      * src/process.c (create_process):
      Use 'pipe2' with O_CLOEXEC instead of 'pipe'.
      * src/emacs.c (Fcall_process_region) [HAVE_MKOSTEMP]:
      * src/filelock.c (create_lock_file) [HAVE_MKOSTEMP]:
      Prefer mkostemp with O_CLOEXEC to mkstemp.
      * src/callproc.c (relocate_fd) [!WINDOWSNT]:
      * src/emacs.c (main): Use F_DUPFD_CLOEXEC, not plain F_DUPFD.
      No need to use fcntl (..., F_SETFD, FD_CLOEXEC), since we're
      now using pipe2.
      * src/filelock.c (create_lock_file) [! HAVE_MKOSTEMP]:
      Make the resulting file descriptor close-on-exec.
      * src/lisp.h, src/lread.c, src/process.c (close_load_descs, close_process_descs):
      * src/lread.c (load_descriptor_list, load_descriptor_unwind):
      Remove; no longer needed.  All uses removed.
      * src/process.c (SOCK_CLOEXEC): Define to 0 if not supplied by system.
      (close_on_exec, accept4, process_socket) [!SOCK_CLOEXEC]:
      New functions.
      (socket) [!SOCK_CLOEXEC]: Supply a substitute.
      (Fmake_network_process, Fnetwork_interface_list):
      (Fnetwork_interface_info, server_accept_connection):
      Make newly-created socket close-on-exec.
      * src/sysdep.c (emacs_open, emacs_fopen):
      Make new-created descriptor close-on-exec.
      * src/w32.c (fcntl): Support F_DUPFD_CLOEXEC well enough for Emacs.
      * src/w32.c, src/w32.h (pipe2): Rename from 'pipe', with new flags arg.
      Fixes: debbugs:14803