1. 10 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Minor fixes for getaddrinfo_a usage · f0b31080
      Paul Eggert authored
      * src/process.c (Fdelete_process): Check gai_cancel return value.
      That way, there’s no need to invoke gai_error.  Check gai_suspend
      return value.
      (Fmake_network_process): Don’t assume gai_strerror returns a UTF-8
      string.  Simplify call to connect_network_socket.
      (check_for_dns): Avoid unnecessary initialization of local.
      f0b31080
  2. 09 Mar, 2016 1 commit
  3. 08 Mar, 2016 3 commits
    • Paul Eggert's avatar
      Pacify --enable-gcc-warnings · e0400b72
      Paul Eggert authored
      * src/xfns.c (x_create_tip_frame): Omit unused local.
      (Fx_show_tip): Don’t jump over auto initialization.
      e0400b72
    • Martin Rudalics's avatar
      Optionally reuse tooltip frames instead of deleting/recreating them. · 80864c2a
      Martin Rudalics authored
      * src/frame.c (tooltip_reuse_hidden_frame): New option.
      * src/w32fns.c (x_create_tip_frame): Remove argument TEXT.  Fix
      handling of dividers.
      (x_hide_tip): New function.
      (Fx_show_tip): Try to reuse old tooltip frame when
      `tooltip-reuse-hidden-frame' is non-nil and frame parameters
      have not changed.  Insert STRING here instead of passing it to
      x_create_tip_frame.  Compute size of tooltip window with
      Fwindow_text_pixel_size.  Obey Vw32_tooltip_extra_pixels when
      padding tooltip window.
      (Fx_hide_tip): Call x_hide_tip.
      (Vw32_tooltip_extra_pixels): New variable.
      * src/xdisp.c (Fwindow_text_pixel_size): Don't return negative y
      value.  Fix doc-string.
      * src/xfns.c (x_create_tip_frame): Remove argument TEXT.  Call
      make_frame with mini_p argument false.
      (x_hide_tip): New function.
      (Fx_show_tip): Try to reuse old tooltip frame when
      `tooltip-reuse-hidden-frame' is non-nil and frame parameters
      have not changed.  Insert STRING here instead of passing it to
      x_create_tip_frame.  Compute size of tooltip window with
      Fwindow_text_pixel_size.
      (Fx_hide_tip): Call x_hide_tip.
      * lisp/cus-start.el (tooltip-reuse-hidden-frame): Add
      customization entry.
      80864c2a
    • Paul Eggert's avatar
      Assume getaddrinfo in C code · 59c7a5d7
      Paul Eggert authored
      * admin/CPP-DEFINES, configure.ac: Remove HAVE_GETADDRINFO, HAVE_H_ERRNO.
      All uses removed.
      * doc/lispref/processes.texi (Network, Network Processes), etc/NEWS:
      Say that port numbers can be integer strings.
      * lib-src/pop.c (h_errno) [!WINDOWSNT && !HAVE_H_ERRNO]: Remove decl.
      (socket_connection): Assume HAVE_GETADDRINFO.
      * lisp/mpc.el (mpc--proc-connect):
      * lisp/net/network-stream.el (open-network-stream):
      It’s now OK to use integer strings as port numbers.
      * src/process.c (conv_numerical_to_lisp) [!HAVE_GETADDRINFO]: Remove.
      (Fmake_network_process): Assume HAVE_GETADDRINFO.
      59c7a5d7
  4. 07 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Remove support for IRIX · 6bc8689c
      Paul Eggert authored
      The IRIX port wasn’t really working anyway, and the code was
      getting in the way of other changes (e.g., getaddrinfo fixes).
      IRIX’s supplier dropped support for IRIX in 2013.
      * admin/CPP-DEFINES:
      * configure.ac (opsys):
      * doc/lispref/os.texi (System Environment):
      * etc/MACHINES, etc/PROBLEMS:
      * lisp/find-dired.el (find-grep-options):
      * lisp/lpr.el (lpr-lp-system):
      * lisp/ls-lisp.el (ls-lisp-emulation):
      * lisp/mail/rmail.el (rmail-spool-directory):
      * lisp/net/net-utils.el (ping-program-options):
      * lisp/progmodes/gud.el (gud-irix-p, gud-dbx-use-stopformat-p):
      * lisp/progmodes/ps-mode.el (ps-mode-print-function):
      * src/conf_post.h [IRIX6_5]:
      * src/emacs.c (Vsystem_type):
      * src/filelock.c (get_boot_time_1):
      * src/process.c (process_send_signal):
      * src/unexelf.c (unexec):
      Omit IRIX-specific code and/or documentation.
      * configure.ac (NON_GCC_TEST_OPTIONS, IRIX6_5, PREFER_VSUSP):
      Remove.  All uses removed.
      * etc/NEWS: Document the change.
      6bc8689c
  5. 06 Mar, 2016 4 commits
  6. 05 Mar, 2016 3 commits
    • Lars Magne Ingebrigtsen's avatar
      Allow making TLS negotiation blocking · 21b509d4
      Lars Magne Ingebrigtsen authored
      * lisp/net/gnutls.el (gnutls-negotiate): Make negotiation blocking.
      
      * src/gnutls.c (Fgnutls_boot): Provide a new keyword,
      :complete-negotiation, to specify that we want complete
      negotiation even if the socket is non-blocking.
      (gnutls_try_handshake): Complete negotiation if given that keyword.
      
      * src/process.h (L): Added gnutls_complete_negotiation_p.
      21b509d4
    • Lars Magne Ingebrigtsen's avatar
      Don't run ipv6 test on systems without ipv6 · 76b97fb0
      Lars Magne Ingebrigtsen authored
      * test/lisp/net/network-stream-tests.el
      (connect-to-tls-ipv6-nowait): Skip on systems without ipv6.
      76b97fb0
    • Eli Zaretskii's avatar
      Implement getaddrinfo fallback for MS-Windows · bc96f6e8
      Eli Zaretskii authored
      See http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg01602.html
      for more details.
      
      * nt/mingw-cfg.site (ac_cv_func_getaddrinfo)
      (ac_cv_func_gai_strerror): Set to "yes", as the configure script's
      test program is not smart enough to auto-detect these.
      * nt/inc/sys/socket.h (getaddrinfo, freeaddrinfo): Redirect to
      sys_getaddrinfo and sys_freeaddrinfo.  Provide prototypes for
      sys_getaddrinfo and sys_freeaddrinfo.
      
      * src/w32.c (init_winsock): Try loading getaddrinfo and
      freeaddrinfo from ws2_32.dll.
      (sys_getaddrinfo, sys_freeaddrinfo): New functions.
      
      * lib-src/pop.c [WINDOWSNT]: Include winsock2.h, not winsock.h,
      and also ws2tcpip.h.
      (getaddrinfo, freeaddrinfo) [WINDOWSNT]: Redirect to
      sys_getaddrinfo and sys_freeaddrinfo, respectively.
      (load_ws2, sys_getaddrinfo, sys_freeaddrinfo) [WINDOWSNT]: New
      functions.
      bc96f6e8
  7. 04 Mar, 2016 27 commits