[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Eli Zaretskii
Subject: h_errno?
Date: Fri, 15 Feb 2013 11:10:25 +0200

In process.c we have:

  #ifndef HAVE_H_ERRNO
  extern int h_errno;

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;
              hp = gethostbyname (hostname);
  #ifdef TRY_AGAIN
              if (! (hp == 0 && h_errno == TRY_AGAIN))


              if (count >= 5)
              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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]