all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* h_errno?
@ 2013-02-15  9:10 Eli Zaretskii
  2013-02-15  9:46 ` h_errno? Dmitry Antipov
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2013-02-15  9:10 UTC (permalink / raw)
  To: emacs-devel

In process.c we have:

  #ifndef HAVE_H_ERRNO
  extern int h_errno;
  #endif

There's also a configure-time test for this variable.  But no code
ever references h_errno in process.c, and the only place that it is
used is in sysdep.c:

  #else /* !HAVE_GETADDRINFO */
	  struct hostent *hp;
	  for (count = 0;; count++)
	    {

  #ifdef TRY_AGAIN
	      h_errno = 0;
  #endif
	      hp = gethostbyname (hostname);
  #ifdef TRY_AGAIN
	      if (! (hp == 0 && h_errno == TRY_AGAIN))
  #endif

		break;

	      if (count >= 5)
		break;
	      Fsleep_for (make_number (1), Qnil);
	    }

What is this variable about, and why do we have its declaration in
process.c?  Can we use errno instead of h_errno in sysdep.c?



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-16 11:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15  9:10 h_errno? Eli Zaretskii
2013-02-15  9:46 ` h_errno? Dmitry Antipov
2013-02-15 10:19   ` h_errno? Eli Zaretskii
2013-02-15 19:09     ` h_errno? Paul Eggert
2013-02-15 19:44       ` h_errno? Eli Zaretskii
2013-02-16 11:11         ` h_errno? Eli Zaretskii
2013-02-15 11:57   ` h_errno? Andreas Schwab

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.